diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index a306d36c5e54c..edbd237f91f48 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.7 (Unreleased) +## 1.0.0-beta.1 (2021-11-16) + +- 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). ### Features Added diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index 8555f85bc964b..82e1c99d3c3e2 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-06-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-08-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.6 + 1.0.0-beta.7 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md index f9559dceb1076..bcb296ce88f39 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md +++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md @@ -74,6 +74,13 @@ - [List](#vaults_list) +## VolumeGroups + +- [Create](#volumegroups_create) +- [Delete](#volumegroups_delete) +- [Get](#volumegroups_get) +- [ListByNetAppAccount](#volumegroups_listbynetappaccount) + ## Volumes - [AuthorizeReplication](#volumes_authorizereplication) @@ -97,7 +104,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-06-01/examples/Backups_Account_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Account_Delete.json */ /** * Sample code: AccountBackups_Delete. @@ -118,7 +125,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-06-01/examples/Backups_Account_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Account_Get.json */ /** * Sample code: AccountBackups_Get. @@ -139,7 +146,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-06-01/examples/Backups_Account_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Account_List.json */ /** * Sample code: AccountBackups_List. @@ -161,7 +168,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-06-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -201,7 +208,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-06-01/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. @@ -222,7 +229,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-06-01/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_Get.json */ /** * Sample code: Accounts_Get. @@ -243,7 +250,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-06-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. @@ -264,7 +271,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-06-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. @@ -288,7 +295,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-06-01/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_Update.json */ /** * Sample code: Accounts_Update. @@ -320,7 +327,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-06-01/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. @@ -350,7 +357,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-06-01/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Delete.json */ /** * Sample code: Backups_Delete. @@ -371,7 +378,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-06-01/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Get.json */ /** * Sample code: Backups_Get. @@ -392,7 +399,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-06-01/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_List.json */ /** * Sample code: Backups_List. @@ -414,7 +421,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-06-01/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. @@ -441,7 +448,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-06-01/examples/Backups_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Create.json */ /** * Sample code: Backups_Create. @@ -468,7 +475,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-06-01/examples/Backups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Delete.json */ /** * Sample code: Backups_Delete. @@ -489,7 +496,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-06-01/examples/Backups_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Get.json */ /** * Sample code: Backups_Get. @@ -510,7 +517,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-06-01/examples/Volumes_BackupStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_BackupStatus.json */ /** * Sample code: Volumes_BackupStatus. @@ -531,7 +538,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-06-01/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_RestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. @@ -552,7 +559,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-06-01/examples/Backups_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_List.json */ /** * Sample code: Backups_List. @@ -574,7 +581,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-06-01/examples/Backups_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Backups_Update.json */ /** * Sample code: Backups_Update. @@ -601,7 +608,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-06-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. @@ -632,7 +639,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-06-01/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. @@ -663,7 +670,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-06-01/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. @@ -692,7 +699,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-06-01/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/QuotaLimits_Get.json */ /** * Sample code: QuotaLimits. @@ -715,7 +722,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-06-01/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/QuotaLimits_List.json */ /** * Sample code: QuotaLimits. @@ -737,7 +744,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-06-01/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. @@ -766,7 +773,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-06-01/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_Delete.json */ /** * Sample code: Pools_Delete. @@ -787,7 +794,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-06-01/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_Get.json */ /** * Sample code: Pools_Get. @@ -808,7 +815,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-06-01/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_List.json */ /** * Sample code: Pools_List. @@ -830,7 +837,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-06-01/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -855,7 +862,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-06-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. @@ -887,7 +894,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-06-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. @@ -908,7 +915,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-06-01/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. @@ -929,7 +936,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-06-01/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. @@ -950,7 +957,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-06-01/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. @@ -976,7 +983,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-06-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. @@ -1009,7 +1016,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-06-01/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. @@ -1035,7 +1042,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-06-01/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. @@ -1056,7 +1063,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-06-01/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. @@ -1077,7 +1084,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-06-01/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_List.json */ /** * Sample code: Snapshots_List. @@ -1101,7 +1108,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-06-01/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Snapshots_Update.json */ /** * Sample code: Snapshots_Update. @@ -1133,7 +1140,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-06-01/examples/Vaults_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Vaults_List.json */ /** * Sample code: Vaults_List. @@ -1146,6 +1153,147 @@ public final class VaultsListSamples { } ``` +### VolumeGroups_Create + +```java +import com.azure.resourcemanager.netapp.models.ApplicationType; +import com.azure.resourcemanager.netapp.models.ServiceLevel; +import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; +import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties; +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 + */ + /** + * Sample code: VolumeGroups_Create. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumeGroupsCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager + .volumeGroups() + .define("group1") + .withExistingNetAppAccount("myRG", "account1") + .withRegion("westus") + .withGroupMetadata( + new VolumeGroupMetadata() + .withGroupDescription("Volume group") + .withApplicationType(ApplicationType.SAP_HANA) + .withApplicationIdentifier("DEV") + .withDeploymentSpecId("fb04dbeb-005d-2703-197e-6208dfadb5d9")) + .withVolumes( + Arrays + .asList( + new VolumeGroupVolumeProperties() + .withName("testVol1") + .withCreationToken("testVol1") + .withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + .withThroughputMibps(10.0f) + .withCapacityPoolResourceId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + .withProximityPlacementGroup( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + .withVolumeSpecName("data"), + new VolumeGroupVolumeProperties() + .withName("testVol2") + .withCreationToken("testVol2") + .withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + .withThroughputMibps(10.0f) + .withCapacityPoolResourceId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + .withProximityPlacementGroup( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + .withVolumeSpecName("log"), + new VolumeGroupVolumeProperties() + .withName("testVol3") + .withCreationToken("testVol3") + .withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + .withThroughputMibps(10.0f) + .withCapacityPoolResourceId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + .withProximityPlacementGroup( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + .withVolumeSpecName("shared"))) + .create(); + } +} +``` + +### VolumeGroups_Delete + +```java +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 + */ + /** + * Sample code: VolumeGroups_Delete. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumeGroupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.volumeGroups().delete("myRG", "account1", "group1", Context.NONE); + } +} +``` + +### VolumeGroups_Get + +```java +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 + */ + /** + * Sample code: VolumeGroups_Get. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumeGroupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.volumeGroups().getWithResponse("myRG", "account1", "group1", Context.NONE); + } +} +``` + +### VolumeGroups_ListByNetAppAccount + +```java +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 + */ + /** + * Sample code: VolumeGroups_List. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumeGroupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.volumeGroups().listByNetAppAccount("myRG", "account1", Context.NONE); + } +} +``` + ### Volumes_AuthorizeReplication ```java @@ -1155,7 +1303,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-06-01/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -1187,7 +1335,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-06-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. @@ -1216,7 +1364,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-06-01/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. @@ -1249,7 +1397,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-06-01/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. @@ -1270,7 +1418,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-06-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. @@ -1291,7 +1439,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-06-01/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Get.json */ /** * Sample code: Volumes_Get. @@ -1312,7 +1460,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-06-01/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_List.json */ /** * Sample code: Volumes_List. @@ -1334,7 +1482,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-06-01/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_PoolChange.json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -1365,7 +1513,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-06-01/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. @@ -1386,7 +1534,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-06-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. @@ -1407,7 +1555,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-06-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. @@ -1429,7 +1577,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-06-01/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. @@ -1461,7 +1609,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-06-01/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 84f5ec35a5902..41abf74269c8b 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-06-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-08-01. https://github.com/Azure/azure-sdk-for-java @@ -38,7 +38,10 @@ UTF-8 - + true + false + + @@ -72,14 +75,6 @@ - - org.jacoco - jacoco-maven-plugin - 0.8.7 - - true - - org.revapi revapi-maven-plugin 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 e7072dbe099b6..1cc3d228ab1b4 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 @@ -8,6 +8,7 @@ import com.azure.core.http.HttpClient; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; @@ -33,6 +34,7 @@ import com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesImpl; import com.azure.resourcemanager.netapp.implementation.SnapshotsImpl; import com.azure.resourcemanager.netapp.implementation.VaultsImpl; +import com.azure.resourcemanager.netapp.implementation.VolumeGroupsImpl; import com.azure.resourcemanager.netapp.implementation.VolumesImpl; import com.azure.resourcemanager.netapp.models.AccountBackups; import com.azure.resourcemanager.netapp.models.Accounts; @@ -45,12 +47,14 @@ import com.azure.resourcemanager.netapp.models.SnapshotPolicies; import com.azure.resourcemanager.netapp.models.Snapshots; import com.azure.resourcemanager.netapp.models.Vaults; +import com.azure.resourcemanager.netapp.models.VolumeGroups; import com.azure.resourcemanager.netapp.models.Volumes; import java.time.Duration; import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import java.util.stream.Collectors; /** Entry point to NetAppFilesManager. Microsoft NetApp Files Azure Resource Provider specification. */ public final class NetAppFilesManager { @@ -78,6 +82,8 @@ public final class NetAppFilesManager { private Vaults vaults; + private VolumeGroups volumeGroups; + private final NetAppManagementClient clientObject; private NetAppFilesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -214,7 +220,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.netapp") .append("/") - .append("1.0.0-beta.6"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -237,11 +243,24 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); policies.add(new RequestIdPolicy()); + policies + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); - policies.addAll(this.policies); + policies + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .collect(Collectors.toList())); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); HttpPipeline httpPipeline = @@ -350,6 +369,14 @@ public Vaults vaults() { return vaults; } + /** @return Resource collection API of VolumeGroups. */ + public VolumeGroups volumeGroups() { + if (this.volumeGroups == null) { + this.volumeGroups = new VolumeGroupsImpl(clientObject.getVolumeGroups(), this); + } + return volumeGroups; + } + /** * @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 1cc9a2256b037..e8e6f27fac636 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 @@ -83,7 +83,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String backupName); /** @@ -98,7 +98,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupName, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java index 837c6d7b6f8ae..983803ff4286a 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 @@ -102,7 +102,7 @@ Response getByResourceGroupWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginCreateOrUpdate( String resourceGroupName, String accountName, NetAppAccountInner body); @@ -118,7 +118,7 @@ SyncPoller, NetAppAccountInner> beginCreateOrUpda * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginCreateOrUpdate( String resourceGroupName, String accountName, NetAppAccountInner body, Context context); @@ -162,7 +162,7 @@ NetAppAccountInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName); /** @@ -176,7 +176,7 @@ NetAppAccountInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context); /** @@ -215,7 +215,7 @@ NetAppAccountInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginUpdate( String resourceGroupName, String accountName, NetAppAccountPatch body); @@ -231,7 +231,7 @@ SyncPoller, NetAppAccountInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetAppAccountInner> beginUpdate( String resourceGroupName, String accountName, NetAppAccountPatch body, Context context); 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 8b03fb87707f0..22a37ebfac990 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 @@ -85,7 +85,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginCreate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body); @@ -102,7 +102,7 @@ SyncPoller, BackupPolicyInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginCreate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body, Context context); @@ -151,7 +151,7 @@ BackupPolicyInner create( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginUpdate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body); @@ -168,7 +168,7 @@ SyncPoller, BackupPolicyInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupPolicyInner> beginUpdate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, Context context); @@ -216,7 +216,7 @@ BackupPolicyInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupPolicyName); @@ -232,7 +232,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupPolicyName, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java index 8365782a0ca6e..7315362cba49f 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 @@ -169,7 +169,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginCreate( String resourceGroupName, String accountName, @@ -193,7 +193,7 @@ SyncPoller, BackupInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginCreate( String resourceGroupName, String accountName, @@ -265,7 +265,7 @@ BackupInner create( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginUpdate( String resourceGroupName, String accountName, @@ -289,7 +289,7 @@ SyncPoller, BackupInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginUpdate( String resourceGroupName, String accountName, @@ -377,7 +377,7 @@ BackupInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName, String backupName); @@ -395,7 +395,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, 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 22a9954a7145b..72180430fb963 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 @@ -128,4 +128,11 @@ public interface NetAppManagementClient { * @return the VaultsClient object. */ VaultsClient getVaults(); + + /** + * Gets the VolumeGroupsClient object to access its operations. + * + * @return the VolumeGroupsClient object. + */ + VolumeGroupsClient getVolumeGroups(); } 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 d01a83d6b3a9d..9cf02121a0892 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 @@ -85,7 +85,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body); @@ -102,7 +102,7 @@ SyncPoller, CapacityPoolInner> beginCreateOrUpdate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context); @@ -151,7 +151,7 @@ CapacityPoolInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body); @@ -168,7 +168,7 @@ SyncPoller, CapacityPoolInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CapacityPoolInner> beginUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context); @@ -215,7 +215,7 @@ CapacityPoolInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName); /** @@ -230,7 +230,7 @@ CapacityPoolInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java index db35e9b551925..2a2cb79317a7b 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 @@ -123,7 +123,7 @@ Response createWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotPolicyInner> beginUpdate( String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body); @@ -140,7 +140,7 @@ SyncPoller, SnapshotPolicyInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotPolicyInner> beginUpdate( String resourceGroupName, String accountName, @@ -196,7 +196,7 @@ SnapshotPolicyInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String snapshotPolicyName); @@ -212,7 +212,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String snapshotPolicyName, Context context); 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 282ad0364ed76..01063b085d242 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 @@ -101,7 +101,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginCreate( String resourceGroupName, String accountName, @@ -125,7 +125,7 @@ SyncPoller, SnapshotInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginCreate( String resourceGroupName, String accountName, @@ -197,7 +197,7 @@ SnapshotInner create( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginUpdate( String resourceGroupName, String accountName, @@ -221,7 +221,7 @@ SyncPoller, SnapshotInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SnapshotInner> beginUpdate( String resourceGroupName, String accountName, @@ -292,7 +292,7 @@ SnapshotInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); @@ -310,7 +310,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, 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 new file mode 100644 index 0000000000000..117fc6dbf7260 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java @@ -0,0 +1,207 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.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.VolumeGroupDetailsInner; +import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner; + +/** An instance of this class provides access to all the operations defined in VolumeGroupsClient. */ +public interface VolumeGroupsClient { + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName); + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, Context context); + + /** + * Get details of the specified volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified volume group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + VolumeGroupDetailsInner get(String resourceGroupName, String accountName, String volumeGroupName); + + /** + * Get details of the specified volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified volume group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse( + String resourceGroupName, String accountName, String volumeGroupName, Context context); + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group 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 volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, VolumeGroupDetailsInner> beginCreate( + String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body); + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group 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 volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, VolumeGroupDetailsInner> beginCreate( + String resourceGroupName, + String accountName, + String volumeGroupName, + VolumeGroupDetailsInner body, + Context context); + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group 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 volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + VolumeGroupDetailsInner create( + String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body); + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group 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 volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + VolumeGroupDetailsInner create( + String resourceGroupName, + String accountName, + String volumeGroupName, + VolumeGroupDetailsInner body, + Context context); + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete( + String resourceGroupName, String accountName, String volumeGroupName); + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete( + String resourceGroupName, String accountName, String volumeGroupName, Context context); + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String volumeGroupName); + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String volumeGroupName, Context context); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java index a847c28d72191..6b6ec426d65b0 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 @@ -95,7 +95,7 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body); @@ -113,7 +113,7 @@ SyncPoller, VolumeInner> beginCreateOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginCreateOrUpdate( String resourceGroupName, String accountName, @@ -175,7 +175,7 @@ VolumeInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginUpdate( String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body); @@ -193,7 +193,7 @@ SyncPoller, VolumeInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginUpdate( String resourceGroupName, String accountName, @@ -254,7 +254,7 @@ VolumeInner update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName); @@ -271,7 +271,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); @@ -317,7 +317,7 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRevert( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body); @@ -335,7 +335,7 @@ SyncPoller, Void> beginRevert( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRevert( String resourceGroupName, String accountName, @@ -394,7 +394,7 @@ void revert( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginBreakReplication( String resourceGroupName, String accountName, String poolName, String volumeName, BreakReplicationRequest body); @@ -412,7 +412,7 @@ SyncPoller, Void> beginBreakReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginBreakReplication( String resourceGroupName, String accountName, @@ -519,7 +519,7 @@ Response replicationStatusWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginResyncReplication( String resourceGroupName, String accountName, String poolName, String volumeName); @@ -537,7 +537,7 @@ SyncPoller, Void> beginResyncReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginResyncReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); @@ -585,7 +585,7 @@ void resyncReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDeleteReplication( String resourceGroupName, String accountName, String poolName, String volumeName); @@ -602,7 +602,7 @@ SyncPoller, Void> beginDeleteReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDeleteReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); @@ -649,7 +649,7 @@ void deleteReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginAuthorizeReplication( String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body); @@ -667,7 +667,7 @@ SyncPoller, Void> beginAuthorizeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginAuthorizeReplication( String resourceGroupName, String accountName, @@ -726,7 +726,7 @@ void authorizeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginReInitializeReplication( String resourceGroupName, String accountName, String poolName, String volumeName); @@ -743,7 +743,7 @@ SyncPoller, Void> beginReInitializeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginReInitializeReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); @@ -790,7 +790,7 @@ void reInitializeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginPoolChange( String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body); @@ -808,7 +808,7 @@ SyncPoller, Void> beginPoolChange( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginPoolChange( String resourceGroupName, String accountName, 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 82c18ffb6b236..0c28a037d31f3 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 @@ -62,15 +62,6 @@ public BackupPolicyInner withTags(Map tags) { return this; } - /** - * Get the name property: Name of backup policy. - * - * @return the name value. - */ - public String namePropertiesName() { - return this.innerProperties() == null ? null : this.innerProperties().name(); - } - /** * Get the backupPolicyId property: Backup Policy Resource ID. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java index 3fdb39346bcca..493e91eaa8766 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java @@ -16,12 +16,6 @@ public final class BackupPolicyProperties { @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyProperties.class); - /* - * Name of backup policy - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - /* * Backup Policy Resource ID */ @@ -70,15 +64,6 @@ public final class BackupPolicyProperties { @JsonProperty(value = "volumeBackups", access = JsonProperty.Access.WRITE_ONLY) private List volumeBackups; - /** - * Get the name property: Name of backup policy. - * - * @return the name value. - */ - public String name() { - return this.name; - } - /** * Get the backupPolicyId property: Backup Policy Resource ID. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java index bddd1d41ee7f8..1424329cf5ced 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java @@ -19,14 +19,14 @@ public final class SnapshotPolicyVolumeListInner { * List of volumes */ @JsonProperty(value = "value") - private List value; + private List value; /** * Get the value property: List of volumes. * * @return the value value. */ - public List value() { + public List value() { return this.value; } @@ -36,7 +36,7 @@ public List value() { * @param value the value value to set. * @return the SnapshotPolicyVolumeListInner object itself. */ - public SnapshotPolicyVolumeListInner withValue(List value) { + public SnapshotPolicyVolumeListInner withValue(List value) { this.value = value; return this; } @@ -47,5 +47,8 @@ public SnapshotPolicyVolumeListInner withValue(List value) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java index 0c45f8a468b81..50bfde34117e4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java @@ -46,15 +46,6 @@ public SystemData systemData() { return this.systemData; } - /** - * Get the name property: Quota Item name. - * - * @return the name value. - */ - public String namePropertiesName() { - return this.innerProperties() == null ? null : this.innerProperties().name(); - } - /** * Get the current property: The current quota value. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java index 7662aa414f972..b6d4675311652 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java @@ -14,12 +14,6 @@ public final class SubscriptionQuotaItemProperties { @JsonIgnore private final ClientLogger logger = new ClientLogger(SubscriptionQuotaItemProperties.class); - /* - * Quota Item name - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - /* * The current quota value. */ @@ -32,15 +26,6 @@ public final class SubscriptionQuotaItemProperties { @JsonProperty(value = "default", access = JsonProperty.Access.WRITE_ONLY) private Integer defaultProperty; - /** - * Get the name property: Quota Item name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - /** * Get the current property: The current quota value. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java new file mode 100644 index 0000000000000..838ac7cdc7d6a --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; +import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import java.util.Map; + +/** Volume group resource for create. */ +@Fluent +public final class VolumeGroupDetailsInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupDetailsInner.class); + + /* + * Resource location + */ + @JsonProperty(value = "location") + private String location; + + /* + * 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; + + /* + * Resource tags + */ + @JsonProperty(value = "tags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map tags; + + /* + * Volume group properties + */ + @JsonProperty(value = "properties") + private VolumeGroupProperties innerProperties; + + /** + * Get the location property: Resource location. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Set the location property: Resource location. + * + * @param location the location value to set. + * @return the VolumeGroupDetailsInner object itself. + */ + public VolumeGroupDetailsInner withLocation(String location) { + this.location = location; + return this; + } + + /** + * 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 tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the VolumeGroupDetailsInner object itself. + */ + public VolumeGroupDetailsInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the innerProperties property: Volume group properties. + * + * @return the innerProperties value. + */ + private VolumeGroupProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the groupMetadata property: Volume group details. + * + * @return the groupMetadata value. + */ + public VolumeGroupMetadata groupMetadata() { + return this.innerProperties() == null ? null : this.innerProperties().groupMetadata(); + } + + /** + * Set the groupMetadata property: Volume group details. + * + * @param groupMetadata the groupMetadata value to set. + * @return the VolumeGroupDetailsInner object itself. + */ + public VolumeGroupDetailsInner withGroupMetadata(VolumeGroupMetadata groupMetadata) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeGroupProperties(); + } + this.innerProperties().withGroupMetadata(groupMetadata); + return this; + } + + /** + * Get the volumes property: List of volumes from group. + * + * @return the volumes value. + */ + public List volumes() { + return this.innerProperties() == null ? null : this.innerProperties().volumes(); + } + + /** + * Set the volumes property: List of volumes from group. + * + * @param volumes the volumes value to set. + * @return the VolumeGroupDetailsInner object itself. + */ + public VolumeGroupDetailsInner withVolumes(List volumes) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeGroupProperties(); + } + this.innerProperties().withVolumes(volumes); + 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/VolumeGroupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java new file mode 100644 index 0000000000000..c10124f594129 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java @@ -0,0 +1,175 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; + +/** Volume group resource. */ +@Fluent +public final class VolumeGroupInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupInner.class); + + /* + * Resource location + */ + @JsonProperty(value = "location") + private String location; + + /* + * 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; + + /* + * Resource tags + */ + @JsonProperty(value = "tags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map tags; + + /* + * Volume group properties + */ + @JsonProperty(value = "properties") + private VolumeGroupListProperties innerProperties; + + /** + * Get the location property: Resource location. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Set the location property: Resource location. + * + * @param location the location value to set. + * @return the VolumeGroupInner object itself. + */ + public VolumeGroupInner withLocation(String location) { + this.location = location; + return this; + } + + /** + * 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 tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the VolumeGroupInner object itself. + */ + public VolumeGroupInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the innerProperties property: Volume group properties. + * + * @return the innerProperties value. + */ + private VolumeGroupListProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the groupMetadata property: Volume group details. + * + * @return the groupMetadata value. + */ + public VolumeGroupMetadata groupMetadata() { + return this.innerProperties() == null ? null : this.innerProperties().groupMetadata(); + } + + /** + * Set the groupMetadata property: Volume group details. + * + * @param groupMetadata the groupMetadata value to set. + * @return the VolumeGroupInner object itself. + */ + public VolumeGroupInner withGroupMetadata(VolumeGroupMetadata groupMetadata) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeGroupListProperties(); + } + this.innerProperties().withGroupMetadata(groupMetadata); + 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/VolumeGroupListProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java new file mode 100644 index 0000000000000..3dbed5328b864 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Volume group properties. */ +@Fluent +public final class VolumeGroupListProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupListProperties.class); + + /* + * Azure lifecycle management + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /* + * Volume group details + */ + @JsonProperty(value = "groupMetaData") + private VolumeGroupMetadata groupMetadata; + + /** + * Get the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get the groupMetadata property: Volume group details. + * + * @return the groupMetadata value. + */ + public VolumeGroupMetadata groupMetadata() { + return this.groupMetadata; + } + + /** + * Set the groupMetadata property: Volume group details. + * + * @param groupMetadata the groupMetadata value to set. + * @return the VolumeGroupListProperties object itself. + */ + public VolumeGroupListProperties withGroupMetadata(VolumeGroupMetadata groupMetadata) { + this.groupMetadata = groupMetadata; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (groupMetadata() != null) { + groupMetadata().validate(); + } + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java new file mode 100644 index 0000000000000..15ed0c8828943 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; +import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Volume group properties. */ +@Fluent +public final class VolumeGroupProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupProperties.class); + + /* + * Azure lifecycle management + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /* + * Volume group details + */ + @JsonProperty(value = "groupMetaData") + private VolumeGroupMetadata groupMetadata; + + /* + * List of volumes from group + */ + @JsonProperty(value = "volumes") + private List volumes; + + /** + * Get the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get the groupMetadata property: Volume group details. + * + * @return the groupMetadata value. + */ + public VolumeGroupMetadata groupMetadata() { + return this.groupMetadata; + } + + /** + * Set the groupMetadata property: Volume group details. + * + * @param groupMetadata the groupMetadata value to set. + * @return the VolumeGroupProperties object itself. + */ + public VolumeGroupProperties withGroupMetadata(VolumeGroupMetadata groupMetadata) { + this.groupMetadata = groupMetadata; + return this; + } + + /** + * Get the volumes property: List of volumes from group. + * + * @return the volumes value. + */ + public List volumes() { + return this.volumes; + } + + /** + * Set the volumes property: List of volumes from group. + * + * @param volumes the volumes value to set. + * @return the VolumeGroupProperties object itself. + */ + public VolumeGroupProperties withVolumes(List volumes) { + this.volumes = volumes; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (groupMetadata() != null) { + groupMetadata().validate(); + } + if (volumes() != null) { + volumes().forEach(e -> e.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 ba39628675666..a6fcefb8ce952 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 @@ -9,6 +9,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.AvsDataStore; import com.azure.resourcemanager.netapp.models.NetworkFeatures; +import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; import com.azure.resourcemanager.netapp.models.SecurityStyle; import com.azure.resourcemanager.netapp.models.ServiceLevel; import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; @@ -536,7 +537,8 @@ public VolumeInner withSmbContinuouslyAvailable(Boolean smbContinuouslyAvailable } /** - * Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. + * Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will + * be accepted as input only for manual qosType volume. * * @return the throughputMibps value. */ @@ -545,7 +547,8 @@ public Float throughputMibps() { } /** - * Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. + * Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will + * be accepted as input only for manual qosType volume. * * @param throughputMibps the throughputMibps value to set. * @return the VolumeInner object itself. @@ -792,6 +795,120 @@ public VolumeInner withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { return this; } + /** + * Get the volumeGroupName property: Volume Group Name. + * + * @return the volumeGroupName value. + */ + public String volumeGroupName() { + return this.innerProperties() == null ? null : this.innerProperties().volumeGroupName(); + } + + /** + * Get the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. + * + * @return the capacityPoolResourceId value. + */ + public String capacityPoolResourceId() { + return this.innerProperties() == null ? null : this.innerProperties().capacityPoolResourceId(); + } + + /** + * Set the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. + * + * @param capacityPoolResourceId the capacityPoolResourceId value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withCapacityPoolResourceId(String capacityPoolResourceId) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withCapacityPoolResourceId(capacityPoolResourceId); + return this; + } + + /** + * Get the proximityPlacementGroup property: Proximity placement group associated with the volume. + * + * @return the proximityPlacementGroup value. + */ + public String proximityPlacementGroup() { + return this.innerProperties() == null ? null : this.innerProperties().proximityPlacementGroup(); + } + + /** + * Set the proximityPlacementGroup property: Proximity placement group associated with the volume. + * + * @param proximityPlacementGroup the proximityPlacementGroup value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withProximityPlacementGroup(String proximityPlacementGroup) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withProximityPlacementGroup(proximityPlacementGroup); + return this; + } + + /** + * Get the t2Network property: T2 network information. + * + * @return the t2Network value. + */ + public String t2Network() { + return this.innerProperties() == null ? null : this.innerProperties().t2Network(); + } + + /** + * Get the volumeSpecName property: Volume spec name is the application specific designation or identifier for the + * particular volume in a volume group for e.g. data, log. + * + * @return the volumeSpecName value. + */ + public String volumeSpecName() { + return this.innerProperties() == null ? null : this.innerProperties().volumeSpecName(); + } + + /** + * Set the volumeSpecName property: Volume spec name is the application specific designation or identifier for the + * particular volume in a volume group for e.g. data, log. + * + * @param volumeSpecName the volumeSpecName value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withVolumeSpecName(String volumeSpecName) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withVolumeSpecName(volumeSpecName); + return this; + } + + /** + * Get the placementRules property: Volume placement rules Application specific placement rules for the particular + * volume. + * + * @return the placementRules value. + */ + public List placementRules() { + return this.innerProperties() == null ? null : this.innerProperties().placementRules(); + } + + /** + * Set the placementRules property: Volume placement rules Application specific placement rules for the particular + * volume. + * + * @param placementRules the placementRules value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withPlacementRules(List placementRules) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withPlacementRules(placementRules); + 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 0466b061aa8df..b3aabd2251ae9 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 @@ -38,7 +38,8 @@ public final class VolumePatchProperties { private VolumePatchPropertiesExportPolicy exportPolicy; /* - * Maximum throughput in Mibps that can be achieved by this volume + * Maximum throughput in Mibps that can be achieved by this volume and this + * will be accepted as input only for manual qosType volume */ @JsonProperty(value = "throughputMibps") private Float throughputMibps; @@ -133,7 +134,8 @@ public VolumePatchProperties withExportPolicy(VolumePatchPropertiesExportPolicy } /** - * Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. + * Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will + * be accepted as input only for manual qosType volume. * * @return the throughputMibps value. */ @@ -142,7 +144,8 @@ public Float throughputMibps() { } /** - * Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. + * Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will + * be accepted as input only for manual qosType volume. * * @param throughputMibps the throughputMibps value to set. * @return the VolumePatchProperties object itself. 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 1d77e38f61a04..2ae7afb4aff19 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.AvsDataStore; import com.azure.resourcemanager.netapp.models.NetworkFeatures; +import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; import com.azure.resourcemanager.netapp.models.SecurityStyle; import com.azure.resourcemanager.netapp.models.ServiceLevel; import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; @@ -179,7 +180,8 @@ public final class VolumeProperties { private Boolean smbContinuouslyAvailable; /* - * Maximum throughput in Mibps that can be achieved by this volume + * Maximum throughput in Mibps that can be achieved by this volume and this + * will be accepted as input only for manual qosType volume */ @JsonProperty(value = "throughputMibps") private Float throughputMibps; @@ -257,6 +259,44 @@ public final class VolumeProperties { @JsonProperty(value = "defaultGroupQuotaInKiBs") private Long defaultGroupQuotaInKiBs; + /* + * Volume Group Name + */ + @JsonProperty(value = "volumeGroupName", access = JsonProperty.Access.WRITE_ONLY) + private String volumeGroupName; + + /* + * Pool Resource Id used in case of creating a volume through volume group + */ + @JsonProperty(value = "capacityPoolResourceId") + private String capacityPoolResourceId; + + /* + * Proximity placement group associated with the volume + */ + @JsonProperty(value = "proximityPlacementGroup") + private String proximityPlacementGroup; + + /* + * T2 network information + */ + @JsonProperty(value = "t2Network", access = JsonProperty.Access.WRITE_ONLY) + private String t2Network; + + /* + * Volume spec name is the application specific designation or identifier + * for the particular volume in a volume group for e.g. data, log + */ + @JsonProperty(value = "volumeSpecName") + private String volumeSpecName; + + /* + * Volume placement rules Application specific placement rules for the + * particular volume + */ + @JsonProperty(value = "placementRules") + private List placementRules; + /** * Get the fileSystemId property: FileSystem ID Unique FileSystem Identifier. * @@ -674,7 +714,8 @@ public VolumeProperties withSmbContinuouslyAvailable(Boolean smbContinuouslyAvai } /** - * Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. + * Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will + * be accepted as input only for manual qosType volume. * * @return the throughputMibps value. */ @@ -683,7 +724,8 @@ public Float throughputMibps() { } /** - * Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. + * Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will + * be accepted as input only for manual qosType volume. * * @param throughputMibps the throughputMibps value to set. * @return the VolumeProperties object itself. @@ -900,6 +942,108 @@ public VolumeProperties withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs return this; } + /** + * Get the volumeGroupName property: Volume Group Name. + * + * @return the volumeGroupName value. + */ + public String volumeGroupName() { + return this.volumeGroupName; + } + + /** + * Get the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. + * + * @return the capacityPoolResourceId value. + */ + public String capacityPoolResourceId() { + return this.capacityPoolResourceId; + } + + /** + * Set the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. + * + * @param capacityPoolResourceId the capacityPoolResourceId value to set. + * @return the VolumeProperties object itself. + */ + public VolumeProperties withCapacityPoolResourceId(String capacityPoolResourceId) { + this.capacityPoolResourceId = capacityPoolResourceId; + return this; + } + + /** + * Get the proximityPlacementGroup property: Proximity placement group associated with the volume. + * + * @return the proximityPlacementGroup value. + */ + public String proximityPlacementGroup() { + return this.proximityPlacementGroup; + } + + /** + * Set the proximityPlacementGroup property: Proximity placement group associated with the volume. + * + * @param proximityPlacementGroup the proximityPlacementGroup value to set. + * @return the VolumeProperties object itself. + */ + public VolumeProperties withProximityPlacementGroup(String proximityPlacementGroup) { + this.proximityPlacementGroup = proximityPlacementGroup; + return this; + } + + /** + * Get the t2Network property: T2 network information. + * + * @return the t2Network value. + */ + public String t2Network() { + return this.t2Network; + } + + /** + * Get the volumeSpecName property: Volume spec name is the application specific designation or identifier for the + * particular volume in a volume group for e.g. data, log. + * + * @return the volumeSpecName value. + */ + public String volumeSpecName() { + return this.volumeSpecName; + } + + /** + * Set the volumeSpecName property: Volume spec name is the application specific designation or identifier for the + * particular volume in a volume group for e.g. data, log. + * + * @param volumeSpecName the volumeSpecName value to set. + * @return the VolumeProperties object itself. + */ + public VolumeProperties withVolumeSpecName(String volumeSpecName) { + this.volumeSpecName = volumeSpecName; + return this; + } + + /** + * Get the placementRules property: Volume placement rules Application specific placement rules for the particular + * volume. + * + * @return the placementRules value. + */ + public List placementRules() { + return this.placementRules; + } + + /** + * Set the placementRules property: Volume placement rules Application specific placement rules for the particular + * volume. + * + * @param placementRules the placementRules value to set. + * @return the VolumeProperties object itself. + */ + public VolumeProperties withPlacementRules(List placementRules) { + this.placementRules = placementRules; + return this; + } + /** * Validates the instance. * @@ -925,5 +1069,8 @@ public void validate() { if (dataProtection() != null) { dataProtection().validate(); } + if (placementRules() != null) { + placementRules().forEach(e -> e.validate()); + } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java index 25a750b1ad61b..3748485ba13f4 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 @@ -548,7 +548,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String backupName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, backupName); @@ -569,7 +569,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String backupName, Context context) { context = this.client.mergeContext(context); @@ -591,7 +591,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupName) { return beginDeleteAsync(resourceGroupName, accountName, backupName).getSyncPoller(); @@ -609,7 +609,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, backupName, context).getSyncPoller(); 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 18ad24f3fe9bd..a2e0ae5bdac1b 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 @@ -746,7 +746,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, NetAppAccountInner body) { Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, accountName, body); @@ -768,7 +768,7 @@ private PollerFlux, NetAppAccountInner> beginCrea * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, NetAppAccountInner body, Context context) { context = this.client.mergeContext(context); @@ -791,7 +791,7 @@ private PollerFlux, NetAppAccountInner> beginCrea * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginCreateOrUpdate( String resourceGroupName, String accountName, NetAppAccountInner body) { return beginCreateOrUpdateAsync(resourceGroupName, accountName, body).getSyncPoller(); @@ -809,7 +809,7 @@ public SyncPoller, NetAppAccountInner> beginCreat * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginCreateOrUpdate( String resourceGroupName, String accountName, NetAppAccountInner body, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, accountName, body, context).getSyncPoller(); @@ -987,7 +987,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName); return this @@ -1006,7 +1006,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, Context context) { context = this.client.mergeContext(context); @@ -1026,7 +1026,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName) { return beginDeleteAsync(resourceGroupName, accountName).getSyncPoller(); } @@ -1042,7 +1042,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, context).getSyncPoller(); @@ -1229,7 +1229,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginUpdateAsync( String resourceGroupName, String accountName, NetAppAccountPatch body) { Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, body); @@ -1251,7 +1251,7 @@ private PollerFlux, NetAppAccountInner> beginUpda * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetAppAccountInner> beginUpdateAsync( String resourceGroupName, String accountName, NetAppAccountPatch body, Context context) { context = this.client.mergeContext(context); @@ -1273,7 +1273,7 @@ private PollerFlux, NetAppAccountInner> beginUpda * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginUpdate( String resourceGroupName, String accountName, NetAppAccountPatch body) { return beginUpdateAsync(resourceGroupName, accountName, body).getSyncPoller(); @@ -1291,7 +1291,7 @@ public SyncPoller, NetAppAccountInner> beginUpdat * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetAppAccountInner> beginUpdate( String resourceGroupName, String accountName, NetAppAccountPatch body, Context context) { return beginUpdateAsync(resourceGroupName, accountName, body, context).getSyncPoller(); 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 b5710d52ad1d9..808d496706625 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 @@ -613,7 +613,7 @@ private Mono>> createWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginCreateAsync( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) { Mono>> mono = @@ -637,7 +637,7 @@ private PollerFlux, BackupPolicyInner> beginCreate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginCreateAsync( String resourceGroupName, String accountName, @@ -665,7 +665,7 @@ private PollerFlux, BackupPolicyInner> beginCreate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginCreate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) { return beginCreateAsync(resourceGroupName, accountName, backupPolicyName, body).getSyncPoller(); @@ -684,7 +684,7 @@ public SyncPoller, BackupPolicyInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginCreate( String resourceGroupName, String accountName, @@ -916,7 +916,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginUpdateAsync( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) { Mono>> mono = @@ -940,7 +940,7 @@ private PollerFlux, BackupPolicyInner> beginUpdate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupPolicyInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -968,7 +968,7 @@ private PollerFlux, BackupPolicyInner> beginUpdate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginUpdate( String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) { return beginUpdateAsync(resourceGroupName, accountName, backupPolicyName, body).getSyncPoller(); @@ -987,7 +987,7 @@ public SyncPoller, BackupPolicyInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupPolicyInner> beginUpdate( String resourceGroupName, String accountName, @@ -1196,7 +1196,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String backupPolicyName) { Mono>> mono = @@ -1218,7 +1218,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String backupPolicyName, Context context) { context = this.client.mergeContext(context); @@ -1240,7 +1240,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupPolicyName) { return beginDeleteAsync(resourceGroupName, accountName, backupPolicyName).getSyncPoller(); @@ -1258,7 +1258,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String backupPolicyName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, backupPolicyName, context).getSyncPoller(); 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 401037bee94ec..e1c51521b7c88 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 @@ -48,10 +48,6 @@ public String etag() { return this.innerModel().etag(); } - public String namePropertiesName() { - return this.innerModel().namePropertiesName(); - } - 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 38085556edfe3..c88f6658d1991 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 @@ -1110,7 +1110,7 @@ private Mono>> createWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginCreateAsync( String resourceGroupName, String accountName, @@ -1141,7 +1141,7 @@ private PollerFlux, BackupInner> beginCreateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginCreateAsync( String resourceGroupName, String accountName, @@ -1173,7 +1173,7 @@ private PollerFlux, BackupInner> beginCreateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginCreate( String resourceGroupName, String accountName, @@ -1199,7 +1199,7 @@ public SyncPoller, BackupInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginCreate( String resourceGroupName, String accountName, @@ -1479,7 +1479,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -1510,7 +1510,7 @@ private PollerFlux, BackupInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BackupInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -1542,7 +1542,7 @@ private PollerFlux, BackupInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginUpdate( String resourceGroupName, String accountName, @@ -1568,7 +1568,7 @@ public SyncPoller, BackupInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return backup of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginUpdate( String resourceGroupName, String accountName, @@ -1869,7 +1869,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) { Mono>> mono = @@ -1893,7 +1893,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, @@ -1922,7 +1922,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) { return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, backupName).getSyncPoller(); @@ -1942,7 +1942,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, 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 182e0140a8339..188582bfdb99f 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 @@ -33,6 +33,7 @@ import com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient; import com.azure.resourcemanager.netapp.fluent.SnapshotsClient; import com.azure.resourcemanager.netapp.fluent.VaultsClient; +import com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient; import com.azure.resourcemanager.netapp.fluent.VolumesClient; import java.io.IOException; import java.lang.reflect.Type; @@ -269,6 +270,18 @@ public VaultsClient getVaults() { return this.vaults; } + /** The VolumeGroupsClient object to access its operations. */ + private final VolumeGroupsClient volumeGroups; + + /** + * Gets the VolumeGroupsClient object to access its operations. + * + * @return the VolumeGroupsClient object. + */ + public VolumeGroupsClient getVolumeGroups() { + return this.volumeGroups; + } + /** * Initializes an instance of NetAppManagementClient client. * @@ -292,7 +305,7 @@ public VaultsClient getVaults() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2021-06-01"; + this.apiVersion = "2021-08-01"; this.operations = new OperationsClientImpl(this); this.netAppResources = new NetAppResourcesClientImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this); @@ -305,6 +318,7 @@ public VaultsClient getVaults() { this.accountBackups = new AccountBackupsClientImpl(this); this.backupPolicies = new BackupPoliciesClientImpl(this); this.vaults = new VaultsClientImpl(this); + this.volumeGroups = new VolumeGroupsClientImpl(this); } /** 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 435bfed7cce34..c0d718d5278c0 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 @@ -627,7 +627,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body) { Mono>> mono = @@ -651,7 +651,7 @@ private PollerFlux, CapacityPoolInner> beginCreate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context) { context = this.client.mergeContext(context); @@ -675,7 +675,7 @@ private PollerFlux, CapacityPoolInner> beginCreate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body) { return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body).getSyncPoller(); @@ -694,7 +694,7 @@ public SyncPoller, CapacityPoolInner> beginCreateO * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body, context).getSyncPoller(); @@ -908,7 +908,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginUpdateAsync( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body) { Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, poolName, body); @@ -931,7 +931,7 @@ private PollerFlux, CapacityPoolInner> beginUpdate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginUpdateAsync( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context) { context = this.client.mergeContext(context); @@ -955,7 +955,7 @@ private PollerFlux, CapacityPoolInner> beginUpdate * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body) { return beginUpdateAsync(resourceGroupName, accountName, poolName, body).getSyncPoller(); @@ -974,7 +974,7 @@ public SyncPoller, CapacityPoolInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return capacity pool resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CapacityPoolInner> beginUpdate( String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context) { return beginUpdateAsync(resourceGroupName, accountName, poolName, body, context).getSyncPoller(); @@ -1169,7 +1169,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, poolName); @@ -1190,7 +1190,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName, Context context) { context = this.client.mergeContext(context); @@ -1212,7 +1212,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName) { return beginDeleteAsync(resourceGroupName, accountName, poolName).getSyncPoller(); @@ -1230,7 +1230,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, poolName, context).getSyncPoller(); 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 4b7da2b9bedbd..e3131864f577b 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 @@ -822,7 +822,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotPolicyInner> beginUpdateAsync( String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) { Mono>> mono = @@ -850,7 +850,7 @@ private PollerFlux, SnapshotPolicyInner> beginUp * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotPolicyInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -878,7 +878,7 @@ private PollerFlux, SnapshotPolicyInner> beginUp * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotPolicyInner> beginUpdate( String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) { return beginUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body).getSyncPoller(); @@ -897,7 +897,7 @@ public SyncPoller, SnapshotPolicyInner> beginUpd * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot policy information. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotPolicyInner> beginUpdate( String resourceGroupName, String accountName, @@ -1106,7 +1106,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String snapshotPolicyName) { Mono>> mono = @@ -1128,7 +1128,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { context = this.client.mergeContext(context); @@ -1150,7 +1150,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String snapshotPolicyName) { return beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName).getSyncPoller(); @@ -1168,7 +1168,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName, context).getSyncPoller(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java index adf76c899b029..cea619124a2aa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java @@ -5,9 +5,12 @@ package com.azure.resourcemanager.netapp.implementation; import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner; +import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; import com.azure.resourcemanager.netapp.models.SnapshotPolicyVolumeList; +import com.azure.resourcemanager.netapp.models.Volume; import java.util.Collections; import java.util.List; +import java.util.stream.Collectors; public final class SnapshotPolicyVolumeListImpl implements SnapshotPolicyVolumeList { private SnapshotPolicyVolumeListInner innerObject; @@ -20,10 +23,12 @@ public final class SnapshotPolicyVolumeListImpl implements SnapshotPolicyVolumeL this.serviceManager = serviceManager; } - public List value() { - List inner = this.innerModel().value(); + public List value() { + List inner = this.innerModel().value(); if (inner != null) { - return Collections.unmodifiableList(inner); + return Collections + .unmodifiableList( + inner.stream().map(inner1 -> new VolumeImpl(inner1, this.manager())).collect(Collectors.toList())); } else { return Collections.emptyList(); } 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 647d002b95496..957491ec48e8f 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 @@ -724,7 +724,7 @@ private Mono>> createWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginCreateAsync( String resourceGroupName, String accountName, @@ -755,7 +755,7 @@ private PollerFlux, SnapshotInner> beginCreateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginCreateAsync( String resourceGroupName, String accountName, @@ -787,7 +787,7 @@ private PollerFlux, SnapshotInner> beginCreateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginCreate( String resourceGroupName, String accountName, @@ -814,7 +814,7 @@ public SyncPoller, SnapshotInner> beginCreate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginCreate( String resourceGroupName, String accountName, @@ -1094,7 +1094,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -1125,7 +1125,7 @@ private PollerFlux, SnapshotInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SnapshotInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -1157,7 +1157,7 @@ private PollerFlux, SnapshotInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginUpdate( String resourceGroupName, String accountName, @@ -1184,7 +1184,7 @@ public SyncPoller, SnapshotInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SnapshotInner> beginUpdate( String resourceGroupName, String accountName, @@ -1443,7 +1443,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { Mono>> mono = @@ -1467,7 +1467,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, @@ -1496,7 +1496,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).getSyncPoller(); @@ -1516,7 +1516,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java index 819270bfa065f..3960f0d4352b6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java @@ -35,10 +35,6 @@ public SystemData systemData() { return this.innerModel().systemData(); } - public String namePropertiesName() { - return this.innerModel().namePropertiesName(); - } - public Integer current() { return this.innerModel().current(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java new file mode 100644 index 0000000000000..ec5b35b9e87a5 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.implementation; + +import com.azure.core.management.Region; +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner; +import com.azure.resourcemanager.netapp.models.VolumeGroupDetails; +import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; +import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +public final class VolumeGroupDetailsImpl implements VolumeGroupDetails, VolumeGroupDetails.Definition { + private VolumeGroupDetailsInner innerObject; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + VolumeGroupDetailsImpl( + VolumeGroupDetailsInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String location() { + return this.innerModel().location(); + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public String provisioningState() { + return this.innerModel().provisioningState(); + } + + public VolumeGroupMetadata groupMetadata() { + return this.innerModel().groupMetadata(); + } + + public List volumes() { + List inner = this.innerModel().volumes(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public VolumeGroupDetailsInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String volumeGroupName; + + public VolumeGroupDetailsImpl withExistingNetAppAccount(String resourceGroupName, String accountName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + return this; + } + + public VolumeGroupDetails create() { + this.innerObject = + serviceManager + .serviceClient() + .getVolumeGroups() + .create(resourceGroupName, accountName, volumeGroupName, this.innerModel(), Context.NONE); + return this; + } + + public VolumeGroupDetails create(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getVolumeGroups() + .create(resourceGroupName, accountName, volumeGroupName, this.innerModel(), context); + return this; + } + + VolumeGroupDetailsImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = new VolumeGroupDetailsInner(); + this.serviceManager = serviceManager; + this.volumeGroupName = name; + } + + public VolumeGroupDetails refresh() { + this.innerObject = + serviceManager + .serviceClient() + .getVolumeGroups() + .getWithResponse(resourceGroupName, accountName, volumeGroupName, Context.NONE) + .getValue(); + return this; + } + + public VolumeGroupDetails refresh(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getVolumeGroups() + .getWithResponse(resourceGroupName, accountName, volumeGroupName, context) + .getValue(); + return this; + } + + public VolumeGroupDetailsImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public VolumeGroupDetailsImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public VolumeGroupDetailsImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + + public VolumeGroupDetailsImpl withGroupMetadata(VolumeGroupMetadata groupMetadata) { + this.innerModel().withGroupMetadata(groupMetadata); + return this; + } + + public VolumeGroupDetailsImpl withVolumes(List volumes) { + this.innerModel().withVolumes(volumes); + return this; + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java new file mode 100644 index 0000000000000..ef47dc7481e48 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java @@ -0,0 +1,63 @@ +// 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.VolumeGroupInner; +import com.azure.resourcemanager.netapp.models.VolumeGroup; +import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; +import java.util.Collections; +import java.util.Map; + +public final class VolumeGroupImpl implements VolumeGroup { + private VolumeGroupInner innerObject; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + VolumeGroupImpl(VolumeGroupInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String location() { + return this.innerModel().location(); + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public String provisioningState() { + return this.innerModel().provisioningState(); + } + + public VolumeGroupMetadata groupMetadata() { + return this.innerModel().groupMetadata(); + } + + public VolumeGroupInner 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/VolumeGroupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java new file mode 100644 index 0000000000000..d5bf3914d291f --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java @@ -0,0 +1,1026 @@ +// 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.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.logging.ClientLogger; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient; +import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner; +import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner; +import com.azure.resourcemanager.netapp.models.VolumeGroupList; +import 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 VolumeGroupsClient. */ +public final class VolumeGroupsClientImpl implements VolumeGroupsClient { + private final ClientLogger logger = new ClientLogger(VolumeGroupsClientImpl.class); + + /** The proxy service used to perform REST calls. */ + private final VolumeGroupsService service; + + /** The service client containing this operation class. */ + private final NetAppManagementClientImpl client; + + /** + * Initializes an instance of VolumeGroupsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + VolumeGroupsClientImpl(NetAppManagementClientImpl client) { + this.service = + RestProxy.create(VolumeGroupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for NetAppManagementClientVolumeGroups to be used by the proxy service to + * perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "NetAppManagementClie") + private interface VolumeGroupsService { + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" + + "/netAppAccounts/{accountName}/volumeGroups") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByNetAppAccount( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" + + "/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("volumeGroupName") String volumeGroupName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" + + "/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") + @ExpectedResponses({201}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> create( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("volumeGroupName") String volumeGroupName, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") VolumeGroupDetailsInner body, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" + + "/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") + @ExpectedResponses({200, 202, 204}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("volumeGroupName") String volumeGroupName, + @QueryParam("api-version") String apiVersion, + Context context); + } + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByNetAppAccountSinglePageAsync( + String resourceGroupName, String accountName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .listByNetAppAccount( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + this.client.getApiVersion(), + accept, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByNetAppAccountSinglePageAsync( + String resourceGroupName, String accountName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByNetAppAccount( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + this.client.getApiVersion(), + accept, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + } + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByNetAppAccountAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName)); + } + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByNetAppAccountAsync( + String resourceGroupName, String accountName, Context context) { + return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName, context)); + } + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) { + return new PagedIterable<>(listByNetAppAccountAsync(resourceGroupName, accountName)); + } + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByNetAppAccount( + String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(listByNetAppAccountAsync(resourceGroupName, accountName, context)); + } + + /** + * Get details of the specified volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync( + String resourceGroupName, String accountName, String volumeGroupName) { + 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 (volumeGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter volumeGroupName 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, + volumeGroupName, + this.client.getApiVersion(), + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get details of the specified volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync( + String resourceGroupName, String accountName, String volumeGroupName, 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 (volumeGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter volumeGroupName 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, + volumeGroupName, + this.client.getApiVersion(), + accept, + context); + } + + /** + * Get details of the specified volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync( + String resourceGroupName, String accountName, String volumeGroupName) { + return getWithResponseAsync(resourceGroupName, accountName, volumeGroupName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Get details of the specified volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VolumeGroupDetailsInner get(String resourceGroupName, String accountName, String volumeGroupName) { + return getAsync(resourceGroupName, accountName, volumeGroupName).block(); + } + + /** + * Get details of the specified volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse( + String resourceGroupName, String accountName, String volumeGroupName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, volumeGroupName, context).block(); + } + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group object supplied in the body of the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createWithResponseAsync( + String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner 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 (volumeGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter volumeGroupName 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, + volumeGroupName, + this.client.getApiVersion(), + body, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group 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 volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createWithResponseAsync( + String resourceGroupName, + String accountName, + String volumeGroupName, + VolumeGroupDetailsInner 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 (volumeGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter volumeGroupName 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, + volumeGroupName, + this.client.getApiVersion(), + body, + accept, + context); + } + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group object supplied in the body of the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, VolumeGroupDetailsInner> beginCreateAsync( + String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body) { + Mono>> mono = + createWithResponseAsync(resourceGroupName, accountName, volumeGroupName, body); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + VolumeGroupDetailsInner.class, + VolumeGroupDetailsInner.class, + Context.NONE); + } + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group 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 volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, VolumeGroupDetailsInner> beginCreateAsync( + String resourceGroupName, + String accountName, + String volumeGroupName, + VolumeGroupDetailsInner body, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + createWithResponseAsync(resourceGroupName, accountName, volumeGroupName, body, context); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + VolumeGroupDetailsInner.class, + VolumeGroupDetailsInner.class, + context); + } + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group object supplied in the body of the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, VolumeGroupDetailsInner> beginCreate( + String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body) { + return beginCreateAsync(resourceGroupName, accountName, volumeGroupName, body).getSyncPoller(); + } + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group 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 volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, VolumeGroupDetailsInner> beginCreate( + String resourceGroupName, + String accountName, + String volumeGroupName, + VolumeGroupDetailsInner body, + Context context) { + return beginCreateAsync(resourceGroupName, accountName, volumeGroupName, body, context).getSyncPoller(); + } + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group object supplied in the body of the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createAsync( + String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body) { + return beginCreateAsync(resourceGroupName, accountName, volumeGroupName, body) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group 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 volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createAsync( + String resourceGroupName, + String accountName, + String volumeGroupName, + VolumeGroupDetailsInner body, + Context context) { + return beginCreateAsync(resourceGroupName, accountName, volumeGroupName, body, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group object supplied in the body of the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VolumeGroupDetailsInner create( + String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body) { + return createAsync(resourceGroupName, accountName, volumeGroupName, body).block(); + } + + /** + * Create a volume group along with specified volumes. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param body Volume Group 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 volume group resource for create. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VolumeGroupDetailsInner create( + String resourceGroupName, + String accountName, + String volumeGroupName, + VolumeGroupDetailsInner body, + Context context) { + return createAsync(resourceGroupName, accountName, volumeGroupName, body, context).block(); + } + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String accountName, String volumeGroupName) { + 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 (volumeGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter volumeGroupName is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .delete( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + volumeGroupName, + this.client.getApiVersion(), + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String accountName, String volumeGroupName, 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 (volumeGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter volumeGroupName is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .delete( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + volumeGroupName, + this.client.getApiVersion(), + context); + } + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String accountName, String volumeGroupName) { + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, accountName, volumeGroupName); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + } + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String accountName, String volumeGroupName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, accountName, volumeGroupName, context); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + } + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete( + String resourceGroupName, String accountName, String volumeGroupName) { + return beginDeleteAsync(resourceGroupName, accountName, volumeGroupName).getSyncPoller(); + } + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete( + String resourceGroupName, String accountName, String volumeGroupName, Context context) { + return beginDeleteAsync(resourceGroupName, accountName, volumeGroupName, context).getSyncPoller(); + } + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String volumeGroupName) { + return beginDeleteAsync(resourceGroupName, accountName, volumeGroupName) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync( + String resourceGroupName, String accountName, String volumeGroupName, Context context) { + return beginDeleteAsync(resourceGroupName, accountName, volumeGroupName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 volumeGroupName) { + deleteAsync(resourceGroupName, accountName, volumeGroupName).block(); + } + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 volumeGroupName, Context context) { + deleteAsync(resourceGroupName, accountName, volumeGroupName, context).block(); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java new file mode 100644 index 0000000000000..5dfbdeb34c1a4 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java @@ -0,0 +1,197 @@ +// 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.VolumeGroupsClient; +import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner; +import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner; +import com.azure.resourcemanager.netapp.models.VolumeGroup; +import com.azure.resourcemanager.netapp.models.VolumeGroupDetails; +import com.azure.resourcemanager.netapp.models.VolumeGroups; +import com.fasterxml.jackson.annotation.JsonIgnore; + +public final class VolumeGroupsImpl implements VolumeGroups { + @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupsImpl.class); + + private final VolumeGroupsClient innerClient; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + public VolumeGroupsImpl( + VolumeGroupsClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) { + PagedIterable inner = + this.serviceClient().listByNetAppAccount(resourceGroupName, accountName); + return Utils.mapPage(inner, inner1 -> new VolumeGroupImpl(inner1, this.manager())); + } + + public PagedIterable listByNetAppAccount( + String resourceGroupName, String accountName, Context context) { + PagedIterable inner = + this.serviceClient().listByNetAppAccount(resourceGroupName, accountName, context); + return Utils.mapPage(inner, inner1 -> new VolumeGroupImpl(inner1, this.manager())); + } + + public VolumeGroupDetails get(String resourceGroupName, String accountName, String volumeGroupName) { + VolumeGroupDetailsInner inner = this.serviceClient().get(resourceGroupName, accountName, volumeGroupName); + if (inner != null) { + return new VolumeGroupDetailsImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getWithResponse( + String resourceGroupName, String accountName, String volumeGroupName, Context context) { + Response inner = + this.serviceClient().getWithResponse(resourceGroupName, accountName, volumeGroupName, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new VolumeGroupDetailsImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String accountName, String volumeGroupName) { + this.serviceClient().delete(resourceGroupName, accountName, volumeGroupName); + } + + public void delete(String resourceGroupName, String accountName, String volumeGroupName, Context context) { + this.serviceClient().delete(resourceGroupName, accountName, volumeGroupName, context); + } + + public VolumeGroupDetails 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 volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); + if (volumeGroupName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, volumeGroupName, 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 volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); + if (volumeGroupName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, volumeGroupName, 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 volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); + if (volumeGroupName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); + } + this.delete(resourceGroupName, accountName, volumeGroupName, 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 volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); + if (volumeGroupName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); + } + this.delete(resourceGroupName, accountName, volumeGroupName, context); + } + + private VolumeGroupsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } + + public VolumeGroupDetailsImpl define(String name) { + return new VolumeGroupDetailsImpl(name, this.manager()); + } +} 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 9c063e90e1108..677c8ca77df6e 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 @@ -12,6 +12,7 @@ import com.azure.resourcemanager.netapp.models.AvsDataStore; import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; import com.azure.resourcemanager.netapp.models.NetworkFeatures; +import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; import com.azure.resourcemanager.netapp.models.PoolChangeRequest; import com.azure.resourcemanager.netapp.models.SecurityStyle; import com.azure.resourcemanager.netapp.models.ServiceLevel; @@ -207,6 +208,35 @@ public Long defaultGroupQuotaInKiBs() { return this.innerModel().defaultGroupQuotaInKiBs(); } + public String volumeGroupName() { + return this.innerModel().volumeGroupName(); + } + + public String capacityPoolResourceId() { + return this.innerModel().capacityPoolResourceId(); + } + + public String proximityPlacementGroup() { + return this.innerModel().proximityPlacementGroup(); + } + + public String t2Network() { + return this.innerModel().t2Network(); + } + + public String volumeSpecName() { + return this.innerModel().volumeSpecName(); + } + + public List placementRules() { + List inner = this.innerModel().placementRules(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + public Region region() { return Region.fromName(this.regionName()); } @@ -558,6 +588,26 @@ public VolumeImpl withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { } } + public VolumeImpl withCapacityPoolResourceId(String capacityPoolResourceId) { + this.innerModel().withCapacityPoolResourceId(capacityPoolResourceId); + return this; + } + + public VolumeImpl withProximityPlacementGroup(String proximityPlacementGroup) { + this.innerModel().withProximityPlacementGroup(proximityPlacementGroup); + return this; + } + + public VolumeImpl withVolumeSpecName(String volumeSpecName) { + this.innerModel().withVolumeSpecName(volumeSpecName); + return this; + } + + public VolumeImpl withPlacementRules(List placementRules) { + this.innerModel().withPlacementRules(placementRules); + 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 f131c2b687f47..8736955b57ffe 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 @@ -819,7 +819,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body) { Mono>> mono = @@ -844,7 +844,7 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, @@ -874,7 +874,7 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body) { return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); @@ -894,7 +894,7 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginCreateOrUpdate( String resourceGroupName, String accountName, @@ -1144,7 +1144,7 @@ private Mono>> updateWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginUpdateAsync( String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body) { Mono>> mono = @@ -1169,7 +1169,7 @@ private PollerFlux, VolumeInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -1199,7 +1199,7 @@ private PollerFlux, VolumeInner> beginUpdateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginUpdate( String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body) { return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); @@ -1219,7 +1219,7 @@ public SyncPoller, VolumeInner> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginUpdate( String resourceGroupName, String accountName, @@ -1444,7 +1444,7 @@ private Mono>> deleteWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName, String volumeName) { Mono>> mono = @@ -1467,7 +1467,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); @@ -1490,7 +1490,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @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(); @@ -1509,7 +1509,7 @@ public SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @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(); @@ -1731,7 +1731,7 @@ private Mono>> revertWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRevertAsync( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) { Mono>> mono = @@ -1755,7 +1755,7 @@ private PollerFlux, Void> beginRevertAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRevertAsync( String resourceGroupName, String accountName, @@ -1784,7 +1784,7 @@ private PollerFlux, Void> beginRevertAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRevert( String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) { return beginRevertAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); @@ -1804,7 +1804,7 @@ public SyncPoller, Void> beginRevert( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRevert( String resourceGroupName, String accountName, @@ -2047,7 +2047,7 @@ private Mono>> breakReplicationWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginBreakReplicationAsync( String resourceGroupName, String accountName, @@ -2075,7 +2075,7 @@ private PollerFlux, Void> beginBreakReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginBreakReplicationAsync( String resourceGroupName, String accountName, @@ -2104,7 +2104,7 @@ private PollerFlux, Void> beginBreakReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginBreakReplication( String resourceGroupName, String accountName, @@ -2128,7 +2128,7 @@ public SyncPoller, Void> beginBreakReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginBreakReplication( String resourceGroupName, String accountName, @@ -2579,7 +2579,7 @@ private Mono>> resyncReplicationWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginResyncReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName) { Mono>> mono = @@ -2603,7 +2603,7 @@ private PollerFlux, Void> beginResyncReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginResyncReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); @@ -2627,7 +2627,7 @@ private PollerFlux, Void> beginResyncReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginResyncReplication( String resourceGroupName, String accountName, String poolName, String volumeName) { return beginResyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); @@ -2647,7 +2647,7 @@ public SyncPoller, Void> beginResyncReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginResyncReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { return beginResyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) @@ -2855,7 +2855,7 @@ private Mono>> deleteReplicationWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName) { Mono>> mono = @@ -2878,7 +2878,7 @@ private PollerFlux, Void> beginDeleteReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); @@ -2901,7 +2901,7 @@ private PollerFlux, Void> beginDeleteReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteReplication( String resourceGroupName, String accountName, String poolName, String volumeName) { return beginDeleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); @@ -2920,7 +2920,7 @@ public SyncPoller, Void> beginDeleteReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { return beginDeleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) @@ -3144,7 +3144,7 @@ private Mono>> authorizeReplicationWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginAuthorizeReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) { Mono>> mono = @@ -3168,7 +3168,7 @@ private PollerFlux, Void> beginAuthorizeReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginAuthorizeReplicationAsync( String resourceGroupName, String accountName, @@ -3197,7 +3197,7 @@ private PollerFlux, Void> beginAuthorizeReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAuthorizeReplication( String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) { return beginAuthorizeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) @@ -3218,7 +3218,7 @@ public SyncPoller, Void> beginAuthorizeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAuthorizeReplication( String resourceGroupName, String accountName, @@ -3442,7 +3442,7 @@ private Mono>> reInitializeReplicationWithResponseAsyn * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginReInitializeReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName) { Mono>> mono = @@ -3465,7 +3465,7 @@ private PollerFlux, Void> beginReInitializeReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginReInitializeReplicationAsync( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); @@ -3488,7 +3488,7 @@ private PollerFlux, Void> beginReInitializeReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginReInitializeReplication( String resourceGroupName, String accountName, String poolName, String volumeName) { return beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); @@ -3507,7 +3507,7 @@ public SyncPoller, Void> beginReInitializeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginReInitializeReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { return beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) @@ -3732,7 +3732,7 @@ private Mono>> poolChangeWithResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginPoolChangeAsync( String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) { Mono>> mono = @@ -3756,7 +3756,7 @@ private PollerFlux, Void> beginPoolChangeAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginPoolChangeAsync( String resourceGroupName, String accountName, @@ -3785,7 +3785,7 @@ private PollerFlux, Void> beginPoolChangeAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginPoolChange( String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) { return beginPoolChangeAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); @@ -3805,7 +3805,7 @@ public SyncPoller, Void> beginPoolChange( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginPoolChange( String resourceGroupName, String accountName, 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 36edbcf8b2f17..14ebab7180e50 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 @@ -149,6 +149,13 @@ public final class ActiveDirectory { @JsonProperty(value = "allowLocalNfsUsersWithLdap") private Boolean allowLocalNfsUsersWithLdap; + /* + * If enabled, Traffic between the SMB server to Domain Controller (DC) + * will be encrypted. + */ + @JsonProperty(value = "encryptDCConnections") + private Boolean encryptDCConnections; + /** * Get the activeDirectoryId property: Id of the Active Directory. * @@ -551,6 +558,28 @@ public ActiveDirectory withAllowLocalNfsUsersWithLdap(Boolean allowLocalNfsUsers return this; } + /** + * Get the encryptDCConnections property: If enabled, Traffic between the SMB server to Domain Controller (DC) will + * be encrypted. + * + * @return the encryptDCConnections value. + */ + public Boolean encryptDCConnections() { + return this.encryptDCConnections; + } + + /** + * Set the encryptDCConnections property: If enabled, Traffic between the SMB server to Domain Controller (DC) will + * be encrypted. + * + * @param encryptDCConnections the encryptDCConnections value to set. + * @return the ActiveDirectory object itself. + */ + public ActiveDirectory withEncryptDCConnections(Boolean encryptDCConnections) { + this.encryptDCConnections = encryptDCConnections; + return this; + } + /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java new file mode 100644 index 0000000000000..822f9aee9ec30 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java @@ -0,0 +1,31 @@ +// 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 ApplicationType. */ +public final class ApplicationType extends ExpandableStringEnum { + /** Static value SAP-HANA for ApplicationType. */ + public static final ApplicationType SAP_HANA = fromString("SAP-HANA"); + + /** + * Creates or finds a ApplicationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ApplicationType. + */ + @JsonCreator + public static ApplicationType fromString(String name) { + return fromString(name, ApplicationType.class); + } + + /** @return known ApplicationType values. */ + public static Collection values() { + return values(ApplicationType.class); + } +} 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 4551c1d26b4cf..519093da24dd4 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 @@ -54,13 +54,6 @@ public interface BackupPolicy { */ String etag(); - /** - * Gets the namePropertiesName property: Name of backup policy. - * - * @return the namePropertiesName value. - */ - String namePropertiesName(); - /** * Gets the backupPolicyId property: Backup Policy Resource ID. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java index 9f36dbed297be..7e668d30f8872 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java @@ -47,15 +47,6 @@ public BackupPolicyPatch withTags(Map tags) { return this; } - /** - * Get the name property: Name of backup policy. - * - * @return the name value. - */ - public String namePropertiesName() { - return this.innerProperties() == null ? null : this.innerProperties().name(); - } - /** * Get the backupPolicyId property: Backup Policy Resource ID. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java index 81b024e827582..68ef6cc2b7d35 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java @@ -15,19 +15,19 @@ public final class LogSpecification { @JsonIgnore private final ClientLogger logger = new ClientLogger(LogSpecification.class); /* - * The name property. + * Name of log specification. */ @JsonProperty(value = "name") private String name; /* - * The displayName property. + * Display name of log specification. */ @JsonProperty(value = "displayName") private String displayName; /** - * Get the name property: The name property. + * Get the name property: Name of log specification. * * @return the name value. */ @@ -36,7 +36,7 @@ public String name() { } /** - * Set the name property: The name property. + * Set the name property: Name of log specification. * * @param name the name value to set. * @return the LogSpecification object itself. @@ -47,7 +47,7 @@ public LogSpecification withName(String name) { } /** - * Get the displayName property: The displayName property. + * Get the displayName property: Display name of log specification. * * @return the displayName value. */ @@ -56,7 +56,7 @@ public String displayName() { } /** - * Set the displayName property: The displayName property. + * Set the displayName property: Display name of log specification. * * @param displayName the displayName value to set. * @return the LogSpecification object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java new file mode 100644 index 0000000000000..49267ff7b8f2c --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java @@ -0,0 +1,90 @@ +// 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; + +/** Application specific parameters for the placement of volumes in the volume group. */ +@Fluent +public final class PlacementKeyValuePairs { + @JsonIgnore private final ClientLogger logger = new ClientLogger(PlacementKeyValuePairs.class); + + /* + * Key for an application specific parameter for the placement of volumes + * in the volume group + */ + @JsonProperty(value = "key", required = true) + private String key; + + /* + * Value for an application specific parameter for the placement of volumes + * in the volume group + */ + @JsonProperty(value = "value", required = true) + private String value; + + /** + * Get the key property: Key for an application specific parameter for the placement of volumes in the volume group. + * + * @return the key value. + */ + public String key() { + return this.key; + } + + /** + * Set the key property: Key for an application specific parameter for the placement of volumes in the volume group. + * + * @param key the key value to set. + * @return the PlacementKeyValuePairs object itself. + */ + public PlacementKeyValuePairs withKey(String key) { + this.key = key; + return this; + } + + /** + * Get the value property: Value for an application specific parameter for the placement of volumes in the volume + * group. + * + * @return the value value. + */ + public String value() { + return this.value; + } + + /** + * Set the value property: Value for an application specific parameter for the placement of volumes in the volume + * group. + * + * @param value the value value to set. + * @return the PlacementKeyValuePairs object itself. + */ + public PlacementKeyValuePairs withValue(String value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (key() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property key in model PlacementKeyValuePairs")); + } + if (value() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property value in model PlacementKeyValuePairs")); + } + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java index 368ab9b943a0f..2bebb9ff204cc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java @@ -22,7 +22,7 @@ public final class ServiceSpecification { private List metricSpecifications; /* - * The logSpecifications property. + * Log specification of operation. */ @JsonProperty(value = "logSpecifications") private List logSpecifications; @@ -48,7 +48,7 @@ public ServiceSpecification withMetricSpecifications(List m } /** - * Get the logSpecifications property: The logSpecifications property. + * Get the logSpecifications property: Log specification of operation. * * @return the logSpecifications value. */ @@ -57,7 +57,7 @@ public List logSpecifications() { } /** - * Set the logSpecifications property: The logSpecifications property. + * Set the logSpecifications property: Log specification of operation. * * @param logSpecifications the logSpecifications value to set. * @return the ServiceSpecification object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java index c658fcbc9830c..beb609f8fde36 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java @@ -14,7 +14,7 @@ public interface SnapshotPolicyVolumeList { * * @return the value value. */ - List value(); + List value(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner object. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java index 95dee6c6b5897..29796abf20371 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java @@ -37,13 +37,6 @@ public interface SubscriptionQuotaItem { */ SystemData systemData(); - /** - * Gets the namePropertiesName property: Quota Item name. - * - * @return the namePropertiesName value. - */ - String namePropertiesName(); - /** * Gets the current property: The current quota value. * 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 a074640cf29bf..2c051578eb265 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 @@ -229,7 +229,8 @@ public interface Volume { Boolean smbContinuouslyAvailable(); /** - * Gets the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. + * Gets the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will + * be accepted as input only for manual qosType volume. * * @return the throughputMibps value. */ @@ -315,6 +316,51 @@ public interface Volume { */ Long defaultGroupQuotaInKiBs(); + /** + * Gets the volumeGroupName property: Volume Group Name. + * + * @return the volumeGroupName value. + */ + String volumeGroupName(); + + /** + * Gets the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume + * group. + * + * @return the capacityPoolResourceId value. + */ + String capacityPoolResourceId(); + + /** + * Gets the proximityPlacementGroup property: Proximity placement group associated with the volume. + * + * @return the proximityPlacementGroup value. + */ + String proximityPlacementGroup(); + + /** + * Gets the t2Network property: T2 network information. + * + * @return the t2Network value. + */ + String t2Network(); + + /** + * Gets the volumeSpecName property: Volume spec name is the application specific designation or identifier for the + * particular volume in a volume group for e.g. data, log. + * + * @return the volumeSpecName value. + */ + String volumeSpecName(); + + /** + * Gets the placementRules property: Volume placement rules Application specific placement rules for the particular + * volume. + * + * @return the placementRules value. + */ + List placementRules(); + /** * Gets the region of the resource. * @@ -448,7 +494,11 @@ interface WithCreate DefinitionStages.WithAvsDataStore, DefinitionStages.WithIsDefaultQuotaEnabled, DefinitionStages.WithDefaultUserQuotaInKiBs, - DefinitionStages.WithDefaultGroupQuotaInKiBs { + DefinitionStages.WithDefaultGroupQuotaInKiBs, + DefinitionStages.WithCapacityPoolResourceId, + DefinitionStages.WithProximityPlacementGroup, + DefinitionStages.WithVolumeSpecName, + DefinitionStages.WithPlacementRules { /** * Executes the create request. * @@ -634,9 +684,11 @@ interface WithSmbContinuouslyAvailable { /** The stage of the Volume definition allowing to specify throughputMibps. */ interface WithThroughputMibps { /** - * Specifies the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. + * Specifies the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume + * and this will be accepted as input only for manual qosType volume. * - * @param throughputMibps Maximum throughput in Mibps that can be achieved by this volume. + * @param throughputMibps Maximum throughput in Mibps that can be achieved by this volume and this will be + * accepted as input only for manual qosType volume. * @return the next definition stage. */ WithCreate withThroughputMibps(Float throughputMibps); @@ -748,6 +800,51 @@ interface WithDefaultGroupQuotaInKiBs { */ WithCreate withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs); } + /** The stage of the Volume definition allowing to specify capacityPoolResourceId. */ + interface WithCapacityPoolResourceId { + /** + * Specifies the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through + * volume group. + * + * @param capacityPoolResourceId Pool Resource Id used in case of creating a volume through volume group. + * @return the next definition stage. + */ + WithCreate withCapacityPoolResourceId(String capacityPoolResourceId); + } + /** The stage of the Volume definition allowing to specify proximityPlacementGroup. */ + interface WithProximityPlacementGroup { + /** + * Specifies the proximityPlacementGroup property: Proximity placement group associated with the volume. + * + * @param proximityPlacementGroup Proximity placement group associated with the volume. + * @return the next definition stage. + */ + WithCreate withProximityPlacementGroup(String proximityPlacementGroup); + } + /** The stage of the Volume definition allowing to specify volumeSpecName. */ + interface WithVolumeSpecName { + /** + * Specifies the volumeSpecName property: Volume spec name is the application specific designation or + * identifier for the particular volume in a volume group for e.g. data, log. + * + * @param volumeSpecName Volume spec name is the application specific designation or identifier for the + * particular volume in a volume group for e.g. data, log. + * @return the next definition stage. + */ + WithCreate withVolumeSpecName(String volumeSpecName); + } + /** The stage of the Volume definition allowing to specify placementRules. */ + interface WithPlacementRules { + /** + * Specifies the placementRules property: Volume placement rules Application specific placement rules for + * the particular volume. + * + * @param placementRules Volume placement rules Application specific placement rules for the particular + * volume. + * @return the next definition stage. + */ + WithCreate withPlacementRules(List placementRules); + } } /** * Begins update for the Volume resource. @@ -831,9 +928,11 @@ interface WithExportPolicy { /** The stage of the Volume update allowing to specify throughputMibps. */ interface WithThroughputMibps { /** - * Specifies the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. + * Specifies the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume + * and this will be accepted as input only for manual qosType volume. * - * @param throughputMibps Maximum throughput in Mibps that can be achieved by this volume. + * @param throughputMibps Maximum throughput in Mibps that can be achieved by this volume and this will be + * accepted as input only for manual qosType volume. * @return the next definition stage. */ Update withThroughputMibps(Float throughputMibps); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java new file mode 100644 index 0000000000000..c43cfc348589c --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java @@ -0,0 +1,67 @@ +// 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.VolumeGroupInner; +import java.util.Map; + +/** An immutable client-side representation of VolumeGroup. */ +public interface VolumeGroup { + /** + * Gets the location property: Resource location. + * + * @return the location value. + */ + String location(); + + /** + * 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 tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + String provisioningState(); + + /** + * Gets the groupMetadata property: Volume group details. + * + * @return the groupMetadata value. + */ + VolumeGroupMetadata groupMetadata(); + + /** + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner object. + * + * @return the inner object. + */ + VolumeGroupInner innerModel(); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java new file mode 100644 index 0000000000000..a92734a821115 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java @@ -0,0 +1,199 @@ +// 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.Region; +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner; +import java.util.List; +import java.util.Map; + +/** An immutable client-side representation of VolumeGroupDetails. */ +public interface VolumeGroupDetails { + /** + * Gets the location property: Resource location. + * + * @return the location value. + */ + String location(); + + /** + * 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 tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + String provisioningState(); + + /** + * Gets the groupMetadata property: Volume group details. + * + * @return the groupMetadata value. + */ + VolumeGroupMetadata groupMetadata(); + + /** + * Gets the volumes property: List of volumes from group. + * + * @return the volumes value. + */ + List volumes(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner object. + * + * @return the inner object. + */ + VolumeGroupDetailsInner innerModel(); + + /** The entirety of the VolumeGroupDetails definition. */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + /** The VolumeGroupDetails definition stages. */ + interface DefinitionStages { + /** The first stage of the VolumeGroupDetails definition. */ + interface Blank extends WithParentResource { + } + /** The stage of the VolumeGroupDetails definition allowing to specify parent resource. */ + interface WithParentResource { + /** + * Specifies resourceGroupName, accountName. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @return the next definition stage. + */ + WithCreate withExistingNetAppAccount(String resourceGroupName, String accountName); + } + /** + * The stage of the VolumeGroupDetails 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.WithLocation, + DefinitionStages.WithTags, + DefinitionStages.WithGroupMetadata, + DefinitionStages.WithVolumes { + /** + * Executes the create request. + * + * @return the created resource. + */ + VolumeGroupDetails create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + VolumeGroupDetails create(Context context); + } + /** The stage of the VolumeGroupDetails definition allowing to specify location. */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location Resource location. + * @return the next definition stage. + */ + WithCreate withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location Resource location. + * @return the next definition stage. + */ + WithCreate withRegion(String location); + } + /** The stage of the VolumeGroupDetails definition allowing to specify tags. */ + interface WithTags { + /** + * Specifies the tags property: Resource tags. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + /** The stage of the VolumeGroupDetails definition allowing to specify groupMetadata. */ + interface WithGroupMetadata { + /** + * Specifies the groupMetadata property: Volume group details. + * + * @param groupMetadata Volume group details. + * @return the next definition stage. + */ + WithCreate withGroupMetadata(VolumeGroupMetadata groupMetadata); + } + /** The stage of the VolumeGroupDetails definition allowing to specify volumes. */ + interface WithVolumes { + /** + * Specifies the volumes property: List of volumes from group. + * + * @param volumes List of volumes from group. + * @return the next definition stage. + */ + WithCreate withVolumes(List volumes); + } + } + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + VolumeGroupDetails refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + VolumeGroupDetails refresh(Context context); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java new file mode 100644 index 0000000000000..5fdd44cc5183d --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java @@ -0,0 +1,55 @@ +// 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.VolumeGroupInner; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** List of volume group resources. */ +@Fluent +public final class VolumeGroupList { + @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupList.class); + + /* + * List of volume Groups + */ + @JsonProperty(value = "value") + private List value; + + /** + * Get the value property: List of volume Groups. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: List of volume Groups. + * + * @param value the value value to set. + * @return the VolumeGroupList object itself. + */ + public VolumeGroupList withValue(List value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java new file mode 100644 index 0000000000000..404a22053d0fc --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java @@ -0,0 +1,176 @@ +// 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; + +/** Volume group properties. */ +@Fluent +public final class VolumeGroupMetadata { + @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupMetadata.class); + + /* + * Group Description + */ + @JsonProperty(value = "groupDescription") + private String groupDescription; + + /* + * Application Type + */ + @JsonProperty(value = "applicationType") + private ApplicationType applicationType; + + /* + * Application specific identifier + */ + @JsonProperty(value = "applicationIdentifier") + private String applicationIdentifier; + + /* + * Global volume placement rules Application specific placement rules for + * the volume group + */ + @JsonProperty(value = "globalPlacementRules") + private List globalPlacementRules; + + /* + * Application specific identifier of deployment rules for the volume group + */ + @JsonProperty(value = "deploymentSpecId") + private String deploymentSpecId; + + /* + * Number of volumes in volume group + */ + @JsonProperty(value = "volumesCount", access = JsonProperty.Access.WRITE_ONLY) + private Long volumesCount; + + /** + * Get the groupDescription property: Group Description. + * + * @return the groupDescription value. + */ + public String groupDescription() { + return this.groupDescription; + } + + /** + * Set the groupDescription property: Group Description. + * + * @param groupDescription the groupDescription value to set. + * @return the VolumeGroupMetadata object itself. + */ + public VolumeGroupMetadata withGroupDescription(String groupDescription) { + this.groupDescription = groupDescription; + return this; + } + + /** + * Get the applicationType property: Application Type. + * + * @return the applicationType value. + */ + public ApplicationType applicationType() { + return this.applicationType; + } + + /** + * Set the applicationType property: Application Type. + * + * @param applicationType the applicationType value to set. + * @return the VolumeGroupMetadata object itself. + */ + public VolumeGroupMetadata withApplicationType(ApplicationType applicationType) { + this.applicationType = applicationType; + return this; + } + + /** + * Get the applicationIdentifier property: Application specific identifier. + * + * @return the applicationIdentifier value. + */ + public String applicationIdentifier() { + return this.applicationIdentifier; + } + + /** + * Set the applicationIdentifier property: Application specific identifier. + * + * @param applicationIdentifier the applicationIdentifier value to set. + * @return the VolumeGroupMetadata object itself. + */ + public VolumeGroupMetadata withApplicationIdentifier(String applicationIdentifier) { + this.applicationIdentifier = applicationIdentifier; + return this; + } + + /** + * Get the globalPlacementRules property: Global volume placement rules Application specific placement rules for the + * volume group. + * + * @return the globalPlacementRules value. + */ + public List globalPlacementRules() { + return this.globalPlacementRules; + } + + /** + * Set the globalPlacementRules property: Global volume placement rules Application specific placement rules for the + * volume group. + * + * @param globalPlacementRules the globalPlacementRules value to set. + * @return the VolumeGroupMetadata object itself. + */ + public VolumeGroupMetadata withGlobalPlacementRules(List globalPlacementRules) { + this.globalPlacementRules = globalPlacementRules; + return this; + } + + /** + * Get the deploymentSpecId property: Application specific identifier of deployment rules for the volume group. + * + * @return the deploymentSpecId value. + */ + public String deploymentSpecId() { + return this.deploymentSpecId; + } + + /** + * Set the deploymentSpecId property: Application specific identifier of deployment rules for the volume group. + * + * @param deploymentSpecId the deploymentSpecId value to set. + * @return the VolumeGroupMetadata object itself. + */ + public VolumeGroupMetadata withDeploymentSpecId(String deploymentSpecId) { + this.deploymentSpecId = deploymentSpecId; + return this; + } + + /** + * Get the volumesCount property: Number of volumes in volume group. + * + * @return the volumesCount value. + */ + public Long volumesCount() { + return this.volumesCount; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (globalPlacementRules() != null) { + globalPlacementRules().forEach(e -> e.validate()); + } + } +} 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 new file mode 100644 index 0000000000000..cc5476fbbce98 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java @@ -0,0 +1,946 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; +import com.azure.resourcemanager.netapp.fluent.models.VolumeProperties; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import java.util.Map; + +/** Volume resource. */ +@Fluent +public final class VolumeGroupVolumeProperties extends ProxyResource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupVolumeProperties.class); + + /* + * Resource name + */ + @JsonProperty(value = "name") + private String name; + + /* + * Resource tags + */ + @JsonProperty(value = "tags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map tags; + + /* + * Volume properties + */ + @JsonProperty(value = "properties", required = true) + private VolumeProperties innerProperties = new VolumeProperties(); + + /** + * Get the name property: Resource name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Resource name. + * + * @param name the name value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withName(String name) { + this.name = name; + return this; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the innerProperties property: Volume properties. + * + * @return the innerProperties value. + */ + private VolumeProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the fileSystemId property: FileSystem ID Unique FileSystem Identifier. + * + * @return the fileSystemId value. + */ + public String fileSystemId() { + return this.innerProperties() == null ? null : this.innerProperties().fileSystemId(); + } + + /** + * Get the creationToken property: Creation Token or File Path A unique file path for the volume. Used when creating + * mount targets. + * + * @return the creationToken value. + */ + public String creationToken() { + return this.innerProperties() == null ? null : this.innerProperties().creationToken(); + } + + /** + * Set the creationToken property: Creation Token or File Path A unique file path for the volume. Used when creating + * mount targets. + * + * @param creationToken the creationToken value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withCreationToken(String creationToken) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withCreationToken(creationToken); + return this; + } + + /** + * Get the serviceLevel property: serviceLevel The service level of the file system. + * + * @return the serviceLevel value. + */ + public ServiceLevel serviceLevel() { + return this.innerProperties() == null ? null : this.innerProperties().serviceLevel(); + } + + /** + * Set the serviceLevel property: serviceLevel The service level of the file system. + * + * @param serviceLevel the serviceLevel value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withServiceLevel(ServiceLevel serviceLevel) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withServiceLevel(serviceLevel); + return this; + } + + /** + * Get the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is + * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. + * + * @return the usageThreshold value. + */ + public long usageThreshold() { + return this.innerProperties() == null ? 0L : this.innerProperties().usageThreshold(); + } + + /** + * Set the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is + * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. + * + * @param usageThreshold the usageThreshold value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withUsageThreshold(long usageThreshold) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withUsageThreshold(usageThreshold); + return this; + } + + /** + * Get the exportPolicy property: exportPolicy Set of export policy rules. + * + * @return the exportPolicy value. + */ + public VolumePropertiesExportPolicy exportPolicy() { + return this.innerProperties() == null ? null : this.innerProperties().exportPolicy(); + } + + /** + * Set the exportPolicy property: exportPolicy Set of export policy rules. + * + * @param exportPolicy the exportPolicy value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withExportPolicy(VolumePropertiesExportPolicy exportPolicy) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withExportPolicy(exportPolicy); + return this; + } + + /** + * Get the protocolTypes property: protocolTypes Set of protocol types, default NFSv3, CIFS for SMB protocol. + * + * @return the protocolTypes value. + */ + public List protocolTypes() { + return this.innerProperties() == null ? null : this.innerProperties().protocolTypes(); + } + + /** + * Set the protocolTypes property: protocolTypes Set of protocol types, default NFSv3, CIFS for SMB protocol. + * + * @param protocolTypes the protocolTypes value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withProtocolTypes(List protocolTypes) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withProtocolTypes(protocolTypes); + return this; + } + + /** + * Get the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the snapshotId property: Snapshot ID UUID v4 or resource identifier used to identify the Snapshot. + * + * @return the snapshotId value. + */ + public String snapshotId() { + return this.innerProperties() == null ? null : this.innerProperties().snapshotId(); + } + + /** + * Set the snapshotId property: Snapshot ID UUID v4 or resource identifier used to identify the Snapshot. + * + * @param snapshotId the snapshotId value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withSnapshotId(String snapshotId) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withSnapshotId(snapshotId); + return this; + } + + /** + * Get the backupId property: Backup ID UUID v4 or resource identifier used to identify the Backup. + * + * @return the backupId value. + */ + public String backupId() { + return this.innerProperties() == null ? null : this.innerProperties().backupId(); + } + + /** + * Set the backupId property: Backup ID UUID v4 or resource identifier used to identify the Backup. + * + * @param backupId the backupId value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withBackupId(String backupId) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withBackupId(backupId); + return this; + } + + /** + * Get the baremetalTenantId property: Baremetal Tenant ID Unique Baremetal Tenant Identifier. + * + * @return the baremetalTenantId value. + */ + public String baremetalTenantId() { + return this.innerProperties() == null ? null : this.innerProperties().baremetalTenantId(); + } + + /** + * Get the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes. + * + * @return the subnetId value. + */ + public String subnetId() { + return this.innerProperties() == null ? null : this.innerProperties().subnetId(); + } + + /** + * Set the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes. + * + * @param subnetId the subnetId value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withSubnetId(String subnetId) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withSubnetId(subnetId); + return this; + } + + /** + * Get the networkFeatures property: Network features Basic network, or Standard features available to the volume. + * + * @return the networkFeatures value. + */ + public NetworkFeatures networkFeatures() { + return this.innerProperties() == null ? null : this.innerProperties().networkFeatures(); + } + + /** + * Set the networkFeatures property: Network features Basic network, or Standard features available to the volume. + * + * @param networkFeatures the networkFeatures value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withNetworkFeatures(NetworkFeatures networkFeatures) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withNetworkFeatures(networkFeatures); + return this; + } + + /** + * Get the networkSiblingSetId property: Network Sibling Set ID Network Sibling Set ID for the the group of volumes + * sharing networking resources. + * + * @return the networkSiblingSetId value. + */ + public String networkSiblingSetId() { + return this.innerProperties() == null ? null : this.innerProperties().networkSiblingSetId(); + } + + /** + * Get the storageToNetworkProximity property: Storage to Network Proximity Provides storage to network proximity + * information for the volume. + * + * @return the storageToNetworkProximity value. + */ + public VolumeStorageToNetworkProximity storageToNetworkProximity() { + return this.innerProperties() == null ? null : this.innerProperties().storageToNetworkProximity(); + } + + /** + * Get the mountTargets property: mountTargets List of mount targets. + * + * @return the mountTargets value. + */ + public List mountTargets() { + return this.innerProperties() == null ? null : this.innerProperties().mountTargets(); + } + + /** + * Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, + * set type to DataProtection. + * + * @return the volumeType value. + */ + public String volumeType() { + return this.innerProperties() == null ? null : this.innerProperties().volumeType(); + } + + /** + * Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, + * set type to DataProtection. + * + * @param volumeType the volumeType value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withVolumeType(String volumeType) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withVolumeType(volumeType); + return this; + } + + /** + * Get the dataProtection property: DataProtection DataProtection type volumes include an object containing details + * of the replication. + * + * @return the dataProtection value. + */ + public VolumePropertiesDataProtection dataProtection() { + return this.innerProperties() == null ? null : this.innerProperties().dataProtection(); + } + + /** + * Set the dataProtection property: DataProtection DataProtection type volumes include an object containing details + * of the replication. + * + * @param dataProtection the dataProtection value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withDataProtection(VolumePropertiesDataProtection dataProtection) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withDataProtection(dataProtection); + return this; + } + + /** + * Get the isRestoring property: Restoring. + * + * @return the isRestoring value. + */ + public Boolean isRestoring() { + return this.innerProperties() == null ? null : this.innerProperties().isRestoring(); + } + + /** + * Set the isRestoring property: Restoring. + * + * @param isRestoring the isRestoring value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withIsRestoring(Boolean isRestoring) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withIsRestoring(isRestoring); + return this; + } + + /** + * Get the snapshotDirectoryVisible property: If enabled (true) the volume will contain a read-only snapshot + * directory which provides access to each of the volume's snapshots (default to true). + * + * @return the snapshotDirectoryVisible value. + */ + public Boolean snapshotDirectoryVisible() { + return this.innerProperties() == null ? null : this.innerProperties().snapshotDirectoryVisible(); + } + + /** + * Set the snapshotDirectoryVisible property: If enabled (true) the volume will contain a read-only snapshot + * directory which provides access to each of the volume's snapshots (default to true). + * + * @param snapshotDirectoryVisible the snapshotDirectoryVisible value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withSnapshotDirectoryVisible(Boolean snapshotDirectoryVisible) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withSnapshotDirectoryVisible(snapshotDirectoryVisible); + return this; + } + + /** + * Get the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger version + * 2020-05-01 or later. + * + * @return the kerberosEnabled value. + */ + public Boolean kerberosEnabled() { + return this.innerProperties() == null ? null : this.innerProperties().kerberosEnabled(); + } + + /** + * Set the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger version + * 2020-05-01 or later. + * + * @param kerberosEnabled the kerberosEnabled value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withKerberosEnabled(Boolean kerberosEnabled) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withKerberosEnabled(kerberosEnabled); + return this; + } + + /** + * Get the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol or + * CIFS protocol. + * + * @return the securityStyle value. + */ + public SecurityStyle securityStyle() { + return this.innerProperties() == null ? null : this.innerProperties().securityStyle(); + } + + /** + * Set the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol or + * CIFS protocol. + * + * @param securityStyle the securityStyle value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withSecurityStyle(SecurityStyle securityStyle) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withSecurityStyle(securityStyle); + return this; + } + + /** + * Get the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol + * volume. To be used with swagger version 2020-08-01 or later. + * + * @return the smbEncryption value. + */ + public Boolean smbEncryption() { + return this.innerProperties() == null ? null : this.innerProperties().smbEncryption(); + } + + /** + * Set the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol + * volume. To be used with swagger version 2020-08-01 or later. + * + * @param smbEncryption the smbEncryption value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withSmbEncryption(Boolean smbEncryption) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withSmbEncryption(smbEncryption); + return this; + } + + /** + * Get the smbContinuouslyAvailable property: Enables continuously available share property for smb volume. Only + * applicable for SMB volume. + * + * @return the smbContinuouslyAvailable value. + */ + public Boolean smbContinuouslyAvailable() { + return this.innerProperties() == null ? null : this.innerProperties().smbContinuouslyAvailable(); + } + + /** + * Set the smbContinuouslyAvailable property: Enables continuously available share property for smb volume. Only + * applicable for SMB volume. + * + * @param smbContinuouslyAvailable the smbContinuouslyAvailable value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withSmbContinuouslyAvailable(Boolean smbContinuouslyAvailable) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withSmbContinuouslyAvailable(smbContinuouslyAvailable); + return this; + } + + /** + * Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will + * be accepted as input only for manual qosType volume. + * + * @return the throughputMibps value. + */ + public Float throughputMibps() { + return this.innerProperties() == null ? null : this.innerProperties().throughputMibps(); + } + + /** + * Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will + * be accepted as input only for manual qosType volume. + * + * @param throughputMibps the throughputMibps value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withThroughputMibps(Float throughputMibps) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withThroughputMibps(throughputMibps); + return this; + } + + /** + * Get the encryptionKeySource property: Encryption Key Source. Possible values are: 'Microsoft.NetApp'. + * + * @return the encryptionKeySource value. + */ + public String encryptionKeySource() { + return this.innerProperties() == null ? null : this.innerProperties().encryptionKeySource(); + } + + /** + * Set the encryptionKeySource property: Encryption Key Source. Possible values are: 'Microsoft.NetApp'. + * + * @param encryptionKeySource the encryptionKeySource value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withEncryptionKeySource(String encryptionKeySource) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withEncryptionKeySource(encryptionKeySource); + return this; + } + + /** + * Get the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume. + * + * @return the ldapEnabled value. + */ + public Boolean ldapEnabled() { + return this.innerProperties() == null ? null : this.innerProperties().ldapEnabled(); + } + + /** + * Set the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume. + * + * @param ldapEnabled the ldapEnabled value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withLdapEnabled(Boolean ldapEnabled) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withLdapEnabled(ldapEnabled); + return this; + } + + /** + * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. + * + * @return the coolAccess value. + */ + public Boolean coolAccess() { + return this.innerProperties() == null ? null : this.innerProperties().coolAccess(); + } + + /** + * Set the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. + * + * @param coolAccess the coolAccess value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withCoolAccess(Boolean coolAccess) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withCoolAccess(coolAccess); + return this; + } + + /** + * Get the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients + * will be tiered. + * + * @return the coolnessPeriod value. + */ + public Integer coolnessPeriod() { + return this.innerProperties() == null ? null : this.innerProperties().coolnessPeriod(); + } + + /** + * Set the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients + * will be tiered. + * + * @param coolnessPeriod the coolnessPeriod value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withCoolnessPeriod(Integer coolnessPeriod) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withCoolnessPeriod(coolnessPeriod); + 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 VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withUnixPermissions(String unixPermissions) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withUnixPermissions(unixPermissions); + return this; + } + + /** + * Get the cloneProgress property: When a volume is being restored from another volume's snapshot, will show the + * percentage completion of this cloning process. When this value is empty/null there is no cloning process + * currently happening on this volume. This value will update every 5 minutes during cloning. + * + * @return the cloneProgress value. + */ + public Integer cloneProgress() { + return this.innerProperties() == null ? null : this.innerProperties().cloneProgress(); + } + + /** + * Get the avsDataStore property: avsDataStore Specifies whether the volume is enabled for Azure VMware Solution + * (AVS) datastore purpose. + * + * @return the avsDataStore value. + */ + public AvsDataStore avsDataStore() { + return this.innerProperties() == null ? null : this.innerProperties().avsDataStore(); + } + + /** + * Set the avsDataStore property: avsDataStore Specifies whether the volume is enabled for Azure VMware Solution + * (AVS) datastore purpose. + * + * @param avsDataStore the avsDataStore value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withAvsDataStore(AvsDataStore avsDataStore) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withAvsDataStore(avsDataStore); + return this; + } + + /** + * Get the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. + * + * @return the isDefaultQuotaEnabled value. + */ + public Boolean isDefaultQuotaEnabled() { + return this.innerProperties() == null ? null : this.innerProperties().isDefaultQuotaEnabled(); + } + + /** + * Set the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. + * + * @param isDefaultQuotaEnabled the isDefaultQuotaEnabled value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withIsDefaultQuotaEnabled(isDefaultQuotaEnabled); + return this; + } + + /** + * Get the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies . + * + * @return the defaultUserQuotaInKiBs value. + */ + public Long defaultUserQuotaInKiBs() { + return this.innerProperties() == null ? null : this.innerProperties().defaultUserQuotaInKiBs(); + } + + /** + * Set the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies . + * + * @param defaultUserQuotaInKiBs the defaultUserQuotaInKiBs value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withDefaultUserQuotaInKiBs(defaultUserQuotaInKiBs); + return this; + } + + /** + * Get the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is + * set, the minimum value of 4 KiBs applies. + * + * @return the defaultGroupQuotaInKiBs value. + */ + public Long defaultGroupQuotaInKiBs() { + return this.innerProperties() == null ? null : this.innerProperties().defaultGroupQuotaInKiBs(); + } + + /** + * Set the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is + * set, the minimum value of 4 KiBs applies. + * + * @param defaultGroupQuotaInKiBs the defaultGroupQuotaInKiBs value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withDefaultGroupQuotaInKiBs(defaultGroupQuotaInKiBs); + return this; + } + + /** + * Get the volumeGroupName property: Volume Group Name. + * + * @return the volumeGroupName value. + */ + public String volumeGroupName() { + return this.innerProperties() == null ? null : this.innerProperties().volumeGroupName(); + } + + /** + * Get the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. + * + * @return the capacityPoolResourceId value. + */ + public String capacityPoolResourceId() { + return this.innerProperties() == null ? null : this.innerProperties().capacityPoolResourceId(); + } + + /** + * Set the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. + * + * @param capacityPoolResourceId the capacityPoolResourceId value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withCapacityPoolResourceId(String capacityPoolResourceId) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withCapacityPoolResourceId(capacityPoolResourceId); + return this; + } + + /** + * Get the proximityPlacementGroup property: Proximity placement group associated with the volume. + * + * @return the proximityPlacementGroup value. + */ + public String proximityPlacementGroup() { + return this.innerProperties() == null ? null : this.innerProperties().proximityPlacementGroup(); + } + + /** + * Set the proximityPlacementGroup property: Proximity placement group associated with the volume. + * + * @param proximityPlacementGroup the proximityPlacementGroup value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withProximityPlacementGroup(String proximityPlacementGroup) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withProximityPlacementGroup(proximityPlacementGroup); + return this; + } + + /** + * Get the t2Network property: T2 network information. + * + * @return the t2Network value. + */ + public String t2Network() { + return this.innerProperties() == null ? null : this.innerProperties().t2Network(); + } + + /** + * Get the volumeSpecName property: Volume spec name is the application specific designation or identifier for the + * particular volume in a volume group for e.g. data, log. + * + * @return the volumeSpecName value. + */ + public String volumeSpecName() { + return this.innerProperties() == null ? null : this.innerProperties().volumeSpecName(); + } + + /** + * Set the volumeSpecName property: Volume spec name is the application specific designation or identifier for the + * particular volume in a volume group for e.g. data, log. + * + * @param volumeSpecName the volumeSpecName value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withVolumeSpecName(String volumeSpecName) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withVolumeSpecName(volumeSpecName); + return this; + } + + /** + * Get the placementRules property: Volume placement rules Application specific placement rules for the particular + * volume. + * + * @return the placementRules value. + */ + public List placementRules() { + return this.innerProperties() == null ? null : this.innerProperties().placementRules(); + } + + /** + * Set the placementRules property: Volume placement rules Application specific placement rules for the particular + * volume. + * + * @param placementRules the placementRules value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withPlacementRules(List placementRules) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withPlacementRules(placementRules); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerProperties in model VolumeGroupVolumeProperties")); + } else { + innerProperties().validate(); + } + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java new file mode 100644 index 0000000000000..45ed382bc61dc --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java @@ -0,0 +1,142 @@ +// 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 VolumeGroups. */ +public interface VolumeGroups { + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources. + */ + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName); + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources. + */ + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, Context context); + + /** + * Get details of the specified volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified volume group. + */ + VolumeGroupDetails get(String resourceGroupName, String accountName, String volumeGroupName); + + /** + * Get details of the specified volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the specified volume group. + */ + Response getWithResponse( + String resourceGroupName, String accountName, String volumeGroupName, Context context); + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String volumeGroupName); + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String volumeGroupName, Context context); + + /** + * Get details of the specified volume group. + * + * @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 details of the specified volume group. + */ + VolumeGroupDetails getById(String id); + + /** + * Get details of the specified volume group. + * + * @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 details of the specified volume group. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete the specified volume group only if there are no volumes under volume group. + * + * @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 the specified volume group only if there are no volumes under volume group. + * + * @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 VolumeGroupDetails resource. + * + * @param name resource name. + * @return the first stage of the new VolumeGroupDetails definition. + */ + VolumeGroupDetails.DefinitionStages.Blank define(String name); +} 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 ab342b98dd212..7890f939392a8 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 @@ -118,7 +118,8 @@ public VolumePatch withExportPolicy(VolumePatchPropertiesExportPolicy exportPoli } /** - * Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. + * Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will + * be accepted as input only for manual qosType volume. * * @return the throughputMibps value. */ @@ -127,7 +128,8 @@ public Float throughputMibps() { } /** - * Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. + * Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will + * be accepted as input only for manual qosType volume. * * @param throughputMibps the throughputMibps value to set. * @return the VolumePatch object itself. 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 b5c0de30c6ece..944ff2105fda0 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-06-01/examples/Backups_Account_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 0e38dd64c4a36..7e3090611d8cd 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-06-01/examples/Backups_Account_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 2d36ea5ddf4e9..6bc11929f8a8d 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-06-01/examples/Backups_Account_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 4b7e242417c81..09b19b6894183 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-06-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. 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 05cc843053830..47cefae589129 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-06-01/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 6adb95fa610a2..6035cf3405535 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-06-01/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 eee317d8ce086..9fe85227dc203 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-06-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 22df3de3d392c..e302d8dea139d 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-06-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 30d92ebb8ae3d..4cc5a3c860bb3 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-06-01/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 f0a7998f06b2e..618c31bc0673b 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-06-01/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 c5b3001e0c9f0..b31f18109178c 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-06-01/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 d4d5f43ffaffc..47c5c80452c8a 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-06-01/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 b819dae679304..e2bb1dfaa5607 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-06-01/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 6b79411b4788e..754635aefd351 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-06-01/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 ecca96deab31b..634614601c823 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-06-01/examples/Backups_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 6d27a6a7101a7..3fad16de56f0c 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-06-01/examples/Backups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 b4cac23274ee7..8ce84116857b8 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-06-01/examples/Backups_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 52b13fd5b807c..a18ed0248b30c 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-06-01/examples/Volumes_BackupStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 c3743078dc705..d0ae52fc1b0c2 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-06-01/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 3c15cb5502dad..a41620d83ae49 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-06-01/examples/Backups_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 3a2aed6458b70..23dfd409516a2 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-06-01/examples/Backups_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 f6c543de60529..ce5d257391381 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-06-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 0359afd6b89f7..575c5e2b3ffb5 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-06-01/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 1948eaf23bf6f..c623f6d2d23f6 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-06-01/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 8bd40542686a2..d9dc6b1b90ed7 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-06-01/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 4a8e2cc2aab9e..3d308f0b29598 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-06-01/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/QuotaLimits_List.json */ /** * Sample code: QuotaLimits. 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 85e7ac1ac07c0..204c2ef20b2ab 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-06-01/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 ac47482554fbc..f3706dfd811d1 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-06-01/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 491a75a93e9df..72a646ffdb8c5 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-06-01/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 b9c8c83f2df4b..c162871c5cfb0 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-06-01/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 5e65ca232f5d2..9d456aa0c8d74 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-06-01/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 99231bf224034..c5410d3536082 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-06-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java index 0655a4dad6a3f..1b22f01a0a8ae 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-06-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 938a4fb4d7ac6..aa2433bdcb56f 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-06-01/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 23bea11eeab27..eb2c680033ecf 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-06-01/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 2e968357f2cb8..47f13995393db 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-06-01/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 876c250e6b47e..422ad5855408f 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-06-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 1e871459b8d8e..b890e011fef63 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-06-01/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 49e7670534123..3b9ca6e0fe31c 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-06-01/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 f433a73e8b327..b35c6477bda3f 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-06-01/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 167d113ef36d7..43ab047dd8731 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-06-01/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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/SnapshotsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java index b28f6b66d3d33..96ebf1ebefa61 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-06-01/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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/VaultsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VaultsListSamples.java index 6b794b6b1c40f..75dbef25bdcc2 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-06-01/examples/Vaults_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 new file mode 100644 index 0000000000000..996f7b0c445db --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +import com.azure.resourcemanager.netapp.models.ApplicationType; +import com.azure.resourcemanager.netapp.models.ServiceLevel; +import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; +import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties; +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 + */ + /** + * Sample code: VolumeGroups_Create. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumeGroupsCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager + .volumeGroups() + .define("group1") + .withExistingNetAppAccount("myRG", "account1") + .withRegion("westus") + .withGroupMetadata( + new VolumeGroupMetadata() + .withGroupDescription("Volume group") + .withApplicationType(ApplicationType.SAP_HANA) + .withApplicationIdentifier("DEV") + .withDeploymentSpecId("fb04dbeb-005d-2703-197e-6208dfadb5d9")) + .withVolumes( + Arrays + .asList( + new VolumeGroupVolumeProperties() + .withName("testVol1") + .withCreationToken("testVol1") + .withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + .withThroughputMibps(10.0f) + .withCapacityPoolResourceId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + .withProximityPlacementGroup( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + .withVolumeSpecName("data"), + new VolumeGroupVolumeProperties() + .withName("testVol2") + .withCreationToken("testVol2") + .withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + .withThroughputMibps(10.0f) + .withCapacityPoolResourceId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + .withProximityPlacementGroup( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + .withVolumeSpecName("log"), + new VolumeGroupVolumeProperties() + .withName("testVol3") + .withCreationToken("testVol3") + .withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + .withThroughputMibps(10.0f) + .withCapacityPoolResourceId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + .withProximityPlacementGroup( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + .withVolumeSpecName("shared"))) + .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 new file mode 100644 index 0000000000000..a6f31e620cfbc --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.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 VolumeGroups Delete. */ +public final class VolumeGroupsDeleteSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/VolumeGroups_Delete.json + */ + /** + * Sample code: VolumeGroups_Delete. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumeGroupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.volumeGroups().delete("myRG", "account1", "group1", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..2ceab0fcdd3aa --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.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 VolumeGroups Get. */ +public final class VolumeGroupsGetSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/VolumeGroups_Get.json + */ + /** + * Sample code: VolumeGroups_Get. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumeGroupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.volumeGroups().getWithResponse("myRG", "account1", "group1", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..202592b47e1b1 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.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 VolumeGroups ListByNetAppAccount. */ +public final class VolumeGroupsListByNetAppAccountSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/VolumeGroups_List.json + */ + /** + * Sample code: VolumeGroups_List. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumeGroupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.volumeGroups().listByNetAppAccount("myRG", "account1", Context.NONE); + } +} 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 1ebda7b74e388..39a4597c3ea04 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-06-01/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 8168d0f902918..da966e3fd7d29 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-06-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 ff3de243916f7..339a3bc433de0 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-06-01/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 b962fd604905e..1fbb2a2f5a412 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-06-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 82f87ea3a1662..de0cf4a8a287e 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-06-01/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. 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 f3de291d2d6d1..ae636a8a3fd2b 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-06-01/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 205f6ab1f89dc..02c50346250e7 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-06-01/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 0918e0fc7ceda..0b32f746ebffc 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-06-01/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 e618d872f1c0e..865457c84866b 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-06-01/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 6f994811f100a..a9afd62321630 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-06-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 f929069114db6..8a2e3df58ae96 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-06-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 444f492116aae..3adcbda342813 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-06-01/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-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 ca74cbb296aac..68a9f29cbb1e8 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-06-01/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/Volumes_Update.json */ /** * Sample code: Volumes_Update.