From f228de1dc2ac4e3992b9b732372d70ab259aa529 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 8 Feb 2022 09:55:52 +0000 Subject: [PATCH] CodeGen from PR 17296 in Azure/azure-rest-api-specs Merge 2eb4e1550d9ac239e0d4c5e1aba978c61c24f32a into aa777ae5b161aba4ea4536b22aea9d1462f08aed --- .../azure-resourcemanager-netapp/CHANGELOG.md | 4 +- .../azure-resourcemanager-netapp/README.md | 4 +- .../azure-resourcemanager-netapp/SAMPLE.md | 327 ++- .../azure-resourcemanager-netapp/pom.xml | 2 +- .../netapp/NetAppFilesManager.java | 14 +- .../netapp/fluent/AccountBackupsClient.java | 7 +- .../netapp/fluent/AccountsClient.java | 15 +- .../netapp/fluent/BackupPoliciesClient.java | 15 +- .../netapp/fluent/BackupsClient.java | 19 +- .../netapp/fluent/NetAppManagementClient.java | 7 + .../NetAppResourceQuotaLimitsClient.java | 2 +- .../netapp/fluent/NetAppResourcesClient.java | 6 +- .../netapp/fluent/PoolsClient.java | 15 +- .../netapp/fluent/SnapshotPoliciesClient.java | 15 +- .../netapp/fluent/SnapshotsClient.java | 110 +- .../netapp/fluent/SubvolumesClient.java | 442 ++++ .../netapp/fluent/VolumeGroupsClient.java | 11 +- .../netapp/fluent/VolumesClient.java | 84 +- .../netapp/fluent/models/BackupInner.java | 2 +- .../fluent/models/BackupPolicyInner.java | 16 + .../fluent/models/BackupProperties.java | 4 +- .../fluent/models/CapacityPoolInner.java | 20 +- .../fluent/models/PoolPatchProperties.java | 6 +- .../netapp/fluent/models/PoolProperties.java | 6 +- .../fluent/models/SnapshotPolicyInner.java | 16 + .../fluent/models/SubvolumeInfoInner.java | 137 ++ .../fluent/models/SubvolumeModelInner.java | 318 +++ .../models/SubvolumeModelProperties.java | 285 +++ .../fluent/models/SubvolumePatchParams.java | 76 + .../fluent/models/SubvolumeProperties.java | 117 + .../netapp/fluent/models/VolumeInner.java | 50 + .../fluent/models/VolumePatchProperties.java | 40 + .../fluent/models/VolumeProperties.java | 44 + .../AccountBackupsClientImpl.java | 30 +- .../implementation/AccountsClientImpl.java | 80 +- .../BackupPoliciesClientImpl.java | 60 +- .../implementation/BackupPolicyImpl.java | 5 + .../implementation/BackupsClientImpl.java | 82 +- .../implementation/CapacityPoolImpl.java | 5 + .../NetAppManagementClientImpl.java | 16 +- .../NetAppResourceQuotaLimitsClientImpl.java | 16 +- .../NetAppResourcesClientImpl.java | 30 +- .../implementation/OperationsClientImpl.java | 6 +- .../implementation/PoolsClientImpl.java | 70 +- .../netapp/implementation/SnapshotImpl.java | 13 + .../SnapshotPoliciesClientImpl.java | 62 +- .../implementation/SnapshotPolicyImpl.java | 5 + .../implementation/SnapshotsClientImpl.java | 449 +++- .../netapp/implementation/SnapshotsImpl.java | 24 + .../implementation/SubvolumeInfoImpl.java | 206 ++ .../implementation/SubvolumeModelImpl.java | 81 + .../implementation/SubvolumesClientImpl.java | 2075 +++++++++++++++++ .../netapp/implementation/SubvolumesImpl.java | 301 +++ .../implementation/VaultsClientImpl.java | 4 +- .../VolumeGroupsClientImpl.java | 46 +- .../netapp/implementation/VolumeImpl.java | 28 +- .../implementation/VolumesClientImpl.java | 306 ++- .../netapp/implementation/VolumesImpl.java | 21 +- .../netapp/models/AccountBackups.java | 2 +- .../netapp/models/Accounts.java | 6 +- .../netapp/models/ActiveDirectory.java | 29 + .../resourcemanager/netapp/models/Backup.java | 2 +- .../netapp/models/BackupPatch.java | 2 +- .../netapp/models/BackupPolicies.java | 6 +- .../netapp/models/BackupPolicy.java | 8 + .../netapp/models/Backups.java | 10 +- .../netapp/models/CapacityPool.java | 18 +- .../netapp/models/CapacityPoolPatch.java | 4 +- .../netapp/models/EnableSubvolumes.java | 34 + .../netapp/models/LdapSearchScopeOpt.java | 107 + .../models/NetAppResourceQuotaLimits.java | 2 +- .../netapp/models/NetAppResources.java | 6 +- .../resourcemanager/netapp/models/Pools.java | 6 +- .../netapp/models/Snapshot.java | 21 + .../netapp/models/SnapshotPolicies.java | 8 +- .../netapp/models/SnapshotPolicy.java | 8 + .../netapp/models/SnapshotRestoreFiles.java | 82 + .../netapp/models/Snapshots.java | 50 +- .../netapp/models/SubvolumeInfo.java | 232 ++ .../netapp/models/SubvolumeModel.java | 109 + .../netapp/models/SubvolumePatchRequest.java | 89 + .../netapp/models/Subvolumes.java | 206 ++ .../netapp/models/SubvolumesList.java | 81 + .../resourcemanager/netapp/models/Volume.java | 58 +- .../models/VolumeGroupVolumeProperties.java | 33 + .../netapp/models/VolumeGroups.java | 6 +- .../netapp/models/VolumePatch.java | 31 + .../netapp/models/Volumes.java | 37 +- .../AccountBackupsDeleteSamples.java | 2 +- .../generated/AccountBackupsGetSamples.java | 2 +- .../generated/AccountBackupsListSamples.java | 2 +- .../AccountsCreateOrUpdateSamples.java | 4 +- .../generated/AccountsDeleteSamples.java | 2 +- .../AccountsGetByResourceGroupSamples.java | 2 +- .../AccountsListByResourceGroupSamples.java | 2 +- .../netapp/generated/AccountsListSamples.java | 2 +- .../generated/AccountsUpdateSamples.java | 2 +- .../BackupPoliciesCreateSamples.java | 2 +- .../BackupPoliciesDeleteSamples.java | 2 +- .../generated/BackupPoliciesGetSamples.java | 2 +- .../generated/BackupPoliciesListSamples.java | 2 +- .../BackupPoliciesUpdateSamples.java | 2 +- .../generated/BackupsCreateSamples.java | 2 +- .../generated/BackupsDeleteSamples.java | 2 +- .../netapp/generated/BackupsGetSamples.java | 2 +- .../generated/BackupsGetStatusSamples.java | 2 +- .../BackupsGetVolumeRestoreStatusSamples.java | 2 +- .../netapp/generated/BackupsListSamples.java | 2 +- .../generated/BackupsUpdateSamples.java | 2 +- ...ourceCheckFilePathAvailabilitySamples.java | 2 +- ...pResourceCheckNameAvailabilitySamples.java | 2 +- ...ResourceCheckQuotaAvailabilitySamples.java | 2 +- .../NetAppResourceQuotaLimitsGetSamples.java | 2 +- .../NetAppResourceQuotaLimitsListSamples.java | 2 +- .../generated/OperationsListSamples.java | 22 + .../generated/PoolsCreateOrUpdateSamples.java | 2 +- .../netapp/generated/PoolsDeleteSamples.java | 2 +- .../netapp/generated/PoolsGetSamples.java | 2 +- .../netapp/generated/PoolsListSamples.java | 2 +- .../netapp/generated/PoolsUpdateSamples.java | 2 +- .../SnapshotPoliciesCreateSamples.java | 3 +- .../SnapshotPoliciesDeleteSamples.java | 2 +- .../generated/SnapshotPoliciesGetSamples.java | 2 +- .../SnapshotPoliciesListSamples.java | 2 +- .../SnapshotPoliciesListVolumesSamples.java | 2 +- .../SnapshotPoliciesUpdateSamples.java | 2 +- .../generated/SnapshotsCreateSamples.java | 2 +- .../generated/SnapshotsDeleteSamples.java | 2 +- .../netapp/generated/SnapshotsGetSamples.java | 2 +- .../generated/SnapshotsListSamples.java | 2 +- .../SnapshotsRestoreFilesSamples.java | 33 + .../generated/SnapshotsUpdateSamples.java | 2 +- .../generated/SubvolumesCreateSamples.java | 25 + .../generated/SubvolumesDeleteSamples.java | 22 + .../SubvolumesGetMetadataSamples.java | 22 + .../generated/SubvolumesGetSamples.java | 22 + .../SubvolumesListByVolumeSamples.java | 22 + .../generated/SubvolumesUpdateSamples.java | 28 + .../netapp/generated/VaultsListSamples.java | 2 +- .../generated/VolumeGroupsCreateSamples.java | 2 +- .../generated/VolumeGroupsDeleteSamples.java | 2 +- .../generated/VolumeGroupsGetSamples.java | 2 +- ...olumeGroupsListByNetAppAccountSamples.java | 2 +- .../VolumesAuthorizeReplicationSamples.java | 2 +- .../VolumesBreakReplicationSamples.java | 2 +- .../VolumesCreateOrUpdateSamples.java | 2 +- .../VolumesDeleteReplicationSamples.java | 2 +- .../generated/VolumesDeleteSamples.java | 4 +- .../netapp/generated/VolumesGetSamples.java | 2 +- .../netapp/generated/VolumesListSamples.java | 2 +- .../generated/VolumesPoolChangeSamples.java | 2 +- ...VolumesReInitializeReplicationSamples.java | 2 +- .../VolumesReplicationStatusSamples.java | 2 +- .../VolumesResyncReplicationSamples.java | 2 +- .../generated/VolumesRevertSamples.java | 2 +- .../generated/VolumesUpdateSamples.java | 2 +- 156 files changed, 7232 insertions(+), 639 deletions(-) create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index b4460adf91ec..8c639607a33e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.8 (Unreleased) +## 1.0.0-beta.1 (2022-02-08) + +- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index 82e1c99d3c3e..107de6ef5521 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/README.md +++ b/sdk/netapp/azure-resourcemanager-netapp/README.md @@ -2,7 +2,7 @@ Azure Resource Manager NetAppFiles client library for Java. -This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-10-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.0.0-beta.7 + 1.0.0-beta.8 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md index bcb296ce88f3..1c816eca8b01 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md +++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md @@ -45,6 +45,10 @@ - [Get](#netappresourcequotalimits_get) - [List](#netappresourcequotalimits_list) +## Operations + +- [List](#operations_list) + ## Pools - [CreateOrUpdate](#pools_createorupdate) @@ -68,8 +72,18 @@ - [Delete](#snapshots_delete) - [Get](#snapshots_get) - [List](#snapshots_list) +- [RestoreFiles](#snapshots_restorefiles) - [Update](#snapshots_update) +## Subvolumes + +- [Create](#subvolumes_create) +- [Delete](#subvolumes_delete) +- [Get](#subvolumes_get) +- [GetMetadata](#subvolumes_getmetadata) +- [ListByVolume](#subvolumes_listbyvolume) +- [Update](#subvolumes_update) + ## Vaults - [List](#vaults_list) @@ -104,7 +118,7 @@ import com.azure.core.util.Context; /** Samples for AccountBackups Delete. */ public final class AccountBackupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Account_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_Delete.json */ /** * Sample code: AccountBackups_Delete. @@ -125,7 +139,7 @@ import com.azure.core.util.Context; /** Samples for AccountBackups Get. */ public final class AccountBackupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Account_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_Get.json */ /** * Sample code: AccountBackups_Get. @@ -146,7 +160,7 @@ import com.azure.core.util.Context; /** Samples for AccountBackups List. */ public final class AccountBackupsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Account_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_List.json */ /** * Sample code: AccountBackups_List. @@ -168,7 +182,7 @@ import java.util.Arrays; /** Samples for Accounts CreateOrUpdate. */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -190,7 +204,7 @@ public final class AccountsCreateOrUpdateSamples { .withDomain("10.10.10.3") .withDns("10.10.10.3, 10.10.10.4") .withSmbServerName("SMBServer") - .withOrganizationalUnit("Engineering") + .withOrganizationalUnit("OU=Engineering") .withSite("SiteName") .withAesEncryption(true) .withLdapSigning(false) @@ -208,7 +222,7 @@ import com.azure.core.util.Context; /** Samples for Accounts Delete. */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. @@ -229,7 +243,7 @@ import com.azure.core.util.Context; /** Samples for Accounts GetByResourceGroup. */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Get.json */ /** * Sample code: Accounts_Get. @@ -250,7 +264,7 @@ import com.azure.core.util.Context; /** Samples for Accounts List. */ public final class AccountsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. @@ -271,7 +285,7 @@ import com.azure.core.util.Context; /** Samples for Accounts ListByResourceGroup. */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. @@ -295,7 +309,7 @@ import java.util.Map; /** Samples for Accounts Update. */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Update.json */ /** * Sample code: Accounts_Update. @@ -327,7 +341,7 @@ public final class AccountsUpdateSamples { /** Samples for BackupPolicies Create. */ public final class BackupPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. @@ -357,7 +371,7 @@ import com.azure.core.util.Context; /** Samples for BackupPolicies Delete. */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Delete.json */ /** * Sample code: Backups_Delete. @@ -378,7 +392,7 @@ import com.azure.core.util.Context; /** Samples for BackupPolicies Get. */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Get.json */ /** * Sample code: Backups_Get. @@ -399,7 +413,7 @@ import com.azure.core.util.Context; /** Samples for BackupPolicies List. */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_List.json */ /** * Sample code: Backups_List. @@ -421,7 +435,7 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy; /** Samples for BackupPolicies Update. */ public final class BackupPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. @@ -448,7 +462,7 @@ public final class BackupPoliciesUpdateSamples { /** Samples for Backups Create. */ public final class BackupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Create.json */ /** * Sample code: Backups_Create. @@ -475,7 +489,7 @@ import com.azure.core.util.Context; /** Samples for Backups Delete. */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Delete.json */ /** * Sample code: Backups_Delete. @@ -496,7 +510,7 @@ import com.azure.core.util.Context; /** Samples for Backups Get. */ public final class BackupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Get.json */ /** * Sample code: Backups_Get. @@ -517,7 +531,7 @@ import com.azure.core.util.Context; /** Samples for Backups GetStatus. */ public final class BackupsGetStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_BackupStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_BackupStatus.json */ /** * Sample code: Volumes_BackupStatus. @@ -538,7 +552,7 @@ import com.azure.core.util.Context; /** Samples for Backups GetVolumeRestoreStatus. */ public final class BackupsGetVolumeRestoreStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_RestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. @@ -559,7 +573,7 @@ import com.azure.core.util.Context; /** Samples for Backups List. */ public final class BackupsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_List.json */ /** * Sample code: Backups_List. @@ -581,7 +595,7 @@ import com.azure.resourcemanager.netapp.models.Backup; /** Samples for Backups Update. */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Update.json */ /** * Sample code: Backups_Update. @@ -608,7 +622,7 @@ import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; /** Samples for NetAppResource CheckFilePathAvailability. */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. @@ -639,7 +653,7 @@ import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; /** Samples for NetAppResource CheckNameAvailability. */ public final class NetAppResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. @@ -670,7 +684,7 @@ import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; /** Samples for NetAppResource CheckQuotaAvailability. */ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. @@ -699,7 +713,7 @@ import com.azure.core.util.Context; /** Samples for NetAppResourceQuotaLimits Get. */ public final class NetAppResourceQuotaLimitsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/QuotaLimits_Get.json */ /** * Sample code: QuotaLimits. @@ -722,7 +736,7 @@ import com.azure.core.util.Context; /** Samples for NetAppResourceQuotaLimits List. */ public final class NetAppResourceQuotaLimitsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/QuotaLimits_List.json */ /** * Sample code: QuotaLimits. @@ -735,6 +749,27 @@ public final class NetAppResourceQuotaLimitsListSamples { } ``` +### Operations_List + +```java +import com.azure.core.util.Context; + +/** Samples for Operations List. */ +public final class OperationsListSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/OperationList.json + */ + /** + * Sample code: OperationList. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void operationList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.operations().list(Context.NONE); + } +} +``` + ### Pools_CreateOrUpdate ```java @@ -744,7 +779,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; /** Samples for Pools CreateOrUpdate. */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. @@ -773,7 +808,7 @@ import com.azure.core.util.Context; /** Samples for Pools Delete. */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Delete.json */ /** * Sample code: Pools_Delete. @@ -794,7 +829,7 @@ import com.azure.core.util.Context; /** Samples for Pools Get. */ public final class PoolsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Get.json */ /** * Sample code: Pools_Get. @@ -815,7 +850,7 @@ import com.azure.core.util.Context; /** Samples for Pools List. */ public final class PoolsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_List.json */ /** * Sample code: Pools_List. @@ -837,7 +872,7 @@ import com.azure.resourcemanager.netapp.models.CapacityPool; /** Samples for Pools Update. */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -862,7 +897,7 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; /** Samples for SnapshotPolicies Create. */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. @@ -881,6 +916,7 @@ public final class SnapshotPoliciesCreateSamples { 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(); } } @@ -894,7 +930,7 @@ import com.azure.core.util.Context; /** Samples for SnapshotPolicies Delete. */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. @@ -915,7 +951,7 @@ import com.azure.core.util.Context; /** Samples for SnapshotPolicies Get. */ public final class SnapshotPoliciesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. @@ -936,7 +972,7 @@ import com.azure.core.util.Context; /** Samples for SnapshotPolicies List. */ public final class SnapshotPoliciesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. @@ -957,7 +993,7 @@ import com.azure.core.util.Context; /** Samples for SnapshotPolicies ListVolumes. */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. @@ -983,7 +1019,7 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; /** Samples for SnapshotPolicies Update. */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. @@ -1016,7 +1052,7 @@ public final class SnapshotPoliciesUpdateSamples { /** Samples for Snapshots Create. */ public final class SnapshotsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. @@ -1042,7 +1078,7 @@ import com.azure.core.util.Context; /** Samples for Snapshots Delete. */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. @@ -1063,7 +1099,7 @@ import com.azure.core.util.Context; /** Samples for Snapshots Get. */ public final class SnapshotsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. @@ -1084,7 +1120,7 @@ import com.azure.core.util.Context; /** Samples for Snapshots List. */ public final class SnapshotsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_List.json */ /** * Sample code: Snapshots_List. @@ -1097,6 +1133,38 @@ public final class SnapshotsListSamples { } ``` +### Snapshots_RestoreFiles + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; +import java.util.Arrays; + +/** Samples for Snapshots RestoreFiles. */ +public final class SnapshotsRestoreFilesSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_SingleFileRestore.json + */ + /** + * Sample code: Snapshots_SingleFileRestore. + * + * @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")), + Context.NONE); + } +} +``` + ### Snapshots_Update ```java @@ -1108,7 +1176,7 @@ import java.io.IOException; /** Samples for Snapshots Update. */ public final class SnapshotsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Update.json */ /** * Sample code: Snapshots_Update. @@ -1132,6 +1200,141 @@ public final class SnapshotsUpdateSamples { } ``` +### Subvolumes_Create + +```java +/** Samples for Subvolumes Create. */ +public final class SubvolumesCreateSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Create.json + */ + /** + * Sample code: Subvolumes_Create. + * + * @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(); + } +} +``` + +### Subvolumes_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for Subvolumes Delete. */ +public final class SubvolumesDeleteSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Delete.json + */ + /** + * Sample code: Subvolumes_Delete. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void subvolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.subvolumes().delete("myRG", "account1", "pool1", "volume1", "subvolume1", Context.NONE); + } +} +``` + +### Subvolumes_Get + +```java +import com.azure.core.util.Context; + +/** Samples for Subvolumes Get. */ +public final class SubvolumesGetSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Get.json + */ + /** + * Sample code: Subvolumes_Get. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void subvolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.subvolumes().getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", Context.NONE); + } +} +``` + +### Subvolumes_GetMetadata + +```java +import com.azure.core.util.Context; + +/** Samples for Subvolumes GetMetadata. */ +public final class SubvolumesGetMetadataSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Metadata.json + */ + /** + * Sample code: Subvolumes_Metadata. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void subvolumesMetadata(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.subvolumes().getMetadata("myRG", "account1", "pool1", "volume1", "subvolume1", Context.NONE); + } +} +``` + +### Subvolumes_ListByVolume + +```java +import com.azure.core.util.Context; + +/** Samples for Subvolumes ListByVolume. */ +public final class SubvolumesListByVolumeSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_List.json + */ + /** + * Sample code: Subvolumes_List. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void subvolumesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.subvolumes().listByVolume("myRG", "account1", "pool1", "volume1", Context.NONE); + } +} +``` + +### Subvolumes_Update + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.models.SubvolumeInfo; + +/** Samples for Subvolumes Update. */ +public final class SubvolumesUpdateSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Update.json + */ + /** + * Sample code: Subvolumes_Update. + * + * @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", Context.NONE) + .getValue(); + resource.update().withPath("/subvolumePath").apply(); + } +} +``` + ### Vaults_List ```java @@ -1140,7 +1343,7 @@ import com.azure.core.util.Context; /** Samples for Vaults List. */ public final class VaultsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Vaults_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Vaults_List.json */ /** * Sample code: Vaults_List. @@ -1165,7 +1368,7 @@ import java.util.Arrays; /** Samples for VolumeGroups Create. */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/VolumeGroups_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Create.json */ /** * Sample code: VolumeGroups_Create. @@ -1239,7 +1442,7 @@ import com.azure.core.util.Context; /** Samples for VolumeGroups Delete. */ public final class VolumeGroupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Delete.json */ /** * Sample code: VolumeGroups_Delete. @@ -1260,7 +1463,7 @@ import com.azure.core.util.Context; /** Samples for VolumeGroups Get. */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/VolumeGroups_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Get.json */ /** * Sample code: VolumeGroups_Get. @@ -1281,7 +1484,7 @@ import com.azure.core.util.Context; /** Samples for VolumeGroups ListByNetAppAccount. */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/VolumeGroups_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_List.json */ /** * Sample code: VolumeGroups_List. @@ -1303,7 +1506,7 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest; /** Samples for Volumes AuthorizeReplication. */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -1335,7 +1538,7 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; /** Samples for Volumes BreakReplication. */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. @@ -1364,7 +1567,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; /** Samples for Volumes CreateOrUpdate. */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. @@ -1397,7 +1600,7 @@ import com.azure.core.util.Context; /** Samples for Volumes Delete. */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. @@ -1405,7 +1608,7 @@ public final class VolumesDeleteSamples { * @param manager Entry point to NetAppFilesManager. */ public static void volumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().delete("myRG", "account1", "pool1", "volume1", Context.NONE); + manager.volumes().delete("myRG", "account1", "pool1", "volume1", null, Context.NONE); } } ``` @@ -1418,7 +1621,7 @@ import com.azure.core.util.Context; /** Samples for Volumes DeleteReplication. */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. @@ -1439,7 +1642,7 @@ import com.azure.core.util.Context; /** Samples for Volumes Get. */ public final class VolumesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Get.json */ /** * Sample code: Volumes_Get. @@ -1460,7 +1663,7 @@ import com.azure.core.util.Context; /** Samples for Volumes List. */ public final class VolumesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_List.json */ /** * Sample code: Volumes_List. @@ -1482,7 +1685,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest; /** Samples for Volumes PoolChange. */ public final class VolumesPoolChangeSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_PoolChange.json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -1513,7 +1716,7 @@ import com.azure.core.util.Context; /** Samples for Volumes ReInitializeReplication. */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. @@ -1534,7 +1737,7 @@ import com.azure.core.util.Context; /** Samples for Volumes ReplicationStatus. */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. @@ -1555,7 +1758,7 @@ import com.azure.core.util.Context; /** Samples for Volumes ResyncReplication. */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. @@ -1577,7 +1780,7 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert; /** Samples for Volumes Revert. */ public final class VolumesRevertSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. @@ -1609,7 +1812,7 @@ import com.azure.resourcemanager.netapp.models.Volume; /** Samples for Volumes Update. */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Update.json */ /** * Sample code: Volumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml index 4d30cf17b368..1f31fd5be713 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml +++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for NetAppFiles Management - This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-08-01. + This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-10-01. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java index 0fad865db7de..81a8cb92bdc6 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 @@ -33,6 +33,7 @@ import com.azure.resourcemanager.netapp.implementation.PoolsImpl; import com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesImpl; import com.azure.resourcemanager.netapp.implementation.SnapshotsImpl; +import com.azure.resourcemanager.netapp.implementation.SubvolumesImpl; import com.azure.resourcemanager.netapp.implementation.VaultsImpl; import com.azure.resourcemanager.netapp.implementation.VolumeGroupsImpl; import com.azure.resourcemanager.netapp.implementation.VolumesImpl; @@ -46,6 +47,7 @@ import com.azure.resourcemanager.netapp.models.Pools; import com.azure.resourcemanager.netapp.models.SnapshotPolicies; import com.azure.resourcemanager.netapp.models.Snapshots; +import com.azure.resourcemanager.netapp.models.Subvolumes; import com.azure.resourcemanager.netapp.models.Vaults; import com.azure.resourcemanager.netapp.models.VolumeGroups; import com.azure.resourcemanager.netapp.models.Volumes; @@ -84,6 +86,8 @@ public final class NetAppFilesManager { private VolumeGroups volumeGroups; + private Subvolumes subvolumes; + private final NetAppManagementClient clientObject; private NetAppFilesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -220,7 +224,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.netapp") .append("/") - .append("1.0.0-beta.7"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -377,6 +381,14 @@ public VolumeGroups volumeGroups() { return volumeGroups; } + /** @return Resource collection API of Subvolumes. */ + public Subvolumes subvolumes() { + if (this.subvolumes == null) { + this.subvolumes = new SubvolumesImpl(clientObject.getSubvolumes(), this); + } + return subvolumes; + } + /** * @return 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 index e8e6f27fac63..6ed350335a8b 100644 --- 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 @@ -12,6 +12,7 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.models.BackupInner; +import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in AccountBackupsClient. */ public interface AccountBackupsClient { @@ -66,7 +67,7 @@ public interface AccountBackupsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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. + * @return the specified backup for a Netapp Account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -81,7 +82,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String backupName); @@ -96,7 +97,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( 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 983803ff4286..4313ed8439a6 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 @@ -13,6 +13,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner; import com.azure.resourcemanager.netapp.models.NetAppAccountPatch; +import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in AccountsClient. */ public interface AccountsClient { @@ -85,7 +86,7 @@ public interface AccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account. + * @return the NetApp account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse( @@ -100,7 +101,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginCreateOrUpdate( @@ -116,7 +117,7 @@ SyncPoller, NetAppAccountInner> beginCreateOrUpda * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginCreateOrUpdate( @@ -160,7 +161,7 @@ NetAppAccountInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName); @@ -174,7 +175,7 @@ NetAppAccountInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context); @@ -213,7 +214,7 @@ NetAppAccountInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginUpdate( @@ -229,7 +230,7 @@ SyncPoller, NetAppAccountInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginUpdate( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java index 22a37ebfac99..3261e87689d2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java @@ -13,6 +13,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner; import com.azure.resourcemanager.netapp.models.BackupPolicyPatch; +import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in BackupPoliciesClient. */ public interface BackupPoliciesClient { @@ -67,7 +68,7 @@ public interface BackupPoliciesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy. + * @return a particular backup Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -83,7 +84,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginCreate( @@ -100,7 +101,7 @@ SyncPoller, BackupPolicyInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginCreate( @@ -149,7 +150,7 @@ BackupPolicyInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginUpdate( @@ -166,7 +167,7 @@ SyncPoller, BackupPolicyInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginUpdate( @@ -214,7 +215,7 @@ BackupPolicyInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -230,7 +231,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( 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 7315362cba49..41c9d034e5a9 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 @@ -15,6 +15,7 @@ import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner; import com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner; import com.azure.resourcemanager.netapp.models.BackupPatch; +import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in BackupsClient. */ public interface BackupsClient { @@ -44,7 +45,7 @@ public interface BackupsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume. + * @return the status of the backup for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getStatusWithResponse( @@ -77,7 +78,7 @@ RestoreStatusInner getVolumeRestoreStatus( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume. + * @return the status of the restore for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getVolumeRestoreStatusWithResponse( @@ -144,7 +145,7 @@ BackupInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 of the volume. + * @return the specified backup of the volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -167,7 +168,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginCreate( @@ -191,7 +192,7 @@ SyncPoller, BackupInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginCreate( @@ -263,7 +264,7 @@ BackupInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginUpdate( @@ -287,7 +288,7 @@ SyncPoller, BackupInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginUpdate( @@ -375,7 +376,7 @@ BackupInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -393,7 +394,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( 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 72180430fb96..0c50983ce359 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 @@ -135,4 +135,11 @@ public interface NetAppManagementClient { * @return the VolumeGroupsClient object. */ VolumeGroupsClient getVolumeGroups(); + + /** + * Gets the SubvolumesClient object to access its operations. + * + * @return the SubvolumesClient object. + */ + SubvolumesClient getSubvolumes(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java index a619a31c0677..d7d820ae8410 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java @@ -60,7 +60,7 @@ public interface NetAppResourceQuotaLimitsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current subscription quota limit along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(String location, String quotaLimitName, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java index 70423da8c5bc..cdccd2a85b45 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java @@ -37,7 +37,7 @@ public interface NetAppResourcesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkNameAvailabilityWithResponse( @@ -65,7 +65,7 @@ Response checkNameAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkFilePathAvailabilityWithResponse( @@ -93,7 +93,7 @@ Response checkFilePathAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkQuotaAvailabilityWithResponse( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java index 9cf02121a089..e18cd15ef305 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java @@ -13,6 +13,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; import com.azure.resourcemanager.netapp.models.CapacityPoolPatch; +import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in PoolsClient. */ public interface PoolsClient { @@ -67,7 +68,7 @@ public interface PoolsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified capacity pool. + * @return details of the specified capacity pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -83,7 +84,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginCreateOrUpdate( @@ -100,7 +101,7 @@ SyncPoller, CapacityPoolInner> beginCreateOrUpdate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginCreateOrUpdate( @@ -149,7 +150,7 @@ CapacityPoolInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginUpdate( @@ -166,7 +167,7 @@ SyncPoller, CapacityPoolInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginUpdate( @@ -213,7 +214,7 @@ CapacityPoolInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName); @@ -228,7 +229,7 @@ CapacityPoolInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java index 2a2cb79317a7..a8ff3464ff30 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java @@ -14,6 +14,7 @@ import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner; import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner; import com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch; +import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SnapshotPoliciesClient. */ public interface SnapshotPoliciesClient { @@ -68,7 +69,7 @@ public interface SnapshotPoliciesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy. + * @return a snapshot Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -101,7 +102,7 @@ SnapshotPolicyInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createWithResponse( @@ -121,7 +122,7 @@ Response createWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotPolicyInner> beginUpdate( @@ -138,7 +139,7 @@ SyncPoller, SnapshotPolicyInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotPolicyInner> beginUpdate( @@ -194,7 +195,7 @@ SnapshotPolicyInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -210,7 +211,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -267,7 +268,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volumes associated with snapshot policy. + * @return volumes associated with snapshot policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listVolumesWithResponse( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java index 01063b085d24..8aee4a87174b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java @@ -12,6 +12,8 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; +import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; +import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SnapshotsClient. */ public interface SnapshotsClient { @@ -76,7 +78,7 @@ SnapshotInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified snapshot. + * @return details of the specified snapshot along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -99,7 +101,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginCreate( @@ -123,7 +125,7 @@ SyncPoller, SnapshotInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginCreate( @@ -195,7 +197,7 @@ SnapshotInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginUpdate( @@ -219,7 +221,7 @@ SyncPoller, SnapshotInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginUpdate( @@ -290,7 +292,7 @@ SnapshotInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -308,7 +310,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -355,4 +357,98 @@ void delete( String volumeName, String snapshotName, Context context); + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginRestoreFiles( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body); + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginRestoreFiles( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body, + Context context); + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @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 poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body); + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @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 poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body, + Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java new file mode 100644 index 000000000000..b3d42553a38a --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java @@ -0,0 +1,442 @@ +// Copyright (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.SubvolumeInfoInner; +import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner; +import com.azure.resourcemanager.netapp.models.SubvolumePatchRequest; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in SubvolumesClient. */ +public interface SubvolumesClient { + /** + * Returns a list of the subvolumes in the volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByVolume( + String resourceGroupName, String accountName, String poolName, String volumeName); + + /** + * Returns a list of the subvolumes in the volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByVolume( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + + /** + * Returns the path associated with the subvolumeName provided. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return subvolume Information properties. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SubvolumeInfoInner get( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + + /** + * Returns the path associated with the subvolumeName provided. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return subvolume Information properties along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context); + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SubvolumeInfoInner> beginCreate( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body); + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SubvolumeInfoInner> beginCreate( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body, + Context context); + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SubvolumeInfoInner create( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body); + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SubvolumeInfoInner create( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body, + Context context); + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SubvolumeInfoInner> beginUpdate( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body); + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SubvolumeInfoInner> beginUpdate( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body, + Context context); + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SubvolumeInfoInner update( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body); + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SubvolumeInfoInner update( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body, + Context context); + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context); + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context); + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SubvolumeModelInner> beginGetMetadata( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SubvolumeModelInner> beginGetMetadata( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context); + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SubvolumeModelInner getMetadata( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SubvolumeModelInner getMetadata( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java index 117fc6dbf726..70fc2232cd5e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java @@ -13,6 +13,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner; import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner; +import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in VolumeGroupsClient. */ public interface VolumeGroupsClient { @@ -67,7 +68,7 @@ public interface VolumeGroupsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified volume group. + * @return details of the specified volume group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -83,7 +84,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume group resource for create. + * @return volume group resource for create along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeGroupDetailsInner> beginCreate( @@ -100,7 +101,7 @@ SyncPoller, VolumeGroupDetailsInner> beginCr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume group resource for create. + * @return volume group resource for create along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeGroupDetailsInner> beginCreate( @@ -156,7 +157,7 @@ VolumeGroupDetailsInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -172,7 +173,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( 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 6b6ec426d65b..21ff934bf139 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 @@ -18,6 +18,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest; import com.azure.resourcemanager.netapp.models.VolumePatch; import com.azure.resourcemanager.netapp.models.VolumeRevert; +import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in VolumesClient. */ public interface VolumesClient { @@ -76,7 +77,7 @@ public interface VolumesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume. + * @return the details of the specified volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -93,7 +94,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginCreateOrUpdate( @@ -111,7 +112,7 @@ SyncPoller, VolumeInner> beginCreateOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginCreateOrUpdate( @@ -173,7 +174,7 @@ VolumeInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginUpdate( @@ -191,7 +192,7 @@ SyncPoller, VolumeInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginUpdate( @@ -249,14 +250,16 @@ VolumeInner update( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String poolName, String volumeName); + String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete); /** * Delete the specified volume. @@ -265,15 +268,38 @@ SyncPoller, Void> beginDelete( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + Boolean forceDelete, + Context context); + + /** + * Delete the specified volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * 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 delete(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete); /** * Delete the specified volume. @@ -296,13 +322,21 @@ SyncPoller, Void> beginDelete( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void delete( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + Boolean forceDelete, + Context context); /** * Revert a volume to the snapshot specified in the body. @@ -315,7 +349,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRevert( @@ -333,7 +367,7 @@ SyncPoller, Void> beginRevert( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRevert( @@ -392,7 +426,7 @@ void revert( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginBreakReplication( @@ -410,7 +444,7 @@ SyncPoller, Void> beginBreakReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginBreakReplication( @@ -500,7 +534,7 @@ ReplicationStatusInner replicationStatus( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication. + * @return the status of the replication along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response replicationStatusWithResponse( @@ -517,7 +551,7 @@ Response replicationStatusWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginResyncReplication( @@ -535,7 +569,7 @@ SyncPoller, Void> beginResyncReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginResyncReplication( @@ -583,7 +617,7 @@ void resyncReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDeleteReplication( @@ -600,7 +634,7 @@ SyncPoller, Void> beginDeleteReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDeleteReplication( @@ -647,7 +681,7 @@ void deleteReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginAuthorizeReplication( @@ -665,7 +699,7 @@ SyncPoller, Void> beginAuthorizeReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginAuthorizeReplication( @@ -724,7 +758,7 @@ void authorizeReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginReInitializeReplication( @@ -741,7 +775,7 @@ SyncPoller, Void> beginReInitializeReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginReInitializeReplication( @@ -788,7 +822,7 @@ void reInitializeReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginPoolChange( @@ -806,7 +840,7 @@ SyncPoller, Void> beginPoolChange( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginPoolChange( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java index 0882880be355..159048fd47bd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java @@ -68,7 +68,7 @@ public String backupId() { } /** - * Get the creationDate property: name The creation date of the backup. + * Get the creationDate property: creationDate The creation date of the backup. * * @return the creationDate value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java index 0c28a037d31f..2ab7daad6c93 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.VolumeBackups; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -30,6 +31,12 @@ public final class BackupPolicyInner extends Resource { @JsonProperty(value = "properties", required = true) private BackupPolicyProperties innerProperties = new BackupPolicyProperties(); + /* + * The system meta data relating to this resource. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -48,6 +55,15 @@ private BackupPolicyProperties innerProperties() { return this.innerProperties; } + /** + * Get the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + /** {@inheritDoc} */ @Override public BackupPolicyInner withLocation(String location) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java index eecf71f5aaa7..5204b90e9f81 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java @@ -23,7 +23,7 @@ public final class BackupProperties { private String backupId; /* - * name The creation date of the backup + * creationDate The creation date of the backup */ @JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationDate; @@ -81,7 +81,7 @@ public String backupId() { } /** - * Get the creationDate property: name The creation date of the backup. + * Get the creationDate property: creationDate The creation date of the backup. * * @return the creationDate value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java index fb2d1a8a5ddf..b2ad8d776a10 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.EncryptionType; import com.azure.resourcemanager.netapp.models.QosType; @@ -31,6 +32,12 @@ public final class CapacityPoolInner extends Resource { @JsonProperty(value = "properties", required = true) private PoolProperties innerProperties = new PoolProperties(); + /* + * The system meta data relating to this resource. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -49,6 +56,15 @@ private PoolProperties innerProperties() { return this.innerProperties; } + /** + * Get the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + /** {@inheritDoc} */ @Override public CapacityPoolInner withLocation(String location) { @@ -73,7 +89,7 @@ public String poolId() { } /** - * Get the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * Get the size property: size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value * must be multiply of 4398046511104). * * @return the size value. @@ -83,7 +99,7 @@ public long size() { } /** - * Set the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * Set the size property: size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value * must be multiply of 4398046511104). * * @param size the size value to set. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java index e5675217c122..93b956657415 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java @@ -16,7 +16,7 @@ public final class PoolPatchProperties { @JsonIgnore private final ClientLogger logger = new ClientLogger(PoolPatchProperties.class); /* - * size Provisioned size of the pool (in bytes). Allowed values are in 4TiB + * size Provisioned size of the pool (in bytes). Allowed values are in 1TiB * chunks (value must be multiply of 4398046511104). */ @JsonProperty(value = "size") @@ -29,7 +29,7 @@ public final class PoolPatchProperties { private QosType qosType; /** - * Get the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * Get the size property: size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value * must be multiply of 4398046511104). * * @return the size value. @@ -39,7 +39,7 @@ public Long size() { } /** - * Set the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * Set the size property: size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value * must be multiply of 4398046511104). * * @param size the size value to set. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java index 6efdd5cf566c..45e1af855c68 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java @@ -24,7 +24,7 @@ public final class PoolProperties { private String poolId; /* - * size Provisioned size of the pool (in bytes). Allowed values are in 4TiB + * size Provisioned size of the pool (in bytes). Allowed values are in 1TiB * chunks (value must be multiply of 4398046511104). */ @JsonProperty(value = "size", required = true) @@ -84,7 +84,7 @@ public String poolId() { } /** - * Get the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * Get the size property: size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value * must be multiply of 4398046511104). * * @return the size value. @@ -94,7 +94,7 @@ public long size() { } /** - * Set the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * Set the size property: size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value * must be multiply of 4398046511104). * * @param size the size value to set. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java index 28896810b2be..3292a15b8bcd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.DailySchedule; import com.azure.resourcemanager.netapp.models.HourlySchedule; @@ -32,6 +33,12 @@ public final class SnapshotPolicyInner extends Resource { @JsonProperty(value = "properties", required = true) private SnapshotPolicyProperties innerProperties = new SnapshotPolicyProperties(); + /* + * The system meta data relating to this resource. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -50,6 +57,15 @@ private SnapshotPolicyProperties innerProperties() { return this.innerProperties; } + /** + * Get the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + /** {@inheritDoc} */ @Override public SnapshotPolicyInner withLocation(String location) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java new file mode 100644 index 000000000000..bf4e4d0812fe --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java @@ -0,0 +1,137 @@ +// Copyright (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.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Subvolume Information properties. */ +@Fluent +public final class SubvolumeInfoInner extends ProxyResource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeInfoInner.class); + + /* + * Subvolume Properties + */ + @JsonProperty(value = "properties") + private SubvolumeProperties innerProperties; + + /* + * The system meta data relating to this resource. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /** + * Get the innerProperties property: Subvolume Properties. + * + * @return the innerProperties value. + */ + private SubvolumeProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the path property: path Path to the subvolume. + * + * @return the path value. + */ + public String path() { + return this.innerProperties() == null ? null : this.innerProperties().path(); + } + + /** + * Set the path property: path Path to the subvolume. + * + * @param path the path value to set. + * @return the SubvolumeInfoInner object itself. + */ + public SubvolumeInfoInner withPath(String path) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeProperties(); + } + this.innerProperties().withPath(path); + return this; + } + + /** + * Get the size property: size Truncate subvolume to the provided size in bytes. + * + * @return the size value. + */ + public Long size() { + return this.innerProperties() == null ? null : this.innerProperties().size(); + } + + /** + * Set the size property: size Truncate subvolume to the provided size in bytes. + * + * @param size the size value to set. + * @return the SubvolumeInfoInner object itself. + */ + public SubvolumeInfoInner withSize(Long size) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeProperties(); + } + this.innerProperties().withSize(size); + return this; + } + + /** + * Get the parentPath property: name parent path to the subvolume. + * + * @return the parentPath value. + */ + public String parentPath() { + return this.innerProperties() == null ? null : this.innerProperties().parentPath(); + } + + /** + * Set the parentPath property: name parent path to the subvolume. + * + * @param parentPath the parentPath value to set. + * @return the SubvolumeInfoInner object itself. + */ + public SubvolumeInfoInner withParentPath(String parentPath) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeProperties(); + } + this.innerProperties().withParentPath(parentPath); + 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/SubvolumeModelInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java new file mode 100644 index 000000000000..47490e1d0ef7 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java @@ -0,0 +1,318 @@ +// Copyright (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.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** Result of the post subvolume and action is to get metadata of the subvolume. */ +@Fluent +public final class SubvolumeModelInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeModelInner.class); + + /* + * Resource Id + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private String id; + + /* + * Resource name + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /* + * Resource type + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /* + * It represents the minimal properties of the subvolume. + */ + @JsonProperty(value = "properties") + private SubvolumeModelProperties innerProperties; + + /** + * Get the id property: Resource Id. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Get the name property: Resource name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the type property: Resource type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Get the innerProperties property: It represents the minimal properties of the subvolume. + * + * @return the innerProperties value. + */ + private SubvolumeModelProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the path property: path Path to the subvolume. + * + * @return the path value. + */ + public String path() { + return this.innerProperties() == null ? null : this.innerProperties().path(); + } + + /** + * Set the path property: path Path to the subvolume. + * + * @param path the path value to set. + * @return the SubvolumeModelInner object itself. + */ + public SubvolumeModelInner withPath(String path) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeModelProperties(); + } + this.innerProperties().withPath(path); + return this; + } + + /** + * Get the parentPath property: parentpath Path to the parent subvolume. + * + * @return the parentPath value. + */ + public String parentPath() { + return this.innerProperties() == null ? null : this.innerProperties().parentPath(); + } + + /** + * Set the parentPath property: parentpath Path to the parent subvolume. + * + * @param parentPath the parentPath value to set. + * @return the SubvolumeModelInner object itself. + */ + public SubvolumeModelInner withParentPath(String parentPath) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeModelProperties(); + } + this.innerProperties().withParentPath(parentPath); + return this; + } + + /** + * Get the size property: size Size of subvolume. + * + * @return the size value. + */ + public Long size() { + return this.innerProperties() == null ? null : this.innerProperties().size(); + } + + /** + * Set the size property: size Size of subvolume. + * + * @param size the size value to set. + * @return the SubvolumeModelInner object itself. + */ + public SubvolumeModelInner withSize(Long size) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeModelProperties(); + } + this.innerProperties().withSize(size); + return this; + } + + /** + * Get the bytesUsed property: bytesUsed Bytes used. + * + * @return the bytesUsed value. + */ + public Long bytesUsed() { + return this.innerProperties() == null ? null : this.innerProperties().bytesUsed(); + } + + /** + * Set the bytesUsed property: bytesUsed Bytes used. + * + * @param bytesUsed the bytesUsed value to set. + * @return the SubvolumeModelInner object itself. + */ + public SubvolumeModelInner withBytesUsed(Long bytesUsed) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeModelProperties(); + } + this.innerProperties().withBytesUsed(bytesUsed); + return this; + } + + /** + * Get the permissions property: permissions Permissions of the subvolume. + * + * @return the permissions value. + */ + public String permissions() { + return this.innerProperties() == null ? null : this.innerProperties().permissions(); + } + + /** + * Set the permissions property: permissions Permissions of the subvolume. + * + * @param permissions the permissions value to set. + * @return the SubvolumeModelInner object itself. + */ + public SubvolumeModelInner withPermissions(String permissions) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeModelProperties(); + } + this.innerProperties().withPermissions(permissions); + return this; + } + + /** + * Get the creationTimestamp property: creationTimeStamp Creation time and date. + * + * @return the creationTimestamp value. + */ + public OffsetDateTime creationTimestamp() { + return this.innerProperties() == null ? null : this.innerProperties().creationTimestamp(); + } + + /** + * Set the creationTimestamp property: creationTimeStamp Creation time and date. + * + * @param creationTimestamp the creationTimestamp value to set. + * @return the SubvolumeModelInner object itself. + */ + public SubvolumeModelInner withCreationTimestamp(OffsetDateTime creationTimestamp) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeModelProperties(); + } + this.innerProperties().withCreationTimestamp(creationTimestamp); + return this; + } + + /** + * Get the accessedTimestamp property: accessedTimeStamp Most recent access time and date. + * + * @return the accessedTimestamp value. + */ + public OffsetDateTime accessedTimestamp() { + return this.innerProperties() == null ? null : this.innerProperties().accessedTimestamp(); + } + + /** + * Set the accessedTimestamp property: accessedTimeStamp Most recent access time and date. + * + * @param accessedTimestamp the accessedTimestamp value to set. + * @return the SubvolumeModelInner object itself. + */ + public SubvolumeModelInner withAccessedTimestamp(OffsetDateTime accessedTimestamp) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeModelProperties(); + } + this.innerProperties().withAccessedTimestamp(accessedTimestamp); + return this; + } + + /** + * Get the modifiedTimestamp property: modifiedTimeStamp Most recent modification time and date. + * + * @return the modifiedTimestamp value. + */ + public OffsetDateTime modifiedTimestamp() { + return this.innerProperties() == null ? null : this.innerProperties().modifiedTimestamp(); + } + + /** + * Set the modifiedTimestamp property: modifiedTimeStamp Most recent modification time and date. + * + * @param modifiedTimestamp the modifiedTimestamp value to set. + * @return the SubvolumeModelInner object itself. + */ + public SubvolumeModelInner withModifiedTimestamp(OffsetDateTime modifiedTimestamp) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeModelProperties(); + } + this.innerProperties().withModifiedTimestamp(modifiedTimestamp); + return this; + } + + /** + * Get the changedTimestamp property: changedTimeStamp Most recent change time and date. + * + * @return the changedTimestamp value. + */ + public OffsetDateTime changedTimestamp() { + return this.innerProperties() == null ? null : this.innerProperties().changedTimestamp(); + } + + /** + * Set the changedTimestamp property: changedTimeStamp Most recent change time and date. + * + * @param changedTimestamp the changedTimestamp value to set. + * @return the SubvolumeModelInner object itself. + */ + public SubvolumeModelInner withChangedTimestamp(OffsetDateTime changedTimestamp) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeModelProperties(); + } + this.innerProperties().withChangedTimestamp(changedTimestamp); + return this; + } + + /** + * Get the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Set the provisioningState property: Azure lifecycle management. + * + * @param provisioningState the provisioningState value to set. + * @return the SubvolumeModelInner object itself. + */ + public SubvolumeModelInner withProvisioningState(String provisioningState) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumeModelProperties(); + } + this.innerProperties().withProvisioningState(provisioningState); + 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/SubvolumeModelProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java new file mode 100644 index 000000000000..1ec95abace80 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java @@ -0,0 +1,285 @@ +// Copyright (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.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** Properties which represents actual subvolume model which is stored as a file in the system. */ +@Fluent +public final class SubvolumeModelProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeModelProperties.class); + + /* + * path Path to the subvolume + */ + @JsonProperty(value = "path") + private String path; + + /* + * parentpath Path to the parent subvolume + */ + @JsonProperty(value = "parentPath") + private String parentPath; + + /* + * size Size of subvolume + */ + @JsonProperty(value = "size") + private Long size; + + /* + * bytesUsed Bytes used + */ + @JsonProperty(value = "bytesUsed") + private Long bytesUsed; + + /* + * permissions Permissions of the subvolume + */ + @JsonProperty(value = "permissions") + private String permissions; + + /* + * creationTimeStamp Creation time and date + */ + @JsonProperty(value = "creationTimeStamp") + private OffsetDateTime creationTimestamp; + + /* + * accessedTimeStamp Most recent access time and date + */ + @JsonProperty(value = "accessedTimeStamp") + private OffsetDateTime accessedTimestamp; + + /* + * modifiedTimeStamp Most recent modification time and date + */ + @JsonProperty(value = "modifiedTimeStamp") + private OffsetDateTime modifiedTimestamp; + + /* + * changedTimeStamp Most recent change time and date + */ + @JsonProperty(value = "changedTimeStamp") + private OffsetDateTime changedTimestamp; + + /* + * Azure lifecycle management + */ + @JsonProperty(value = "provisioningState") + private String provisioningState; + + /** + * Get the path property: path Path to the subvolume. + * + * @return the path value. + */ + public String path() { + return this.path; + } + + /** + * Set the path property: path Path to the subvolume. + * + * @param path the path value to set. + * @return the SubvolumeModelProperties object itself. + */ + public SubvolumeModelProperties withPath(String path) { + this.path = path; + return this; + } + + /** + * Get the parentPath property: parentpath Path to the parent subvolume. + * + * @return the parentPath value. + */ + public String parentPath() { + return this.parentPath; + } + + /** + * Set the parentPath property: parentpath Path to the parent subvolume. + * + * @param parentPath the parentPath value to set. + * @return the SubvolumeModelProperties object itself. + */ + public SubvolumeModelProperties withParentPath(String parentPath) { + this.parentPath = parentPath; + return this; + } + + /** + * Get the size property: size Size of subvolume. + * + * @return the size value. + */ + public Long size() { + return this.size; + } + + /** + * Set the size property: size Size of subvolume. + * + * @param size the size value to set. + * @return the SubvolumeModelProperties object itself. + */ + public SubvolumeModelProperties withSize(Long size) { + this.size = size; + return this; + } + + /** + * Get the bytesUsed property: bytesUsed Bytes used. + * + * @return the bytesUsed value. + */ + public Long bytesUsed() { + return this.bytesUsed; + } + + /** + * Set the bytesUsed property: bytesUsed Bytes used. + * + * @param bytesUsed the bytesUsed value to set. + * @return the SubvolumeModelProperties object itself. + */ + public SubvolumeModelProperties withBytesUsed(Long bytesUsed) { + this.bytesUsed = bytesUsed; + return this; + } + + /** + * Get the permissions property: permissions Permissions of the subvolume. + * + * @return the permissions value. + */ + public String permissions() { + return this.permissions; + } + + /** + * Set the permissions property: permissions Permissions of the subvolume. + * + * @param permissions the permissions value to set. + * @return the SubvolumeModelProperties object itself. + */ + public SubvolumeModelProperties withPermissions(String permissions) { + this.permissions = permissions; + return this; + } + + /** + * Get the creationTimestamp property: creationTimeStamp Creation time and date. + * + * @return the creationTimestamp value. + */ + public OffsetDateTime creationTimestamp() { + return this.creationTimestamp; + } + + /** + * Set the creationTimestamp property: creationTimeStamp Creation time and date. + * + * @param creationTimestamp the creationTimestamp value to set. + * @return the SubvolumeModelProperties object itself. + */ + public SubvolumeModelProperties withCreationTimestamp(OffsetDateTime creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Get the accessedTimestamp property: accessedTimeStamp Most recent access time and date. + * + * @return the accessedTimestamp value. + */ + public OffsetDateTime accessedTimestamp() { + return this.accessedTimestamp; + } + + /** + * Set the accessedTimestamp property: accessedTimeStamp Most recent access time and date. + * + * @param accessedTimestamp the accessedTimestamp value to set. + * @return the SubvolumeModelProperties object itself. + */ + public SubvolumeModelProperties withAccessedTimestamp(OffsetDateTime accessedTimestamp) { + this.accessedTimestamp = accessedTimestamp; + return this; + } + + /** + * Get the modifiedTimestamp property: modifiedTimeStamp Most recent modification time and date. + * + * @return the modifiedTimestamp value. + */ + public OffsetDateTime modifiedTimestamp() { + return this.modifiedTimestamp; + } + + /** + * Set the modifiedTimestamp property: modifiedTimeStamp Most recent modification time and date. + * + * @param modifiedTimestamp the modifiedTimestamp value to set. + * @return the SubvolumeModelProperties object itself. + */ + public SubvolumeModelProperties withModifiedTimestamp(OffsetDateTime modifiedTimestamp) { + this.modifiedTimestamp = modifiedTimestamp; + return this; + } + + /** + * Get the changedTimestamp property: changedTimeStamp Most recent change time and date. + * + * @return the changedTimestamp value. + */ + public OffsetDateTime changedTimestamp() { + return this.changedTimestamp; + } + + /** + * Set the changedTimestamp property: changedTimeStamp Most recent change time and date. + * + * @param changedTimestamp the changedTimestamp value to set. + * @return the SubvolumeModelProperties object itself. + */ + public SubvolumeModelProperties withChangedTimestamp(OffsetDateTime changedTimestamp) { + this.changedTimestamp = changedTimestamp; + return this; + } + + /** + * Get the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioningState property: Azure lifecycle management. + * + * @param provisioningState the provisioningState value to set. + * @return the SubvolumeModelProperties object itself. + */ + public SubvolumeModelProperties withProvisioningState(String provisioningState) { + this.provisioningState = provisioningState; + 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/SubvolumePatchParams.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java new file mode 100644 index 000000000000..f27c617c0d48 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java @@ -0,0 +1,76 @@ +// Copyright (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.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Parameters with which a subvolume can be updated. */ +@Fluent +public final class SubvolumePatchParams { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumePatchParams.class); + + /* + * size Truncate subvolume to the provided size in bytes + */ + @JsonProperty(value = "size") + private Long size; + + /* + * path path to the subvolume + */ + @JsonProperty(value = "path") + private String path; + + /** + * Get the size property: size Truncate subvolume to the provided size in bytes. + * + * @return the size value. + */ + public Long size() { + return this.size; + } + + /** + * Set the size property: size Truncate subvolume to the provided size in bytes. + * + * @param size the size value to set. + * @return the SubvolumePatchParams object itself. + */ + public SubvolumePatchParams withSize(Long size) { + this.size = size; + return this; + } + + /** + * Get the path property: path path to the subvolume. + * + * @return the path value. + */ + public String path() { + return this.path; + } + + /** + * Set the path property: path path to the subvolume. + * + * @param path the path value to set. + * @return the SubvolumePatchParams object itself. + */ + public SubvolumePatchParams withPath(String path) { + this.path = path; + 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/SubvolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java new file mode 100644 index 000000000000..a887160fe9b0 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** This represents path associated with the subvolume. */ +@Fluent +public final class SubvolumeProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeProperties.class); + + /* + * path Path to the subvolume + */ + @JsonProperty(value = "path") + private String path; + + /* + * size Truncate subvolume to the provided size in bytes + */ + @JsonProperty(value = "size") + private Long size; + + /* + * name parent path to the subvolume + */ + @JsonProperty(value = "parentPath") + private String parentPath; + + /* + * Azure lifecycle management + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /** + * Get the path property: path Path to the subvolume. + * + * @return the path value. + */ + public String path() { + return this.path; + } + + /** + * Set the path property: path Path to the subvolume. + * + * @param path the path value to set. + * @return the SubvolumeProperties object itself. + */ + public SubvolumeProperties withPath(String path) { + this.path = path; + return this; + } + + /** + * Get the size property: size Truncate subvolume to the provided size in bytes. + * + * @return the size value. + */ + public Long size() { + return this.size; + } + + /** + * Set the size property: size Truncate subvolume to the provided size in bytes. + * + * @param size the size value to set. + * @return the SubvolumeProperties object itself. + */ + public SubvolumeProperties withSize(Long size) { + this.size = size; + return this; + } + + /** + * Get the parentPath property: name parent path to the subvolume. + * + * @return the parentPath value. + */ + public String parentPath() { + return this.parentPath; + } + + /** + * Set the parentPath property: name parent path to the subvolume. + * + * @param parentPath the parentPath value to set. + * @return the SubvolumeProperties object itself. + */ + public SubvolumeProperties withParentPath(String parentPath) { + this.parentPath = parentPath; + return this; + } + + /** + * 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/VolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java index a6fcefb8ce95..d0cb6d5013d2 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 @@ -6,8 +6,10 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.AvsDataStore; +import com.azure.resourcemanager.netapp.models.EnableSubvolumes; import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; import com.azure.resourcemanager.netapp.models.SecurityStyle; @@ -37,6 +39,12 @@ public final class VolumeInner extends Resource { @JsonProperty(value = "properties", required = true) private VolumeProperties innerProperties = new VolumeProperties(); + /* + * The system meta data relating to this resource. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -55,6 +63,15 @@ private VolumeProperties innerProperties() { return this.innerProperties; } + /** + * Get the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + /** {@inheritDoc} */ @Override public VolumeInner withLocation(String location) { @@ -795,6 +812,16 @@ public VolumeInner withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { return this; } + /** + * Get the maximumNumberOfFiles property: Maximum number of files allowed. Needs a service request in order to be + * changed. Only allowed to be changed if volume quota is more than 4TiB. + * + * @return the maximumNumberOfFiles value. + */ + public Long maximumNumberOfFiles() { + return this.innerProperties() == null ? null : this.innerProperties().maximumNumberOfFiles(); + } + /** * Get the volumeGroupName property: Volume Group Name. * @@ -909,6 +936,29 @@ public VolumeInner withPlacementRules(List placementRule return this; } + /** + * Get the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the volume. + * + * @return the enableSubvolumes value. + */ + public EnableSubvolumes enableSubvolumes() { + return this.innerProperties() == null ? null : this.innerProperties().enableSubvolumes(); + } + + /** + * Set the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the volume. + * + * @param enableSubvolumes the enableSubvolumes value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withEnableSubvolumes(EnableSubvolumes enableSubvolumes) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withEnableSubvolumes(enableSubvolumes); + return this; + } + /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java index b3aabd2251ae..3b7b5aad7082 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java @@ -71,6 +71,18 @@ public final class VolumePatchProperties { @JsonProperty(value = "defaultGroupQuotaInKiBs") private Long defaultGroupQuotaInKiBs; + /* + * UNIX permissions for NFS volume accepted in octal 4 digit format. First + * digit selects the set user ID(4), set group ID (2) and sticky (1) + * attributes. Second digit selects permission for the owner of the file: + * read (4), write (2) and execute (1). Third selects permissions for other + * users in the same group. the fourth for other users not in the group. + * 0755 - gives read/write/execute permissions to owner and read/execute to + * group and other users. + */ + @JsonProperty(value = "unixPermissions") + private String unixPermissions; + /** * Get the serviceLevel property: serviceLevel The service level of the file system. * @@ -241,6 +253,34 @@ public VolumePatchProperties withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaI return this; } + /** + * Get the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit + * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the + * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same + * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and + * read/execute to group and other users. + * + * @return the unixPermissions value. + */ + public String unixPermissions() { + return this.unixPermissions; + } + + /** + * Set the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit + * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the + * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same + * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and + * read/execute to group and other users. + * + * @param unixPermissions the unixPermissions value to set. + * @return the VolumePatchProperties object itself. + */ + public VolumePatchProperties withUnixPermissions(String unixPermissions) { + this.unixPermissions = unixPermissions; + return this; + } + /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java index 2ae7afb4aff1..d3d03fc75db7 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 @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.AvsDataStore; +import com.azure.resourcemanager.netapp.models.EnableSubvolumes; import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; import com.azure.resourcemanager.netapp.models.SecurityStyle; @@ -259,6 +260,13 @@ public final class VolumeProperties { @JsonProperty(value = "defaultGroupQuotaInKiBs") private Long defaultGroupQuotaInKiBs; + /* + * Maximum number of files allowed. Needs a service request in order to be + * changed. Only allowed to be changed if volume quota is more than 4TiB. + */ + @JsonProperty(value = "maximumNumberOfFiles", access = JsonProperty.Access.WRITE_ONLY) + private Long maximumNumberOfFiles; + /* * Volume Group Name */ @@ -297,6 +305,12 @@ public final class VolumeProperties { @JsonProperty(value = "placementRules") private List placementRules; + /* + * Flag indicating whether subvolume operations are enabled on the volume + */ + @JsonProperty(value = "enableSubvolumes") + private EnableSubvolumes enableSubvolumes; + /** * Get the fileSystemId property: FileSystem ID Unique FileSystem Identifier. * @@ -942,6 +956,16 @@ public VolumeProperties withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs return this; } + /** + * Get the maximumNumberOfFiles property: Maximum number of files allowed. Needs a service request in order to be + * changed. Only allowed to be changed if volume quota is more than 4TiB. + * + * @return the maximumNumberOfFiles value. + */ + public Long maximumNumberOfFiles() { + return this.maximumNumberOfFiles; + } + /** * Get the volumeGroupName property: Volume Group Name. * @@ -1044,6 +1068,26 @@ public VolumeProperties withPlacementRules(List placemen return this; } + /** + * Get the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the volume. + * + * @return the enableSubvolumes value. + */ + public EnableSubvolumes enableSubvolumes() { + return this.enableSubvolumes; + } + + /** + * Set the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the volume. + * + * @param enableSubvolumes the enableSubvolumes value to set. + * @return the VolumeProperties object itself. + */ + public VolumeProperties withEnableSubvolumes(EnableSubvolumes enableSubvolumes) { + this.enableSubvolumes = enableSubvolumes; + return this; + } + /** * 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 index 3823199cd441..ae32fcb10f48 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java @@ -120,7 +120,7 @@ Mono>> delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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. + * @return list of Backups along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { @@ -172,7 +172,7 @@ private Mono> listSinglePageAsync(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backups. + * @return list of Backups along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -284,7 +284,8 @@ public PagedIterable list(String resourceGroupName, String accountN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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. + * @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( @@ -338,7 +339,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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. + * @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( @@ -388,7 +390,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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. + * @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) { @@ -429,7 +431,7 @@ public BackupInner get(String resourceGroupName, String accountName, String back * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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. + * @return the specified backup for a Netapp Account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -446,7 +448,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -498,7 +500,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -546,7 +548,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -568,7 +570,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -590,7 +592,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -608,7 +610,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -625,7 +627,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @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) { @@ -644,7 +646,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @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) { 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 037e7ae45584..a6a70f3ae5f7 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 @@ -180,7 +180,8 @@ Mono> listNext( * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -226,7 +227,8 @@ private Mono> listSinglePageAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -323,7 +325,8 @@ public PagedIterable list(Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -375,7 +378,8 @@ private Mono> listByResourceGroupSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -486,7 +490,7 @@ public PagedIterable listByResourceGroup(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account. + * @return the NetApp account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -535,7 +539,7 @@ private Mono> getByResourceGroupWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account. + * @return the NetApp account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -580,7 +584,7 @@ private Mono> getByResourceGroupWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account. + * @return the NetApp account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) { @@ -619,7 +623,7 @@ public NetAppAccountInner getByResourceGroup(String resourceGroupName, String ac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account. + * @return the NetApp account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( @@ -636,7 +640,7 @@ public Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -692,7 +696,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -744,7 +748,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginCreateOrUpdateAsync( @@ -770,7 +774,7 @@ private PollerFlux, NetAppAccountInner> beginCrea * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginCreateOrUpdateAsync( @@ -793,7 +797,7 @@ private PollerFlux, NetAppAccountInner> beginCrea * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginCreateOrUpdate( @@ -811,7 +815,7 @@ public SyncPoller, NetAppAccountInner> beginCreat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginCreateOrUpdate( @@ -828,7 +832,7 @@ public SyncPoller, NetAppAccountInner> beginCreat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -848,7 +852,7 @@ private Mono createOrUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -900,7 +904,7 @@ public NetAppAccountInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName) { @@ -946,7 +950,7 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -989,7 +993,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName) { @@ -1009,7 +1013,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1029,7 +1033,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName) { @@ -1045,7 +1049,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1061,7 +1065,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName) { @@ -1077,7 +1081,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, Context context) { @@ -1124,7 +1128,7 @@ public void delete(String resourceGroupName, String accountName, Context context * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1180,7 +1184,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1232,7 +1236,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginUpdateAsync( @@ -1258,7 +1262,7 @@ private PollerFlux, NetAppAccountInner> beginUpda * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginUpdateAsync( @@ -1280,7 +1284,7 @@ private PollerFlux, NetAppAccountInner> beginUpda * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginUpdate( @@ -1298,7 +1302,7 @@ public SyncPoller, NetAppAccountInner> beginUpdat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginUpdate( @@ -1315,7 +1319,7 @@ public SyncPoller, NetAppAccountInner> beginUpdat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1335,7 +1339,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return netApp account resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1386,7 +1390,8 @@ public NetAppAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1423,7 +1428,8 @@ private Mono> listBySubscriptionNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync( @@ -1459,7 +1465,8 @@ private Mono> listBySubscriptionNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1495,7 +1502,8 @@ private Mono> listNextSinglePageAsync(String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { 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 dab0938483a1..4cbac0fa0b86 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 @@ -158,7 +158,7 @@ Mono>> delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies. + * @return list of Backup Policies along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { @@ -210,7 +210,7 @@ private Mono> listSinglePageAsync(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies. + * @return list of Backup Policies along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -322,7 +322,7 @@ public PagedIterable list(String resourceGroupName, String ac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy. + * @return a particular backup Policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -377,7 +377,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy. + * @return a particular backup Policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -428,7 +428,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy. + * @return a particular backup Policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String accountName, String backupPolicyName) { @@ -469,7 +469,7 @@ public BackupPolicyInner get(String resourceGroupName, String accountName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy. + * @return a particular backup Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -487,7 +487,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -549,7 +549,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -611,7 +611,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginCreateAsync( @@ -639,7 +639,7 @@ private PollerFlux, BackupPolicyInner> beginCreate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginCreateAsync( @@ -667,7 +667,7 @@ private PollerFlux, BackupPolicyInner> beginCreate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginCreate( @@ -686,7 +686,7 @@ public SyncPoller, BackupPolicyInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginCreate( @@ -708,7 +708,7 @@ public SyncPoller, BackupPolicyInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -729,7 +729,7 @@ private Mono createAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -794,7 +794,7 @@ public BackupPolicyInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -856,7 +856,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -918,7 +918,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginUpdateAsync( @@ -946,7 +946,7 @@ private PollerFlux, BackupPolicyInner> beginUpdate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginUpdateAsync( @@ -974,7 +974,7 @@ private PollerFlux, BackupPolicyInner> beginUpdate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginUpdate( @@ -993,7 +993,7 @@ public SyncPoller, BackupPolicyInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginUpdate( @@ -1015,7 +1015,7 @@ public SyncPoller, BackupPolicyInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1036,7 +1036,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 policy information. + * @return backup policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1100,7 +1100,7 @@ public BackupPolicyInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1153,7 +1153,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1202,7 +1202,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1225,7 +1225,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1247,7 +1247,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1265,7 +1265,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1282,7 +1282,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String backupPolicyName) { @@ -1301,7 +1301,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( 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 e1c51521b7c8..db809d662673 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 @@ -5,6 +5,7 @@ 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.BackupPolicyInner; import com.azure.resourcemanager.netapp.models.BackupPolicy; @@ -48,6 +49,10 @@ public String etag() { return this.innerModel().etag(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public String backupPolicyId() { return this.innerModel().backupPolicyId(); } 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 b82d18339c92..659fd1236298 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 @@ -205,7 +205,8 @@ Mono>> delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume. + * @return the status of the backup for a volume along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getStatusWithResponseAsync( @@ -264,7 +265,8 @@ private Mono> getStatusWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume. + * @return the status of the backup for a volume along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getStatusWithResponseAsync( @@ -319,7 +321,7 @@ private Mono> getStatusWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume. + * @return the status of the backup for a volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getStatusAsync( @@ -364,7 +366,7 @@ public BackupStatusInner getStatus( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume. + * @return the status of the backup for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getStatusWithResponse( @@ -382,7 +384,8 @@ public Response getStatusWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume. + * @return the status of the restore for a volume along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getVolumeRestoreStatusWithResponseAsync( @@ -441,7 +444,8 @@ private Mono> getVolumeRestoreStatusWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume. + * @return the status of the restore for a volume along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getVolumeRestoreStatusWithResponseAsync( @@ -496,7 +500,7 @@ private Mono> getVolumeRestoreStatusWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume. + * @return the status of the restore for a volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getVolumeRestoreStatusAsync( @@ -541,7 +545,7 @@ public RestoreStatusInner getVolumeRestoreStatus( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume. + * @return the status of the restore for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getVolumeRestoreStatusWithResponse( @@ -560,7 +564,7 @@ public Response getVolumeRestoreStatusWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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. + * @return list of Backups along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -623,7 +627,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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. + * @return list of Backups along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -758,7 +762,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 of the volume. + * @return the specified backup of the volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -822,7 +826,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 of the volume. + * @return the specified backup of the volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -887,7 +891,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 of the volume. + * @return the specified backup of the volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -934,7 +938,7 @@ public BackupInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 of the volume. + * @return the specified backup of the volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -959,7 +963,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -1035,7 +1039,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -1108,7 +1112,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginCreateAsync( @@ -1139,7 +1143,7 @@ private PollerFlux, BackupInner> beginCreateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginCreateAsync( @@ -1171,7 +1175,7 @@ private PollerFlux, BackupInner> beginCreateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginCreate( @@ -1197,7 +1201,7 @@ public SyncPoller, BackupInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginCreate( @@ -1224,7 +1228,7 @@ public SyncPoller, BackupInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -1252,7 +1256,7 @@ private Mono createAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -1332,7 +1336,7 @@ public BackupInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1406,7 +1410,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1477,7 +1481,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginUpdateAsync( @@ -1508,7 +1512,7 @@ private PollerFlux, BackupInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginUpdateAsync( @@ -1540,7 +1544,7 @@ private PollerFlux, BackupInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginUpdate( @@ -1566,7 +1570,7 @@ public SyncPoller, BackupInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginUpdate( @@ -1593,7 +1597,7 @@ public SyncPoller, BackupInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1619,7 +1623,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1643,7 +1647,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 of a Volume. + * @return backup of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1742,7 +1746,7 @@ public BackupInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1804,7 +1808,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1867,7 +1871,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1892,7 +1896,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1921,7 +1925,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1941,7 +1945,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1966,7 +1970,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1988,7 +1992,7 @@ private Mono deleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java index 988874d5083b..dedbbcd6ce3a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java @@ -5,6 +5,7 @@ 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.CapacityPoolInner; import com.azure.resourcemanager.netapp.models.CapacityPool; @@ -49,6 +50,10 @@ public String etag() { return this.innerModel().etag(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public String poolId() { return this.innerModel().poolId(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java index 188582bfdb99..0f7cc459c3cd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java @@ -32,6 +32,7 @@ import com.azure.resourcemanager.netapp.fluent.PoolsClient; import com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient; import com.azure.resourcemanager.netapp.fluent.SnapshotsClient; +import com.azure.resourcemanager.netapp.fluent.SubvolumesClient; import com.azure.resourcemanager.netapp.fluent.VaultsClient; import com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient; import com.azure.resourcemanager.netapp.fluent.VolumesClient; @@ -282,6 +283,18 @@ public VolumeGroupsClient getVolumeGroups() { return this.volumeGroups; } + /** The SubvolumesClient object to access its operations. */ + private final SubvolumesClient subvolumes; + + /** + * Gets the SubvolumesClient object to access its operations. + * + * @return the SubvolumesClient object. + */ + public SubvolumesClient getSubvolumes() { + return this.subvolumes; + } + /** * Initializes an instance of NetAppManagementClient client. * @@ -305,7 +318,7 @@ public VolumeGroupsClient getVolumeGroups() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2021-08-01"; + this.apiVersion = "2021-10-01"; this.operations = new OperationsClientImpl(this); this.netAppResources = new NetAppResourcesClientImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this); @@ -319,6 +332,7 @@ public VolumeGroupsClient getVolumeGroups() { this.backupPolicies = new BackupPoliciesClientImpl(this); this.vaults = new VaultsClientImpl(this); this.volumeGroups = new VolumeGroupsClientImpl(this); + this.subvolumes = new SubvolumesClientImpl(this); } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java index 3382e3b72693..bb59b3f321e9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java @@ -96,7 +96,8 @@ Mono> get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current limits for quotas. + * @return the default and current limits for quotas along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String location) { @@ -142,7 +143,8 @@ private Mono> listSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current limits for quotas. + * @return the default and current limits for quotas along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String location, Context context) { @@ -243,7 +245,8 @@ public PagedIterable list(String location, Context c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current subscription quota limit along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String location, String quotaLimitName) { @@ -290,7 +293,8 @@ private Mono> getWithResponseAsync(String l * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current subscription quota limit along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -334,7 +338,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current subscription quota limit on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String location, String quotaLimitName) { @@ -373,7 +377,7 @@ public SubscriptionQuotaItemInner get(String location, String quotaLimitName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current subscription quota limit along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java index 816334e45387..10d44b71f313 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java @@ -107,7 +107,8 @@ Mono> checkQuotaAvailability( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -157,7 +158,8 @@ private Mono> checkNameAvailabilityWith * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -203,7 +205,7 @@ private Mono> checkNameAvailabilityWith * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 availability of a resource. + * @return information regarding availability of a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( @@ -243,7 +245,7 @@ public CheckAvailabilityResponseInner checkNameAvailability(String location, Res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( @@ -259,7 +261,8 @@ public Response checkNameAvailabilityWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkFilePathAvailabilityWithResponseAsync( @@ -309,7 +312,8 @@ private Mono> checkFilePathAvailability * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkFilePathAvailabilityWithResponseAsync( @@ -355,7 +359,7 @@ private Mono> checkFilePathAvailability * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 availability of a resource. + * @return information regarding availability of a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkFilePathAvailabilityAsync( @@ -395,7 +399,7 @@ public CheckAvailabilityResponseInner checkFilePathAvailability(String location, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkFilePathAvailabilityWithResponse( @@ -411,7 +415,8 @@ public Response checkFilePathAvailabilityWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkQuotaAvailabilityWithResponseAsync( @@ -461,7 +466,8 @@ private Mono> checkQuotaAvailabilityWit * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkQuotaAvailabilityWithResponseAsync( @@ -507,7 +513,7 @@ private Mono> checkQuotaAvailabilityWit * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 availability of a resource. + * @return information regarding availability of a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkQuotaAvailabilityAsync( @@ -547,7 +553,7 @@ public CheckAvailabilityResponseInner checkQuotaAvailability(String location, Qu * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkQuotaAvailabilityWithResponse( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java index 3c181be6098f..e0d71bbf8557 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java @@ -74,7 +74,8 @@ Mono> list( * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Cloud Volume operations. + * @return result of the request to list Cloud Volume operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -102,7 +103,8 @@ private Mono> listSinglePageAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Cloud Volume operations. + * @return result of the request to list Cloud Volume operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java index de099e336825..2670c686a3c6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java @@ -167,7 +167,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources. + * @return list of capacity pool resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { @@ -224,7 +225,8 @@ private Mono> listSinglePageAsync(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources. + * @return list of capacity pool resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -344,7 +346,8 @@ public PagedIterable list(String resourceGroupName, String ac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified capacity pool. + * @return details of the specified capacity pool along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -398,7 +401,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified capacity pool. + * @return details of the specified capacity pool along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -448,7 +452,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified capacity pool. + * @return details of the specified capacity pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String accountName, String poolName) { @@ -489,7 +493,7 @@ public CapacityPoolInner get(String resourceGroupName, String accountName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified capacity pool. + * @return details of the specified capacity pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -507,7 +511,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -568,7 +572,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -625,7 +629,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginCreateOrUpdateAsync( @@ -653,7 +657,7 @@ private PollerFlux, CapacityPoolInner> beginCreate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginCreateOrUpdateAsync( @@ -677,7 +681,7 @@ private PollerFlux, CapacityPoolInner> beginCreate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginCreateOrUpdate( @@ -696,7 +700,7 @@ public SyncPoller, CapacityPoolInner> beginCreateO * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginCreateOrUpdate( @@ -714,7 +718,7 @@ public SyncPoller, CapacityPoolInner> beginCreateO * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -735,7 +739,7 @@ private Mono createOrUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -792,7 +796,7 @@ public CapacityPoolInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -853,7 +857,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -910,7 +914,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginUpdateAsync( @@ -937,7 +941,7 @@ private PollerFlux, CapacityPoolInner> beginUpdate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginUpdateAsync( @@ -961,7 +965,7 @@ private PollerFlux, CapacityPoolInner> beginUpdate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginUpdate( @@ -980,7 +984,7 @@ public SyncPoller, CapacityPoolInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginUpdate( @@ -998,7 +1002,7 @@ public SyncPoller, CapacityPoolInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1019,7 +1023,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return capacity pool resource. + * @return capacity pool resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1075,7 +1079,7 @@ public CapacityPoolInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1127,7 +1131,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1175,7 +1179,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1197,7 +1201,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1219,7 +1223,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1237,7 +1241,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1254,7 +1258,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String poolName) { @@ -1273,7 +1277,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, Context context) { @@ -1320,7 +1324,8 @@ public void delete(String resourceGroupName, String accountName, String poolName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources. + * @return list of capacity pool resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1356,7 +1361,8 @@ private Mono> listNextSinglePageAsync(String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources. + * @return list of capacity pool resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java index f765c5583c87..cc367683ad2d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java @@ -8,6 +8,7 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; import com.azure.resourcemanager.netapp.models.Snapshot; +import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; import java.time.OffsetDateTime; public final class SnapshotImpl implements Snapshot, Snapshot.Definition { @@ -134,6 +135,18 @@ public Snapshot refresh(Context context) { return this; } + public void restoreFiles(SnapshotRestoreFiles body) { + serviceManager + .snapshots() + .restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); + } + + public void restoreFiles(SnapshotRestoreFiles body, Context context) { + serviceManager + .snapshots() + .restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context); + } + public SnapshotImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java index d165ae424af9..c34a253f45fc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java @@ -175,7 +175,7 @@ Mono> listVolumes( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies. + * @return list of Snapshot Policies along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { @@ -227,7 +227,7 @@ private Mono> listSinglePageAsync(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies. + * @return list of Snapshot Policies along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -339,7 +339,7 @@ public PagedIterable list(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy. + * @return a snapshot Policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -394,7 +394,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy. + * @return a snapshot Policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -445,7 +445,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy. + * @return a snapshot Policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -487,7 +487,7 @@ public SnapshotPolicyInner get(String resourceGroupName, String accountName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy. + * @return a snapshot Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -505,7 +505,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createWithResponseAsync( @@ -567,7 +567,7 @@ private Mono> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createWithResponseAsync( @@ -629,7 +629,7 @@ private Mono> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -674,7 +674,7 @@ public SnapshotPolicyInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createWithResponse( @@ -696,7 +696,7 @@ public Response createWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -758,7 +758,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -820,7 +820,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotPolicyInner> beginUpdateAsync( @@ -848,7 +848,7 @@ private PollerFlux, SnapshotPolicyInner> beginUp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotPolicyInner> beginUpdateAsync( @@ -876,7 +876,7 @@ private PollerFlux, SnapshotPolicyInner> beginUp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotPolicyInner> beginUpdate( @@ -895,7 +895,7 @@ public SyncPoller, SnapshotPolicyInner> beginUpd * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotPolicyInner> beginUpdate( @@ -917,7 +917,7 @@ public SyncPoller, SnapshotPolicyInner> beginUpd * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -938,7 +938,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot policy information. + * @return snapshot policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1002,7 +1002,7 @@ public SnapshotPolicyInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1055,7 +1055,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1104,7 +1104,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1127,7 +1127,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1149,7 +1149,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1167,7 +1167,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1184,7 +1184,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String snapshotPolicyName) { @@ -1203,7 +1203,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1253,7 +1253,8 @@ public void delete(String resourceGroupName, String accountName, String snapshot * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volumes associated with snapshot policy. + * @return volumes associated with snapshot policy along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listVolumesWithResponseAsync( @@ -1308,7 +1309,8 @@ private Mono> listVolumesWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volumes associated with snapshot policy. + * @return volumes associated with snapshot policy along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listVolumesWithResponseAsync( @@ -1359,7 +1361,7 @@ private Mono> listVolumesWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volumes associated with snapshot policy. + * @return volumes associated with snapshot policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listVolumesAsync( @@ -1402,7 +1404,7 @@ public SnapshotPolicyVolumeListInner listVolumes( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volumes associated with snapshot policy. + * @return volumes associated with snapshot policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listVolumesWithResponse( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java index a40834ad9ad3..86f45c52ea66 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java @@ -5,6 +5,7 @@ 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.SnapshotPolicyInner; import com.azure.resourcemanager.netapp.models.DailySchedule; @@ -50,6 +51,10 @@ public String etag() { return this.innerModel().etag(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public HourlySchedule hourlySchedule() { return this.innerModel().hourlySchedule(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java index 5d08542d4f95..2e23424de3f8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java @@ -14,6 +14,7 @@ import com.azure.core.annotation.HostParam; import com.azure.core.annotation.Patch; import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; import com.azure.core.annotation.Put; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; @@ -35,6 +36,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.SnapshotsClient; import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; +import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; import com.azure.resourcemanager.netapp.models.SnapshotsList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -161,6 +163,25 @@ Mono>> delete( @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, Context context); + + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" + + "/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}" + + "/restoreFiles") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> restoreFiles( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, + @PathParam("volumeName") String volumeName, + @PathParam("snapshotName") String snapshotName, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") SnapshotRestoreFiles body, + Context context); } /** @@ -173,7 +194,7 @@ Mono>> delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshots. + * @return list of Snapshots along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -236,7 +257,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshots. + * @return list of Snapshots along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -371,7 +392,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified snapshot. + * @return details of the specified snapshot along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -435,7 +456,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified snapshot. + * @return details of the specified snapshot along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -500,7 +521,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified snapshot. + * @return details of the specified snapshot on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -547,7 +568,7 @@ public SnapshotInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified snapshot. + * @return details of the specified snapshot along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -573,7 +594,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -649,7 +670,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -722,7 +743,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginCreateAsync( @@ -757,7 +778,7 @@ private PollerFlux, SnapshotInner> beginCreateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginCreateAsync( @@ -789,7 +810,7 @@ private PollerFlux, SnapshotInner> beginCreateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginCreate( @@ -816,7 +837,7 @@ public SyncPoller, SnapshotInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginCreate( @@ -843,7 +864,7 @@ public SyncPoller, SnapshotInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -871,7 +892,7 @@ private Mono createAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -951,7 +972,7 @@ public SnapshotInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1025,7 +1046,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1096,7 +1117,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginUpdateAsync( @@ -1131,7 +1152,7 @@ private PollerFlux, SnapshotInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginUpdateAsync( @@ -1163,7 +1184,7 @@ private PollerFlux, SnapshotInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginUpdate( @@ -1190,7 +1211,7 @@ public SyncPoller, SnapshotInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginUpdate( @@ -1217,7 +1238,7 @@ public SyncPoller, SnapshotInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1245,7 +1266,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. + * @return snapshot of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1324,7 +1345,7 @@ public SnapshotInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1386,7 +1407,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1449,7 +1470,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1474,7 +1495,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1503,7 +1524,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1523,7 +1544,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1548,7 +1569,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1570,7 +1591,7 @@ private Mono deleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1626,4 +1647,372 @@ public void delete( Context context) { deleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, context).block(); } + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @param body Restore payload 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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> restoreFilesWithResponseAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (snapshotName == null) { + return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + return FluxUtil + .withContext( + context -> + service + .restoreFiles( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + this.client.getApiVersion(), + body, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @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 ManagementException 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>> restoreFilesWithResponseAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (snapshotName == null) { + return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + context = this.client.mergeContext(context); + return service + .restoreFiles( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + this.client.getApiVersion(), + body, + context); + } + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @param body Restore payload 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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginRestoreFilesAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body) { + Mono>> mono = + restoreFilesWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @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 ManagementException 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.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginRestoreFilesAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + restoreFilesWithResponseAsync( + resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + } + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @param body Restore payload 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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginRestoreFiles( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body) { + return beginRestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) + .getSyncPoller(); + } + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @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 ManagementException 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.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginRestoreFiles( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body, + Context context) { + return beginRestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) + .getSyncPoller(); + } + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @param body Restore payload 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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono restoreFilesAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body) { + return beginRestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @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 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 restoreFilesAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body, + Context context) { + return beginRestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @param body Restore payload 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void restoreFiles( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body) { + restoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body).block(); + } + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @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 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 restoreFiles( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body, + Context context) { + restoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context).block(); + } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java index 9ae6f415572a..f6c6c5b4b995 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.netapp.fluent.SnapshotsClient; import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; import com.azure.resourcemanager.netapp.models.Snapshot; +import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; import com.azure.resourcemanager.netapp.models.Snapshots; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -125,6 +126,29 @@ public void delete( this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); } + public void restoreFiles( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body) { + this.serviceClient().restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); + } + + public void restoreFiles( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body, + Context context) { + this + .serviceClient() + .restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context); + } + public Snapshot getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java new file mode 100644 index 000000000000..f9dad412dda8 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java @@ -0,0 +1,206 @@ +// Copyright (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.SubvolumeInfoInner; +import com.azure.resourcemanager.netapp.models.SubvolumeInfo; +import com.azure.resourcemanager.netapp.models.SubvolumeModel; +import com.azure.resourcemanager.netapp.models.SubvolumePatchRequest; + +public final class SubvolumeInfoImpl implements SubvolumeInfo, SubvolumeInfo.Definition, SubvolumeInfo.Update { + private SubvolumeInfoInner innerObject; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String path() { + return this.innerModel().path(); + } + + public Long size() { + return this.innerModel().size(); + } + + public String parentPath() { + return this.innerModel().parentPath(); + } + + public String provisioningState() { + return this.innerModel().provisioningState(); + } + + public SubvolumeInfoInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String poolName; + + private String volumeName; + + private String subvolumeName; + + private SubvolumePatchRequest updateBody; + + public SubvolumeInfoImpl withExistingVolume( + String resourceGroupName, String accountName, String poolName, String volumeName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + this.poolName = poolName; + this.volumeName = volumeName; + return this; + } + + public SubvolumeInfo create() { + this.innerObject = + serviceManager + .serviceClient() + .getSubvolumes() + .create( + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + this.innerModel(), + Context.NONE); + return this; + } + + public SubvolumeInfo create(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getSubvolumes() + .create( + resourceGroupName, accountName, poolName, volumeName, subvolumeName, this.innerModel(), context); + return this; + } + + SubvolumeInfoImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = new SubvolumeInfoInner(); + this.serviceManager = serviceManager; + this.subvolumeName = name; + } + + public SubvolumeInfoImpl update() { + this.updateBody = new SubvolumePatchRequest(); + return this; + } + + public SubvolumeInfo apply() { + this.innerObject = + serviceManager + .serviceClient() + .getSubvolumes() + .update(resourceGroupName, accountName, poolName, volumeName, subvolumeName, updateBody, Context.NONE); + return this; + } + + public SubvolumeInfo apply(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getSubvolumes() + .update(resourceGroupName, accountName, poolName, volumeName, subvolumeName, updateBody, context); + return this; + } + + SubvolumeInfoImpl( + SubvolumeInfoInner 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.poolName = Utils.getValueFromIdByName(innerObject.id(), "capacityPools"); + this.volumeName = Utils.getValueFromIdByName(innerObject.id(), "volumes"); + this.subvolumeName = Utils.getValueFromIdByName(innerObject.id(), "subvolumes"); + } + + public SubvolumeInfo refresh() { + this.innerObject = + serviceManager + .serviceClient() + .getSubvolumes() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, Context.NONE) + .getValue(); + return this; + } + + public SubvolumeInfo refresh(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getSubvolumes() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) + .getValue(); + return this; + } + + public SubvolumeModel getMetadata() { + return serviceManager + .subvolumes() + .getMetadata(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + } + + public SubvolumeModel getMetadata(Context context) { + return serviceManager + .subvolumes() + .getMetadata(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); + } + + public SubvolumeInfoImpl withPath(String path) { + if (isInCreateMode()) { + this.innerModel().withPath(path); + return this; + } else { + this.updateBody.withPath(path); + return this; + } + } + + public SubvolumeInfoImpl withSize(Long size) { + if (isInCreateMode()) { + this.innerModel().withSize(size); + return this; + } else { + this.updateBody.withSize(size); + return this; + } + } + + public SubvolumeInfoImpl withParentPath(String parentPath) { + this.innerModel().withParentPath(parentPath); + 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/SubvolumeModelImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java new file mode 100644 index 000000000000..cbe5bae7a943 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java @@ -0,0 +1,81 @@ +// Copyright (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.SubvolumeModelInner; +import com.azure.resourcemanager.netapp.models.SubvolumeModel; +import java.time.OffsetDateTime; + +public final class SubvolumeModelImpl implements SubvolumeModel { + private SubvolumeModelInner innerObject; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + SubvolumeModelImpl( + SubvolumeModelInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String path() { + return this.innerModel().path(); + } + + public String parentPath() { + return this.innerModel().parentPath(); + } + + public Long size() { + return this.innerModel().size(); + } + + public Long bytesUsed() { + return this.innerModel().bytesUsed(); + } + + public String permissions() { + return this.innerModel().permissions(); + } + + public OffsetDateTime creationTimestamp() { + return this.innerModel().creationTimestamp(); + } + + public OffsetDateTime accessedTimestamp() { + return this.innerModel().accessedTimestamp(); + } + + public OffsetDateTime modifiedTimestamp() { + return this.innerModel().modifiedTimestamp(); + } + + public OffsetDateTime changedTimestamp() { + return this.innerModel().changedTimestamp(); + } + + public String provisioningState() { + return this.innerModel().provisioningState(); + } + + public SubvolumeModelInner 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/SubvolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java new file mode 100644 index 000000000000..47ea6370635d --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java @@ -0,0 +1,2075 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.logging.ClientLogger; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.netapp.fluent.SubvolumesClient; +import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; +import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner; +import com.azure.resourcemanager.netapp.models.SubvolumePatchRequest; +import com.azure.resourcemanager.netapp.models.SubvolumesList; +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 SubvolumesClient. */ +public final class SubvolumesClientImpl implements SubvolumesClient { + private final ClientLogger logger = new ClientLogger(SubvolumesClientImpl.class); + + /** The proxy service used to perform REST calls. */ + private final SubvolumesService service; + + /** The service client containing this operation class. */ + private final NetAppManagementClientImpl client; + + /** + * Initializes an instance of SubvolumesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + SubvolumesClientImpl(NetAppManagementClientImpl client) { + this.service = + RestProxy.create(SubvolumesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for NetAppManagementClientSubvolumes to be used by the proxy service to + * perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "NetAppManagementClie") + private interface SubvolumesService { + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" + + "/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByVolume( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, + @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" + + "/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes" + + "/{subvolumeName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, + @PathParam("volumeName") String volumeName, + @PathParam("subvolumeName") String subvolumeName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" + + "/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes" + + "/{subvolumeName}") + @ExpectedResponses({200, 201, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> create( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, + @PathParam("volumeName") String volumeName, + @PathParam("subvolumeName") String subvolumeName, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") SubvolumeInfoInner body, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Patch( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" + + "/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes" + + "/{subvolumeName}") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, + @PathParam("volumeName") String volumeName, + @PathParam("subvolumeName") String subvolumeName, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") SubvolumePatchRequest body, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" + + "/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes" + + "/{subvolumeName}") + @ExpectedResponses({200, 202, 204}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, + @PathParam("volumeName") String volumeName, + @PathParam("subvolumeName") String subvolumeName, + @QueryParam("api-version") String apiVersion, + Context context); + + @Headers({"Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" + + "/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes" + + "/{subvolumeName}/getMetadata") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> getMetadata( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, + @PathParam("volumeName") String volumeName, + @PathParam("subvolumeName") String subvolumeName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByVolumeNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Returns a list of the subvolumes in the volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByVolumeSinglePageAsync( + String resourceGroupName, String accountName, String poolName, String volumeName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .listByVolume( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + poolName, + volumeName, + this.client.getApiVersion(), + accept, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Returns a list of the subvolumes in the volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByVolumeSinglePageAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, 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 + .listByVolume( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + poolName, + volumeName, + this.client.getApiVersion(), + accept, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Returns a list of the subvolumes in the volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByVolumeAsync( + String resourceGroupName, String accountName, String poolName, String volumeName) { + return new PagedFlux<>( + () -> listByVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName), + nextLink -> listByVolumeNextSinglePageAsync(nextLink)); + } + + /** + * Returns a list of the subvolumes in the volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByVolumeAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + return new PagedFlux<>( + () -> listByVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName, context), + nextLink -> listByVolumeNextSinglePageAsync(nextLink, context)); + } + + /** + * Returns a list of the subvolumes in the volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByVolume( + String resourceGroupName, String accountName, String poolName, String volumeName) { + return new PagedIterable<>(listByVolumeAsync(resourceGroupName, accountName, poolName, volumeName)); + } + + /** + * Returns a list of the subvolumes in the volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByVolume( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + return new PagedIterable<>(listByVolumeAsync(resourceGroupName, accountName, poolName, volumeName, context)); + } + + /** + * Returns the path associated with the subvolumeName provided. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (subvolumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .get( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + this.client.getApiVersion(), + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Returns the path associated with the subvolumeName provided. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (subvolumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .get( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + this.client.getApiVersion(), + accept, + context); + } + + /** + * Returns the path associated with the subvolumeName provided. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return subvolume Information properties on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Returns the path associated with the subvolumeName provided. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return subvolume Information properties. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SubvolumeInfoInner get( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + return getAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName).block(); + } + + /** + * Returns the path associated with the subvolumeName provided. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @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 subvolume Information properties along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) + .block(); + } + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createWithResponseAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (subvolumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter subvolumeName 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, + poolName, + volumeName, + subvolumeName, + this.client.getApiVersion(), + body, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createWithResponseAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (subvolumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter subvolumeName 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, + poolName, + volumeName, + subvolumeName, + this.client.getApiVersion(), + body, + accept, + context); + } + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SubvolumeInfoInner> beginCreateAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body) { + Mono>> mono = + createWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + SubvolumeInfoInner.class, + SubvolumeInfoInner.class, + this.client.getContext()); + } + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SubvolumeInfoInner> beginCreateAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + createWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), SubvolumeInfoInner.class, SubvolumeInfoInner.class, context); + } + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SubvolumeInfoInner> beginCreate( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body) { + return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body) + .getSyncPoller(); + } + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SubvolumeInfoInner> beginCreate( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body, + Context context) { + return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context) + .getSyncPoller(); + } + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body) { + return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body, + Context context) { + return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SubvolumeInfoInner create( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body) { + return createAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body).block(); + } + + /** + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SubvolumeInfoInner create( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumeInfoInner body, + Context context) { + return createAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context).block(); + } + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (subvolumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .update( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + this.client.getApiVersion(), + body, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (subvolumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter subvolumeName 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, + poolName, + volumeName, + subvolumeName, + this.client.getApiVersion(), + body, + accept, + context); + } + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SubvolumeInfoInner> beginUpdateAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body) { + Mono>> mono = + updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + SubvolumeInfoInner.class, + SubvolumeInfoInner.class, + this.client.getContext()); + } + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SubvolumeInfoInner> beginUpdateAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), SubvolumeInfoInner.class, SubvolumeInfoInner.class, context); + } + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SubvolumeInfoInner> beginUpdate( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body) + .getSyncPoller(); + } + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SubvolumeInfoInner> beginUpdate( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body, + Context context) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context) + .getSyncPoller(); + } + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body, + Context context) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SubvolumeInfoInner update( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body) { + return updateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body).block(); + } + + /** + * Patch a subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param body Subvolume 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 subvolume Information properties. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SubvolumeInfoInner update( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + SubvolumePatchRequest body, + Context context) { + return updateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context).block(); + } + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (subvolumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .delete( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + this.client.getApiVersion(), + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (subvolumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .delete( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + this.client.getApiVersion(), + context); + } + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @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.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + } + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName).getSyncPoller(); + } + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @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.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) + .getSyncPoller(); + } + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + deleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName).block(); + } + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + deleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context).block(); + } + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> getMetadataWithResponseAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (subvolumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .getMetadata( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + this.client.getApiVersion(), + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> getMetadataWithResponseAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (subvolumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .getMetadata( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + this.client.getApiVersion(), + accept, + context); + } + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SubvolumeModelInner> beginGetMetadataAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + Mono>> mono = + getMetadataWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + SubvolumeModelInner.class, + SubvolumeModelInner.class, + this.client.getContext()); + } + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SubvolumeModelInner> beginGetMetadataAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + getMetadataWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), SubvolumeModelInner.class, SubvolumeModelInner.class, context); + } + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SubvolumeModelInner> beginGetMetadata( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + return beginGetMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName) + .getSyncPoller(); + } + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SubvolumeModelInner> beginGetMetadata( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + return beginGetMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) + .getSyncPoller(); + } + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getMetadataAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + return beginGetMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getMetadataAsync( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + return beginGetMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SubvolumeModelInner getMetadata( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + return getMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName).block(); + } + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SubvolumeModelInner getMetadata( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + return getMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context).block(); + } + + /** + * Get the next page of items. + * + * @param nextLink 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 Subvolumes along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByVolumeNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByVolumeNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The 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 Subvolumes along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByVolumeNextSinglePageAsync(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 + .listByVolumeNext(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/SubvolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java new file mode 100644 index 000000000000..80f3a9b01f21 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java @@ -0,0 +1,301 @@ +// Copyright (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.SubvolumesClient; +import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; +import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner; +import com.azure.resourcemanager.netapp.models.SubvolumeInfo; +import com.azure.resourcemanager.netapp.models.SubvolumeModel; +import com.azure.resourcemanager.netapp.models.Subvolumes; +import com.fasterxml.jackson.annotation.JsonIgnore; + +public final class SubvolumesImpl implements Subvolumes { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumesImpl.class); + + private final SubvolumesClient innerClient; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + public SubvolumesImpl( + SubvolumesClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable listByVolume( + String resourceGroupName, String accountName, String poolName, String volumeName) { + PagedIterable inner = + this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName); + return Utils.mapPage(inner, inner1 -> new SubvolumeInfoImpl(inner1, this.manager())); + } + + public PagedIterable listByVolume( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + PagedIterable inner = + this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName, context); + return Utils.mapPage(inner, inner1 -> new SubvolumeInfoImpl(inner1, this.manager())); + } + + public SubvolumeInfo get( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + SubvolumeInfoInner inner = + this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + if (inner != null) { + return new SubvolumeInfoImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + Response inner = + this + .serviceClient() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new SubvolumeInfoImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public void delete( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + } + + public void delete( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); + } + + public SubvolumeModel getMetadata( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + SubvolumeModelInner inner = + this.serviceClient().getMetadata(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + if (inner != null) { + return new SubvolumeModelImpl(inner, this.manager()); + } else { + return null; + } + } + + public SubvolumeModel getMetadata( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + SubvolumeModelInner inner = + this + .serviceClient() + .getMetadata(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); + if (inner != null) { + return new SubvolumeModelImpl(inner, this.manager()); + } else { + return null; + } + } + + public SubvolumeInfo 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 poolName = Utils.getValueFromIdByName(id, "capacityPools"); + if (poolName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); + } + String volumeName = Utils.getValueFromIdByName(id, "volumes"); + if (volumeName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); + } + String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); + if (subvolumeName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); + } + return this + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, 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 poolName = Utils.getValueFromIdByName(id, "capacityPools"); + if (poolName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); + } + String volumeName = Utils.getValueFromIdByName(id, "volumes"); + if (volumeName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); + } + String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); + if (subvolumeName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, 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 poolName = Utils.getValueFromIdByName(id, "capacityPools"); + if (poolName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); + } + String volumeName = Utils.getValueFromIdByName(id, "volumes"); + if (volumeName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); + } + String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); + if (subvolumeName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); + } + this.delete(resourceGroupName, accountName, poolName, volumeName, subvolumeName, 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 poolName = Utils.getValueFromIdByName(id, "capacityPools"); + if (poolName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); + } + String volumeName = Utils.getValueFromIdByName(id, "volumes"); + if (volumeName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); + } + String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); + if (subvolumeName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); + } + this.delete(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); + } + + private SubvolumesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } + + public SubvolumeInfoImpl define(String name) { + return new SubvolumeInfoImpl(name, this.manager()); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsClientImpl.java index dcbf07947b0d..a96b222b7ecd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsClientImpl.java @@ -82,7 +82,7 @@ Mono> list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Vaults. + * @return list of Vaults along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { @@ -134,7 +134,7 @@ private Mono> listSinglePageAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Vaults. + * @return list of Vaults along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java index 51f9f7c2a808..a69cf4bc07d8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java @@ -140,7 +140,7 @@ Mono>> delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources. + * @return list of volume group resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByNetAppAccountSinglePageAsync( @@ -193,7 +193,7 @@ private Mono> listByNetAppAccountSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources. + * @return list of volume group resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByNetAppAccountSinglePageAsync( @@ -307,7 +307,8 @@ public PagedIterable listByNetAppAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified volume group. + * @return details of the specified volume group along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -362,7 +363,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified volume group. + * @return details of the specified volume group along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -413,7 +415,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified volume group. + * @return details of the specified volume group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -455,7 +457,7 @@ public VolumeGroupDetailsInner get(String resourceGroupName, String accountName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified volume group. + * @return details of the specified volume group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -473,7 +475,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume group resource for create. + * @return volume group resource for create along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -535,7 +537,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume group resource for create. + * @return volume group resource for create along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -597,7 +599,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume group resource for create. + * @return volume group resource for create along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeGroupDetailsInner> beginCreateAsync( @@ -625,7 +627,7 @@ private PollerFlux, VolumeGroupDetailsInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume group resource for create. + * @return volume group resource for create along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeGroupDetailsInner> beginCreateAsync( @@ -657,7 +659,7 @@ private PollerFlux, VolumeGroupDetailsInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume group resource for create. + * @return volume group resource for create along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeGroupDetailsInner> beginCreate( @@ -676,7 +678,7 @@ public SyncPoller, VolumeGroupDetailsInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume group resource for create. + * @return volume group resource for create along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeGroupDetailsInner> beginCreate( @@ -698,7 +700,7 @@ public SyncPoller, VolumeGroupDetailsInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume group resource for create. + * @return volume group resource for create on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -719,7 +721,7 @@ private Mono createAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume group resource for create. + * @return volume group resource for create on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -783,7 +785,7 @@ public VolumeGroupDetailsInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -836,7 +838,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -885,7 +887,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -908,7 +910,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -930,7 +932,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -948,7 +950,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -965,7 +967,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String volumeGroupName) { @@ -984,7 +986,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java index 677c8ca77df6..7c385f26a452 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java @@ -5,12 +5,14 @@ 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.MountTargetProperties; import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; import com.azure.resourcemanager.netapp.models.AuthorizeRequest; import com.azure.resourcemanager.netapp.models.AvsDataStore; import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; +import com.azure.resourcemanager.netapp.models.EnableSubvolumes; import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; import com.azure.resourcemanager.netapp.models.PoolChangeRequest; @@ -62,6 +64,10 @@ public String etag() { return this.innerModel().etag(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public String fileSystemId() { return this.innerModel().fileSystemId(); } @@ -208,6 +214,10 @@ public Long defaultGroupQuotaInKiBs() { return this.innerModel().defaultGroupQuotaInKiBs(); } + public Long maximumNumberOfFiles() { + return this.innerModel().maximumNumberOfFiles(); + } + public String volumeGroupName() { return this.innerModel().volumeGroupName(); } @@ -237,6 +247,10 @@ public List placementRules() { } } + public EnableSubvolumes enableSubvolumes() { + return this.innerModel().enableSubvolumes(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -549,8 +563,13 @@ public VolumeImpl withCoolnessPeriod(Integer coolnessPeriod) { } public VolumeImpl withUnixPermissions(String unixPermissions) { - this.innerModel().withUnixPermissions(unixPermissions); - return this; + if (isInCreateMode()) { + this.innerModel().withUnixPermissions(unixPermissions); + return this; + } else { + this.updateBody.withUnixPermissions(unixPermissions); + return this; + } } public VolumeImpl withAvsDataStore(AvsDataStore avsDataStore) { @@ -608,6 +627,11 @@ public VolumeImpl withPlacementRules(List placementRules return this; } + public VolumeImpl withEnableSubvolumes(EnableSubvolumes enableSubvolumes) { + this.innerModel().withEnableSubvolumes(enableSubvolumes); + return this; + } + public VolumeImpl withUsageThreshold(Long usageThreshold) { this.updateBody.withUsageThreshold(usageThreshold); return this; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java index 6d0dab7e4e03..d188afc596cc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java @@ -156,6 +156,7 @@ Mono>> delete( @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("forceDelete") Boolean forceDelete, @QueryParam("api-version") String apiVersion, Context context); @@ -312,7 +313,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume resources. + * @return list of volume resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -375,7 +376,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume resources. + * @return list of volume resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -507,7 +508,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume. + * @return the details of the specified volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -566,7 +567,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume. + * @return the details of the specified volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -621,7 +622,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume. + * @return the details of the specified volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -665,7 +666,7 @@ public VolumeInner get(String resourceGroupName, String accountName, String pool * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume. + * @return the details of the specified volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -684,7 +685,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -750,7 +751,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -817,7 +818,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginCreateOrUpdateAsync( @@ -842,7 +843,7 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginCreateOrUpdateAsync( @@ -872,7 +873,7 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginCreateOrUpdate( @@ -892,7 +893,7 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginCreateOrUpdate( @@ -917,7 +918,7 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -939,7 +940,7 @@ private Mono createOrUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -1009,7 +1010,7 @@ public VolumeInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1075,7 +1076,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1142,7 +1143,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginUpdateAsync( @@ -1167,7 +1168,7 @@ private PollerFlux, VolumeInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginUpdateAsync( @@ -1197,7 +1198,7 @@ private PollerFlux, VolumeInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginUpdate( @@ -1217,7 +1218,7 @@ public SyncPoller, VolumeInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginUpdate( @@ -1241,7 +1242,7 @@ public SyncPoller, VolumeInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1263,7 +1264,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return volume resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1329,14 +1330,16 @@ public VolumeInner update( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1373,6 +1376,7 @@ private Mono>> deleteWithResponseAsync( accountName, poolName, volumeName, + forceDelete, this.client.getApiVersion(), context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1385,15 +1389,22 @@ private Mono>> deleteWithResponseAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + Boolean forceDelete, + Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1428,6 +1439,7 @@ private Mono>> deleteWithResponseAsync( accountName, poolName, volumeName, + forceDelete, this.client.getApiVersion(), context); } @@ -1439,16 +1451,18 @@ private Mono>> deleteWithResponseAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); + deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete); return this .client .getLroResult( @@ -1462,18 +1476,25 @@ private PollerFlux, Void> beginDeleteAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + Boolean forceDelete, + Context context) { context = this.client.mergeContext(context); Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); + deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete, context); return this .client .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -1486,15 +1507,17 @@ private PollerFlux, Void> beginDeleteAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); + String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete).getSyncPoller(); } /** @@ -1504,16 +1527,46 @@ public SyncPoller, Void> beginDelete( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, context).getSyncPoller(); + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + Boolean forceDelete, + Context context) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete, context) + .getSyncPoller(); + } + + /** + * Delete the specified volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1526,11 +1579,12 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName) + final Boolean forceDelete = null; + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1542,20 +1596,46 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, context) + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + Boolean forceDelete, + Context context) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete, context) .last() .flatMap(this.client::getLroFinalResultOrError); } + /** + * Delete the specified volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete( + String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { + deleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete).block(); + } + /** * Delete the specified volume. * @@ -1569,7 +1649,8 @@ private Mono deleteAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public void delete(String resourceGroupName, String accountName, String poolName, String volumeName) { - deleteAsync(resourceGroupName, accountName, poolName, volumeName).block(); + final Boolean forceDelete = null; + deleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete).block(); } /** @@ -1579,6 +1660,8 @@ public void delete(String resourceGroupName, String accountName, String poolName * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1586,8 +1669,13 @@ public void delete(String resourceGroupName, String accountName, String poolName */ @ServiceMethod(returns = ReturnType.SINGLE) public void delete( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - deleteAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + Boolean forceDelete, + Context context) { + deleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete, context).block(); } /** @@ -1601,7 +1689,7 @@ public void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> revertWithResponseAsync( @@ -1665,7 +1753,7 @@ private Mono>> revertWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> revertWithResponseAsync( @@ -1730,7 +1818,7 @@ private Mono>> revertWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRevertAsync( @@ -1755,7 +1843,7 @@ private PollerFlux, Void> beginRevertAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRevertAsync( @@ -1784,7 +1872,7 @@ private PollerFlux, Void> beginRevertAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRevert( @@ -1804,7 +1892,7 @@ public SyncPoller, Void> beginRevert( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRevert( @@ -1828,7 +1916,7 @@ public SyncPoller, Void> beginRevert( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono revertAsync( @@ -1850,7 +1938,7 @@ private Mono revertAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono revertAsync( @@ -1918,7 +2006,7 @@ public void revert( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> breakReplicationWithResponseAsync( @@ -1984,7 +2072,7 @@ private Mono>> breakReplicationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> breakReplicationWithResponseAsync( @@ -2047,7 +2135,7 @@ private Mono>> breakReplicationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginBreakReplicationAsync( @@ -2076,7 +2164,7 @@ private PollerFlux, Void> beginBreakReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginBreakReplicationAsync( @@ -2105,7 +2193,7 @@ private PollerFlux, Void> beginBreakReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginBreakReplication( @@ -2129,7 +2217,7 @@ public SyncPoller, Void> beginBreakReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginBreakReplication( @@ -2154,7 +2242,7 @@ public SyncPoller, Void> beginBreakReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono breakReplicationAsync( @@ -2178,7 +2266,7 @@ private Mono breakReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono breakReplicationAsync( @@ -2201,7 +2289,7 @@ private Mono breakReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono breakReplicationAsync( @@ -2289,7 +2377,7 @@ public void breakReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication. + * @return the status of the replication along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> replicationStatusWithResponseAsync( @@ -2348,7 +2436,7 @@ private Mono> replicationStatusWithResponseAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication. + * @return the status of the replication along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> replicationStatusWithResponseAsync( @@ -2403,7 +2491,7 @@ private Mono> replicationStatusWithResponseAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication. + * @return the status of the replication on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono replicationStatusAsync( @@ -2448,7 +2536,7 @@ public ReplicationStatusInner replicationStatus( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication. + * @return the status of the replication along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response replicationStatusWithResponse( @@ -2468,7 +2556,7 @@ public Response replicationStatusWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> resyncReplicationWithResponseAsync( @@ -2526,7 +2614,7 @@ private Mono>> resyncReplicationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> resyncReplicationWithResponseAsync( @@ -2580,7 +2668,7 @@ private Mono>> resyncReplicationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginResyncReplicationAsync( @@ -2605,7 +2693,7 @@ private PollerFlux, Void> beginResyncReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginResyncReplicationAsync( @@ -2629,7 +2717,7 @@ private PollerFlux, Void> beginResyncReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginResyncReplication( @@ -2649,7 +2737,7 @@ public SyncPoller, Void> beginResyncReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginResyncReplication( @@ -2669,7 +2757,7 @@ public SyncPoller, Void> beginResyncReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono resyncReplicationAsync( @@ -2691,7 +2779,7 @@ private Mono resyncReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono resyncReplicationAsync( @@ -2747,7 +2835,7 @@ public void resyncReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteReplicationWithResponseAsync( @@ -2804,7 +2892,7 @@ private Mono>> deleteReplicationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteReplicationWithResponseAsync( @@ -2857,7 +2945,7 @@ private Mono>> deleteReplicationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteReplicationAsync( @@ -2881,7 +2969,7 @@ private PollerFlux, Void> beginDeleteReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteReplicationAsync( @@ -2904,7 +2992,7 @@ private PollerFlux, Void> beginDeleteReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteReplication( @@ -2923,7 +3011,7 @@ public SyncPoller, Void> beginDeleteReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteReplication( @@ -2942,7 +3030,7 @@ public SyncPoller, Void> beginDeleteReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteReplicationAsync( @@ -2963,7 +3051,7 @@ private Mono deleteReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteReplicationAsync( @@ -3018,7 +3106,7 @@ public void deleteReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> authorizeReplicationWithResponseAsync( @@ -3082,7 +3170,7 @@ private Mono>> authorizeReplicationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> authorizeReplicationWithResponseAsync( @@ -3147,7 +3235,7 @@ private Mono>> authorizeReplicationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginAuthorizeReplicationAsync( @@ -3172,7 +3260,7 @@ private PollerFlux, Void> beginAuthorizeReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginAuthorizeReplicationAsync( @@ -3201,7 +3289,7 @@ private PollerFlux, Void> beginAuthorizeReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAuthorizeReplication( @@ -3222,7 +3310,7 @@ public SyncPoller, Void> beginAuthorizeReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAuthorizeReplication( @@ -3247,7 +3335,7 @@ public SyncPoller, Void> beginAuthorizeReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono authorizeReplicationAsync( @@ -3269,7 +3357,7 @@ private Mono authorizeReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono authorizeReplicationAsync( @@ -3336,7 +3424,7 @@ public void authorizeReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> reInitializeReplicationWithResponseAsync( @@ -3393,7 +3481,7 @@ private Mono>> reInitializeReplicationWithResponseAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> reInitializeReplicationWithResponseAsync( @@ -3446,7 +3534,7 @@ private Mono>> reInitializeReplicationWithResponseAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginReInitializeReplicationAsync( @@ -3470,7 +3558,7 @@ private PollerFlux, Void> beginReInitializeReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginReInitializeReplicationAsync( @@ -3493,7 +3581,7 @@ private PollerFlux, Void> beginReInitializeReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginReInitializeReplication( @@ -3512,7 +3600,7 @@ public SyncPoller, Void> beginReInitializeReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginReInitializeReplication( @@ -3531,7 +3619,7 @@ public SyncPoller, Void> beginReInitializeReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono reInitializeReplicationAsync( @@ -3552,7 +3640,7 @@ private Mono reInitializeReplicationAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono reInitializeReplicationAsync( @@ -3608,7 +3696,7 @@ public void reInitializeReplication( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> poolChangeWithResponseAsync( @@ -3672,7 +3760,7 @@ private Mono>> poolChangeWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> poolChangeWithResponseAsync( @@ -3737,7 +3825,7 @@ private Mono>> poolChangeWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginPoolChangeAsync( @@ -3762,7 +3850,7 @@ private PollerFlux, Void> beginPoolChangeAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginPoolChangeAsync( @@ -3791,7 +3879,7 @@ private PollerFlux, Void> beginPoolChangeAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginPoolChange( @@ -3811,7 +3899,7 @@ public SyncPoller, Void> beginPoolChange( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginPoolChange( @@ -3836,7 +3924,7 @@ public SyncPoller, Void> beginPoolChange( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono poolChangeAsync( @@ -3858,7 +3946,7 @@ private Mono poolChangeAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono poolChangeAsync( @@ -3922,7 +4010,7 @@ public void poolChange( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume resources. + * @return list of volume resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -3958,7 +4046,7 @@ private Mono> listNextSinglePageAsync(String nextLink * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume resources. + * @return list of volume resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java index 67942f92d891..93f1ff6c8aed 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java @@ -67,13 +67,23 @@ public Response getWithResponse( } } + public void delete( + String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { + this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, forceDelete); + } + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName); } public void delete( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, context); + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + Boolean forceDelete, + Context context) { + this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, forceDelete, context); } public void revert( @@ -299,10 +309,11 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } - this.delete(resourceGroupName, accountName, poolName, volumeName, Context.NONE); + Boolean localForceDelete = null; + this.delete(resourceGroupName, accountName, poolName, volumeName, localForceDelete, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { + public void deleteByIdWithResponse(String id, Boolean forceDelete, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw logger @@ -333,7 +344,7 @@ public void deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } - this.delete(resourceGroupName, accountName, poolName, volumeName, context); + this.delete(resourceGroupName, accountName, poolName, volumeName, forceDelete, context); } private VolumesClient serviceClient() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountBackups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountBackups.java index 2142e002b409..0ab430e5a91e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountBackups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountBackups.java @@ -58,7 +58,7 @@ public interface AccountBackups { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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. + * @return the specified backup for a Netapp Account along with {@link Response}. */ Response getWithResponse(String resourceGroupName, String accountName, String backupName, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java index b1cf1b7272a7..1fbb11b8d98a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java @@ -74,7 +74,7 @@ public interface Accounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account. + * @return the NetApp account along with {@link Response}. */ Response getByResourceGroupWithResponse( String resourceGroupName, String accountName, Context context); @@ -109,7 +109,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account. + * @return the NetApp account along with {@link Response}. */ NetAppAccount getById(String id); @@ -121,7 +121,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account. + * @return the NetApp account along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java index 14ebab7180e5..fa2d0fa8e0e9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java @@ -156,6 +156,12 @@ public final class ActiveDirectory { @JsonProperty(value = "encryptDCConnections") private Boolean encryptDCConnections; + /* + * LDAP Search scope options + */ + @JsonProperty(value = "ldapSearchScope") + private LdapSearchScopeOpt ldapSearchScope; + /** * Get the activeDirectoryId property: Id of the Active Directory. * @@ -580,11 +586,34 @@ public ActiveDirectory withEncryptDCConnections(Boolean encryptDCConnections) { return this; } + /** + * Get the ldapSearchScope property: LDAP Search scope options. + * + * @return the ldapSearchScope value. + */ + public LdapSearchScopeOpt ldapSearchScope() { + return this.ldapSearchScope; + } + + /** + * Set the ldapSearchScope property: LDAP Search scope options. + * + * @param ldapSearchScope the ldapSearchScope value to set. + * @return the ActiveDirectory object itself. + */ + public ActiveDirectory withLdapSearchScope(LdapSearchScopeOpt ldapSearchScope) { + this.ldapSearchScope = ldapSearchScope; + return this; + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (ldapSearchScope() != null) { + ldapSearchScope().validate(); + } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java index e4d9f8413fa1..37b928d79657 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java @@ -48,7 +48,7 @@ public interface Backup { String backupId(); /** - * Gets the creationDate property: name The creation date of the backup. + * Gets the creationDate property: creationDate The creation date of the backup. * * @return the creationDate value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java index aae1d00b4388..b7d7f5531cfb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java @@ -70,7 +70,7 @@ public String backupId() { } /** - * Get the creationDate property: name The creation date of the backup. + * Get the creationDate property: creationDate The creation date of the backup. * * @return the creationDate value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java index 615f16b37b1d..a3fcf3828137 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java @@ -58,7 +58,7 @@ public interface BackupPolicies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy. + * @return a particular backup Policy along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String accountName, String backupPolicyName, Context context); @@ -95,7 +95,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy. + * @return a particular backup Policy along with {@link Response}. */ BackupPolicy getById(String id); @@ -107,7 +107,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy. + * @return a particular backup Policy along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java index 519093da24dd..e1321e058dce 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner; import java.util.List; @@ -54,6 +55,13 @@ public interface BackupPolicy { */ String etag(); + /** + * Gets the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the backupPolicyId property: Backup Policy Resource ID. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java index ae7ec2918811..a45f98618f63 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java @@ -35,7 +35,7 @@ public interface Backups { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume. + * @return the status of the backup for a volume along with {@link Response}. */ Response getStatusWithResponse( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); @@ -66,7 +66,7 @@ RestoreStatus getVolumeRestoreStatus( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume. + * @return the status of the restore for a volume along with {@link Response}. */ Response getVolumeRestoreStatusWithResponse( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); @@ -128,7 +128,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 of the volume. + * @return the specified backup of the volume along with {@link Response}. */ Response getWithResponse( String resourceGroupName, @@ -180,7 +180,7 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 of the volume. + * @return the specified backup of the volume along with {@link Response}. */ Backup getById(String id); @@ -192,7 +192,7 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 of the volume. + * @return the specified backup of the volume along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java index c3f168cdc3ec..25b60b7c0355 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; import java.util.Map; @@ -53,6 +54,13 @@ public interface CapacityPool { */ String etag(); + /** + * Gets the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the poolId property: poolId UUID v4 used to identify the Pool. * @@ -61,7 +69,7 @@ public interface CapacityPool { String poolId(); /** - * Gets the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * Gets the size property: size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value * must be multiply of 4398046511104). * * @return the size value. @@ -185,10 +193,10 @@ interface WithParentResource { /** The stage of the CapacityPool definition allowing to specify size. */ interface WithSize { /** - * Specifies the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB + * Specifies the size property: size Provisioned size of the pool (in bytes). Allowed values are in 1TiB * chunks (value must be multiply of 4398046511104).. * - * @param size size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must + * @param size size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must * be multiply of 4398046511104). * @return the next definition stage. */ @@ -311,10 +319,10 @@ interface WithTags { /** The stage of the CapacityPool update allowing to specify size. */ interface WithSize { /** - * Specifies the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB + * Specifies the size property: size Provisioned size of the pool (in bytes). Allowed values are in 1TiB * chunks (value must be multiply of 4398046511104).. * - * @param size size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must + * @param size size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must * be multiply of 4398046511104). * @return the next definition stage. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java index be1642f10838..9b1829fec471 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java @@ -47,7 +47,7 @@ public CapacityPoolPatch withTags(Map tags) { } /** - * Get the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * Get the size property: size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value * must be multiply of 4398046511104). * * @return the size value. @@ -57,7 +57,7 @@ public Long size() { } /** - * Set the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * Set the size property: size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value * must be multiply of 4398046511104). * * @param size the size value to set. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java new file mode 100644 index 000000000000..89b167862441 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for EnableSubvolumes. */ +public final class EnableSubvolumes extends ExpandableStringEnum { + /** Static value Enabled for EnableSubvolumes. */ + public static final EnableSubvolumes ENABLED = fromString("Enabled"); + + /** Static value Disabled for EnableSubvolumes. */ + public static final EnableSubvolumes DISABLED = fromString("Disabled"); + + /** + * Creates or finds a EnableSubvolumes from its string representation. + * + * @param name a name to look for. + * @return the corresponding EnableSubvolumes. + */ + @JsonCreator + public static EnableSubvolumes fromString(String name) { + return fromString(name, EnableSubvolumes.class); + } + + /** @return known EnableSubvolumes values. */ + public static Collection values() { + return values(EnableSubvolumes.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java new file mode 100644 index 000000000000..9796f003e9fe --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** LDAP search scope. */ +@Fluent +public final class LdapSearchScopeOpt { + @JsonIgnore private final ClientLogger logger = new ClientLogger(LdapSearchScopeOpt.class); + + /* + * This specifies the user DN, which overrides the base DN for user + * lookups. + */ + @JsonProperty(value = "userDN") + private String userDN; + + /* + * This specifies the group DN, which overrides the base DN for group + * lookups. + */ + @JsonProperty(value = "groupDN") + private String groupDN; + + /* + * This specifies the custom LDAP search filter to be used when looking up + * group membership from LDAP server. + */ + @JsonProperty(value = "groupMembershipFilter") + private String groupMembershipFilter; + + /** + * Get the userDN property: This specifies the user DN, which overrides the base DN for user lookups. + * + * @return the userDN value. + */ + public String userDN() { + return this.userDN; + } + + /** + * Set the userDN property: This specifies the user DN, which overrides the base DN for user lookups. + * + * @param userDN the userDN value to set. + * @return the LdapSearchScopeOpt object itself. + */ + public LdapSearchScopeOpt withUserDN(String userDN) { + this.userDN = userDN; + return this; + } + + /** + * Get the groupDN property: This specifies the group DN, which overrides the base DN for group lookups. + * + * @return the groupDN value. + */ + public String groupDN() { + return this.groupDN; + } + + /** + * Set the groupDN property: This specifies the group DN, which overrides the base DN for group lookups. + * + * @param groupDN the groupDN value to set. + * @return the LdapSearchScopeOpt object itself. + */ + public LdapSearchScopeOpt withGroupDN(String groupDN) { + this.groupDN = groupDN; + return this; + } + + /** + * Get the groupMembershipFilter property: This specifies the custom LDAP search filter to be used when looking up + * group membership from LDAP server. + * + * @return the groupMembershipFilter value. + */ + public String groupMembershipFilter() { + return this.groupMembershipFilter; + } + + /** + * Set the groupMembershipFilter property: This specifies the custom LDAP search filter to be used when looking up + * group membership from LDAP server. + * + * @param groupMembershipFilter the groupMembershipFilter value to set. + * @return the LdapSearchScopeOpt object itself. + */ + public LdapSearchScopeOpt withGroupMembershipFilter(String groupMembershipFilter) { + this.groupMembershipFilter = groupMembershipFilter; + 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/models/NetAppResourceQuotaLimits.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java index 37fc6b6f1492..b6b6d404285a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java @@ -54,7 +54,7 @@ public interface NetAppResourceQuotaLimits { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current subscription quota limit along with {@link Response}. */ Response getWithResponse(String location, String quotaLimitName, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java index 226feea9294e..9f28e4bdce4d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java @@ -30,7 +30,7 @@ public interface NetAppResources { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ Response checkNameAvailabilityWithResponse( String location, ResourceNameAvailabilityRequest body, Context context); @@ -56,7 +56,7 @@ Response checkNameAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ Response checkFilePathAvailabilityWithResponse( String location, FilePathAvailabilityRequest body, Context context); @@ -82,7 +82,7 @@ Response checkFilePathAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ Response checkQuotaAvailabilityWithResponse( String location, QuotaAvailabilityRequest body, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java index 98f3d0146647..5209c688572d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java @@ -58,7 +58,7 @@ public interface Pools { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified capacity pool. + * @return details of the specified capacity pool along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String accountName, String poolName, Context context); @@ -95,7 +95,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified capacity pool. + * @return details of the specified capacity pool along with {@link Response}. */ CapacityPool getById(String id); @@ -107,7 +107,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified capacity pool. + * @return details of the specified capacity pool along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java index 74f75dc61d4c..726ffad44243 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java @@ -160,4 +160,25 @@ interface WithCreate { * @return the refreshed resource. */ Snapshot refresh(Context context); + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @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. + */ + void restoreFiles(SnapshotRestoreFiles body); + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @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. + */ + void restoreFiles(SnapshotRestoreFiles body, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java index 7bbaa4f00d7c..7f550ae27fb4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java @@ -58,7 +58,7 @@ public interface SnapshotPolicies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy. + * @return a snapshot Policy along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String accountName, String snapshotPolicyName, Context context); @@ -111,7 +111,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volumes associated with snapshot policy. + * @return volumes associated with snapshot policy along with {@link Response}. */ Response listVolumesWithResponse( String resourceGroupName, String accountName, String snapshotPolicyName, Context context); @@ -123,7 +123,7 @@ Response listVolumesWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy. + * @return a snapshot Policy along with {@link Response}. */ SnapshotPolicy getById(String id); @@ -135,7 +135,7 @@ Response listVolumesWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy. + * @return a snapshot Policy along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java index 3e9873c61289..b6806a4ed86a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner; import java.util.Map; @@ -53,6 +54,13 @@ public interface SnapshotPolicy { */ String etag(); + /** + * Gets the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the hourlySchedule property: Schedule for hourly snapshots. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java new file mode 100644 index 000000000000..4abe5aae7130 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Restore payload for Single File Snapshot Restore. */ +@Fluent +public final class SnapshotRestoreFiles { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotRestoreFiles.class); + + /* + * List of files to be restored + */ + @JsonProperty(value = "filePaths", required = true) + private List filePaths; + + /* + * Destination folder where the files will be restored + */ + @JsonProperty(value = "destinationPath") + private String destinationPath; + + /** + * Get the filePaths property: List of files to be restored. + * + * @return the filePaths value. + */ + public List filePaths() { + return this.filePaths; + } + + /** + * Set the filePaths property: List of files to be restored. + * + * @param filePaths the filePaths value to set. + * @return the SnapshotRestoreFiles object itself. + */ + public SnapshotRestoreFiles withFilePaths(List filePaths) { + this.filePaths = filePaths; + return this; + } + + /** + * Get the destinationPath property: Destination folder where the files will be restored. + * + * @return the destinationPath value. + */ + public String destinationPath() { + return this.destinationPath; + } + + /** + * Set the destinationPath property: Destination folder where the files will be restored. + * + * @param destinationPath the destinationPath value to set. + * @return the SnapshotRestoreFiles object itself. + */ + public SnapshotRestoreFiles withDestinationPath(String destinationPath) { + this.destinationPath = destinationPath; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (filePaths() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property filePaths in model SnapshotRestoreFiles")); + } + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java index 24c22eae240d..f2598231c7e0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java @@ -67,7 +67,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified snapshot. + * @return details of the specified snapshot along with {@link Response}. */ Response getWithResponse( String resourceGroupName, @@ -158,6 +158,50 @@ void delete( String snapshotName, Context context); + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @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. + */ + void restoreFiles( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body); + + /** + * Restore the specified files from the specified snapshot to the active filesystem. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param snapshotName The name of the snapshot. + * @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. + */ + void restoreFiles( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + SnapshotRestoreFiles body, + Context context); + /** * Get details of the specified snapshot. * @@ -165,7 +209,7 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified snapshot. + * @return details of the specified snapshot along with {@link Response}. */ Snapshot getById(String id); @@ -177,7 +221,7 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified snapshot. + * @return details of the specified snapshot along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java new file mode 100644 index 000000000000..476f8df999c2 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java @@ -0,0 +1,232 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; + +/** An immutable client-side representation of SubvolumeInfo. */ +public interface SubvolumeInfo { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the path property: path Path to the subvolume. + * + * @return the path value. + */ + String path(); + + /** + * Gets the size property: size Truncate subvolume to the provided size in bytes. + * + * @return the size value. + */ + Long size(); + + /** + * Gets the parentPath property: name parent path to the subvolume. + * + * @return the parentPath value. + */ + String parentPath(); + + /** + * Gets the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + String provisioningState(); + + /** + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner object. + * + * @return the inner object. + */ + SubvolumeInfoInner innerModel(); + + /** The entirety of the SubvolumeInfo definition. */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + /** The SubvolumeInfo definition stages. */ + interface DefinitionStages { + /** The first stage of the SubvolumeInfo definition. */ + interface Blank extends WithParentResource { + } + /** The stage of the SubvolumeInfo definition allowing to specify parent resource. */ + interface WithParentResource { + /** + * Specifies resourceGroupName, accountName, poolName, volumeName. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @return the next definition stage. + */ + WithCreate withExistingVolume( + String resourceGroupName, String accountName, String poolName, String volumeName); + } + /** + * The stage of the SubvolumeInfo definition which contains all the minimum required properties for the resource + * to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate + extends DefinitionStages.WithPath, DefinitionStages.WithSize, DefinitionStages.WithParentPath { + /** + * Executes the create request. + * + * @return the created resource. + */ + SubvolumeInfo create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + SubvolumeInfo create(Context context); + } + /** The stage of the SubvolumeInfo definition allowing to specify path. */ + interface WithPath { + /** + * Specifies the path property: path Path to the subvolume. + * + * @param path path Path to the subvolume. + * @return the next definition stage. + */ + WithCreate withPath(String path); + } + /** The stage of the SubvolumeInfo definition allowing to specify size. */ + interface WithSize { + /** + * Specifies the size property: size Truncate subvolume to the provided size in bytes. + * + * @param size size Truncate subvolume to the provided size in bytes. + * @return the next definition stage. + */ + WithCreate withSize(Long size); + } + /** The stage of the SubvolumeInfo definition allowing to specify parentPath. */ + interface WithParentPath { + /** + * Specifies the parentPath property: name parent path to the subvolume. + * + * @param parentPath name parent path to the subvolume. + * @return the next definition stage. + */ + WithCreate withParentPath(String parentPath); + } + } + /** + * Begins update for the SubvolumeInfo resource. + * + * @return the stage of resource update. + */ + SubvolumeInfo.Update update(); + + /** The template for SubvolumeInfo update. */ + interface Update extends UpdateStages.WithSize, UpdateStages.WithPath { + /** + * Executes the update request. + * + * @return the updated resource. + */ + SubvolumeInfo apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + SubvolumeInfo apply(Context context); + } + /** The SubvolumeInfo update stages. */ + interface UpdateStages { + /** The stage of the SubvolumeInfo update allowing to specify size. */ + interface WithSize { + /** + * Specifies the size property: size Truncate subvolume to the provided size in bytes. + * + * @param size size Truncate subvolume to the provided size in bytes. + * @return the next definition stage. + */ + Update withSize(Long size); + } + /** The stage of the SubvolumeInfo update allowing to specify path. */ + interface WithPath { + /** + * Specifies the path property: path path to the subvolume. + * + * @param path path path to the subvolume. + * @return the next definition stage. + */ + Update withPath(String path); + } + } + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + SubvolumeInfo refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + SubvolumeInfo refresh(Context context); + + /** + * Get details of the specified subvolume. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume. + */ + SubvolumeModel getMetadata(); + + /** + * Get details of the specified subvolume. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume. + */ + SubvolumeModel getMetadata(Context context); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java new file mode 100644 index 000000000000..48ac773ccf24 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner; +import java.time.OffsetDateTime; + +/** An immutable client-side representation of SubvolumeModel. */ +public interface SubvolumeModel { + /** + * Gets the id property: Resource Id. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: Resource name. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: Resource type. + * + * @return the type value. + */ + String type(); + + /** + * Gets the path property: path Path to the subvolume. + * + * @return the path value. + */ + String path(); + + /** + * Gets the parentPath property: parentpath Path to the parent subvolume. + * + * @return the parentPath value. + */ + String parentPath(); + + /** + * Gets the size property: size Size of subvolume. + * + * @return the size value. + */ + Long size(); + + /** + * Gets the bytesUsed property: bytesUsed Bytes used. + * + * @return the bytesUsed value. + */ + Long bytesUsed(); + + /** + * Gets the permissions property: permissions Permissions of the subvolume. + * + * @return the permissions value. + */ + String permissions(); + + /** + * Gets the creationTimestamp property: creationTimeStamp Creation time and date. + * + * @return the creationTimestamp value. + */ + OffsetDateTime creationTimestamp(); + + /** + * Gets the accessedTimestamp property: accessedTimeStamp Most recent access time and date. + * + * @return the accessedTimestamp value. + */ + OffsetDateTime accessedTimestamp(); + + /** + * Gets the modifiedTimestamp property: modifiedTimeStamp Most recent modification time and date. + * + * @return the modifiedTimestamp value. + */ + OffsetDateTime modifiedTimestamp(); + + /** + * Gets the changedTimestamp property: changedTimeStamp Most recent change time and date. + * + * @return the changedTimestamp value. + */ + OffsetDateTime changedTimestamp(); + + /** + * Gets the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + String provisioningState(); + + /** + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner object. + * + * @return the inner object. + */ + SubvolumeModelInner innerModel(); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java new file mode 100644 index 000000000000..f4003c36f2b1 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Subvolume Patch Request properties. */ +@Fluent +public final class SubvolumePatchRequest { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumePatchRequest.class); + + /* + * Subvolume Properties + */ + @JsonProperty(value = "properties") + private SubvolumePatchParams innerProperties; + + /** + * Get the innerProperties property: Subvolume Properties. + * + * @return the innerProperties value. + */ + private SubvolumePatchParams innerProperties() { + return this.innerProperties; + } + + /** + * Get the size property: size Truncate subvolume to the provided size in bytes. + * + * @return the size value. + */ + public Long size() { + return this.innerProperties() == null ? null : this.innerProperties().size(); + } + + /** + * Set the size property: size Truncate subvolume to the provided size in bytes. + * + * @param size the size value to set. + * @return the SubvolumePatchRequest object itself. + */ + public SubvolumePatchRequest withSize(Long size) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumePatchParams(); + } + this.innerProperties().withSize(size); + return this; + } + + /** + * Get the path property: path path to the subvolume. + * + * @return the path value. + */ + public String path() { + return this.innerProperties() == null ? null : this.innerProperties().path(); + } + + /** + * Set the path property: path path to the subvolume. + * + * @param path the path value to set. + * @return the SubvolumePatchRequest object itself. + */ + public SubvolumePatchRequest withPath(String path) { + if (this.innerProperties() == null) { + this.innerProperties = new SubvolumePatchParams(); + } + this.innerProperties().withPath(path); + 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/models/Subvolumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java new file mode 100644 index 000000000000..1ce6cc1e9f3d --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java @@ -0,0 +1,206 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** Resource collection API of Subvolumes. */ +public interface Subvolumes { + /** + * Returns a list of the subvolumes in the volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes. + */ + PagedIterable listByVolume( + String resourceGroupName, String accountName, String poolName, String volumeName); + + /** + * Returns a list of the subvolumes in the volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes. + */ + PagedIterable listByVolume( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + + /** + * Returns the path associated with the subvolumeName provided. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return subvolume Information properties. + */ + SubvolumeInfo get( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + + /** + * Returns the path associated with the subvolumeName provided. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return subvolume Information properties along with {@link Response}. + */ + Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context); + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + + /** + * Delete subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context); + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume. + */ + SubvolumeModel getMetadata( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + + /** + * Get details of the specified subvolume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified subvolume. + */ + SubvolumeModel getMetadata( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context); + + /** + * Returns the path associated with the subvolumeName provided. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return subvolume Information properties along with {@link Response}. + */ + SubvolumeInfo getById(String id); + + /** + * Returns the path associated with the subvolumeName provided. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return subvolume Information properties along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete subvolume. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Delete subvolume. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new SubvolumeInfo resource. + * + * @param name resource name. + * @return the first stage of the new SubvolumeInfo definition. + */ + SubvolumeInfo.DefinitionStages.Blank define(String name); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java new file mode 100644 index 000000000000..be7da064bbdc --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** List of Subvolumes. */ +@Fluent +public final class SubvolumesList { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumesList.class); + + /* + * A list of Subvolumes + */ + @JsonProperty(value = "value") + private List value; + + /* + * URL to get the next set of results. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /** + * Get the value property: A list of Subvolumes. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: A list of Subvolumes. + * + * @param value the value value to set. + * @return the SubvolumesList object itself. + */ + public SubvolumesList withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: URL to get the next set of results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: URL to get the next set of results. + * + * @param nextLink the nextLink value to set. + * @return the SubvolumesList object itself. + */ + public SubvolumesList withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java index 2c051578eb26..bdba95b1cd91 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; @@ -55,6 +56,13 @@ public interface Volume { */ String etag(); + /** + * Gets the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the fileSystemId property: FileSystem ID Unique FileSystem Identifier. * @@ -316,6 +324,14 @@ public interface Volume { */ Long defaultGroupQuotaInKiBs(); + /** + * Gets the maximumNumberOfFiles property: Maximum number of files allowed. Needs a service request in order to be + * changed. Only allowed to be changed if volume quota is more than 4TiB. + * + * @return the maximumNumberOfFiles value. + */ + Long maximumNumberOfFiles(); + /** * Gets the volumeGroupName property: Volume Group Name. * @@ -361,6 +377,13 @@ public interface Volume { */ List placementRules(); + /** + * Gets the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the volume. + * + * @return the enableSubvolumes value. + */ + EnableSubvolumes enableSubvolumes(); + /** * Gets the region of the resource. * @@ -498,7 +521,8 @@ interface WithCreate DefinitionStages.WithCapacityPoolResourceId, DefinitionStages.WithProximityPlacementGroup, DefinitionStages.WithVolumeSpecName, - DefinitionStages.WithPlacementRules { + DefinitionStages.WithPlacementRules, + DefinitionStages.WithEnableSubvolumes { /** * Executes the create request. * @@ -845,6 +869,17 @@ interface WithPlacementRules { */ WithCreate withPlacementRules(List placementRules); } + /** The stage of the Volume definition allowing to specify enableSubvolumes. */ + interface WithEnableSubvolumes { + /** + * Specifies the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the + * volume. + * + * @param enableSubvolumes Flag indicating whether subvolume operations are enabled on the volume. + * @return the next definition stage. + */ + WithCreate withEnableSubvolumes(EnableSubvolumes enableSubvolumes); + } } /** * Begins update for the Volume resource. @@ -863,7 +898,8 @@ interface Update UpdateStages.WithDataProtection, UpdateStages.WithIsDefaultQuotaEnabled, UpdateStages.WithDefaultUserQuotaInKiBs, - UpdateStages.WithDefaultGroupQuotaInKiBs { + UpdateStages.WithDefaultGroupQuotaInKiBs, + UpdateStages.WithUnixPermissions { /** * Executes the update request. * @@ -983,6 +1019,24 @@ interface WithDefaultGroupQuotaInKiBs { */ Update withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs); } + /** The stage of the Volume update allowing to specify unixPermissions. */ + interface WithUnixPermissions { + /** + * Specifies the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. + * First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects + * permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for + * other users in the same group. the fourth for other users not in the group. 0755 - gives + * read/write/execute permissions to owner and read/execute to group and other users.. + * + * @param unixPermissions UNIX permissions for NFS volume accepted in octal 4 digit format. First digit + * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects + * permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions + * for other users in the same group. the fourth for other users not in the group. 0755 - gives + * read/write/execute permissions to owner and read/execute to group and other users. + * @return the next definition stage. + */ + Update withUnixPermissions(String unixPermissions); + } } /** * Refreshes the resource to sync with Azure. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java index cc5476fbbce9..f906fe0ffe04 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java @@ -814,6 +814,16 @@ public VolumeGroupVolumeProperties withDefaultGroupQuotaInKiBs(Long defaultGroup return this; } + /** + * Get the maximumNumberOfFiles property: Maximum number of files allowed. Needs a service request in order to be + * changed. Only allowed to be changed if volume quota is more than 4TiB. + * + * @return the maximumNumberOfFiles value. + */ + public Long maximumNumberOfFiles() { + return this.innerProperties() == null ? null : this.innerProperties().maximumNumberOfFiles(); + } + /** * Get the volumeGroupName property: Volume Group Name. * @@ -928,6 +938,29 @@ public VolumeGroupVolumeProperties withPlacementRules(List getWithResponse( String resourceGroupName, String accountName, String volumeGroupName, Context context); @@ -95,7 +95,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified volume group. + * @return details of the specified volume group along with {@link Response}. */ VolumeGroupDetails getById(String id); @@ -107,7 +107,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified volume group. + * @return details of the specified volume group along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java index 7890f939392a..75abb67731f3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java @@ -240,6 +240,37 @@ public VolumePatch withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { return this; } + /** + * Get the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit + * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the + * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same + * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and + * read/execute to group and other users. + * + * @return the unixPermissions value. + */ + public String unixPermissions() { + return this.innerProperties() == null ? null : this.innerProperties().unixPermissions(); + } + + /** + * Set the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit + * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the + * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same + * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and + * read/execute to group and other users. + * + * @param unixPermissions the unixPermissions value to set. + * @return the VolumePatch object itself. + */ + public VolumePatch withUnixPermissions(String unixPermissions) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumePatchProperties(); + } + this.innerProperties().withUnixPermissions(unixPermissions); + return this; + } + /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java index 3840f878a51d..bfc26a0137f0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java @@ -62,11 +62,26 @@ public interface Volumes { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume. + * @return the details of the specified volume along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + /** + * Delete the specified volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete); + /** * Delete the specified volume. * @@ -87,12 +102,20 @@ Response getWithResponse( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void delete( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + Boolean forceDelete, + Context context); /** * Revert a volume to the snapshot specified in the body. @@ -204,7 +227,7 @@ ReplicationStatus replicationStatus( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication. + * @return the status of the replication along with {@link Response}. */ Response replicationStatusWithResponse( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); @@ -374,7 +397,7 @@ void poolChange( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume. + * @return the details of the specified volume along with {@link Response}. */ Volume getById(String id); @@ -386,7 +409,7 @@ void poolChange( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume. + * @return the details of the specified volume along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -404,12 +427,14 @@ void poolChange( * Delete the specified volume. * * @param id the resource ID. + * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deleteByIdWithResponse(String id, Context context); + void deleteByIdWithResponse(String id, Boolean forceDelete, Context context); /** * Begins definition for a new Volume resource. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsDeleteSamples.java index 944ff2105fda..95a463d750dc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for AccountBackups Delete. */ public final class AccountBackupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Account_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_Delete.json */ /** * Sample code: AccountBackups_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsGetSamples.java index 7e3090611d8c..03ab8f8265a8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for AccountBackups Get. */ public final class AccountBackupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Account_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_Get.json */ /** * Sample code: AccountBackups_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsListSamples.java index 6bc11929f8a8..4b0eee224d3d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountBackupsListSamples.java @@ -9,7 +9,7 @@ /** Samples for AccountBackups List. */ public final class AccountBackupsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Account_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_List.json */ /** * Sample code: AccountBackups_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java index 09b19b689418..56a18af054e8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for Accounts CreateOrUpdate. */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -32,7 +32,7 @@ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAp .withDomain("10.10.10.3") .withDns("10.10.10.3, 10.10.10.4") .withSmbServerName("SMBServer") - .withOrganizationalUnit("Engineering") + .withOrganizationalUnit("OU=Engineering") .withSite("SiteName") .withAesEncryption(true) .withLdapSigning(false) diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java index 47cefae58912..07a46d8827ab 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Accounts Delete. */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java index 6035cf340553..0e03bb1d3e2c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Accounts GetByResourceGroup. */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Get.json */ /** * Sample code: Accounts_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java index 9fe85227dc20..e3bc022da6af 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Accounts ListByResourceGroup. */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java index e302d8dea139..39b468d0f576 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Accounts List. */ public final class AccountsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java index 4cc5a3c860bb..5050dd399fab 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for Accounts Update. */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Update.json */ /** * Sample code: Accounts_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java index 618c31bc0673..ea4f762ab03d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupPolicies Create. */ public final class BackupPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java index b31f18109178..8271d6b7b5dc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for BackupPolicies Delete. */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Delete.json */ /** * Sample code: Backups_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java index 47c5c80452c8..05d0a95a4ad2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for BackupPolicies Get. */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Get.json */ /** * Sample code: Backups_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java index e2bb1dfaa560..d5ad18a2a93f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java @@ -9,7 +9,7 @@ /** Samples for BackupPolicies List. */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_List.json */ /** * Sample code: Backups_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java index 754635aefd35..ca118a2c1a68 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for BackupPolicies Update. */ public final class BackupPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java index 634614601c82..6744f166d32e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java @@ -7,7 +7,7 @@ /** Samples for Backups Create. */ public final class BackupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Create.json */ /** * Sample code: Backups_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java index 3fad16de56f0..34a6aa0d21de 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Backups Delete. */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Delete.json */ /** * Sample code: Backups_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java index 8ce84116857b..405f58ec4921 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Backups Get. */ public final class BackupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Get.json */ /** * Sample code: Backups_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetStatusSamples.java index a18ed0248b30..223b2582f83d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetStatusSamples.java @@ -9,7 +9,7 @@ /** Samples for Backups GetStatus. */ public final class BackupsGetStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_BackupStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_BackupStatus.json */ /** * Sample code: Volumes_BackupStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusSamples.java index d0ae52fc1b0c..4336960c29ec 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusSamples.java @@ -9,7 +9,7 @@ /** Samples for Backups GetVolumeRestoreStatus. */ public final class BackupsGetVolumeRestoreStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_RestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListSamples.java index a41620d83ae4..282846f5d74b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Backups List. */ public final class BackupsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_List.json */ /** * Sample code: Backups_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java index 23dfd409516a..218bf2235aaa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for Backups Update. */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Update.json */ /** * Sample code: Backups_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java index ce5d25739138..1fbc626daf72 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java @@ -10,7 +10,7 @@ /** Samples for NetAppResource CheckFilePathAvailability. */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java index 575c5e2b3ffb..c74c3b51720f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java @@ -11,7 +11,7 @@ /** Samples for NetAppResource CheckNameAvailability. */ public final class NetAppResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java index c623f6d2d23f..db3315955d27 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java @@ -11,7 +11,7 @@ /** Samples for NetAppResource CheckQuotaAvailability. */ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java index d9dc6b1b90ed..bb8fe536d24d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for NetAppResourceQuotaLimits Get. */ public final class NetAppResourceQuotaLimitsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/QuotaLimits_Get.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java index 3d308f0b2959..f820a4d73d9f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java @@ -9,7 +9,7 @@ /** Samples for NetAppResourceQuotaLimits List. */ public final class NetAppResourceQuotaLimitsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/QuotaLimits_List.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java new file mode 100644 index 000000000000..c7f3a5e9c20a --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +import com.azure.core.util.Context; + +/** Samples for Operations List. */ +public final class OperationsListSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/OperationList.json + */ + /** + * Sample code: OperationList. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void operationList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.operations().list(Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java index 204c2ef20b2a..60c565566259 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for Pools CreateOrUpdate. */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java index f3706dfd811d..6e0f9a6fa1cb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Pools Delete. */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Delete.json */ /** * Sample code: Pools_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java index 72a646ffdb8c..a0a00bf31f89 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Pools Get. */ public final class PoolsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Get.json */ /** * Sample code: Pools_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java index c162871c5cfb..3d22232eb339 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Pools List. */ public final class PoolsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_List.json */ /** * Sample code: Pools_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java index 9d456aa0c8d7..6d376d7f47ca 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for Pools Update. */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Update.json */ /** * Sample code: Pools_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java index c5410d353608..43b970864c82 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java @@ -12,7 +12,7 @@ /** Samples for SnapshotPolicies Create. */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. @@ -31,6 +31,7 @@ public static void snapshotPoliciesCreate(com.azure.resourcemanager.netapp.NetAp 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(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java index 1b22f01a0a8a..3f12113cc429 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for SnapshotPolicies Delete. */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java index aa2433bdcb56..2e1c0ce29383 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for SnapshotPolicies Get. */ public final class SnapshotPoliciesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java index eb2c680033ec..33252fbd8d1c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java @@ -9,7 +9,7 @@ /** Samples for SnapshotPolicies List. */ public final class SnapshotPoliciesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java index 47f13995393d..d88bd7900d48 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java @@ -9,7 +9,7 @@ /** Samples for SnapshotPolicies ListVolumes. */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java index 422ad5855408..d7ae111af577 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java @@ -14,7 +14,7 @@ /** Samples for SnapshotPolicies Update. */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java index b890e011fef6..70a3eeb82674 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java @@ -7,7 +7,7 @@ /** Samples for Snapshots Create. */ public final class SnapshotsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java index 3b9ca6e0fe31..29d8ad4171ce 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Snapshots Delete. */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java index b35c6477bda3..3c1235fb3057 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Snapshots Get. */ public final class SnapshotsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java index 43ab047dd873..474f4ebf35fd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Snapshots List. */ public final class SnapshotsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_List.json */ /** * Sample code: Snapshots_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java new file mode 100644 index 000000000000..60f85f58b9e4 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; +import java.util.Arrays; + +/** Samples for Snapshots RestoreFiles. */ +public final class SnapshotsRestoreFilesSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_SingleFileRestore.json + */ + /** + * Sample code: Snapshots_SingleFileRestore. + * + * @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")), + Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java index 96ebf1ebefa6..4ea42d25dd9c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for Snapshots Update. */ public final class SnapshotsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Update.json */ /** * Sample code: Snapshots_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java new file mode 100644 index 000000000000..61952674735e --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +/** Samples for Subvolumes Create. */ +public final class SubvolumesCreateSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Create.json + */ + /** + * Sample code: Subvolumes_Create. + * + * @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(); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java new file mode 100644 index 000000000000..355b9bee4ab2 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +import com.azure.core.util.Context; + +/** Samples for Subvolumes Delete. */ +public final class SubvolumesDeleteSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Delete.json + */ + /** + * Sample code: Subvolumes_Delete. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void subvolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.subvolumes().delete("myRG", "account1", "pool1", "volume1", "subvolume1", Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java new file mode 100644 index 000000000000..5d85b9b5ccc4 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +import com.azure.core.util.Context; + +/** Samples for Subvolumes GetMetadata. */ +public final class SubvolumesGetMetadataSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Metadata.json + */ + /** + * Sample code: Subvolumes_Metadata. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void subvolumesMetadata(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.subvolumes().getMetadata("myRG", "account1", "pool1", "volume1", "subvolume1", Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java new file mode 100644 index 000000000000..637942a891fb --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +import com.azure.core.util.Context; + +/** Samples for Subvolumes Get. */ +public final class SubvolumesGetSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Get.json + */ + /** + * Sample code: Subvolumes_Get. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void subvolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.subvolumes().getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java new file mode 100644 index 000000000000..dade5886e987 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +import com.azure.core.util.Context; + +/** Samples for Subvolumes ListByVolume. */ +public final class SubvolumesListByVolumeSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_List.json + */ + /** + * Sample code: Subvolumes_List. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void subvolumesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.subvolumes().listByVolume("myRG", "account1", "pool1", "volume1", Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java new file mode 100644 index 000000000000..89156d49c165 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.models.SubvolumeInfo; + +/** Samples for Subvolumes Update. */ +public final class SubvolumesUpdateSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Update.json + */ + /** + * Sample code: Subvolumes_Update. + * + * @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", Context.NONE) + .getValue(); + resource.update().withPath("/subvolumePath").apply(); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VaultsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VaultsListSamples.java index 75dbef25bdcc..298ef3264754 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VaultsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VaultsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Vaults List. */ public final class VaultsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Vaults_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Vaults_List.json */ /** * Sample code: Vaults_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java index 996f7b0c445d..d3ca239b7cfd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java @@ -13,7 +13,7 @@ /** Samples for VolumeGroups Create. */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/VolumeGroups_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Create.json */ /** * Sample code: VolumeGroups_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java index a6f31e620cfb..7277310ed37c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for VolumeGroups Delete. */ public final class VolumeGroupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Delete.json */ /** * Sample code: VolumeGroups_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java index 2ceab0fcdd3a..a6922195b9d8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for VolumeGroups Get. */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/VolumeGroups_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Get.json */ /** * Sample code: VolumeGroups_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java index 202592b47e1b..58ac083899cf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java @@ -9,7 +9,7 @@ /** Samples for VolumeGroups ListByNetAppAccount. */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/VolumeGroups_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_List.json */ /** * Sample code: VolumeGroups_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java index 39a4597c3ea0..87f65422549e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java @@ -10,7 +10,7 @@ /** Samples for Volumes AuthorizeReplication. */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java index da966e3fd7d2..ef5d97aef16c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java @@ -10,7 +10,7 @@ /** Samples for Volumes BreakReplication. */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java index 339a3bc433de..0a5b4d7e7071 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ /** Samples for Volumes CreateOrUpdate. */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java index 1fbb2a2f5a41..40d590b413b7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java @@ -9,7 +9,7 @@ /** Samples for Volumes DeleteReplication. */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java index de0cf4a8a287..1983a5e85a97 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Volumes Delete. */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. @@ -17,6 +17,6 @@ public final class VolumesDeleteSamples { * @param manager Entry point to NetAppFilesManager. */ public static void volumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().delete("myRG", "account1", "pool1", "volume1", Context.NONE); + manager.volumes().delete("myRG", "account1", "pool1", "volume1", null, Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java index ae636a8a3fd2..050e7b653d0c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Volumes Get. */ public final class VolumesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Get.json */ /** * Sample code: Volumes_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java index 02c50346250e..294e3c3270f1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java @@ -9,7 +9,7 @@ /** Samples for Volumes List. */ public final class VolumesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_List.json */ /** * Sample code: Volumes_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java index 0b32f746ebff..a2cb9d5a945d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java @@ -10,7 +10,7 @@ /** Samples for Volumes PoolChange. */ public final class VolumesPoolChangeSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_PoolChange.json */ /** * Sample code: Volumes_AuthorizeReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java index 865457c84866..cbd857c051a8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java @@ -9,7 +9,7 @@ /** Samples for Volumes ReInitializeReplication. */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java index a9afd6232163..37e0dd6fdb04 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java @@ -9,7 +9,7 @@ /** Samples for Volumes ReplicationStatus. */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java index 8a2e3df58ae9..5260e6485705 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java @@ -9,7 +9,7 @@ /** Samples for Volumes ResyncReplication. */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java index 3adcbda34281..ee0166e82ed7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java @@ -10,7 +10,7 @@ /** Samples for Volumes Revert. */ public final class VolumesRevertSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java index 68a9f29cbb1e..6170d648abcc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for Volumes Update. */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Update.json */ /** * Sample code: Volumes_Update.