diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index 3e9d052cb1bb..2808a0d5264b 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.12 (Unreleased) +## 1.0.0-beta.1 (2022-11-01) + +- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2022-05-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 c0e8a41e5c83..a87ab0f09e1b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/README.md +++ b/sdk/netapp/azure-resourcemanager-netapp/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-netapp - 1.0.0-beta.11 + 1.0.0-beta.12 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md index 4efc66fc9a9f..128c6b79ace2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md +++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md @@ -1444,13 +1444,13 @@ public final class VolumeGroupsCreateSamples { .withGroupDescription("Volume group") .withApplicationType(ApplicationType.SAP_HANA) .withApplicationIdentifier("DEV") - .withDeploymentSpecId("fb04dbeb-005d-2703-197e-6208dfadb5d9")) + .withDeploymentSpecId("20542149-bfca-5618-1879-9863dc6767f1")) .withVolumes( Arrays .asList( new VolumeGroupVolumeProperties() - .withName("testVol1") - .withCreationToken("testVol1") + .withName("test-data-mnt00001") + .withCreationToken("test-data-mnt00001") .withServiceLevel(ServiceLevel.PREMIUM) .withUsageThreshold(107374182400L) .withSubnetId( @@ -1462,8 +1462,8 @@ public final class VolumeGroupsCreateSamples { "/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") + .withName("test-log-mnt00001") + .withCreationToken("test-log-mnt00001") .withServiceLevel(ServiceLevel.PREMIUM) .withUsageThreshold(107374182400L) .withSubnetId( @@ -1475,8 +1475,8 @@ public final class VolumeGroupsCreateSamples { "/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") + .withName("test-shared") + .withCreationToken("test-shared") .withServiceLevel(ServiceLevel.PREMIUM) .withUsageThreshold(107374182400L) .withSubnetId( 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 838827ccc9a6..8e1f0bf9ea67 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java @@ -259,7 +259,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.netapp") .append("/") - .append("1.0.0-beta.11"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") 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 a98b52933ef6..ac9f0cf301e2 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 @@ -54,13 +54,15 @@ public interface AccountBackupsClient { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupName The name of the backup. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup for a Netapp Account. + * @return the specified backup for a Netapp Account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - BackupInner get(String resourceGroupName, String accountName, String backupName); + Response getWithResponse( + String resourceGroupName, String accountName, String backupName, Context context); /** * Get Backup for a Netapp Account @@ -70,15 +72,13 @@ public interface AccountBackupsClient { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupName The name of the backup. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup for a Netapp Account along with {@link Response}. + * @return the specified backup for a Netapp Account. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String backupName, Context context); + BackupInner get(String resourceGroupName, String accountName, String backupName); /** * Delete Backup for a Netapp Account 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 8179914c4615..6cce337058fb 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 @@ -78,13 +78,15 @@ public interface AccountsClient { * * @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 the NetApp account. + * @return the NetApp account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetAppAccountInner getByResourceGroup(String resourceGroupName, String accountName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String accountName, Context context); /** * Describe a NetApp Account @@ -93,15 +95,13 @@ public interface AccountsClient { * * @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 the NetApp account along with {@link Response}. + * @return the NetApp account. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context); + NetAppAccountInner getByResourceGroup(String resourceGroupName, String accountName); /** * Create or update a NetApp account 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 1877c3946e5d..b8910bda919a 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 @@ -55,13 +55,15 @@ public interface BackupPoliciesClient { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy. + * @return a particular backup Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - BackupPolicyInner get(String resourceGroupName, String accountName, String backupPolicyName); + Response getWithResponse( + String resourceGroupName, String accountName, String backupPolicyName, Context context); /** * Get a backup Policy @@ -71,15 +73,13 @@ public interface BackupPoliciesClient { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy along with {@link Response}. + * @return a particular backup Policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String backupPolicyName, Context context); + BackupPolicyInner get(String resourceGroupName, String accountName, String backupPolicyName); /** * Create a backup policy 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 44ba58dcd6ee..d3f03d547f0b 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 @@ -27,13 +27,15 @@ public interface BackupsClient { * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume. + * @return the status of the backup for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - BackupStatusInner getStatus(String resourceGroupName, String accountName, String poolName, String volumeName); + Response getStatusWithResponse( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** * Get volume's backup status @@ -44,15 +46,13 @@ public interface BackupsClient { * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume along with {@link Response}. + * @return the status of the backup for a volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + BackupStatusInner getStatus(String resourceGroupName, String accountName, String poolName, String volumeName); /** * Get volume's restore status @@ -63,14 +63,15 @@ Response getStatusWithResponse( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume. + * @return the status of the restore for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - RestoreStatusInner getVolumeRestoreStatus( - String resourceGroupName, String accountName, String poolName, String volumeName); + Response getVolumeRestoreStatusWithResponse( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** * Get volume's restore status @@ -81,15 +82,14 @@ RestoreStatusInner getVolumeRestoreStatus( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume along with {@link Response}. + * @return the status of the restore for a volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getVolumeRestoreStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + RestoreStatusInner getVolumeRestoreStatus( + String resourceGroupName, String accountName, String poolName, String volumeName); /** * List Backups @@ -137,14 +137,20 @@ PagedIterable list( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param backupName The name of the backup. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup of the volume. + * @return the specified backup of the volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - BackupInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String backupName); + Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String backupName, + Context context); /** * Get a backup @@ -156,20 +162,14 @@ BackupInner get( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param backupName The name of the backup. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup of the volume along with {@link Response}. + * @return the specified backup of the volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String backupName, - Context context); + BackupInner get( + String resourceGroupName, String accountName, String poolName, String volumeName, String backupName); /** * Create a backup @@ -285,7 +285,6 @@ BackupInner create( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -293,12 +292,7 @@ BackupInner create( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BackupInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String backupName, - BackupPatch body); + String resourceGroupName, String accountName, String poolName, String volumeName, String backupName); /** * Patch a backup @@ -327,31 +321,6 @@ SyncPoller, BackupInner> beginUpdate( BackupPatch body, Context context); - /** - * Patch a backup - * - *

Patch a backup for the volume. - * - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return backup of a Volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - BackupInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String backupName, - BackupPatch body); - /** * Patch a backup * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java index b1e9dcb3f61c..9df466f5f186 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java @@ -49,13 +49,14 @@ public interface NetAppResourceQuotaLimitsClient { * * @param location The location. * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current subscription quota limit along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubscriptionQuotaItemInner get(String location, String quotaLimitName); + Response getWithResponse(String location, String quotaLimitName, Context context); /** * Get quota limits @@ -64,12 +65,11 @@ public interface NetAppResourceQuotaLimitsClient { * * @param location The location. * @param quotaLimitName The name of the Quota Limit. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit along with {@link Response}. + * @return the default and current subscription quota limit. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String location, String quotaLimitName, Context context); + SubscriptionQuotaItemInner get(String location, String quotaLimitName); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java index 4b546040dece..a0524820da4c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java @@ -23,13 +23,15 @@ public interface NetAppResourcesClient { * * @param location The location. * @param body Name availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckAvailabilityResponseInner checkNameAvailability(String location, ResourceNameAvailabilityRequest body); + Response checkNameAvailabilityWithResponse( + String location, ResourceNameAvailabilityRequest body, Context context); /** * Check resource name availability @@ -38,15 +40,13 @@ public interface NetAppResourcesClient { * * @param location The location. * @param body Name availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource along with {@link Response}. + * @return information regarding availability of a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String location, ResourceNameAvailabilityRequest body, Context context); + CheckAvailabilityResponseInner checkNameAvailability(String location, ResourceNameAvailabilityRequest body); /** * Check file path availability @@ -55,13 +55,15 @@ Response checkNameAvailabilityWithResponse( * * @param location The location. * @param body File path availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckAvailabilityResponseInner checkFilePathAvailability(String location, FilePathAvailabilityRequest body); + Response checkFilePathAvailabilityWithResponse( + String location, FilePathAvailabilityRequest body, Context context); /** * Check file path availability @@ -70,15 +72,13 @@ Response checkNameAvailabilityWithResponse( * * @param location The location. * @param body File path availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource along with {@link Response}. + * @return information regarding availability of a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkFilePathAvailabilityWithResponse( - String location, FilePathAvailabilityRequest body, Context context); + CheckAvailabilityResponseInner checkFilePathAvailability(String location, FilePathAvailabilityRequest body); /** * Check quota availability @@ -87,13 +87,15 @@ Response checkFilePathAvailabilityWithResponse( * * @param location The location. * @param body Quota availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckAvailabilityResponseInner checkQuotaAvailability(String location, QuotaAvailabilityRequest body); + Response checkQuotaAvailabilityWithResponse( + String location, QuotaAvailabilityRequest body, Context context); /** * Check quota availability @@ -102,15 +104,13 @@ Response checkFilePathAvailabilityWithResponse( * * @param location The location. * @param body Quota availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource along with {@link Response}. + * @return information regarding availability of a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkQuotaAvailabilityWithResponse( - String location, QuotaAvailabilityRequest body, Context context); + CheckAvailabilityResponseInner checkQuotaAvailability(String location, QuotaAvailabilityRequest body); /** * Describes region specific information. @@ -118,13 +118,14 @@ Response checkQuotaAvailabilityWithResponse( *

Provides storage to network proximity and logical zone mapping information. * * @param location The location. + * @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 provides region specific information. + * @return provides region specific information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - RegionInfoInner queryRegionInfo(String location); + Response queryRegionInfoWithResponse(String location, Context context); /** * Describes region specific information. @@ -132,12 +133,11 @@ Response checkQuotaAvailabilityWithResponse( *

Provides storage to network proximity and logical zone mapping information. * * @param location The location. - * @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 provides region specific information along with {@link Response}. + * @return provides region specific information. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response queryRegionInfoWithResponse(String location, Context context); + RegionInfoInner queryRegionInfo(String location); } 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 7c96ea805bf1..4f5f22c6b020 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 @@ -55,13 +55,15 @@ public interface PoolsClient { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. + * @param 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 capacity pool. + * @return details of the specified capacity pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CapacityPoolInner get(String resourceGroupName, String accountName, String poolName); + Response getWithResponse( + String resourceGroupName, String accountName, String poolName, Context context); /** * Describe a Capacity Pool @@ -71,15 +73,13 @@ public interface PoolsClient { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. - * @param 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 capacity pool along with {@link Response}. + * @return details of the specified capacity pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String poolName, Context context); + CapacityPoolInner get(String resourceGroupName, String accountName, String poolName); /** * Create or Update the specified capacity pool within the resource group 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 3d8aa38a8d3f..2efdba0af2ce 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 @@ -50,13 +50,15 @@ public interface SnapshotPoliciesClient { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy. + * @return a snapshot Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotPolicyInner get(String resourceGroupName, String accountName, String snapshotPolicyName); + Response getWithResponse( + String resourceGroupName, String accountName, String snapshotPolicyName, Context context); /** * Get a snapshot Policy. @@ -64,15 +66,13 @@ public interface SnapshotPoliciesClient { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy along with {@link Response}. + * @return a snapshot Policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context); + SnapshotPolicyInner get(String resourceGroupName, String accountName, String snapshotPolicyName); /** * Create a snapshot policy. @@ -81,14 +81,19 @@ Response getWithResponse( * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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 snapshot policy information. + * @return snapshot policy information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotPolicyInner create( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body); + Response createWithResponse( + String resourceGroupName, + String accountName, + String snapshotPolicyName, + SnapshotPolicyInner body, + Context context); /** * Create a snapshot policy. @@ -97,19 +102,14 @@ SnapshotPolicyInner create( * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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 snapshot policy information along with {@link Response}. + * @return snapshot policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyInner body, - Context context); + SnapshotPolicyInner create( + String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body); /** * Patch a snapshot policy. @@ -251,13 +251,15 @@ SyncPoller, Void> beginDelete( * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. + * @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 volumes associated with snapshot policy. + * @return volumes associated with snapshot policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotPolicyVolumeListInner listVolumes(String resourceGroupName, String accountName, String snapshotPolicyName); + Response listVolumesWithResponse( + String resourceGroupName, String accountName, String snapshotPolicyName, Context context); /** * Get volumes for snapshot policy @@ -267,13 +269,11 @@ SyncPoller, Void> beginDelete( * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. - * @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 volumes associated with snapshot policy along with {@link Response}. + * @return volumes associated with snapshot policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listVolumesWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context); + SnapshotPolicyVolumeListInner listVolumes(String resourceGroupName, String accountName, String snapshotPolicyName); } 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 7637b1788c6e..2ff3c112691f 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 @@ -62,14 +62,20 @@ PagedIterable list( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param snapshotName The name of the snapshot. + * @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 snapshot. + * @return details of the specified snapshot along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); + Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + Context context); /** * Describe a snapshot @@ -81,20 +87,14 @@ SnapshotInner get( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param snapshotName The name of the snapshot. - * @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 snapshot along with {@link Response}. + * @return details of the specified snapshot. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Context context); + SnapshotInner get( + String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); /** * Create a snapshot diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java index 77e85357240a..97948a951321 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java @@ -64,14 +64,20 @@ PagedIterable listByVolume( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subvolume Information properties. + * @return subvolume Information properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubvolumeInfoInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context); /** * Get the path associated with the subvolumeName @@ -83,20 +89,14 @@ SubvolumeInfoInner get( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param subvolumeName The name of the subvolume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subvolume Information properties along with {@link Response}. + * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context); + SubvolumeInfoInner get( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); /** * Create or clone a new subvolume diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java index 1e019e7fcab6..58e9de055fa3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java @@ -55,13 +55,15 @@ public interface VolumeGroupsClient { * @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. + * @return details of the specified volume group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeGroupDetailsInner get(String resourceGroupName, String accountName, String volumeGroupName); + Response getWithResponse( + String resourceGroupName, String accountName, String volumeGroupName, Context context); /** * Describe a Volume Group @@ -71,15 +73,13 @@ public interface VolumeGroupsClient { * @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 along with {@link Response}. + * @return details of the specified volume group. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String volumeGroupName, Context context); + VolumeGroupDetailsInner get(String resourceGroupName, String accountName, String volumeGroupName); /** * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java index f72182325895..980ce92325dc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java @@ -63,14 +63,20 @@ PagedIterable listByVolume( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param volumeQuotaRuleName The name of volume quota rule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified quota rule. + * @return details of the specified quota rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeQuotaRuleInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName); + Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String volumeQuotaRuleName, + Context context); /** * Describe a quota rule @@ -82,20 +88,14 @@ VolumeQuotaRuleInner get( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param volumeQuotaRuleName The name of volume quota rule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified quota rule along with {@link Response}. + * @return details of the specified quota rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - Context context); + VolumeQuotaRuleInner get( + String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName); /** * Create a quota rule 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 d40a33f804af..6f41b7d0aef7 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 @@ -66,13 +66,15 @@ public interface VolumesClient { * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume. + * @return the details of the specified volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeInner get(String resourceGroupName, String accountName, String poolName, String volumeName); + Response getWithResponse( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** * Describe a volume @@ -83,15 +85,13 @@ public interface VolumesClient { * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume along with {@link Response}. + * @return the details of the specified volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + VolumeInner get(String resourceGroupName, String accountName, String poolName, String volumeName); /** * Create or Update a volume @@ -278,8 +278,6 @@ VolumeInner update( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -287,7 +285,7 @@ VolumeInner update( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete); + String resourceGroupName, String accountName, String poolName, String volumeName); /** * Delete a volume @@ -315,24 +313,6 @@ SyncPoller, Void> beginDelete( Boolean forceDelete, Context context); - /** - * Delete a volume - * - *

Delete the specified volume. - * - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete); - /** * Delete a volume * @@ -539,7 +519,6 @@ void resetCifsPassword( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param body Optional body to force break the replication. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -547,7 +526,7 @@ void resetCifsPassword( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginBreakReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, BreakReplicationRequest body); + String resourceGroupName, String accountName, String poolName, String volumeName); /** * Break volume replication @@ -574,24 +553,6 @@ SyncPoller, Void> beginBreakReplication( BreakReplicationRequest body, Context context); - /** - * Break volume replication - * - *

Break the replication connection on the destination volume. - * - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param body Optional body to force break the replication. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 breakReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, BreakReplicationRequest body); - /** * Break volume replication * @@ -739,14 +700,15 @@ void reestablishReplication( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication. + * @return the status of the replication along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationStatusInner replicationStatus( - String resourceGroupName, String accountName, String poolName, String volumeName); + Response replicationStatusWithResponse( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** * Get volume replication status @@ -757,15 +719,14 @@ ReplicationStatusInner replicationStatus( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication along with {@link Response}. + * @return the status of the replication. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response replicationStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + ReplicationStatusInner replicationStatus( + String resourceGroupName, String accountName, String poolName, String volumeName); /** * List replications for volume @@ -1202,7 +1163,6 @@ void poolChange( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param body Relocate volume request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1210,7 +1170,7 @@ void poolChange( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRelocate( - String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body); + String resourceGroupName, String accountName, String poolName, String volumeName); /** * Relocate volume @@ -1237,24 +1197,6 @@ SyncPoller, Void> beginRelocate( RelocateVolumeRequest body, Context context); - /** - * Relocate volume - * - *

Relocates volume to a new stamp. - * - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param body Relocate volume request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void relocate( - String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body); - /** * Relocate volume * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java index 438681c784b4..7372c2be67ab 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java @@ -37,6 +37,10 @@ public final class AccountProperties { @JsonProperty(value = "disableShowmount", access = JsonProperty.Access.WRITE_ONLY) private Boolean disableShowmount; + /** Creates an instance of AccountProperties class. */ + public AccountProperties() { + } + /** * Get the provisioningState property: Azure lifecycle management. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java index aebc97b88693..03fc07358b83 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java @@ -26,6 +26,10 @@ public final class BackupInner extends ProxyResource { @JsonProperty(value = "properties", required = true) private BackupProperties innerProperties = new BackupProperties(); + /** Creates an instance of BackupInner class. */ + public BackupInner() { + } + /** * Get the location property: Resource location. * 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 57577aa4f21d..fc87966ddd9b 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 @@ -34,6 +34,10 @@ public final class BackupPolicyInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of BackupPolicyInner class. */ + public BackupPolicyInner() { + } + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * 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 d52f6bc85dc0..71216b2c0a56 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 @@ -60,6 +60,10 @@ public final class BackupPolicyProperties { @JsonProperty(value = "volumeBackups", access = JsonProperty.Access.WRITE_ONLY) private List volumeBackups; + /** Creates an instance of BackupPolicyProperties class. */ + public BackupPolicyProperties() { + } + /** * 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/BackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java index 47e6ab529c15..5aa1d35d4942 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java @@ -73,6 +73,10 @@ public final class BackupProperties { @JsonProperty(value = "useExistingSnapshot") private Boolean useExistingSnapshot; + /** Creates an instance of BackupProperties class. */ + public BackupProperties() { + } + /** * Get the backupId property: backupId * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java index 46054e55e5f0..feb5b91c8478 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java @@ -60,6 +60,10 @@ public final class BackupStatusInner { @JsonProperty(value = "totalTransferBytes", access = JsonProperty.Access.WRITE_ONLY) private Long totalTransferBytes; + /** Creates an instance of BackupStatusInner class. */ + public BackupStatusInner() { + } + /** * Get the healthy property: Backup health status. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java index c7532860ac1c..2a2fbe5c3845 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java @@ -35,6 +35,10 @@ public final class CapacityPoolInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of CapacityPoolInner class. */ + public CapacityPoolInner() { + } + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java index 8ac2e4a1054b..9e062cb9c6c9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java @@ -33,6 +33,10 @@ public final class CheckAvailabilityResponseInner { @JsonProperty(value = "message") private String message; + /** Creates an instance of CheckAvailabilityResponseInner class. */ + public CheckAvailabilityResponseInner() { + } + /** * Get the isAvailable property: <code>true</code> indicates name is valid and available. * <code>false</code> indicates the name is invalid, unavailable, or both. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java index a1efd0ef7b3c..277f0c00f31e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java @@ -43,6 +43,10 @@ public final class MountTargetProperties { @JsonProperty(value = "smbServerFqdn") private String smbServerFqdn; + /** Creates an instance of MountTargetProperties class. */ + public MountTargetProperties() { + } + /** * Get the mountTargetId property: mountTargetId * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java index 2db669ff0c2f..0ac43651883a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; import com.azure.resourcemanager.netapp.models.AccountEncryption; import com.azure.resourcemanager.netapp.models.ActiveDirectory; import com.azure.resourcemanager.netapp.models.Identity; @@ -34,6 +35,16 @@ public final class NetAppAccountInner extends Resource { @JsonProperty(value = "identity") private Identity identity; + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /** Creates an instance of NetAppAccountInner class. */ + public NetAppAccountInner() { + } + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -72,6 +83,15 @@ public NetAppAccountInner withIdentity(Identity identity) { return this; } + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + /** {@inheritDoc} */ @Override public NetAppAccountInner withLocation(String location) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java index 8d4b210a0797..18b961640a3c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java @@ -36,6 +36,10 @@ public final class OperationInner { @JsonProperty(value = "properties") private OperationProperties innerProperties; + /** Creates an instance of OperationInner class. */ + public OperationInner() { + } + /** * Get the name property: Operation name: {provider}/{resource}/{operation}. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java index 41cf61910a9e..16117c4ef51a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java @@ -17,6 +17,10 @@ public final class OperationProperties { @JsonProperty(value = "serviceSpecification") private ServiceSpecification serviceSpecification; + /** Creates an instance of OperationProperties class. */ + public OperationProperties() { + } + /** * Get the serviceSpecification property: One property of operation, include metric specifications. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java index d40f3adce2ee..7867a3794d46 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java @@ -32,6 +32,10 @@ public final class PoolPatchProperties { @JsonProperty(value = "coolAccess") private Boolean coolAccess; + /** Creates an instance of PoolPatchProperties class. */ + public PoolPatchProperties() { + } + /** * Get the size property: size * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java index 171aafa0ad5d..dd3aa2f9c20b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java @@ -78,6 +78,10 @@ public final class PoolProperties { @JsonProperty(value = "encryptionType") private EncryptionType encryptionType; + /** Creates an instance of PoolProperties class. */ + public PoolProperties() { + } + /** * Get the poolId property: poolId * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java index e2658a04b55e..32f78d24a9b6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java @@ -29,6 +29,10 @@ public final class RegionInfoInner { @JsonProperty(value = "availabilityZoneMappings") private List availabilityZoneMappings; + /** Creates an instance of RegionInfoInner class. */ + public RegionInfoInner() { + } + /** * Get the storageToNetworkProximity property: Storage to Network Proximity * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java index 0fafec427ba4..bd1d78b8969b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java @@ -37,6 +37,10 @@ public final class ReplicationInner { @JsonProperty(value = "remoteVolumeRegion") private String remoteVolumeRegion; + /** Creates an instance of ReplicationInner class. */ + public ReplicationInner() { + } + /** * Get the endpointType property: Indicates whether the local volume is the source or destination for the Volume * Replication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java index 6c401681ee63..a1cbe4b0bed4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java @@ -42,6 +42,10 @@ public final class ReplicationStatusInner { @JsonProperty(value = "errorMessage") private String errorMessage; + /** Creates an instance of ReplicationStatusInner class. */ + public ReplicationStatusInner() { + } + /** * Get the healthy property: Replication health check. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java index 248084df03e3..370222b6de4e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java @@ -48,6 +48,10 @@ public final class RestoreStatusInner { @JsonProperty(value = "totalTransferBytes", access = JsonProperty.Access.WRITE_ONLY) private Long totalTransferBytes; + /** Creates an instance of RestoreStatusInner class. */ + public RestoreStatusInner() { + } + /** * Get the healthy property: Restore health status. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java index 3cf9b6d34d67..90c185489de3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java @@ -25,6 +25,10 @@ public final class SnapshotInner extends ProxyResource { @JsonProperty(value = "properties") private SnapshotProperties innerProperties; + /** Creates an instance of SnapshotInner class. */ + public SnapshotInner() { + } + /** * Get the location property: Resource location. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java index 36968f3582a1..83870dbae025 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java @@ -36,6 +36,10 @@ public final class SnapshotPolicyInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of SnapshotPolicyInner class. */ + public SnapshotPolicyInner() { + } + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java index b991388d7101..aa9ace19ad48 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java @@ -50,6 +50,10 @@ public final class SnapshotPolicyProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; + /** Creates an instance of SnapshotPolicyProperties class. */ + public SnapshotPolicyProperties() { + } + /** * Get the hourlySchedule property: Schedule for hourly snapshots. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java index 85f34c9ae377..a125b2b8d4cc 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 @@ -17,6 +17,10 @@ public final class SnapshotPolicyVolumeListInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of SnapshotPolicyVolumeListInner class. */ + public SnapshotPolicyVolumeListInner() { + } + /** * Get the value property: List of volumes. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java index 3c9f188dbc8f..1eedf96e7a27 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java @@ -33,6 +33,10 @@ public final class SnapshotProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; + /** Creates an instance of SnapshotProperties class. */ + public SnapshotProperties() { + } + /** * Get the snapshotId property: snapshotId * 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 70e2995762f1..c108c0baf9bd 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 @@ -4,12 +4,13 @@ package com.azure.resourcemanager.netapp.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; import com.fasterxml.jackson.annotation.JsonProperty; /** Information regarding Subscription Quota Item. */ -@Fluent +@Immutable public final class SubscriptionQuotaItemInner extends ProxyResource { /* * SubscriptionQuotaItem properties @@ -17,6 +18,16 @@ public final class SubscriptionQuotaItemInner extends ProxyResource { @JsonProperty(value = "properties") private SubscriptionQuotaItemProperties innerProperties; + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /** Creates an instance of SubscriptionQuotaItemInner class. */ + public SubscriptionQuotaItemInner() { + } + /** * Get the innerProperties property: SubscriptionQuotaItem properties. * @@ -26,6 +37,15 @@ private SubscriptionQuotaItemProperties innerProperties() { return this.innerProperties; } + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + /** * Get the 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 503b16294bab..de58ea6b10d8 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 @@ -22,6 +22,10 @@ public final class SubscriptionQuotaItemProperties { @JsonProperty(value = "default", access = JsonProperty.Access.WRITE_ONLY) private Integer defaultProperty; + /** Creates an instance of SubscriptionQuotaItemProperties class. */ + public SubscriptionQuotaItemProperties() { + } + /** * 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/SubvolumeInfoInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java index 7434e120eaba..5ec2d4e2fdb9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java @@ -24,6 +24,10 @@ public final class SubvolumeInfoInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of SubvolumeInfoInner class. */ + public SubvolumeInfoInner() { + } + /** * Get the innerProperties property: Subvolume Properties. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java index 43eed355a1b8..e0b51d40618a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java @@ -35,6 +35,10 @@ public final class SubvolumeModelInner { @JsonProperty(value = "properties") private SubvolumeModelProperties innerProperties; + /** Creates an instance of SubvolumeModelInner class. */ + public SubvolumeModelInner() { + } + /** * Get the id property: Resource Id. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java index 1885be3c0c20..46788f1818cc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java @@ -89,6 +89,10 @@ public final class SubvolumeModelProperties { @JsonProperty(value = "provisioningState") private String provisioningState; + /** Creates an instance of SubvolumeModelProperties class. */ + public SubvolumeModelProperties() { + } + /** * Get the path property: path * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java index 9e1943b0020c..b983189bedfd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java @@ -26,6 +26,10 @@ public final class SubvolumePatchParams { @JsonProperty(value = "path") private String path; + /** Creates an instance of SubvolumePatchParams class. */ + public SubvolumePatchParams() { + } + /** * Get the size property: size * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java index c2dd240f5286..bcc05b1b27e6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java @@ -40,6 +40,10 @@ public final class SubvolumeProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; + /** Creates an instance of SubvolumeProperties class. */ + public SubvolumeProperties() { + } + /** * Get the path property: path * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java index 1674295c1526..64dcb4278d5a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java @@ -18,6 +18,10 @@ public final class VaultInner extends ProxyResource { @JsonProperty(value = "properties", required = true) private VaultProperties innerProperties = new VaultProperties(); + /** Creates an instance of VaultInner class. */ + public VaultInner() { + } + /** * Get the innerProperties property: Vault Properties. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java index 53cd65c38aad..22b18d019fe5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java @@ -16,6 +16,10 @@ public final class VaultProperties { @JsonProperty(value = "vaultName") private String vaultName; + /** Creates an instance of VaultProperties class. */ + public VaultProperties() { + } + /** * Get the vaultName property: Vault Name. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java index eead110c345d..d9955f4ac7c2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java @@ -43,6 +43,10 @@ public final class VolumeGroupDetailsInner { @JsonProperty(value = "properties") private VolumeGroupProperties innerProperties; + /** Creates an instance of VolumeGroupDetailsInner class. */ + public VolumeGroupDetailsInner() { + } + /** * Get the location property: Resource location. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java index 3ee07597cecc..d9b71c7976d9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java @@ -41,6 +41,10 @@ public final class VolumeGroupInner { @JsonProperty(value = "properties") private VolumeGroupListProperties innerProperties; + /** Creates an instance of VolumeGroupInner class. */ + public VolumeGroupInner() { + } + /** * Get the location property: Resource location. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java index 1d67a3966eed..2d075f0fb95f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java @@ -23,6 +23,10 @@ public final class VolumeGroupListProperties { @JsonProperty(value = "groupMetaData") private VolumeGroupMetadata groupMetadata; + /** Creates an instance of VolumeGroupListProperties class. */ + public VolumeGroupListProperties() { + } + /** * Get the provisioningState property: Azure lifecycle management. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java index 7fbdd123f2cf..bd9547ef4d1a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java @@ -31,6 +31,10 @@ public final class VolumeGroupProperties { @JsonProperty(value = "volumes") private List volumes; + /** Creates an instance of VolumeGroupProperties class. */ + public VolumeGroupProperties() { + } + /** * Get the provisioningState property: Azure lifecycle management. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java index ea01a5a10d5d..874e175a98b8 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 @@ -51,6 +51,10 @@ public final class VolumeInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of VolumeInner class. */ + public VolumeInner() { + } + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * 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 c8b40ca2a949..4db2172d36e4 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 @@ -93,6 +93,10 @@ public final class VolumePatchProperties { @JsonProperty(value = "coolnessPeriod") private Integer coolnessPeriod; + /** Creates an instance of VolumePatchProperties class. */ + public VolumePatchProperties() { + } + /** * Get the serviceLevel property: serviceLevel * 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 4718a6c1a1da..47542b3ae0e1 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 @@ -357,6 +357,10 @@ public final class VolumeProperties { @JsonProperty(value = "enableSubvolumes") private EnableSubvolumes enableSubvolumes; + /** Creates an instance of VolumeProperties class. */ + public VolumeProperties() { + } + /** * Get the fileSystemId property: FileSystem ID * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java index 287e929f86c5..afc4ead0ddfa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java @@ -27,6 +27,10 @@ public final class VolumeQuotaRuleInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of VolumeQuotaRuleInner class. */ + public VolumeQuotaRuleInner() { + } + /** * Get the innerProperties property: Volume Quota Rule Properties. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java index c1b86dd6ab9c..49f04c0fcc63 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java @@ -39,6 +39,10 @@ public final class VolumeQuotaRulesProperties { @JsonProperty(value = "quotaTarget") private String quotaTarget; + /** Creates an instance of VolumeQuotaRulesProperties class. */ + public VolumeQuotaRulesProperties() { + } + /** * Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called. * 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 0ccfde96c28a..ea8a86472c6f 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 @@ -421,14 +421,16 @@ private Mono getAsync(String resourceGroupName, String accountName, * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupName The name of the backup. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup for a Netapp Account. + * @return the specified backup for a Netapp Account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupInner get(String resourceGroupName, String accountName, String backupName) { - return getAsync(resourceGroupName, accountName, backupName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String backupName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, backupName, context).block(); } /** @@ -439,16 +441,14 @@ public BackupInner get(String resourceGroupName, String accountName, String back * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupName The name of the backup. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup for a Netapp Account along with {@link Response}. + * @return the specified backup for a Netapp Account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String backupName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, backupName, context).block(); + public BackupInner get(String resourceGroupName, String accountName, String backupName) { + return getWithResponse(resourceGroupName, accountName, backupName, Context.NONE).getValue(); } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java index bc060d9d9ff8..290758306449 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(String resourceGroupName, String accountName, return Utils.mapPage(inner, inner1 -> new BackupImpl(inner1, this.manager())); } - public Backup get(String resourceGroupName, String accountName, String backupName) { - BackupInner inner = this.serviceClient().get(resourceGroupName, accountName, backupName); - if (inner != null) { - return new BackupImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String backupName, Context context) { Response inner = @@ -61,6 +52,15 @@ public Response getWithResponse( } } + public Backup get(String resourceGroupName, String accountName, String backupName) { + BackupInner inner = this.serviceClient().get(resourceGroupName, accountName, backupName); + if (inner != null) { + return new BackupImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String backupName) { this.serviceClient().delete(resourceGroupName, accountName, backupName); } 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 24fb5520004b..73cbff2c60e7 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 @@ -163,6 +163,7 @@ Mono>> renewCredentials( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, Context context); @Headers({"Content-Type: application/json"}) @@ -640,14 +641,16 @@ private Mono getByResourceGroupAsync(String resourceGroupNam * * @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 the NetApp account. + * @return the NetApp account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetAppAccountInner getByResourceGroup(String resourceGroupName, String accountName) { - return getByResourceGroupAsync(resourceGroupName, accountName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String accountName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block(); } /** @@ -657,16 +660,14 @@ public NetAppAccountInner getByResourceGroup(String resourceGroupName, String ac * * @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 the NetApp account along with {@link Response}. + * @return the NetApp account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block(); + public NetAppAccountInner getByResourceGroup(String resourceGroupName, String accountName) { + return getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); } /** @@ -1525,6 +1526,7 @@ private Mono>> renewCredentialsWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, + this.client.getApiVersion(), context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1568,7 +1570,12 @@ private Mono>> renewCredentialsWithResponseAsync( context = this.client.mergeContext(context); return service .renewCredentials( - this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, context); + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + this.client.getApiVersion(), + context); } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java index 6ad43ff830c2..6c0dc6565422 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java @@ -47,15 +47,6 @@ public PagedIterable listByResourceGroup(String resourceGroupName return Utils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); } - public NetAppAccount getByResourceGroup(String resourceGroupName, String accountName) { - NetAppAccountInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName); - if (inner != null) { - return new NetAppAccountImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String accountName, Context context) { Response inner = @@ -71,6 +62,15 @@ public Response getByResourceGroupWithResponse( } } + public NetAppAccount getByResourceGroup(String resourceGroupName, String accountName) { + NetAppAccountInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName); + if (inner != null) { + return new NetAppAccountImpl(inner, this.manager()); + } else { + return null; + } + } + public void deleteByResourceGroup(String resourceGroupName, String accountName) { this.serviceClient().delete(resourceGroupName, accountName); } 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 ac282d74f99a..62ead63cbcb4 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 @@ -459,14 +459,16 @@ private Mono getAsync(String resourceGroupName, String accoun * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy. + * @return a particular backup Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupPolicyInner get(String resourceGroupName, String accountName, String backupPolicyName) { - return getAsync(resourceGroupName, accountName, backupPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String backupPolicyName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, backupPolicyName, context).block(); } /** @@ -477,16 +479,14 @@ public BackupPolicyInner get(String resourceGroupName, String accountName, Strin * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy along with {@link Response}. + * @return a particular backup Policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String backupPolicyName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, backupPolicyName, context).block(); + public BackupPolicyInner get(String resourceGroupName, String accountName, String backupPolicyName) { + return getWithResponse(resourceGroupName, accountName, backupPolicyName, Context.NONE).getValue(); } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java index 8ed1aa144eee..9a7dba4da525 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(String resourceGroupName, String account return Utils.mapPage(inner, inner1 -> new BackupPolicyImpl(inner1, this.manager())); } - public BackupPolicy get(String resourceGroupName, String accountName, String backupPolicyName) { - BackupPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, backupPolicyName); - if (inner != null) { - return new BackupPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String backupPolicyName, Context context) { Response inner = @@ -61,6 +52,15 @@ public Response getWithResponse( } } + public BackupPolicy get(String resourceGroupName, String accountName, String backupPolicyName) { + BackupPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, backupPolicyName); + if (inner != null) { + return new BackupPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String backupPolicyName) { this.serviceClient().delete(resourceGroupName, accountName, backupPolicyName); } 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 89a8ef72a75e..abf7fea95352 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 @@ -342,15 +342,16 @@ private Mono getStatusAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume. + * @return the status of the backup for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupStatusInner getStatus( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return getStatusAsync(resourceGroupName, accountName, poolName, volumeName).block(); + public Response getStatusWithResponse( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + return getStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } /** @@ -362,16 +363,15 @@ public BackupStatusInner getStatus( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume along with {@link Response}. + * @return the status of the backup for a volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return getStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); + public BackupStatusInner getStatus( + String resourceGroupName, String accountName, String poolName, String volumeName) { + return getStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE).getValue(); } /** @@ -524,15 +524,17 @@ private Mono getVolumeRestoreStatusAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume. + * @return the status of the restore for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RestoreStatusInner getVolumeRestoreStatus( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return getVolumeRestoreStatusAsync(resourceGroupName, accountName, poolName, volumeName).block(); + public Response getVolumeRestoreStatusWithResponse( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + return getVolumeRestoreStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context) + .block(); } /** @@ -544,17 +546,16 @@ public RestoreStatusInner getVolumeRestoreStatus( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume along with {@link Response}. + * @return the status of the restore for a volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getVolumeRestoreStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return getVolumeRestoreStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context) - .block(); + public RestoreStatusInner getVolumeRestoreStatus( + String resourceGroupName, String accountName, String poolName, String volumeName) { + return getVolumeRestoreStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE) + .getValue(); } /** @@ -931,15 +932,21 @@ private Mono getAsync( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param backupName The name of the backup. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup of the volume. + * @return the specified backup of the volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) { - return getAsync(resourceGroupName, accountName, poolName, volumeName, backupName).block(); + public Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String backupName, + Context context) { + return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, backupName, context).block(); } /** @@ -952,21 +959,16 @@ public BackupInner get( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param backupName The name of the backup. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup of the volume along with {@link Response}. + * @return the specified backup of the volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String backupName, - Context context) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, backupName, context).block(); + public BackupInner get( + String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) { + return getWithResponse(resourceGroupName, accountName, poolName, volumeName, backupName, Context.NONE) + .getValue(); } /** @@ -1543,6 +1545,33 @@ private PollerFlux, BackupInner> beginUpdateAsync( mono, this.client.getHttpPipeline(), BackupInner.class, BackupInner.class, this.client.getContext()); } + /** + * Patch a backup + * + *

Patch a backup for the volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param backupName The name of the backup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of backup of a Volume. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, BackupInner> beginUpdateAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) { + final BackupPatch body = null; + Mono>> mono = + updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, backupName, body); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), BackupInner.class, BackupInner.class, this.client.getContext()); + } + /** * Patch a backup * @@ -1588,7 +1617,6 @@ private PollerFlux, BackupInner> beginUpdateAsync( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1596,12 +1624,8 @@ private PollerFlux, BackupInner> beginUpdateAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BackupInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String backupName, - BackupPatch body) { + String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) { + final BackupPatch body = null; return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, backupName, body).getSyncPoller(); } @@ -1719,33 +1743,6 @@ private Mono updateAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Patch a backup - * - *

Patch a backup for the volume. - * - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return backup of a Volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public BackupInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String backupName, - BackupPatch body) { - return updateAsync(resourceGroupName, accountName, poolName, volumeName, backupName, body).block(); - } - /** * Patch a backup * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java index 1e170be3bf53..d0f6a579c430 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java @@ -30,15 +30,6 @@ public BackupsImpl(BackupsClient innerClient, com.azure.resourcemanager.netapp.N this.serviceManager = serviceManager; } - public BackupStatus getStatus(String resourceGroupName, String accountName, String poolName, String volumeName) { - BackupStatusInner inner = this.serviceClient().getStatus(resourceGroupName, accountName, poolName, volumeName); - if (inner != null) { - return new BackupStatusImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getStatusWithResponse( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { Response inner = @@ -54,12 +45,10 @@ public Response getStatusWithResponse( } } - public RestoreStatus getVolumeRestoreStatus( - String resourceGroupName, String accountName, String poolName, String volumeName) { - RestoreStatusInner inner = - this.serviceClient().getVolumeRestoreStatus(resourceGroupName, accountName, poolName, volumeName); + public BackupStatus getStatus(String resourceGroupName, String accountName, String poolName, String volumeName) { + BackupStatusInner inner = this.serviceClient().getStatus(resourceGroupName, accountName, poolName, volumeName); if (inner != null) { - return new RestoreStatusImpl(inner, this.manager()); + return new BackupStatusImpl(inner, this.manager()); } else { return null; } @@ -82,6 +71,17 @@ public Response getVolumeRestoreStatusWithResponse( } } + public RestoreStatus getVolumeRestoreStatus( + String resourceGroupName, String accountName, String poolName, String volumeName) { + RestoreStatusInner inner = + this.serviceClient().getVolumeRestoreStatus(resourceGroupName, accountName, poolName, volumeName); + if (inner != null) { + return new RestoreStatusImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list( String resourceGroupName, String accountName, String poolName, String volumeName) { PagedIterable inner = @@ -96,16 +96,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new BackupImpl(inner1, this.manager())); } - public Backup get( - String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) { - BackupInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, backupName); - if (inner != null) { - return new BackupImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, @@ -128,6 +118,16 @@ public Response getWithResponse( } } + public Backup get( + String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) { + BackupInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, backupName); + if (inner != null) { + return new BackupImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete( String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, backupName); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java index 41073e6d330f..fd91623117f9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.implementation; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner; import com.azure.resourcemanager.netapp.models.AccountEncryption; @@ -54,6 +55,10 @@ public Identity identity() { return this.innerModel().identity(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public String provisioningState() { return this.innerModel().provisioningState(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java index 695b1fa59418..adaebbeda866 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java @@ -367,14 +367,16 @@ private Mono getAsync(String location, String quotaL * * @param location The location. * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current subscription quota limit along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SubscriptionQuotaItemInner get(String location, String quotaLimitName) { - return getAsync(location, quotaLimitName).block(); + public Response getWithResponse( + String location, String quotaLimitName, Context context) { + return getWithResponseAsync(location, quotaLimitName, context).block(); } /** @@ -384,15 +386,13 @@ public SubscriptionQuotaItemInner get(String location, String quotaLimitName) { * * @param location The location. * @param quotaLimitName The name of the Quota Limit. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit along with {@link Response}. + * @return the default and current subscription quota limit. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String location, String quotaLimitName, Context context) { - return getWithResponseAsync(location, quotaLimitName, context).block(); + public SubscriptionQuotaItemInner get(String location, String quotaLimitName) { + return getWithResponse(location, quotaLimitName, Context.NONE).getValue(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java index 0d7e1ca3a842..9f0869613f85 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java @@ -38,15 +38,6 @@ public PagedIterable list(String location, Context contex return Utils.mapPage(inner, inner1 -> new SubscriptionQuotaItemImpl(inner1, this.manager())); } - public SubscriptionQuotaItem get(String location, String quotaLimitName) { - SubscriptionQuotaItemInner inner = this.serviceClient().get(location, quotaLimitName); - if (inner != null) { - return new SubscriptionQuotaItemImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String location, String quotaLimitName, Context context) { Response inner = this.serviceClient().getWithResponse(location, quotaLimitName, context); @@ -61,6 +52,15 @@ public Response getWithResponse(String location, String q } } + public SubscriptionQuotaItem get(String location, String quotaLimitName) { + SubscriptionQuotaItemInner inner = this.serviceClient().get(location, quotaLimitName); + if (inner != null) { + return new SubscriptionQuotaItemImpl(inner, this.manager()); + } else { + return null; + } + } + private NetAppResourceQuotaLimitsClient serviceClient() { return this.innerClient; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java index 01e362502983..907051e5b7c3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java @@ -237,14 +237,16 @@ private Mono checkNameAvailabilityAsync( * * @param location The location. * @param body Name availability request. + * @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 information regarding availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckAvailabilityResponseInner checkNameAvailability(String location, ResourceNameAvailabilityRequest body) { - return checkNameAvailabilityAsync(location, body).block(); + public Response checkNameAvailabilityWithResponse( + String location, ResourceNameAvailabilityRequest body, Context context) { + return checkNameAvailabilityWithResponseAsync(location, body, context).block(); } /** @@ -254,16 +256,14 @@ public CheckAvailabilityResponseInner checkNameAvailability(String location, Res * * @param location The location. * @param body Name availability request. - * @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 information regarding availability of a resource along with {@link Response}. + * @return information regarding availability of a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - String location, ResourceNameAvailabilityRequest body, Context context) { - return checkNameAvailabilityWithResponseAsync(location, body, context).block(); + public CheckAvailabilityResponseInner checkNameAvailability(String location, ResourceNameAvailabilityRequest body) { + return checkNameAvailabilityWithResponse(location, body, Context.NONE).getValue(); } /** @@ -394,14 +394,16 @@ private Mono checkFilePathAvailabilityAsync( * * @param location The location. * @param body File path availability request. + * @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 information regarding availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckAvailabilityResponseInner checkFilePathAvailability(String location, FilePathAvailabilityRequest body) { - return checkFilePathAvailabilityAsync(location, body).block(); + public Response checkFilePathAvailabilityWithResponse( + String location, FilePathAvailabilityRequest body, Context context) { + return checkFilePathAvailabilityWithResponseAsync(location, body, context).block(); } /** @@ -411,16 +413,14 @@ public CheckAvailabilityResponseInner checkFilePathAvailability(String location, * * @param location The location. * @param body File path availability request. - * @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 information regarding availability of a resource along with {@link Response}. + * @return information regarding availability of a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkFilePathAvailabilityWithResponse( - String location, FilePathAvailabilityRequest body, Context context) { - return checkFilePathAvailabilityWithResponseAsync(location, body, context).block(); + public CheckAvailabilityResponseInner checkFilePathAvailability(String location, FilePathAvailabilityRequest body) { + return checkFilePathAvailabilityWithResponse(location, body, Context.NONE).getValue(); } /** @@ -550,14 +550,16 @@ private Mono checkQuotaAvailabilityAsync( * * @param location The location. * @param body Quota availability request. + * @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 information regarding availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckAvailabilityResponseInner checkQuotaAvailability(String location, QuotaAvailabilityRequest body) { - return checkQuotaAvailabilityAsync(location, body).block(); + public Response checkQuotaAvailabilityWithResponse( + String location, QuotaAvailabilityRequest body, Context context) { + return checkQuotaAvailabilityWithResponseAsync(location, body, context).block(); } /** @@ -567,16 +569,14 @@ public CheckAvailabilityResponseInner checkQuotaAvailability(String location, Qu * * @param location The location. * @param body Quota availability request. - * @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 information regarding availability of a resource along with {@link Response}. + * @return information regarding availability of a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkQuotaAvailabilityWithResponse( - String location, QuotaAvailabilityRequest body, Context context) { - return checkQuotaAvailabilityWithResponseAsync(location, body, context).block(); + public CheckAvailabilityResponseInner checkQuotaAvailability(String location, QuotaAvailabilityRequest body) { + return checkQuotaAvailabilityWithResponse(location, body, Context.NONE).getValue(); } /** @@ -687,14 +687,15 @@ private Mono queryRegionInfoAsync(String location) { *

Provides storage to network proximity and logical zone mapping information. * * @param location The location. + * @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 provides region specific information. + * @return provides region specific information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RegionInfoInner queryRegionInfo(String location) { - return queryRegionInfoAsync(location).block(); + public Response queryRegionInfoWithResponse(String location, Context context) { + return queryRegionInfoWithResponseAsync(location, context).block(); } /** @@ -703,14 +704,13 @@ public RegionInfoInner queryRegionInfo(String location) { *

Provides storage to network proximity and logical zone mapping information. * * @param location The location. - * @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 provides region specific information along with {@link Response}. + * @return provides region specific information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response queryRegionInfoWithResponse(String location, Context context) { - return queryRegionInfoWithResponseAsync(location, context).block(); + public RegionInfoInner queryRegionInfo(String location) { + return queryRegionInfoWithResponse(location, Context.NONE).getValue(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java index 38ab975e18c9..282a6de812cc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java @@ -31,15 +31,6 @@ public NetAppResourcesImpl( this.serviceManager = serviceManager; } - public CheckAvailabilityResponse checkNameAvailability(String location, ResourceNameAvailabilityRequest body) { - CheckAvailabilityResponseInner inner = this.serviceClient().checkNameAvailability(location, body); - if (inner != null) { - return new CheckAvailabilityResponseImpl(inner, this.manager()); - } else { - return null; - } - } - public Response checkNameAvailabilityWithResponse( String location, ResourceNameAvailabilityRequest body, Context context) { Response inner = @@ -55,8 +46,8 @@ public Response checkNameAvailabilityWithResponse( } } - public CheckAvailabilityResponse checkFilePathAvailability(String location, FilePathAvailabilityRequest body) { - CheckAvailabilityResponseInner inner = this.serviceClient().checkFilePathAvailability(location, body); + public CheckAvailabilityResponse checkNameAvailability(String location, ResourceNameAvailabilityRequest body) { + CheckAvailabilityResponseInner inner = this.serviceClient().checkNameAvailability(location, body); if (inner != null) { return new CheckAvailabilityResponseImpl(inner, this.manager()); } else { @@ -79,8 +70,8 @@ public Response checkFilePathAvailabilityWithResponse } } - public CheckAvailabilityResponse checkQuotaAvailability(String location, QuotaAvailabilityRequest body) { - CheckAvailabilityResponseInner inner = this.serviceClient().checkQuotaAvailability(location, body); + public CheckAvailabilityResponse checkFilePathAvailability(String location, FilePathAvailabilityRequest body) { + CheckAvailabilityResponseInner inner = this.serviceClient().checkFilePathAvailability(location, body); if (inner != null) { return new CheckAvailabilityResponseImpl(inner, this.manager()); } else { @@ -103,10 +94,10 @@ public Response checkQuotaAvailabilityWithResponse( } } - public RegionInfo queryRegionInfo(String location) { - RegionInfoInner inner = this.serviceClient().queryRegionInfo(location); + public CheckAvailabilityResponse checkQuotaAvailability(String location, QuotaAvailabilityRequest body) { + CheckAvailabilityResponseInner inner = this.serviceClient().checkQuotaAvailability(location, body); if (inner != null) { - return new RegionInfoImpl(inner, this.manager()); + return new CheckAvailabilityResponseImpl(inner, this.manager()); } else { return null; } @@ -125,6 +116,15 @@ public Response queryRegionInfoWithResponse(String location, Context } } + public RegionInfo queryRegionInfo(String location) { + RegionInfoInner inner = this.serviceClient().queryRegionInfo(location); + if (inner != null) { + return new RegionInfoImpl(inner, this.manager()); + } else { + return null; + } + } + private NetAppResourcesClient serviceClient() { return this.innerClient; } 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 b6b6cb1b0be1..c4551c8f273c 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 @@ -483,14 +483,16 @@ private Mono getAsync(String resourceGroupName, String accoun * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. + * @param 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 capacity pool. + * @return details of the specified capacity pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CapacityPoolInner get(String resourceGroupName, String accountName, String poolName) { - return getAsync(resourceGroupName, accountName, poolName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String poolName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, poolName, context).block(); } /** @@ -501,16 +503,14 @@ public CapacityPoolInner get(String resourceGroupName, String accountName, Strin * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. - * @param 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 capacity pool along with {@link Response}. + * @return details of the specified capacity pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String poolName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, context).block(); + public CapacityPoolInner get(String resourceGroupName, String accountName, String poolName) { + return getWithResponse(resourceGroupName, accountName, poolName, Context.NONE).getValue(); } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java index 184fc6421d7b..cb9280c6f6d8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java @@ -36,15 +36,6 @@ public PagedIterable list(String resourceGroupName, String account return Utils.mapPage(inner, inner1 -> new CapacityPoolImpl(inner1, this.manager())); } - public CapacityPool get(String resourceGroupName, String accountName, String poolName) { - CapacityPoolInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName); - if (inner != null) { - return new CapacityPoolImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String poolName, Context context) { Response inner = @@ -60,6 +51,15 @@ public Response getWithResponse( } } + public CapacityPool get(String resourceGroupName, String accountName, String poolName) { + CapacityPoolInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName); + if (inner != null) { + return new CapacityPoolImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String poolName) { this.serviceClient().delete(resourceGroupName, accountName, poolName); } 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 fb95149c9d99..02146860b4cc 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 @@ -457,14 +457,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy. + * @return a snapshot Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotPolicyInner get(String resourceGroupName, String accountName, String snapshotPolicyName) { - return getAsync(resourceGroupName, accountName, snapshotPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, context).block(); } /** @@ -473,16 +475,14 @@ public SnapshotPolicyInner get(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy along with {@link Response}. + * @return a snapshot Policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, context).block(); + public SnapshotPolicyInner get(String resourceGroupName, String accountName, String snapshotPolicyName) { + return getWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE).getValue(); } /** @@ -635,15 +635,20 @@ private Mono createAsync( * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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 snapshot policy information. + * @return snapshot policy information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotPolicyInner create( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body) { - return createAsync(resourceGroupName, accountName, snapshotPolicyName, body).block(); + public Response createWithResponse( + String resourceGroupName, + String accountName, + String snapshotPolicyName, + SnapshotPolicyInner body, + Context context) { + return createWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body, context).block(); } /** @@ -653,20 +658,15 @@ public SnapshotPolicyInner create( * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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 snapshot policy information along with {@link Response}. + * @return snapshot policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyInner body, - Context context) { - return createWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body, context).block(); + public SnapshotPolicyInner create( + String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body) { + return createWithResponse(resourceGroupName, accountName, snapshotPolicyName, body, Context.NONE).getValue(); } /** @@ -1367,15 +1367,16 @@ private Mono listVolumesAsync( * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. + * @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 volumes associated with snapshot policy. + * @return volumes associated with snapshot policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotPolicyVolumeListInner listVolumes( - String resourceGroupName, String accountName, String snapshotPolicyName) { - return listVolumesAsync(resourceGroupName, accountName, snapshotPolicyName).block(); + public Response listVolumesWithResponse( + String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { + return listVolumesWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, context).block(); } /** @@ -1386,15 +1387,14 @@ public SnapshotPolicyVolumeListInner listVolumes( * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. - * @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 volumes associated with snapshot policy along with {@link Response}. + * @return volumes associated with snapshot policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listVolumesWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { - return listVolumesWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, context).block(); + public SnapshotPolicyVolumeListInner listVolumes( + String resourceGroupName, String accountName, String snapshotPolicyName) { + return listVolumesWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE).getValue(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java index 7850ef99f35b..f17a12eb82d5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java @@ -39,15 +39,6 @@ public PagedIterable list(String resourceGroupName, String accou return Utils.mapPage(inner, inner1 -> new SnapshotPolicyImpl(inner1, this.manager())); } - public SnapshotPolicy get(String resourceGroupName, String accountName, String snapshotPolicyName) { - SnapshotPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, snapshotPolicyName); - if (inner != null) { - return new SnapshotPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { Response inner = @@ -63,6 +54,15 @@ public Response getWithResponse( } } + public SnapshotPolicy get(String resourceGroupName, String accountName, String snapshotPolicyName) { + SnapshotPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, snapshotPolicyName); + if (inner != null) { + return new SnapshotPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String snapshotPolicyName) { this.serviceClient().delete(resourceGroupName, accountName, snapshotPolicyName); } @@ -71,17 +71,6 @@ public void delete(String resourceGroupName, String accountName, String snapshot this.serviceClient().delete(resourceGroupName, accountName, snapshotPolicyName, context); } - public SnapshotPolicyVolumeList listVolumes( - String resourceGroupName, String accountName, String snapshotPolicyName) { - SnapshotPolicyVolumeListInner inner = - this.serviceClient().listVolumes(resourceGroupName, accountName, snapshotPolicyName); - if (inner != null) { - return new SnapshotPolicyVolumeListImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listVolumesWithResponse( String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { Response inner = @@ -97,6 +86,17 @@ public Response listVolumesWithResponse( } } + public SnapshotPolicyVolumeList listVolumes( + String resourceGroupName, String accountName, String snapshotPolicyName) { + SnapshotPolicyVolumeListInner inner = + this.serviceClient().listVolumes(resourceGroupName, accountName, snapshotPolicyName); + if (inner != null) { + return new SnapshotPolicyVolumeListImpl(inner, this.manager()); + } else { + return null; + } + } + public SnapshotPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java index d343ba43cffd..ec9d8dedfb99 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 @@ -555,15 +555,22 @@ private Mono getAsync( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param snapshotName The name of the snapshot. + * @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 snapshot. + * @return details of the specified snapshot along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { - return getAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).block(); + public Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + Context context) { + return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, context) + .block(); } /** @@ -576,22 +583,16 @@ public SnapshotInner get( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param snapshotName The name of the snapshot. - * @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 snapshot along with {@link Response}. + * @return details of the specified snapshot. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Context context) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, context) - .block(); + public SnapshotInner get( + String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { + return getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE) + .getValue(); } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java index b7c632d42aef..41a09b710fe6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java @@ -42,17 +42,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new SnapshotImpl(inner1, this.manager())); } - public Snapshot get( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { - SnapshotInner inner = - this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, snapshotName); - if (inner != null) { - return new SnapshotImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, @@ -75,6 +64,17 @@ public Response getWithResponse( } } + public Snapshot get( + String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { + SnapshotInner inner = + this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, snapshotName); + if (inner != null) { + return new SnapshotImpl(inner, this.manager()); + } else { + return null; + } + } + public Snapshot update( 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 9afda4725120..3960f0d4352b 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 @@ -4,6 +4,7 @@ package com.azure.resourcemanager.netapp.implementation; +import com.azure.core.management.SystemData; import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; @@ -30,6 +31,10 @@ public String type() { return this.innerModel().type(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public Integer current() { return this.innerModel().current(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java index d1278cba29e6..4463ac328ffb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java @@ -579,15 +579,22 @@ private Mono getAsync( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subvolume Information properties. + * @return subvolume Information properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SubvolumeInfoInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { - return getAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName).block(); + public Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context) { + return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) + .block(); } /** @@ -600,22 +607,16 @@ public SubvolumeInfoInner get( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param subvolumeName The name of the subvolume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subvolume Information properties along with {@link Response}. + * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) - .block(); + public SubvolumeInfoInner get( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + return getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, Context.NONE) + .getValue(); } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java index d5ed31cd0d17..bebea0d77813 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java @@ -43,17 +43,6 @@ public PagedIterable listByVolume( return Utils.mapPage(inner, inner1 -> new SubvolumeInfoImpl(inner1, this.manager())); } - public SubvolumeInfo get( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { - SubvolumeInfoInner inner = - this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, subvolumeName); - if (inner != null) { - return new SubvolumeInfoImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, @@ -76,6 +65,17 @@ public Response getWithResponse( } } + public SubvolumeInfo get( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + SubvolumeInfoInner inner = + this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + if (inner != null) { + return new SubvolumeInfoImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete( String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, subvolumeName); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java index 716a4dcc5b74..74fcf31657cc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java @@ -447,14 +447,16 @@ private Mono getAsync( * @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. + * @return details of the specified volume group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeGroupDetailsInner get(String resourceGroupName, String accountName, String volumeGroupName) { - return getAsync(resourceGroupName, accountName, volumeGroupName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String volumeGroupName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, volumeGroupName, context).block(); } /** @@ -465,16 +467,14 @@ public VolumeGroupDetailsInner get(String resourceGroupName, String accountName, * @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 along with {@link Response}. + * @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(); + public VolumeGroupDetailsInner get(String resourceGroupName, String accountName, String volumeGroupName) { + return getWithResponse(resourceGroupName, accountName, volumeGroupName, Context.NONE).getValue(); } /** 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 index 59cf36c16030..e77b6ef18517 100644 --- 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 @@ -42,15 +42,6 @@ public PagedIterable listByNetAppAccount( 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 = @@ -66,6 +57,15 @@ public Response getWithResponse( } } + 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 void delete(String resourceGroupName, String accountName, String volumeGroupName) { this.serviceClient().delete(resourceGroupName, accountName, volumeGroupName); } 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 2a155feba609..40544750eb65 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 @@ -416,10 +416,6 @@ public void resetCifsPassword(Context context) { serviceManager.volumes().resetCifsPassword(resourceGroupName, accountName, poolName, volumeName, context); } - public void breakReplication(BreakReplicationRequest body) { - serviceManager.volumes().breakReplication(resourceGroupName, accountName, poolName, volumeName, body); - } - public void breakReplication() { serviceManager.volumes().breakReplication(resourceGroupName, accountName, poolName, volumeName); } @@ -488,10 +484,6 @@ public void poolChange(PoolChangeRequest body, Context context) { serviceManager.volumes().poolChange(resourceGroupName, accountName, poolName, volumeName, body, context); } - public void relocate(RelocateVolumeRequest body) { - serviceManager.volumes().relocate(resourceGroupName, accountName, poolName, volumeName, body); - } - public void relocate() { serviceManager.volumes().relocate(resourceGroupName, accountName, poolName, volumeName); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java index 2302baf0243b..75ed34038be4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java @@ -537,15 +537,22 @@ private Mono getAsync( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param volumeQuotaRuleName The name of volume quota rule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified quota rule. + * @return details of the specified quota rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeQuotaRuleInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName) { - return getAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName).block(); + public Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String volumeQuotaRuleName, + Context context) { + return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context) + .block(); } /** @@ -558,22 +565,16 @@ public VolumeQuotaRuleInner get( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param volumeQuotaRuleName The name of volume quota rule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified quota rule along with {@link Response}. + * @return details of the specified quota rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - Context context) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context) - .block(); + public VolumeQuotaRuleInner get( + String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName) { + return getWithResponse(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, Context.NONE) + .getValue(); } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java index a529136f59e0..f9a7d722283a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java @@ -41,17 +41,6 @@ public PagedIterable listByVolume( return Utils.mapPage(inner, inner1 -> new VolumeQuotaRuleImpl(inner1, this.manager())); } - public VolumeQuotaRule get( - String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName) { - VolumeQuotaRuleInner inner = - this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName); - if (inner != null) { - return new VolumeQuotaRuleImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, @@ -74,6 +63,17 @@ public Response getWithResponse( } } + public VolumeQuotaRule get( + String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName) { + VolumeQuotaRuleInner inner = + this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName); + if (inner != null) { + return new VolumeQuotaRuleImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete( String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName); 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 0f5693b3e716..6d2d1d6d5602 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 @@ -758,14 +758,16 @@ private Mono getAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume. + * @return the details of the specified volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeInner get(String resourceGroupName, String accountName, String poolName, String volumeName) { - return getAsync(resourceGroupName, accountName, poolName, volumeName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } /** @@ -777,16 +779,14 @@ public VolumeInner get(String resourceGroupName, String accountName, String pool * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume along with {@link Response}. + * @return the details of the specified volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); + public VolumeInner get(String resourceGroupName, String accountName, String poolName, String volumeName) { + return getWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE).getValue(); } /** @@ -1630,6 +1630,32 @@ private PollerFlux, Void> beginDeleteAsync( mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } + /** + * Delete a volume + * + *

Delete the specified volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String accountName, String poolName, String volumeName) { + final Boolean forceDelete = null; + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + /** * Delete a volume * @@ -1672,8 +1698,6 @@ private PollerFlux, Void> beginDeleteAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1681,7 +1705,8 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { + String resourceGroupName, String accountName, String poolName, String volumeName) { + final Boolean forceDelete = null; return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete).getSyncPoller(); } @@ -1790,27 +1815,6 @@ private Mono deleteAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Delete a volume - * - *

Delete the specified volume. - * - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { - deleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete).block(); - } - /** * Delete a volume * @@ -2647,6 +2651,32 @@ private PollerFlux, Void> beginBreakReplicationAsync( mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } + /** + * Break volume replication + * + *

Break the replication connection on the destination volume. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginBreakReplicationAsync( + String resourceGroupName, String accountName, String poolName, String volumeName) { + final BreakReplicationRequest body = null; + Mono>> mono = + breakReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + /** * Break volume replication * @@ -2688,7 +2718,6 @@ private PollerFlux, Void> beginBreakReplicationAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param body Optional body to force break the replication. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2696,11 +2725,8 @@ private PollerFlux, Void> beginBreakReplicationAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginBreakReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body) { + String resourceGroupName, String accountName, String poolName, String volumeName) { + final BreakReplicationRequest body = null; return beginBreakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); } @@ -2811,30 +2837,6 @@ private Mono breakReplicationAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Break volume replication - * - *

Break the replication connection on the destination volume. - * - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param body Optional body to force break the replication. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 breakReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body) { - breakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body).block(); - } - /** * Break volume replication * @@ -3398,15 +3400,17 @@ private Mono replicationStatusAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication. + * @return the status of the replication along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationStatusInner replicationStatus( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return replicationStatusAsync(resourceGroupName, accountName, poolName, volumeName).block(); + public Response replicationStatusWithResponse( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + return replicationStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context) + .block(); } /** @@ -3418,17 +3422,16 @@ public ReplicationStatusInner replicationStatus( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication along with {@link Response}. + * @return the status of the replication. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response replicationStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return replicationStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context) - .block(); + public ReplicationStatusInner replicationStatus( + String resourceGroupName, String accountName, String poolName, String volumeName) { + return replicationStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE) + .getValue(); } /** @@ -5355,6 +5358,32 @@ private PollerFlux, Void> beginRelocateAsync( mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } + /** + * Relocate volume + * + *

Relocates volume to a new stamp. + * + * @param resourceGroupName The name of the resource group. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginRelocateAsync( + String resourceGroupName, String accountName, String poolName, String volumeName) { + final RelocateVolumeRequest body = null; + Mono>> mono = + relocateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + /** * Relocate volume * @@ -5396,7 +5425,6 @@ private PollerFlux, Void> beginRelocateAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param body Relocate volume request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -5404,7 +5432,8 @@ private PollerFlux, Void> beginRelocateAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRelocate( - String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body) { + String resourceGroupName, String accountName, String poolName, String volumeName) { + final RelocateVolumeRequest body = null; return beginRelocateAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); } @@ -5509,26 +5538,6 @@ private Mono relocateAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Relocate volume - * - *

Relocates volume to a new stamp. - * - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param body Relocate volume request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 relocate( - String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body) { - relocateAsync(resourceGroupName, accountName, poolName, volumeName, body).block(); - } - /** * Relocate volume * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java index db1bf029cf16..4f744d19aaaa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java @@ -46,15 +46,6 @@ public PagedIterable list(String resourceGroupName, String accountName, return Utils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); } - public Volume get(String resourceGroupName, String accountName, String poolName, String volumeName) { - VolumeInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName); - if (inner != null) { - return new VolumeImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { Response inner = @@ -70,9 +61,13 @@ public Response getWithResponse( } } - public void delete( - String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, forceDelete); + public Volume get(String resourceGroupName, String accountName, String poolName, String volumeName) { + VolumeInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName); + if (inner != null) { + return new VolumeImpl(inner, this.manager()); + } else { + return null; + } } public void delete(String resourceGroupName, String accountName, String poolName, String volumeName) { @@ -113,15 +108,6 @@ public void resetCifsPassword( this.serviceClient().resetCifsPassword(resourceGroupName, accountName, poolName, volumeName, context); } - public void breakReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body) { - this.serviceClient().breakReplication(resourceGroupName, accountName, poolName, volumeName, body); - } - public void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName) { this.serviceClient().breakReplication(resourceGroupName, accountName, poolName, volumeName); } @@ -157,17 +143,6 @@ public void reestablishReplication( .reestablishReplication(resourceGroupName, accountName, poolName, volumeName, body, context); } - public ReplicationStatus replicationStatus( - String resourceGroupName, String accountName, String poolName, String volumeName) { - ReplicationStatusInner inner = - this.serviceClient().replicationStatus(resourceGroupName, accountName, poolName, volumeName); - if (inner != null) { - return new ReplicationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - public Response replicationStatusWithResponse( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { Response inner = @@ -185,6 +160,17 @@ public Response replicationStatusWithResponse( } } + public ReplicationStatus replicationStatus( + String resourceGroupName, String accountName, String poolName, String volumeName) { + ReplicationStatusInner inner = + this.serviceClient().replicationStatus(resourceGroupName, accountName, poolName, volumeName); + if (inner != null) { + return new ReplicationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listReplications( String resourceGroupName, String accountName, String poolName, String volumeName) { PagedIterable inner = @@ -257,11 +243,6 @@ public void poolChange( this.serviceClient().poolChange(resourceGroupName, accountName, poolName, volumeName, body, context); } - public void relocate( - String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body) { - this.serviceClient().relocate(resourceGroupName, accountName, poolName, volumeName, body); - } - public void relocate(String resourceGroupName, String accountName, String poolName, String volumeName) { this.serviceClient().relocate(resourceGroupName, accountName, poolName, volumeName); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountBackups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountBackups.java index 1f9e89da929e..ba345637d9ef 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountBackups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountBackups.java @@ -47,12 +47,13 @@ public interface AccountBackups { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupName The name of the backup. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup for a Netapp Account. + * @return the specified backup for a Netapp Account along with {@link Response}. */ - Backup get(String resourceGroupName, String accountName, String backupName); + Response getWithResponse(String resourceGroupName, String accountName, String backupName, Context context); /** * Get Backup for a Netapp Account @@ -62,13 +63,12 @@ public interface AccountBackups { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupName The name of the backup. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup for a Netapp Account along with {@link Response}. + * @return the specified backup for a Netapp Account. */ - Response getWithResponse(String resourceGroupName, String accountName, String backupName, Context context); + Backup get(String resourceGroupName, String accountName, String backupName); /** * Delete Backup for a Netapp Account diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java index 8181150db722..740ac1053d1c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java @@ -28,6 +28,10 @@ public final class AccountEncryption { @JsonProperty(value = "identity") private EncryptionIdentity identity; + /** Creates an instance of AccountEncryption class. */ + public AccountEncryption() { + } + /** * Get the keySource property: The encryption keySource (provider). Possible values (case-insensitive): * Microsoft.NetApp, Microsoft.KeyVault. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java index b35518c3af6c..49c4e95d0b3d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java @@ -68,12 +68,14 @@ public interface Accounts { * * @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 the NetApp account. + * @return the NetApp account along with {@link Response}. */ - NetAppAccount getByResourceGroup(String resourceGroupName, String accountName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String accountName, Context context); /** * Describe a NetApp Account @@ -82,14 +84,12 @@ public interface Accounts { * * @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 the NetApp account along with {@link Response}. + * @return the NetApp account. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context); + NetAppAccount getByResourceGroup(String resourceGroupName, String accountName); /** * Delete a NetApp account 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 509cece615d7..3ef81aa8da72 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 @@ -150,6 +150,10 @@ public final class ActiveDirectory { @JsonProperty(value = "ldapSearchScope") private LdapSearchScopeOpt ldapSearchScope; + /** Creates an instance of ActiveDirectory class. */ + public ActiveDirectory() { + } + /** * Get the activeDirectoryId property: Id of the Active Directory. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java index 014c4f46ee58..8df4ad87c090 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java @@ -16,6 +16,10 @@ public final class AuthorizeRequest { @JsonProperty(value = "remoteVolumeResourceId") private String remoteVolumeResourceId; + /** Creates an instance of AuthorizeRequest class. */ + public AuthorizeRequest() { + } + /** * Get the remoteVolumeResourceId property: Resource id of the remote volume. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java index 7d2cf94b0811..ceaab0b68462 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java @@ -27,6 +27,10 @@ public final class BackupPatch { @JsonProperty(value = "properties") private BackupProperties innerProperties; + /** Creates an instance of BackupPatch class. */ + public BackupPatch() { + } + /** * Get the tags property: Resource tags. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java index 4c1d6763e432..eb74a4ce4b61 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java @@ -47,12 +47,14 @@ public interface BackupPolicies { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy. + * @return a particular backup Policy along with {@link Response}. */ - BackupPolicy get(String resourceGroupName, String accountName, String backupPolicyName); + Response getWithResponse( + String resourceGroupName, String accountName, String backupPolicyName, Context context); /** * Get a backup Policy @@ -62,14 +64,12 @@ public interface BackupPolicies { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a particular backup Policy along with {@link Response}. + * @return a particular backup Policy. */ - Response getWithResponse( - String resourceGroupName, String accountName, String backupPolicyName, Context context); + BackupPolicy get(String resourceGroupName, String accountName, String backupPolicyName); /** * Delete a backup policy diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java index 85136b4b6be5..ea183dd7e6dc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java @@ -18,6 +18,10 @@ public final class BackupPoliciesList { @JsonProperty(value = "value") private List value; + /** Creates an instance of BackupPoliciesList class. */ + public BackupPoliciesList() { + } + /** * Get the value property: A list of backup policies. * 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 cbd70c629637..4284e807afd6 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 @@ -20,6 +20,10 @@ public final class BackupPolicyPatch extends Resource { @JsonProperty(value = "properties") private BackupPolicyProperties innerProperties; + /** Creates an instance of BackupPolicyPatch class. */ + public BackupPolicyPatch() { + } + /** * Get the innerProperties property: Backup policy Properties. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java index 11d0b685d1ba..a6f0ff4bf7e1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java @@ -19,12 +19,14 @@ public interface Backups { * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume. + * @return the status of the backup for a volume along with {@link Response}. */ - BackupStatus getStatus(String resourceGroupName, String accountName, String poolName, String volumeName); + Response getStatusWithResponse( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** * Get volume's backup status @@ -35,14 +37,12 @@ public interface Backups { * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the backup for a volume along with {@link Response}. + * @return the status of the backup for a volume. */ - Response getStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + BackupStatus getStatus(String resourceGroupName, String accountName, String poolName, String volumeName); /** * Get volume's restore status @@ -53,13 +53,14 @@ Response getStatusWithResponse( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume. + * @return the status of the restore for a volume along with {@link Response}. */ - RestoreStatus getVolumeRestoreStatus( - String resourceGroupName, String accountName, String poolName, String volumeName); + Response getVolumeRestoreStatusWithResponse( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** * Get volume's restore status @@ -70,14 +71,13 @@ RestoreStatus getVolumeRestoreStatus( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the restore for a volume along with {@link Response}. + * @return the status of the restore for a volume. */ - Response getVolumeRestoreStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + RestoreStatus getVolumeRestoreStatus( + String resourceGroupName, String accountName, String poolName, String volumeName); /** * List Backups @@ -123,12 +123,19 @@ PagedIterable list( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param backupName The name of the backup. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup of the volume. + * @return the specified backup of the volume along with {@link Response}. */ - Backup get(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName); + Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String backupName, + Context context); /** * Get a backup @@ -140,19 +147,12 @@ PagedIterable list( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param backupName The name of the backup. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified backup of the volume along with {@link Response}. + * @return the specified backup of the volume. */ - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String backupName, - Context context); + Backup get(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName); /** * Delete backup diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsList.java index e2f70c82a622..8e9cb0c8c751 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsList.java @@ -18,6 +18,10 @@ public final class BackupsList { @JsonProperty(value = "value") private List value; + /** Creates an instance of BackupsList class. */ + public BackupsList() { + } + /** * Get the value property: A list of Backups. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java index e0530b9dd2d9..7f26836181ff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java @@ -16,6 +16,10 @@ public final class BreakReplicationRequest { @JsonProperty(value = "forceBreakReplication") private Boolean forceBreakReplication; + /** Creates an instance of BreakReplicationRequest class. */ + public BreakReplicationRequest() { + } + /** * Get the forceBreakReplication property: If replication is in status transferring and you want to force break the * replication, set to true. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java index ff4043b3848e..69f2465122b2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java @@ -24,6 +24,10 @@ public final class CapacityPoolList { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of CapacityPoolList class. */ + public CapacityPoolList() { + } + /** * Get the value property: List of Capacity pools. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java index edbbe1a4df80..177550baea88 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java @@ -19,6 +19,10 @@ public final class CapacityPoolPatch extends Resource { @JsonProperty(value = "properties") private PoolPatchProperties innerProperties; + /** Creates an instance of CapacityPoolPatch class. */ + public CapacityPoolPatch() { + } + /** * Get the innerProperties property: Capacity pool properties. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java index edcba3670103..8285395f7b13 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java @@ -34,6 +34,10 @@ public final class DailySchedule { @JsonProperty(value = "usedBytes") private Long usedBytes; + /** Creates an instance of DailySchedule class. */ + public DailySchedule() { + } + /** * Get the snapshotsToKeep property: Daily snapshot count to keep. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java index 5eb5332350f1..1bfafc14300d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java @@ -22,6 +22,10 @@ public final class Dimension { @JsonProperty(value = "displayName") private String displayName; + /** Creates an instance of Dimension class. */ + public Dimension() { + } + /** * Get the name property: Display name of dimension. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java index 48383687d9d2..79b2634e2365 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java @@ -23,6 +23,10 @@ public class EncryptionIdentity { @JsonProperty(value = "userAssignedIdentity") private String userAssignedIdentity; + /** Creates an instance of EncryptionIdentity class. */ + public EncryptionIdentity() { + } + /** * Get the principalId property: The principal ID (object ID) of the identity used to authenticate with key vault. * Read-only. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java index 1634b938dbde..a60445c3147b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java @@ -101,6 +101,10 @@ public final class ExportPolicyRule { @JsonProperty(value = "chownMode") private ChownMode chownMode; + /** Creates an instance of ExportPolicyRule class. */ + public ExportPolicyRule() { + } + /** * Get the ruleIndex property: Order index. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java index 2c6209459891..9aa97459add5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java @@ -23,6 +23,10 @@ public final class FilePathAvailabilityRequest { @JsonProperty(value = "subnetId", required = true) private String subnetId; + /** Creates an instance of FilePathAvailabilityRequest class. */ + public FilePathAvailabilityRequest() { + } + /** * Get the name property: File path to verify. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java index de364d96856c..75c621f1e1d0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java @@ -28,6 +28,10 @@ public final class HourlySchedule { @JsonProperty(value = "usedBytes") private Long usedBytes; + /** Creates an instance of HourlySchedule class. */ + public HourlySchedule() { + } + /** * Get the snapshotsToKeep property: Hourly snapshot count to keep. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Identity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Identity.java index 799987af9770..c53b3e245e83 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Identity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Identity.java @@ -40,6 +40,10 @@ public class Identity { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map userAssignedIdentities; + /** Creates an instance of Identity class. */ + public Identity() { + } + /** * Get the principalId property: The principal ID of resource identity. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java index 7266b1fbcc71..5e61579793e8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java @@ -41,6 +41,10 @@ public final class KeyVaultProperties { @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private KeyVaultStatus status; + /** Creates an instance of KeyVaultProperties class. */ + public KeyVaultProperties() { + } + /** * Get the keyVaultId property: UUID v4 used to identify the Azure Key Vault configuration. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java index d7eeec56ae83..224f07e75a0b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java @@ -28,6 +28,10 @@ public final class LdapSearchScopeOpt { @JsonProperty(value = "groupMembershipFilter") private String groupMembershipFilter; + /** Creates an instance of LdapSearchScopeOpt class. */ + public LdapSearchScopeOpt() { + } + /** * Get the userDN property: This specifies the user DN, which overrides the base DN for user lookups. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplications.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplications.java index 5f10efeca70a..c7699d5ba474 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplications.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplications.java @@ -18,6 +18,10 @@ public final class ListReplications { @JsonProperty(value = "value") private List value; + /** Creates an instance of ListReplications class. */ + public ListReplications() { + } + /** * Get the value property: A list of replications. * 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 a0a69568eb4f..f3f7f7087926 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 @@ -22,6 +22,10 @@ public final class LogSpecification { @JsonProperty(value = "displayName") private String displayName; + /** Creates an instance of LogSpecification class. */ + public LogSpecification() { + } + /** * Get the name property: Name of log specification. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java index c4ea1557b19a..621dc33b626f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java @@ -107,6 +107,10 @@ public final class MetricSpecification { @JsonProperty(value = "isInternal") private Boolean isInternal; + /** Creates an instance of MetricSpecification class. */ + public MetricSpecification() { + } + /** * Get the name property: Name of metric specification. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java index 2153c822fc70..d450311aede5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java @@ -40,6 +40,10 @@ public final class MonthlySchedule { @JsonProperty(value = "usedBytes") private Long usedBytes; + /** Creates an instance of MonthlySchedule class. */ + public MonthlySchedule() { + } + /** * Get the snapshotsToKeep property: Monthly snapshot count to keep. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java index 3291c5544ee0..038001201a41 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner; import java.util.List; @@ -61,6 +62,13 @@ public interface NetAppAccount { */ Identity identity(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the provisioningState property: Azure lifecycle management. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java index 95d4bd0d0df3..b87cad4205ea 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java @@ -24,6 +24,10 @@ public final class NetAppAccountList { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of NetAppAccountList class. */ + public NetAppAccountList() { + } + /** * Get the value property: Multiple NetApp accounts. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java index cd16d8640dff..ccc99e1a585c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java @@ -20,6 +20,10 @@ public final class NetAppAccountPatch extends Resource { @JsonProperty(value = "properties") private AccountProperties innerProperties; + /** Creates an instance of NetAppAccountPatch class. */ + public NetAppAccountPatch() { + } + /** * Get the innerProperties property: NetApp Account properties. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java index 973161617027..62b42a4f9050 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java @@ -44,12 +44,13 @@ public interface NetAppResourceQuotaLimits { * * @param location The location. * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current subscription quota limit along with {@link Response}. */ - SubscriptionQuotaItem get(String location, String quotaLimitName); + Response getWithResponse(String location, String quotaLimitName, Context context); /** * Get quota limits @@ -58,11 +59,10 @@ public interface NetAppResourceQuotaLimits { * * @param location The location. * @param quotaLimitName The name of the Quota Limit. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit along with {@link Response}. + * @return the default and current subscription quota limit. */ - Response getWithResponse(String location, String quotaLimitName, Context context); + SubscriptionQuotaItem get(String location, String quotaLimitName); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java index e9e5339e1853..39dbe7a81e70 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java @@ -16,12 +16,14 @@ public interface NetAppResources { * * @param location The location. * @param body Name availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ - CheckAvailabilityResponse checkNameAvailability(String location, ResourceNameAvailabilityRequest body); + Response checkNameAvailabilityWithResponse( + String location, ResourceNameAvailabilityRequest body, Context context); /** * Check resource name availability @@ -30,14 +32,12 @@ public interface NetAppResources { * * @param location The location. * @param body Name availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource along with {@link Response}. + * @return information regarding availability of a resource. */ - Response checkNameAvailabilityWithResponse( - String location, ResourceNameAvailabilityRequest body, Context context); + CheckAvailabilityResponse checkNameAvailability(String location, ResourceNameAvailabilityRequest body); /** * Check file path availability @@ -46,12 +46,14 @@ Response checkNameAvailabilityWithResponse( * * @param location The location. * @param body File path availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ - CheckAvailabilityResponse checkFilePathAvailability(String location, FilePathAvailabilityRequest body); + Response checkFilePathAvailabilityWithResponse( + String location, FilePathAvailabilityRequest body, Context context); /** * Check file path availability @@ -60,14 +62,12 @@ Response checkNameAvailabilityWithResponse( * * @param location The location. * @param body File path availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource along with {@link Response}. + * @return information regarding availability of a resource. */ - Response checkFilePathAvailabilityWithResponse( - String location, FilePathAvailabilityRequest body, Context context); + CheckAvailabilityResponse checkFilePathAvailability(String location, FilePathAvailabilityRequest body); /** * Check quota availability @@ -76,12 +76,14 @@ Response checkFilePathAvailabilityWithResponse( * * @param location The location. * @param body Quota availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource. + * @return information regarding availability of a resource along with {@link Response}. */ - CheckAvailabilityResponse checkQuotaAvailability(String location, QuotaAvailabilityRequest body); + Response checkQuotaAvailabilityWithResponse( + String location, QuotaAvailabilityRequest body, Context context); /** * Check quota availability @@ -90,14 +92,12 @@ Response checkFilePathAvailabilityWithResponse( * * @param location The location. * @param body Quota availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource along with {@link Response}. + * @return information regarding availability of a resource. */ - Response checkQuotaAvailabilityWithResponse( - String location, QuotaAvailabilityRequest body, Context context); + CheckAvailabilityResponse checkQuotaAvailability(String location, QuotaAvailabilityRequest body); /** * Describes region specific information. @@ -105,12 +105,13 @@ Response checkQuotaAvailabilityWithResponse( *

Provides storage to network proximity and logical zone mapping information. * * @param location The location. + * @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 provides region specific information. + * @return provides region specific information along with {@link Response}. */ - RegionInfo queryRegionInfo(String location); + Response queryRegionInfoWithResponse(String location, Context context); /** * Describes region specific information. @@ -118,11 +119,10 @@ Response checkQuotaAvailabilityWithResponse( *

Provides storage to network proximity and logical zone mapping information. * * @param location The location. - * @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 provides region specific information along with {@link Response}. + * @return provides region specific information. */ - Response queryRegionInfoWithResponse(String location, Context context); + RegionInfo queryRegionInfo(String location); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java index 7ba683e55acc..990ed7628cba 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java @@ -34,6 +34,10 @@ public final class OperationDisplay { @JsonProperty(value = "description") private String description; + /** Creates an instance of OperationDisplay class. */ + public OperationDisplay() { + } + /** * Get the provider property: Service provider: Microsoft NetApp. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java index 1bf6be3c0b02..d37723af6518 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java @@ -21,6 +21,10 @@ public final class OperationListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of OperationListResult class. */ + public OperationListResult() { + } + /** * Get the value property: List of Storage operations supported by the Storage resource provider. * 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 index 46e02310994a..954b59ca13d1 100644 --- 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 @@ -23,6 +23,10 @@ public final class PlacementKeyValuePairs { @JsonProperty(value = "value", required = true) private String value; + /** Creates an instance of PlacementKeyValuePairs class. */ + public PlacementKeyValuePairs() { + } + /** * Get the key property: Key for an application specific parameter for the placement of volumes in the volume group. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java index 0bbd7b5ac6b6..e43fc85ee905 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java @@ -17,6 +17,10 @@ public final class PoolChangeRequest { @JsonProperty(value = "newPoolResourceId", required = true) private String newPoolResourceId; + /** Creates an instance of PoolChangeRequest class. */ + public PoolChangeRequest() { + } + /** * Get the newPoolResourceId property: Resource id of the pool to move volume to. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java index 50f82dcd84e7..bbd305c255a9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java @@ -47,12 +47,14 @@ public interface Pools { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. + * @param 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 capacity pool. + * @return details of the specified capacity pool along with {@link Response}. */ - CapacityPool get(String resourceGroupName, String accountName, String poolName); + Response getWithResponse( + String resourceGroupName, String accountName, String poolName, Context context); /** * Describe a Capacity Pool @@ -62,14 +64,12 @@ public interface Pools { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. - * @param 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 capacity pool along with {@link Response}. + * @return details of the specified capacity pool. */ - Response getWithResponse( - String resourceGroupName, String accountName, String poolName, Context context); + CapacityPool get(String resourceGroupName, String accountName, String poolName); /** * Delete a capacity pool diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java index 8a6c3449dde1..2c0dc58f426c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java @@ -29,6 +29,10 @@ public final class QuotaAvailabilityRequest { @JsonProperty(value = "resourceGroup", required = true) private String resourceGroup; + /** Creates an instance of QuotaAvailabilityRequest class. */ + public QuotaAvailabilityRequest() { + } + /** * Get the name property: Name of the resource to verify. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java index a871bb741aac..4d2d84a0daff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java @@ -16,6 +16,10 @@ public final class ReestablishReplicationRequest { @JsonProperty(value = "sourceVolumeId") private String sourceVolumeId; + /** Creates an instance of ReestablishReplicationRequest class. */ + public ReestablishReplicationRequest() { + } + /** * Get the sourceVolumeId property: Resource id of the source volume for the replication. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java index 987ce17477ec..a0dce69eeb4c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java @@ -22,6 +22,10 @@ public final class RegionInfoAvailabilityZoneMappingsItem { @JsonProperty(value = "isAvailable") private Boolean isAvailable; + /** Creates an instance of RegionInfoAvailabilityZoneMappingsItem class. */ + public RegionInfoAvailabilityZoneMappingsItem() { + } + /** * Get the availabilityZone property: Logical availability zone. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java index d94fb389b906..017c437246a5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java @@ -16,6 +16,10 @@ public final class RelocateVolumeRequest { @JsonProperty(value = "creationToken") private String creationToken; + /** Creates an instance of RelocateVolumeRequest class. */ + public RelocateVolumeRequest() { + } + /** * Get the creationToken property: New creation token for the volume that controls the mount point name. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java index 3f197db38f0a..1b01cbf4d526 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java @@ -41,6 +41,10 @@ public final class ReplicationObject { @JsonProperty(value = "remoteVolumeRegion") private String remoteVolumeRegion; + /** Creates an instance of ReplicationObject class. */ + public ReplicationObject() { + } + /** * Get the replicationId property: Id. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java index 3e18fa755cd4..84b6f2afd7ec 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java @@ -29,6 +29,10 @@ public final class ResourceNameAvailabilityRequest { @JsonProperty(value = "resourceGroup", required = true) private String resourceGroup; + /** Creates an instance of ResourceNameAvailabilityRequest class. */ + public ResourceNameAvailabilityRequest() { + } + /** * Get the name property: Resource name to verify. * 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 87769d52e505..d1e49239b57e 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 @@ -23,6 +23,10 @@ public final class ServiceSpecification { @JsonProperty(value = "logSpecifications") private List logSpecifications; + /** Creates an instance of ServiceSpecification class. */ + public ServiceSpecification() { + } + /** * Get the metricSpecifications property: Metric specifications of operation. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java index 2f524d511a6a..d71836ac173c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java @@ -41,12 +41,14 @@ public interface SnapshotPolicies { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy. + * @return a snapshot Policy along with {@link Response}. */ - SnapshotPolicy get(String resourceGroupName, String accountName, String snapshotPolicyName); + Response getWithResponse( + String resourceGroupName, String accountName, String snapshotPolicyName, Context context); /** * Get a snapshot Policy. @@ -54,14 +56,12 @@ public interface SnapshotPolicies { * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a snapshot Policy along with {@link Response}. + * @return a snapshot Policy. */ - Response getWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context); + SnapshotPolicy get(String resourceGroupName, String accountName, String snapshotPolicyName); /** * Delete snapshot policy. @@ -96,12 +96,14 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. + * @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 volumes associated with snapshot policy. + * @return volumes associated with snapshot policy along with {@link Response}. */ - SnapshotPolicyVolumeList listVolumes(String resourceGroupName, String accountName, String snapshotPolicyName); + Response listVolumesWithResponse( + String resourceGroupName, String accountName, String snapshotPolicyName, Context context); /** * Get volumes for snapshot policy @@ -111,14 +113,12 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. - * @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 volumes associated with snapshot policy along with {@link Response}. + * @return volumes associated with snapshot policy. */ - Response listVolumesWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context); + SnapshotPolicyVolumeList listVolumes(String resourceGroupName, String accountName, String snapshotPolicyName); /** * Get a snapshot Policy. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java index a0df640062e5..878fc48d619d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java @@ -18,6 +18,10 @@ public final class SnapshotPoliciesList { @JsonProperty(value = "value") private List value; + /** Creates an instance of SnapshotPoliciesList class. */ + public SnapshotPoliciesList() { + } + /** * Get the value property: A list of snapshot policies. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java index 3ae51ba4e83e..2b28636e705a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java @@ -50,6 +50,10 @@ public final class SnapshotPolicyPatch { @JsonProperty(value = "properties") private SnapshotPolicyProperties innerProperties; + /** Creates an instance of SnapshotPolicyPatch class. */ + public SnapshotPolicyPatch() { + } + /** * Get the location property: Resource location. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java index b775edddaf15..b157a77a6511 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java @@ -24,6 +24,10 @@ public final class SnapshotRestoreFiles { @JsonProperty(value = "destinationPath") private String destinationPath; + /** Creates an instance of SnapshotRestoreFiles class. */ + public SnapshotRestoreFiles() { + } + /** * Get the filePaths property: List of files to be restored. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java index 2f37f40b390b..c553eb44f990 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java @@ -54,12 +54,19 @@ PagedIterable list( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param snapshotName The name of the snapshot. + * @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 snapshot. + * @return details of the specified snapshot along with {@link Response}. */ - Snapshot get(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); + Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String snapshotName, + Context context); /** * Describe a snapshot @@ -71,19 +78,12 @@ PagedIterable list( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param snapshotName The name of the snapshot. - * @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 snapshot along with {@link Response}. + * @return details of the specified snapshot. */ - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Context context); + Snapshot get(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); /** * Update a snapshot diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java index 9cc7b268d60c..ff61708c7460 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java @@ -18,6 +18,10 @@ public final class SnapshotsList { @JsonProperty(value = "value") private List value; + /** Creates an instance of SnapshotsList class. */ + public SnapshotsList() { + } + /** * Get the value property: A list of Snapshots. * 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 2ad30f9ddba6..a27ea097b9d0 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 @@ -4,6 +4,7 @@ package com.azure.resourcemanager.netapp.models; +import com.azure.core.management.SystemData; import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; /** An immutable client-side representation of SubscriptionQuotaItem. */ @@ -29,6 +30,13 @@ public interface SubscriptionQuotaItem { */ String type(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the current property: The current quota value. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java index 0b2322d33485..322606913b29 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java @@ -18,6 +18,10 @@ public final class SubscriptionQuotaItemList { @JsonProperty(value = "value") private List value; + /** Creates an instance of SubscriptionQuotaItemList class. */ + public SubscriptionQuotaItemList() { + } + /** * Get the value property: A list of SubscriptionQuotaItems. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java index 0ce7dddeba7a..e8dc8411d1c9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java @@ -17,6 +17,10 @@ public final class SubvolumePatchRequest { @JsonProperty(value = "properties") private SubvolumePatchParams innerProperties; + /** Creates an instance of SubvolumePatchRequest class. */ + public SubvolumePatchRequest() { + } + /** * Get the innerProperties property: Subvolume Properties. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java index 78a7141f561c..5d728268e73f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java @@ -55,13 +55,19 @@ PagedIterable listByVolume( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subvolume Information properties. + * @return subvolume Information properties along with {@link Response}. */ - SubvolumeInfo get( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String subvolumeName, + Context context); /** * Get the path associated with the subvolumeName @@ -73,19 +79,13 @@ SubvolumeInfo get( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param subvolumeName The name of the subvolume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subvolume Information properties along with {@link Response}. + * @return subvolume Information properties. */ - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context); + SubvolumeInfo get( + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); /** * Delete a subvolume diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java index 05e2cc84b180..e15ee4975cb6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java @@ -24,6 +24,10 @@ public final class SubvolumesList { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of SubvolumesList class. */ + public SubvolumesList() { + } + /** * Get the value property: A list of Subvolumes. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java index 8ca64491d6be..c57defea2e26 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java @@ -22,6 +22,10 @@ public class UserAssignedIdentity { @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) private String clientId; + /** Creates an instance of UserAssignedIdentity class. */ + public UserAssignedIdentity() { + } + /** * Get the principalId property: The principal ID of the identity. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VaultList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VaultList.java index 382e645afa1c..6cdb65967b86 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VaultList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VaultList.java @@ -18,6 +18,10 @@ public final class VaultList { @JsonProperty(value = "value") private List value; + /** Creates an instance of VaultList class. */ + public VaultList() { + } + /** * Get the value property: A list of vaults. * 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 c31832fc0e8a..3d910fe30614 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 @@ -1308,18 +1308,6 @@ interface WithCoolnessPeriod { */ void resetCifsPassword(Context context); - /** - * Break volume replication - * - *

Break the replication connection on the destination volume. - * - * @param body Optional body to force break the replication. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 breakReplication(BreakReplicationRequest body); - /** * Break volume replication * @@ -1512,18 +1500,6 @@ interface WithCoolnessPeriod { */ void poolChange(PoolChangeRequest body, Context context); - /** - * Relocate volume - * - *

Relocates volume to a new stamp. - * - * @param body Relocate volume request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 relocate(RelocateVolumeRequest body); - /** * Relocate volume * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java index 0f91c94d50d3..50cb2df31d7a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java @@ -34,6 +34,10 @@ public final class VolumeBackupProperties { @JsonProperty(value = "backupEnabled") private Boolean backupEnabled; + /** Creates an instance of VolumeBackupProperties class. */ + public VolumeBackupProperties() { + } + /** * Get the backupPolicyId property: Backup Policy Resource ID. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java index 8ac4930e3165..60671c49d4fa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java @@ -28,6 +28,10 @@ public final class VolumeBackups { @JsonProperty(value = "policyEnabled") private Boolean policyEnabled; + /** Creates an instance of VolumeBackups class. */ + public VolumeBackups() { + } + /** * Get the volumeName property: Volume name. * 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 index 0e8190dda01c..903bc63aab04 100644 --- 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 @@ -18,6 +18,10 @@ public final class VolumeGroupList { @JsonProperty(value = "value") private List value; + /** Creates an instance of VolumeGroupList class. */ + public VolumeGroupList() { + } + /** * Get the value property: List of volume Groups. * 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 index ee9eb28893a0..5d63d5c2d93c 100644 --- 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 @@ -49,6 +49,10 @@ public final class VolumeGroupMetadata { @JsonProperty(value = "volumesCount", access = JsonProperty.Access.WRITE_ONLY) private Long volumesCount; + /** Creates an instance of VolumeGroupMetadata class. */ + public VolumeGroupMetadata() { + } + /** * Get the groupDescription property: Group Description. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java index 518c3ccacc1f..b5156c298455 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java @@ -36,6 +36,10 @@ public final class VolumeGroupVolumeProperties extends ProxyResource { @JsonProperty(value = "properties", required = true) private VolumeProperties innerProperties = new VolumeProperties(); + /** Creates an instance of VolumeGroupVolumeProperties class. */ + public VolumeGroupVolumeProperties() { + } + /** * Get the name property: Resource name. * 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 index 2e02c3902864..70228d1bbdff 100644 --- 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 @@ -47,12 +47,14 @@ public interface VolumeGroups { * @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. + * @return details of the specified volume group along with {@link Response}. */ - VolumeGroupDetails get(String resourceGroupName, String accountName, String volumeGroupName); + Response getWithResponse( + String resourceGroupName, String accountName, String volumeGroupName, Context context); /** * Describe a Volume Group @@ -62,14 +64,12 @@ public interface VolumeGroups { * @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 along with {@link Response}. + * @return details of the specified volume group. */ - Response getWithResponse( - String resourceGroupName, String accountName, String volumeGroupName, Context context); + VolumeGroupDetails get(String resourceGroupName, String accountName, String volumeGroupName); /** * Delete a volume group diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java index 8ab8debd66e2..cac47ebab0c5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java @@ -24,6 +24,10 @@ public final class VolumeList { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of VolumeList class. */ + public VolumeList() { + } + /** * Get the value property: List of volumes. * 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 a21b1cfe54d8..1e7d1d6a96c7 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 @@ -19,6 +19,10 @@ public final class VolumePatch extends Resource { @JsonProperty(value = "properties") private VolumePatchProperties innerProperties; + /** Creates an instance of VolumePatch class. */ + public VolumePatch() { + } + /** * Get the innerProperties property: Patchable volume properties. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java index 7159d432f233..195406739fdf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java @@ -26,6 +26,10 @@ public final class VolumePatchPropertiesDataProtection { @JsonProperty(value = "snapshot") private VolumeSnapshotProperties snapshot; + /** Creates an instance of VolumePatchPropertiesDataProtection class. */ + public VolumePatchPropertiesDataProtection() { + } + /** * Get the backup property: Backup Properties. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java index e9d4ade208ef..066fc45c5bb0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java @@ -21,6 +21,10 @@ public final class VolumePatchPropertiesExportPolicy { @JsonProperty(value = "rules") private List rules; + /** Creates an instance of VolumePatchPropertiesExportPolicy class. */ + public VolumePatchPropertiesExportPolicy() { + } + /** * Get the rules property: Export policy rule. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java index 6d78d7575acf..2412c3a4f200 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java @@ -32,6 +32,10 @@ public final class VolumePropertiesDataProtection { @JsonProperty(value = "snapshot") private VolumeSnapshotProperties snapshot; + /** Creates an instance of VolumePropertiesDataProtection class. */ + public VolumePropertiesDataProtection() { + } + /** * Get the backup property: Backup Properties. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java index e2d98ba13c2a..66a5bddad049 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java @@ -21,6 +21,10 @@ public final class VolumePropertiesExportPolicy { @JsonProperty(value = "rules") private List rules; + /** Creates an instance of VolumePropertiesExportPolicy class. */ + public VolumePropertiesExportPolicy() { + } + /** * Get the rules property: Export policy rule. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java index d7dac3a16bf8..588b36663f10 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java @@ -17,6 +17,10 @@ public final class VolumeQuotaRulePatch { @JsonProperty(value = "properties") private VolumeQuotaRulesProperties innerProperties; + /** Creates an instance of VolumeQuotaRulePatch class. */ + public VolumeQuotaRulePatch() { + } + /** * Get the innerProperties property: Volume Quota Rule Properties. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java index 27502824204e..5be1dbcb1e8f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java @@ -55,13 +55,19 @@ PagedIterable listByVolume( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param volumeQuotaRuleName The name of volume quota rule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified quota rule. + * @return details of the specified quota rule along with {@link Response}. */ - VolumeQuotaRule get( - String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName); + Response getWithResponse( + String resourceGroupName, + String accountName, + String poolName, + String volumeName, + String volumeQuotaRuleName, + Context context); /** * Describe a quota rule @@ -73,19 +79,13 @@ VolumeQuotaRule get( * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. * @param volumeQuotaRuleName The name of volume quota rule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified quota rule along with {@link Response}. + * @return details of the specified quota rule. */ - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - Context context); + VolumeQuotaRule get( + String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName); /** * Delete a quota rule diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulesList.java index 93b82a173fc8..81431815717e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulesList.java @@ -18,6 +18,10 @@ public final class VolumeQuotaRulesList { @JsonProperty(value = "value") private List value; + /** Creates an instance of VolumeQuotaRulesList class. */ + public VolumeQuotaRulesList() { + } + /** * Get the value property: A list of Volume Quota Rules. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java index 961747d5f529..fa07ea975020 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java @@ -16,6 +16,10 @@ public final class VolumeRevert { @JsonProperty(value = "snapshotId") private String snapshotId; + /** Creates an instance of VolumeRevert class. */ + public VolumeRevert() { + } + /** * Get the snapshotId property: Resource id of the snapshot. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java index 8cdeb9d91563..f2c646e31dd2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java @@ -16,6 +16,10 @@ public final class VolumeSnapshotProperties { @JsonProperty(value = "snapshotPolicyId") private String snapshotPolicyId; + /** Creates an instance of VolumeSnapshotProperties class. */ + public VolumeSnapshotProperties() { + } + /** * Get the snapshotPolicyId property: Snapshot Policy ResourceId. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java index d2e7898b72fe..7affc9a68900 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java @@ -41,22 +41,6 @@ public interface Volumes { */ PagedIterable list(String resourceGroupName, String accountName, String poolName, Context context); - /** - * Describe a volume - * - *

Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume. - */ - Volume get(String resourceGroupName, String accountName, String poolName, String volumeName); - /** * Describe a volume * @@ -76,21 +60,20 @@ Response getWithResponse( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** - * Delete a volume + * Describe a volume * - *

Delete the specified volume. + *

Get the details of the specified volume. * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume. */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete); + Volume get(String resourceGroupName, String accountName, String poolName, String volumeName); /** * Delete a volume @@ -202,23 +185,6 @@ void revert( void resetCifsPassword( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); - /** - * Break volume replication - * - *

Break the replication connection on the destination volume. - * - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param body Optional body to force break the replication. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 breakReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, BreakReplicationRequest body); - /** * Break volume replication * @@ -312,13 +278,14 @@ void reestablishReplication( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication. + * @return the status of the replication along with {@link Response}. */ - ReplicationStatus replicationStatus( - String resourceGroupName, String accountName, String poolName, String volumeName); + Response replicationStatusWithResponse( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** * Get volume replication status @@ -329,14 +296,13 @@ ReplicationStatus replicationStatus( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the replication along with {@link Response}. + * @return the status of the replication. */ - Response replicationStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + ReplicationStatus replicationStatus( + String resourceGroupName, String accountName, String poolName, String volumeName); /** * List replications for volume @@ -551,23 +517,6 @@ void poolChange( PoolChangeRequest body, Context context); - /** - * Relocate volume - * - *

Relocates volume to a new stamp. - * - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param body Relocate volume request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 relocate( - String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body); - /** * Relocate volume * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java index 65d61178b1e0..6cda9b83eda0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java @@ -40,6 +40,10 @@ public final class WeeklySchedule { @JsonProperty(value = "usedBytes") private Long usedBytes; + /** Creates an instance of WeeklySchedule class. */ + public WeeklySchedule() { + } + /** * Get the snapshotsToKeep property: Weekly snapshot count to keep. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java index cf2f293fce3a..9c75ba98830f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java @@ -31,13 +31,13 @@ public static void volumeGroupsCreate(com.azure.resourcemanager.netapp.NetAppFil .withGroupDescription("Volume group") .withApplicationType(ApplicationType.SAP_HANA) .withApplicationIdentifier("DEV") - .withDeploymentSpecId("fb04dbeb-005d-2703-197e-6208dfadb5d9")) + .withDeploymentSpecId("20542149-bfca-5618-1879-9863dc6767f1")) .withVolumes( Arrays .asList( new VolumeGroupVolumeProperties() - .withName("testVol1") - .withCreationToken("testVol1") + .withName("test-data-mnt00001") + .withCreationToken("test-data-mnt00001") .withServiceLevel(ServiceLevel.PREMIUM) .withUsageThreshold(107374182400L) .withSubnetId( @@ -49,8 +49,8 @@ public static void volumeGroupsCreate(com.azure.resourcemanager.netapp.NetAppFil "/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") + .withName("test-log-mnt00001") + .withCreationToken("test-log-mnt00001") .withServiceLevel(ServiceLevel.PREMIUM) .withUsageThreshold(107374182400L) .withSubnetId( @@ -62,8 +62,8 @@ public static void volumeGroupsCreate(com.azure.resourcemanager.netapp.NetAppFil "/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") + .withName("test-shared") + .withCreationToken("test-shared") .withServiceLevel(ServiceLevel.PREMIUM) .withUsageThreshold(107374182400L) .withSubnetId(