From b8f321352fb7e4302af4ca8fdae34cc7966461f2 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 19 Aug 2021 09:10:23 +0000 Subject: [PATCH] CodeGen from PR 15691 in Azure/azure-rest-api-specs Merge e10698d11f5ff0794acba3fd968297119929ad82 into 30d1537f0c9aa49e6e04401b1d16f612b31231e7 --- .../azure-resourcemanager-netapp/CHANGELOG.md | 3 +- .../azure-resourcemanager-netapp/README.md | 4 +- .../azure-resourcemanager-netapp/pom.xml | 2 +- .../netapp/NetAppFilesManager.java | 2 +- .../netapp/fluent/AccountsClient.java | 22 ++ .../netapp/fluent/SnapshotPoliciesClient.java | 28 +-- .../netapp/fluent/SnapshotsClient.java | 28 +-- .../netapp/fluent/models/BackupInner.java | 12 +- .../fluent/models/BackupPolicyInner.java | 82 +++--- .../fluent/models/CapacityPoolInner.java | 66 ++++- .../fluent/models/NetAppAccountInner.java | 15 ++ .../netapp/fluent/models/SnapshotInner.java | 8 +- .../fluent/models/SnapshotPolicyInner.java | 15 ++ .../netapp/fluent/models/VolumeInner.java | 228 ++++++++++++++--- .../implementation/AccountsClientImpl.java | 235 +++++++++++++++++ .../netapp/implementation/AccountsImpl.java | 10 + .../implementation/BackupPolicyImpl.java | 42 +--- .../implementation/CapacityPoolImpl.java | 14 ++ .../implementation/NetAppAccountImpl.java | 4 + .../NetAppManagementClientImpl.java | 2 +- .../SnapshotPoliciesClientImpl.java | 70 +++--- .../implementation/SnapshotPolicyImpl.java | 4 + .../implementation/SnapshotsClientImpl.java | 70 +++--- .../netapp/implementation/VolumeImpl.java | 60 +++++ .../netapp/models/Accounts.java | 20 ++ .../netapp/models/AvsDataStore.java | 34 +++ .../resourcemanager/netapp/models/Backup.java | 6 +- .../netapp/models/BackupPatch.java | 14 +- .../netapp/models/BackupPolicy.java | 91 ++----- .../netapp/models/BackupPolicyPatch.java | 67 ++--- .../netapp/models/CapacityPool.java | 61 +++-- .../netapp/models/CapacityPoolPatch.java | 10 +- .../netapp/models/EncryptionType.java | 34 +++ .../netapp/models/MetricAggregationType.java | 31 +++ .../netapp/models/MetricSpecification.java | 130 ++++++++++ .../netapp/models/MountTargetProperties.java | 20 +- .../netapp/models/NetAppAccount.java | 7 + .../netapp/models/ServiceLevel.java | 3 + .../netapp/models/Snapshot.java | 4 +- .../netapp/models/SnapshotPolicies.java | 12 +- .../netapp/models/SnapshotPolicy.java | 7 + .../netapp/models/SnapshotPolicyPatch.java | 2 + .../netapp/models/Snapshots.java | 12 +- .../resourcemanager/netapp/models/Volume.java | 238 ++++++++++++++---- .../netapp/models/VolumePatch.java | 122 +++++++-- .../VolumePatchPropertiesDataProtection.java | 2 +- .../VolumePatchPropertiesExportPolicy.java | 2 +- .../VolumePropertiesDataProtection.java | 2 +- .../models/VolumePropertiesExportPolicy.java | 2 +- 49 files changed, 1465 insertions(+), 494 deletions(-) create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index eb2d0ad7f8bf..936a30aa17c6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -1,7 +1,8 @@ # Release History -## 1.0.0-beta.5 (Unreleased) +## 1.0.0-beta.1 (2021-08-19) +- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## 1.0.0-beta.4 (2021-06-16) diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index 9b761da5b82c..80de9b1e8978 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/README.md +++ b/sdk/netapp/azure-resourcemanager-netapp/README.md @@ -2,7 +2,7 @@ Azure Resource Manager NetAppFiles client library for Java. -This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-04-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-netapp - 1.0.0-beta.4 + 1.0.0-beta.5 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml index b4b9657e42cf..2698844aa583 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml +++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for NetAppFiles Management - This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-04-01. + This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-06-01. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java index 7f767e7b32c4..b6b2e5c7a9f9 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 @@ -210,7 +210,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.netapp") .append("/") - .append("1.0.0-beta.4"); + .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/AccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java index b3be7e6aea7f..837c6d7b6f8a 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 @@ -16,6 +16,28 @@ /** An instance of this class provides access to all the operations defined in AccountsClient. */ public interface AccountsClient { + /** + * List and describe all NetApp accounts in the subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List and describe all NetApp accounts in the subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + /** * List and describe all NetApp accounts in 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 4476cf5731c4..db35e9b55192 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 @@ -49,7 +49,7 @@ 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 target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -63,7 +63,7 @@ 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 target. + * @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. @@ -79,7 +79,7 @@ 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 target. + * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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. @@ -95,7 +95,7 @@ SnapshotPolicyInner create( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -116,7 +116,7 @@ Response createWithResponse( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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. @@ -132,7 +132,7 @@ SyncPoller, SnapshotPolicyInner> beginUpdate( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -153,7 +153,7 @@ SyncPoller, SnapshotPolicyInner> beginUpdate( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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. @@ -169,7 +169,7 @@ SnapshotPolicyInner update( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -190,7 +190,7 @@ SnapshotPolicyInner update( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -205,7 +205,7 @@ 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 target. + * @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. @@ -221,7 +221,7 @@ 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 target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -234,7 +234,7 @@ 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 target. + * @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. @@ -248,7 +248,7 @@ 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 target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -262,7 +262,7 @@ 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 target. + * @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. 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 6212bdc858f8..282ad0364ed7 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 @@ -54,7 +54,7 @@ PagedIterable list( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -71,7 +71,7 @@ SnapshotInner get( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @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. @@ -94,7 +94,7 @@ Response getWithResponse( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -117,7 +117,7 @@ SyncPoller, SnapshotInner> beginCreate( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -142,7 +142,7 @@ SyncPoller, SnapshotInner> beginCreate( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -165,7 +165,7 @@ SnapshotInner create( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -190,7 +190,7 @@ SnapshotInner create( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -213,7 +213,7 @@ SyncPoller, SnapshotInner> beginUpdate( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -238,7 +238,7 @@ SyncPoller, SnapshotInner> beginUpdate( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -261,7 +261,7 @@ SnapshotInner 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 snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -286,7 +286,7 @@ SnapshotInner 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 snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -303,7 +303,7 @@ SyncPoller, Void> beginDelete( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @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. @@ -326,7 +326,7 @@ SyncPoller, Void> beginDelete( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -341,7 +341,7 @@ SyncPoller, Void> beginDelete( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @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. 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 dbc678e7790e..a253dcc74eb2 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,13 +26,13 @@ public class BackupInner extends ProxyResource { private String location; /* - * UUID v4 used to identify the Backup + * backupId UUID v4 used to identify the Backup */ @JsonProperty(value = "properties.backupId", access = JsonProperty.Access.WRITE_ONLY) private String backupId; /* - * The creation date of the backup + * name The creation date of the backup */ @JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationDate; @@ -56,7 +56,7 @@ public class BackupInner extends ProxyResource { private String label; /* - * Type of backup Manual or Scheduled + * backupType Type of backup Manual or Scheduled */ @JsonProperty(value = "properties.backupType", access = JsonProperty.Access.WRITE_ONLY) private BackupType backupType; @@ -101,7 +101,7 @@ public BackupInner withLocation(String location) { } /** - * Get the backupId property: UUID v4 used to identify the Backup. + * Get the backupId property: backupId UUID v4 used to identify the Backup. * * @return the backupId value. */ @@ -110,7 +110,7 @@ public String backupId() { } /** - * Get the creationDate property: The creation date of the backup. + * Get the creationDate property: name The creation date of the backup. * * @return the creationDate value. */ @@ -157,7 +157,7 @@ public BackupInner withLabel(String label) { } /** - * Get the backupType property: Type of backup Manual or Scheduled. + * Get the backupType property: backupType Type of backup Manual or Scheduled. * * @return the backupType value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java index 131e35011e89..a78b224835a4 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 @@ -20,6 +20,18 @@ public class BackupPolicyInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyInner.class); + /* + * A unique read-only string that changes whenever the resource is updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /* + * Backup Policy Resource ID + */ + @JsonProperty(value = "properties.backupPolicyId", access = JsonProperty.Access.WRITE_ONLY) + private String backupPolicyId; + /* * Azure lifecycle management */ @@ -44,16 +56,10 @@ public class BackupPolicyInner extends Resource { @JsonProperty(value = "properties.monthlyBackupsToKeep") private Integer monthlyBackupsToKeep; - /* - * Yearly backups count to keep - */ - @JsonProperty(value = "properties.yearlyBackupsToKeep") - private Integer yearlyBackupsToKeep; - /* * Volumes using current backup policy */ - @JsonProperty(value = "properties.volumesAssigned") + @JsonProperty(value = "properties.volumesAssigned", access = JsonProperty.Access.WRITE_ONLY) private Integer volumesAssigned; /* @@ -65,9 +71,27 @@ public class BackupPolicyInner extends Resource { /* * A list of volumes assigned to this policy */ - @JsonProperty(value = "properties.volumeBackups") + @JsonProperty(value = "properties.volumeBackups", access = JsonProperty.Access.WRITE_ONLY) private List volumeBackups; + /** + * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Get the backupPolicyId property: Backup Policy Resource ID. + * + * @return the backupPolicyId value. + */ + public String backupPolicyId() { + return this.backupPolicyId; + } + /** * Get the provisioningState property: Azure lifecycle management. * @@ -137,26 +161,6 @@ public BackupPolicyInner withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) return this; } - /** - * Get the yearlyBackupsToKeep property: Yearly backups count to keep. - * - * @return the yearlyBackupsToKeep value. - */ - public Integer yearlyBackupsToKeep() { - return this.yearlyBackupsToKeep; - } - - /** - * Set the yearlyBackupsToKeep property: Yearly backups count to keep. - * - * @param yearlyBackupsToKeep the yearlyBackupsToKeep value to set. - * @return the BackupPolicyInner object itself. - */ - public BackupPolicyInner withYearlyBackupsToKeep(Integer yearlyBackupsToKeep) { - this.yearlyBackupsToKeep = yearlyBackupsToKeep; - return this; - } - /** * Get the volumesAssigned property: Volumes using current backup policy. * @@ -166,17 +170,6 @@ public Integer volumesAssigned() { return this.volumesAssigned; } - /** - * Set the volumesAssigned property: Volumes using current backup policy. - * - * @param volumesAssigned the volumesAssigned value to set. - * @return the BackupPolicyInner object itself. - */ - public BackupPolicyInner withVolumesAssigned(Integer volumesAssigned) { - this.volumesAssigned = volumesAssigned; - return this; - } - /** * Get the enabled property: The property to decide policy is enabled or not. * @@ -206,17 +199,6 @@ public List volumeBackups() { return this.volumeBackups; } - /** - * Set the volumeBackups property: A list of volumes assigned to this policy. - * - * @param volumeBackups the volumeBackups value to set. - * @return the BackupPolicyInner object itself. - */ - public BackupPolicyInner withVolumeBackups(List volumeBackups) { - this.volumeBackups = volumeBackups; - return this; - } - /** {@inheritDoc} */ @Override public BackupPolicyInner withLocation(String location) { 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 06329711ec4e..4a29ea036a47 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 @@ -8,6 +8,7 @@ import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.models.EncryptionType; import com.azure.resourcemanager.netapp.models.QosType; import com.azure.resourcemanager.netapp.models.ServiceLevel; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -21,20 +22,26 @@ public class CapacityPoolInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityPoolInner.class); /* - * UUID v4 used to identify the Pool + * A unique read-only string that changes whenever the resource is updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /* + * poolId UUID v4 used to identify the Pool */ @JsonProperty(value = "properties.poolId", access = JsonProperty.Access.WRITE_ONLY) private String poolId; /* - * Provisioned size of the pool (in bytes). Allowed values are in 4TiB + * size Provisioned size of the pool (in bytes). Allowed values are in 4TiB * chunks (value must be multiply of 4398046511104). */ @JsonProperty(value = "properties.size", required = true) private long size; /* - * The service level of the file system + * serviceLevel The service level of the file system */ @JsonProperty(value = "properties.serviceLevel", required = true) private ServiceLevel serviceLevel; @@ -69,8 +76,25 @@ public class CapacityPoolInner extends Resource { @JsonProperty(value = "properties.coolAccess") private Boolean coolAccess; + /* + * encryptionType Encryption type of the capacity pool, set encryption type + * for data at rest for this pool and all volumes in it. This value can + * only be set when creating new pool. + */ + @JsonProperty(value = "properties.encryptionType") + private EncryptionType encryptionType; + /** - * Get the poolId property: UUID v4 used to identify the Pool. + * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Get the poolId property: poolId UUID v4 used to identify the Pool. * * @return the poolId value. */ @@ -79,8 +103,8 @@ public String poolId() { } /** - * Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be - * multiply of 4398046511104). + * Get the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * must be multiply of 4398046511104). * * @return the size value. */ @@ -89,8 +113,8 @@ public long size() { } /** - * Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be - * multiply of 4398046511104). + * Set the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * must be multiply of 4398046511104). * * @param size the size value to set. * @return the CapacityPoolInner object itself. @@ -101,7 +125,7 @@ public CapacityPoolInner withSize(long size) { } /** - * Get the serviceLevel property: The service level of the file system. + * Get the serviceLevel property: serviceLevel The service level of the file system. * * @return the serviceLevel value. */ @@ -110,7 +134,7 @@ public ServiceLevel serviceLevel() { } /** - * Set the serviceLevel property: The service level of the file system. + * Set the serviceLevel property: serviceLevel The service level of the file system. * * @param serviceLevel the serviceLevel value to set. * @return the CapacityPoolInner object itself. @@ -187,6 +211,28 @@ public CapacityPoolInner withCoolAccess(Boolean coolAccess) { return this; } + /** + * Get the encryptionType property: encryptionType Encryption type of the capacity pool, set encryption type for + * data at rest for this pool and all volumes in it. This value can only be set when creating new pool. + * + * @return the encryptionType value. + */ + public EncryptionType encryptionType() { + return this.encryptionType; + } + + /** + * Set the encryptionType property: encryptionType Encryption type of the capacity pool, set encryption type for + * data at rest for this pool and all volumes in it. This value can only be set when creating new pool. + * + * @param encryptionType the encryptionType value to set. + * @return the CapacityPoolInner object itself. + */ + public CapacityPoolInner withEncryptionType(EncryptionType encryptionType) { + this.encryptionType = encryptionType; + return this; + } + /** {@inheritDoc} */ @Override public CapacityPoolInner withLocation(String location) { 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 9138fb1e31e0..dcae6499d9ac 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 @@ -22,6 +22,12 @@ public class NetAppAccountInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(NetAppAccountInner.class); + /* + * A unique read-only string that changes whenever the resource is updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + /* * The system meta data relating to this resource. */ @@ -46,6 +52,15 @@ public class NetAppAccountInner extends Resource { @JsonProperty(value = "properties.encryption") private AccountEncryption encryption; + /** + * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + /** * Get the systemData property: The system meta data relating to this resource. * 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 015ecaa3f7c4..788131cb1c32 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,13 +25,13 @@ public class SnapshotInner extends ProxyResource { private String location; /* - * UUID v4 used to identify the Snapshot + * snapshotId UUID v4 used to identify the Snapshot */ @JsonProperty(value = "properties.snapshotId", access = JsonProperty.Access.WRITE_ONLY) private String snapshotId; /* - * The creation date of the snapshot + * name The creation date of the snapshot */ @JsonProperty(value = "properties.created", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime created; @@ -63,7 +63,7 @@ public SnapshotInner withLocation(String location) { } /** - * Get the snapshotId property: UUID v4 used to identify the Snapshot. + * Get the snapshotId property: snapshotId UUID v4 used to identify the Snapshot. * * @return the snapshotId value. */ @@ -72,7 +72,7 @@ public String snapshotId() { } /** - * Get the created property: The creation date of the snapshot. + * Get the created property: name The creation date of the snapshot. * * @return the created value. */ 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 3cb6f10d9b7e..a791666b12e9 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 @@ -22,6 +22,12 @@ public class SnapshotPolicyInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPolicyInner.class); + /* + * A unique read-only string that changes whenever the resource is updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + /* * Schedule for hourly snapshots */ @@ -58,6 +64,15 @@ public class SnapshotPolicyInner extends Resource { @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; + /** + * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + /** * 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/VolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java index a63f8e6fcd06..196639030949 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 @@ -8,6 +8,7 @@ import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.models.AvsDataStore; import com.azure.resourcemanager.netapp.models.MountTargetProperties; import com.azure.resourcemanager.netapp.models.SecurityStyle; import com.azure.resourcemanager.netapp.models.ServiceLevel; @@ -25,39 +26,47 @@ public class VolumeInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeInner.class); /* - * Unique FileSystem Identifier. + * A unique read-only string that changes whenever the resource is updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /* + * FileSystem ID Unique FileSystem Identifier. */ @JsonProperty(value = "properties.fileSystemId", access = JsonProperty.Access.WRITE_ONLY) private String fileSystemId; /* - * A unique file path for the volume. Used when creating mount targets + * Creation Token or File Path A unique file path for the volume. Used when + * creating mount targets */ @JsonProperty(value = "properties.creationToken", required = true) private String creationToken; /* - * The service level of the file system + * serviceLevel The service level of the file system */ @JsonProperty(value = "properties.serviceLevel") private ServiceLevel serviceLevel; /* - * Maximum storage quota allowed for a file system in bytes. This is a soft - * quota used for alerting only. Minimum size is 100 GiB. Upper limit is - * 100TiB. Specified in bytes. + * usageThreshold Maximum storage quota allowed for a file system in bytes. + * This is a soft quota used for alerting only. Minimum size is 100 GiB. + * Upper limit is 100TiB. Specified in bytes. */ @JsonProperty(value = "properties.usageThreshold", required = true) private long usageThreshold; /* - * Set of export policy rules + * exportPolicy Set of export policy rules */ @JsonProperty(value = "properties.exportPolicy") private VolumePropertiesExportPolicy exportPolicy; /* - * Set of protocol types, default NFSv3, CIFS for SMB protocol + * protocolTypes Set of protocol types, default NFSv3, CIFS for SMB + * protocol */ @JsonProperty(value = "properties.protocolTypes") private List protocolTypes; @@ -69,19 +78,20 @@ public class VolumeInner extends Resource { private String provisioningState; /* - * UUID v4 or resource identifier used to identify the Snapshot. + * Snapshot ID UUID v4 or resource identifier used to identify the + * Snapshot. */ @JsonProperty(value = "properties.snapshotId") private String snapshotId; /* - * UUID v4 or resource identifier used to identify the Backup. + * Backup ID UUID v4 or resource identifier used to identify the Backup. */ @JsonProperty(value = "properties.backupId") private String backupId; /* - * Unique Baremetal Tenant Identifier. + * Baremetal Tenant ID Unique Baremetal Tenant Identifier. */ @JsonProperty(value = "properties.baremetalTenantId", access = JsonProperty.Access.WRITE_ONLY) private String baremetalTenantId; @@ -94,7 +104,7 @@ public class VolumeInner extends Resource { private String subnetId; /* - * List of mount targets + * mountTargets List of mount targets */ @JsonProperty(value = "properties.mountTargets", access = JsonProperty.Access.WRITE_ONLY) private List mountTargets; @@ -106,8 +116,8 @@ public class VolumeInner extends Resource { private String volumeType; /* - * DataProtection type volumes include an object containing details of the - * replication + * DataProtection DataProtection type volumes include an object containing + * details of the replication */ @JsonProperty(value = "properties.dataProtection") private VolumePropertiesDataProtection dataProtection; @@ -198,8 +208,53 @@ public class VolumeInner extends Resource { @JsonProperty(value = "properties.unixPermissions") private String unixPermissions; + /* + * When a volume is being restored from another volume's snapshot, will + * show the percentage completion of this cloning process. When this value + * is empty/null there is no cloning process currently happening on this + * volume. This value will update every 5 minutes during cloning. + */ + @JsonProperty(value = "properties.cloneProgress", access = JsonProperty.Access.WRITE_ONLY) + private Integer cloneProgress; + + /* + * avsDataStore Specifies whether the volume is enabled for Azure VMware + * Solution (AVS) datastore purpose + */ + @JsonProperty(value = "properties.avsDataStore") + private AvsDataStore avsDataStore; + + /* + * Specifies if default quota is enabled for the volume. + */ + @JsonProperty(value = "properties.isDefaultQuotaEnabled") + private Boolean isDefaultQuotaEnabled; + + /* + * Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies . + */ + @JsonProperty(value = "properties.defaultUserQuotaInKiBs") + private Long defaultUserQuotaInKiBs; + + /* + * Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies. + */ + @JsonProperty(value = "properties.defaultGroupQuotaInKiBs") + private Long defaultGroupQuotaInKiBs; + + /** + * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + /** - * Get the fileSystemId property: Unique FileSystem Identifier. + * Get the fileSystemId property: FileSystem ID Unique FileSystem Identifier. * * @return the fileSystemId value. */ @@ -208,7 +263,8 @@ public String fileSystemId() { } /** - * Get the creationToken property: A unique file path for the volume. Used when creating mount targets. + * Get the creationToken property: Creation Token or File Path A unique file path for the volume. Used when creating + * mount targets. * * @return the creationToken value. */ @@ -217,7 +273,8 @@ public String creationToken() { } /** - * Set the creationToken property: A unique file path for the volume. Used when creating mount targets. + * Set the creationToken property: Creation Token or File Path A unique file path for the volume. Used when creating + * mount targets. * * @param creationToken the creationToken value to set. * @return the VolumeInner object itself. @@ -228,7 +285,7 @@ public VolumeInner withCreationToken(String creationToken) { } /** - * Get the serviceLevel property: The service level of the file system. + * Get the serviceLevel property: serviceLevel The service level of the file system. * * @return the serviceLevel value. */ @@ -237,7 +294,7 @@ public ServiceLevel serviceLevel() { } /** - * Set the serviceLevel property: The service level of the file system. + * Set the serviceLevel property: serviceLevel The service level of the file system. * * @param serviceLevel the serviceLevel value to set. * @return the VolumeInner object itself. @@ -248,8 +305,8 @@ public VolumeInner withServiceLevel(ServiceLevel serviceLevel) { } /** - * Get the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. + * Get the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is + * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. * * @return the usageThreshold value. */ @@ -258,8 +315,8 @@ public long usageThreshold() { } /** - * Set the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. + * Set the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is + * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. * * @param usageThreshold the usageThreshold value to set. * @return the VolumeInner object itself. @@ -270,7 +327,7 @@ public VolumeInner withUsageThreshold(long usageThreshold) { } /** - * Get the exportPolicy property: Set of export policy rules. + * Get the exportPolicy property: exportPolicy Set of export policy rules. * * @return the exportPolicy value. */ @@ -279,7 +336,7 @@ public VolumePropertiesExportPolicy exportPolicy() { } /** - * Set the exportPolicy property: Set of export policy rules. + * Set the exportPolicy property: exportPolicy Set of export policy rules. * * @param exportPolicy the exportPolicy value to set. * @return the VolumeInner object itself. @@ -290,7 +347,7 @@ public VolumeInner withExportPolicy(VolumePropertiesExportPolicy exportPolicy) { } /** - * Get the protocolTypes property: Set of protocol types, default NFSv3, CIFS for SMB protocol. + * Get the protocolTypes property: protocolTypes Set of protocol types, default NFSv3, CIFS for SMB protocol. * * @return the protocolTypes value. */ @@ -299,7 +356,7 @@ public List protocolTypes() { } /** - * Set the protocolTypes property: Set of protocol types, default NFSv3, CIFS for SMB protocol. + * Set the protocolTypes property: protocolTypes Set of protocol types, default NFSv3, CIFS for SMB protocol. * * @param protocolTypes the protocolTypes value to set. * @return the VolumeInner object itself. @@ -319,7 +376,7 @@ public String provisioningState() { } /** - * Get the snapshotId property: UUID v4 or resource identifier used to identify the Snapshot. + * Get the snapshotId property: Snapshot ID UUID v4 or resource identifier used to identify the Snapshot. * * @return the snapshotId value. */ @@ -328,7 +385,7 @@ public String snapshotId() { } /** - * Set the snapshotId property: UUID v4 or resource identifier used to identify the Snapshot. + * Set the snapshotId property: Snapshot ID UUID v4 or resource identifier used to identify the Snapshot. * * @param snapshotId the snapshotId value to set. * @return the VolumeInner object itself. @@ -339,7 +396,7 @@ public VolumeInner withSnapshotId(String snapshotId) { } /** - * Get the backupId property: UUID v4 or resource identifier used to identify the Backup. + * Get the backupId property: Backup ID UUID v4 or resource identifier used to identify the Backup. * * @return the backupId value. */ @@ -348,7 +405,7 @@ public String backupId() { } /** - * Set the backupId property: UUID v4 or resource identifier used to identify the Backup. + * Set the backupId property: Backup ID UUID v4 or resource identifier used to identify the Backup. * * @param backupId the backupId value to set. * @return the VolumeInner object itself. @@ -359,7 +416,7 @@ public VolumeInner withBackupId(String backupId) { } /** - * Get the baremetalTenantId property: Unique Baremetal Tenant Identifier. + * Get the baremetalTenantId property: Baremetal Tenant ID Unique Baremetal Tenant Identifier. * * @return the baremetalTenantId value. */ @@ -390,7 +447,7 @@ public VolumeInner withSubnetId(String subnetId) { } /** - * Get the mountTargets property: List of mount targets. + * Get the mountTargets property: mountTargets List of mount targets. * * @return the mountTargets value. */ @@ -419,8 +476,8 @@ public VolumeInner withVolumeType(String volumeType) { } /** - * Get the dataProtection property: DataProtection type volumes include an object containing details of the - * replication. + * Get the dataProtection property: DataProtection DataProtection type volumes include an object containing details + * of the replication. * * @return the dataProtection value. */ @@ -429,8 +486,8 @@ public VolumePropertiesDataProtection dataProtection() { } /** - * Set the dataProtection property: DataProtection type volumes include an object containing details of the - * replication. + * Set the dataProtection property: DataProtection DataProtection type volumes include an object containing details + * of the replication. * * @param dataProtection the dataProtection value to set. * @return the VolumeInner object itself. @@ -700,6 +757,103 @@ public VolumeInner withUnixPermissions(String unixPermissions) { return this; } + /** + * Get the cloneProgress property: When a volume is being restored from another volume's snapshot, will show the + * percentage completion of this cloning process. When this value is empty/null there is no cloning process + * currently happening on this volume. This value will update every 5 minutes during cloning. + * + * @return the cloneProgress value. + */ + public Integer cloneProgress() { + return this.cloneProgress; + } + + /** + * Get the avsDataStore property: avsDataStore Specifies whether the volume is enabled for Azure VMware Solution + * (AVS) datastore purpose. + * + * @return the avsDataStore value. + */ + public AvsDataStore avsDataStore() { + return this.avsDataStore; + } + + /** + * Set the avsDataStore property: avsDataStore Specifies whether the volume is enabled for Azure VMware Solution + * (AVS) datastore purpose. + * + * @param avsDataStore the avsDataStore value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withAvsDataStore(AvsDataStore avsDataStore) { + this.avsDataStore = avsDataStore; + return this; + } + + /** + * Get the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. + * + * @return the isDefaultQuotaEnabled value. + */ + public Boolean isDefaultQuotaEnabled() { + return this.isDefaultQuotaEnabled; + } + + /** + * Set the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. + * + * @param isDefaultQuotaEnabled the isDefaultQuotaEnabled value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled) { + this.isDefaultQuotaEnabled = isDefaultQuotaEnabled; + return this; + } + + /** + * Get the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies . + * + * @return the defaultUserQuotaInKiBs value. + */ + public Long defaultUserQuotaInKiBs() { + return this.defaultUserQuotaInKiBs; + } + + /** + * Set the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies . + * + * @param defaultUserQuotaInKiBs the defaultUserQuotaInKiBs value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs) { + this.defaultUserQuotaInKiBs = defaultUserQuotaInKiBs; + return this; + } + + /** + * Get the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is + * set, the minimum value of 4 KiBs applies. + * + * @return the defaultGroupQuotaInKiBs value. + */ + public Long defaultGroupQuotaInKiBs() { + return this.defaultGroupQuotaInKiBs; + } + + /** + * Set the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is + * set, the minimum value of 4 KiBs applies. + * + * @param defaultGroupQuotaInKiBs the defaultGroupQuotaInKiBs value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { + this.defaultGroupQuotaInKiBs = defaultGroupQuotaInKiBs; + return this; + } + /** {@inheritDoc} */ @Override public VolumeInner withLocation(String location) { 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 b96871cae703..18ad24f3fe9b 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 @@ -68,6 +68,17 @@ public final class AccountsClientImpl implements AccountsClient { @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") private interface AccountsService { + @Headers({"Content-Type: application/json"}) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp" @@ -143,6 +154,16 @@ Mono>> update( @HeaderParam("Accept") String accept, Context context); + @Headers({"Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, + Context context); + @Headers({"Content-Type: application/json"}) @Get("{nextLink}") @ExpectedResponses({200}) @@ -154,6 +175,147 @@ Mono> listNext( Context context); } + /** + * List and describe all NetApp accounts in the subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .list( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + this.client.getApiVersion(), + accept, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List and describe all NetApp accounts in the subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + this.client.getApiVersion(), + accept, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * List and describe all NetApp accounts in the subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>( + () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * List and describe all NetApp accounts in the subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>( + () -> listSinglePageAsync(context), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + } + + /** + * List and describe all NetApp accounts in the subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * List and describe all NetApp accounts in the subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + /** * List and describe all NetApp accounts in the resource group. * @@ -1208,6 +1370,79 @@ public NetAppAccountInner update( return updateAsync(resourceGroupName, accountName, body, context).block(); } + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync( + String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + /** * Get the next page of items. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java index 63081c3cc20d..6958ee3434ac 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 @@ -28,6 +28,16 @@ public AccountsImpl( this.serviceManager = serviceManager; } + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return Utils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return Utils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); + } + public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); return Utils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java index 79a4b2c1a734..e1c51521b7c8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java @@ -44,6 +44,14 @@ public Map tags() { } } + public String etag() { + return this.innerModel().etag(); + } + + public String backupPolicyId() { + return this.innerModel().backupPolicyId(); + } + public String provisioningState() { return this.innerModel().provisioningState(); } @@ -60,10 +68,6 @@ public Integer monthlyBackupsToKeep() { return this.innerModel().monthlyBackupsToKeep(); } - public Integer yearlyBackupsToKeep() { - return this.innerModel().yearlyBackupsToKeep(); - } - public Integer volumesAssigned() { return this.innerModel().volumesAssigned(); } @@ -237,26 +241,6 @@ public BackupPolicyImpl withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) { } } - public BackupPolicyImpl withYearlyBackupsToKeep(Integer yearlyBackupsToKeep) { - if (isInCreateMode()) { - this.innerModel().withYearlyBackupsToKeep(yearlyBackupsToKeep); - return this; - } else { - this.updateBody.withYearlyBackupsToKeep(yearlyBackupsToKeep); - return this; - } - } - - public BackupPolicyImpl withVolumesAssigned(Integer volumesAssigned) { - if (isInCreateMode()) { - this.innerModel().withVolumesAssigned(volumesAssigned); - return this; - } else { - this.updateBody.withVolumesAssigned(volumesAssigned); - return this; - } - } - public BackupPolicyImpl withEnabled(Boolean enabled) { if (isInCreateMode()) { this.innerModel().withEnabled(enabled); @@ -267,16 +251,6 @@ public BackupPolicyImpl withEnabled(Boolean enabled) { } } - public BackupPolicyImpl withVolumeBackups(List volumeBackups) { - if (isInCreateMode()) { - this.innerModel().withVolumeBackups(volumeBackups); - return this; - } else { - this.updateBody.withVolumeBackups(volumeBackups); - return this; - } - } - private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java index a3be8a94ec6d..988874d5083b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; import com.azure.resourcemanager.netapp.models.CapacityPool; import com.azure.resourcemanager.netapp.models.CapacityPoolPatch; +import com.azure.resourcemanager.netapp.models.EncryptionType; import com.azure.resourcemanager.netapp.models.QosType; import com.azure.resourcemanager.netapp.models.ServiceLevel; import java.util.Collections; @@ -44,6 +45,10 @@ public Map tags() { } } + public String etag() { + return this.innerModel().etag(); + } + public String poolId() { return this.innerModel().poolId(); } @@ -76,6 +81,10 @@ public Boolean coolAccess() { return this.innerModel().coolAccess(); } + public EncryptionType encryptionType() { + return this.innerModel().encryptionType(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -227,6 +236,11 @@ public CapacityPoolImpl withCoolAccess(Boolean coolAccess) { return this; } + public CapacityPoolImpl withEncryptionType(EncryptionType encryptionType) { + this.innerModel().withEncryptionType(encryptionType); + return this; + } + public CapacityPoolImpl withSize(Long size) { this.updateBody.withSize(size); return this; 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 1035f241c323..97599b9591a3 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 @@ -46,6 +46,10 @@ public Map tags() { } } + public String etag() { + return this.innerModel().etag(); + } + public SystemData systemData() { return this.innerModel().systemData(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java index f6f76f2852ad..7b1a3fef23e4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java @@ -279,7 +279,7 @@ public VaultsClient getVaults() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2021-04-01"; + this.apiVersion = "2021-06-01"; this.operations = new OperationsClientImpl(this); this.netAppResources = new NetAppResourcesClientImpl(this); this.accounts = new AccountsClientImpl(this); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java index be5a2ac5a9db..4b7da2b9bedb 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 @@ -335,7 +335,7 @@ public PagedIterable list(String resourceGroupName, String * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -389,7 +389,7 @@ private Mono> getWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -441,7 +441,7 @@ private Mono> getWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -466,7 +466,7 @@ 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 target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -482,7 +482,7 @@ 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 target. + * @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. @@ -500,7 +500,7 @@ public 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 target. + * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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. @@ -561,7 +561,7 @@ private Mono> createWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -624,7 +624,7 @@ private Mono> createWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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. @@ -650,7 +650,7 @@ private Mono createAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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. @@ -668,7 +668,7 @@ public SnapshotPolicyInner create( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -691,7 +691,7 @@ public Response createWithResponse( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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. @@ -752,7 +752,7 @@ private Mono>> updateWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -815,7 +815,7 @@ private Mono>> updateWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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. @@ -842,7 +842,7 @@ private PollerFlux, SnapshotPolicyInner> beginUp * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -871,7 +871,7 @@ private PollerFlux, SnapshotPolicyInner> beginUp * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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. @@ -889,7 +889,7 @@ public SyncPoller, SnapshotPolicyInner> beginUpd * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -912,7 +912,7 @@ public SyncPoller, SnapshotPolicyInner> beginUpd * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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. @@ -932,7 +932,7 @@ private Mono updateAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -957,7 +957,7 @@ private Mono updateAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @param body Snapshot policy 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. @@ -975,7 +975,7 @@ public SnapshotPolicyInner update( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -998,7 +998,7 @@ public SnapshotPolicyInner update( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1050,7 +1050,7 @@ private Mono>> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -1100,7 +1100,7 @@ private Mono>> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1121,7 +1121,7 @@ private PollerFlux, Void> beginDeleteAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -1144,7 +1144,7 @@ private PollerFlux, Void> beginDeleteAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1161,7 +1161,7 @@ public 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 target. + * @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. @@ -1179,7 +1179,7 @@ public 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 target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1197,7 +1197,7 @@ private Mono deleteAsync(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 target. + * @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. @@ -1217,7 +1217,7 @@ private Mono deleteAsync( * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1232,7 +1232,7 @@ public void delete(String resourceGroupName, String accountName, String snapshot * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -1248,7 +1248,7 @@ public void delete(String resourceGroupName, String accountName, String snapshot * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1302,7 +1302,7 @@ private Mono> listVolumesWithResponseAsy * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @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. @@ -1354,7 +1354,7 @@ private Mono> listVolumesWithResponseAsy * * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1379,7 +1379,7 @@ 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 target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1396,7 +1396,7 @@ 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 target. + * @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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java index 5e3176dde126..a40834ad9ad3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java @@ -46,6 +46,10 @@ public Map tags() { } } + public String etag() { + return this.innerModel().etag(); + } + public HourlySchedule hourlySchedule() { return this.innerModel().hourlySchedule(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java index 3d8f81137e5e..647d002b9549 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 @@ -367,7 +367,7 @@ public PagedIterable list( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -430,7 +430,7 @@ private Mono> getWithResponseAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @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. @@ -496,7 +496,7 @@ private Mono> getWithResponseAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -523,7 +523,7 @@ 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 snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -542,7 +542,7 @@ public SnapshotInner get( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @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. @@ -568,7 +568,7 @@ public Response getWithResponse( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -643,7 +643,7 @@ private Mono>> createWithResponseAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -717,7 +717,7 @@ private Mono>> createWithResponseAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -747,7 +747,7 @@ private PollerFlux, SnapshotInner> beginCreateAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -780,7 +780,7 @@ private PollerFlux, SnapshotInner> beginCreateAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -806,7 +806,7 @@ public SyncPoller, SnapshotInner> beginCreate( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -834,7 +834,7 @@ public SyncPoller, SnapshotInner> beginCreate( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -861,7 +861,7 @@ private Mono createAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -890,7 +890,7 @@ private Mono createAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -915,7 +915,7 @@ public SnapshotInner create( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -942,7 +942,7 @@ public SnapshotInner create( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -1015,7 +1015,7 @@ private Mono>> updateWithResponseAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -1087,7 +1087,7 @@ private Mono>> updateWithResponseAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -1117,7 +1117,7 @@ private PollerFlux, SnapshotInner> beginUpdateAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -1150,7 +1150,7 @@ private PollerFlux, SnapshotInner> beginUpdateAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -1176,7 +1176,7 @@ public SyncPoller, SnapshotInner> beginUpdate( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -1204,7 +1204,7 @@ public SyncPoller, SnapshotInner> beginUpdate( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -1231,7 +1231,7 @@ private Mono updateAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -1260,7 +1260,7 @@ private Mono updateAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -1285,7 +1285,7 @@ public SnapshotInner 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 snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -1312,7 +1312,7 @@ public SnapshotInner 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 snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1373,7 +1373,7 @@ private Mono>> deleteWithResponseAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @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. @@ -1437,7 +1437,7 @@ private Mono>> deleteWithResponseAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1460,7 +1460,7 @@ 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 snapshotName The name of the mount target. + * @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. @@ -1490,7 +1490,7 @@ 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 snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1509,7 +1509,7 @@ public SyncPoller, Void> beginDelete( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @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. @@ -1535,7 +1535,7 @@ public SyncPoller, Void> beginDelete( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1556,7 +1556,7 @@ private Mono deleteAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @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. @@ -1583,7 +1583,7 @@ private Mono deleteAsync( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1601,7 +1601,7 @@ public void delete( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @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. 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 e4c3b5ae7da0..9f698b887fbc 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 @@ -8,6 +8,7 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; import com.azure.resourcemanager.netapp.models.AuthorizeRequest; +import com.azure.resourcemanager.netapp.models.AvsDataStore; import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; import com.azure.resourcemanager.netapp.models.MountTargetProperties; import com.azure.resourcemanager.netapp.models.PoolChangeRequest; @@ -54,6 +55,10 @@ public Map tags() { } } + public String etag() { + return this.innerModel().etag(); + } + public String fileSystemId() { return this.innerModel().fileSystemId(); } @@ -168,6 +173,26 @@ public String unixPermissions() { return this.innerModel().unixPermissions(); } + public Integer cloneProgress() { + return this.innerModel().cloneProgress(); + } + + public AvsDataStore avsDataStore() { + return this.innerModel().avsDataStore(); + } + + public Boolean isDefaultQuotaEnabled() { + return this.innerModel().isDefaultQuotaEnabled(); + } + + public Long defaultUserQuotaInKiBs() { + return this.innerModel().defaultUserQuotaInKiBs(); + } + + public Long defaultGroupQuotaInKiBs() { + return this.innerModel().defaultGroupQuotaInKiBs(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -479,6 +504,41 @@ public VolumeImpl withUnixPermissions(String unixPermissions) { return this; } + public VolumeImpl withAvsDataStore(AvsDataStore avsDataStore) { + this.innerModel().withAvsDataStore(avsDataStore); + return this; + } + + public VolumeImpl withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled) { + if (isInCreateMode()) { + this.innerModel().withIsDefaultQuotaEnabled(isDefaultQuotaEnabled); + return this; + } else { + this.updateBody.withIsDefaultQuotaEnabled(isDefaultQuotaEnabled); + return this; + } + } + + public VolumeImpl withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs) { + if (isInCreateMode()) { + this.innerModel().withDefaultUserQuotaInKiBs(defaultUserQuotaInKiBs); + return this; + } else { + this.updateBody.withDefaultUserQuotaInKiBs(defaultUserQuotaInKiBs); + return this; + } + } + + public VolumeImpl withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { + if (isInCreateMode()) { + this.innerModel().withDefaultGroupQuotaInKiBs(defaultGroupQuotaInKiBs); + return this; + } else { + this.updateBody.withDefaultGroupQuotaInKiBs(defaultGroupQuotaInKiBs); + return this; + } + } + public VolumeImpl withUsageThreshold(Long usageThreshold) { this.updateBody.withUsageThreshold(usageThreshold); return this; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java index e9466cf26b41..b1cf1b7272a7 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 @@ -10,6 +10,26 @@ /** Resource collection API of Accounts. */ public interface Accounts { + /** + * List and describe all NetApp accounts in the subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + PagedIterable list(); + + /** + * List and describe all NetApp accounts in the subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources. + */ + PagedIterable list(Context context); + /** * List and describe all NetApp accounts in the resource group. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java new file mode 100644 index 000000000000..dcbf18ca42c4 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for AvsDataStore. */ +public final class AvsDataStore extends ExpandableStringEnum { + /** Static value Enabled for AvsDataStore. */ + public static final AvsDataStore ENABLED = fromString("Enabled"); + + /** Static value Disabled for AvsDataStore. */ + public static final AvsDataStore DISABLED = fromString("Disabled"); + + /** + * Creates or finds a AvsDataStore from its string representation. + * + * @param name a name to look for. + * @return the corresponding AvsDataStore. + */ + @JsonCreator + public static AvsDataStore fromString(String name) { + return fromString(name, AvsDataStore.class); + } + + /** @return known AvsDataStore values. */ + public static Collection values() { + return values(AvsDataStore.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java index 3c8dc8d95ff0..e4d9f8413fa1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java @@ -41,14 +41,14 @@ public interface Backup { String location(); /** - * Gets the backupId property: UUID v4 used to identify the Backup. + * Gets the backupId property: backupId UUID v4 used to identify the Backup. * * @return the backupId value. */ String backupId(); /** - * Gets the creationDate property: The creation date of the backup. + * Gets the creationDate property: name The creation date of the backup. * * @return the creationDate value. */ @@ -76,7 +76,7 @@ public interface Backup { String label(); /** - * Gets the backupType property: Type of backup Manual or Scheduled. + * Gets the backupType property: backupType Type of backup Manual or Scheduled. * * @return the backupType value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java index c7d8d804fc54..479a9c2f7b12 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 @@ -8,6 +8,7 @@ import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; @@ -22,16 +23,17 @@ public class BackupPatch { * Resource tags */ @JsonProperty(value = "tags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; /* - * UUID v4 used to identify the Backup + * backupId UUID v4 used to identify the Backup */ @JsonProperty(value = "properties.backupId", access = JsonProperty.Access.WRITE_ONLY) private String backupId; /* - * The creation date of the backup + * name The creation date of the backup */ @JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationDate; @@ -55,7 +57,7 @@ public class BackupPatch { private String label; /* - * Type of backup Manual or Scheduled + * backupType Type of backup Manual or Scheduled */ @JsonProperty(value = "properties.backupType", access = JsonProperty.Access.WRITE_ONLY) private BackupType backupType; @@ -100,7 +102,7 @@ public BackupPatch withTags(Map tags) { } /** - * Get the backupId property: UUID v4 used to identify the Backup. + * Get the backupId property: backupId UUID v4 used to identify the Backup. * * @return the backupId value. */ @@ -109,7 +111,7 @@ public String backupId() { } /** - * Get the creationDate property: The creation date of the backup. + * Get the creationDate property: name The creation date of the backup. * * @return the creationDate value. */ @@ -156,7 +158,7 @@ public BackupPatch withLabel(String label) { } /** - * Get the backupType property: Type of backup Manual or Scheduled. + * Get the backupType property: backupType Type of backup Manual or Scheduled. * * @return the backupType value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java index 237cf1778100..519093da24dd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java @@ -47,6 +47,20 @@ public interface BackupPolicy { */ Map tags(); + /** + * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the backupPolicyId property: Backup Policy Resource ID. + * + * @return the backupPolicyId value. + */ + String backupPolicyId(); + /** * Gets the provisioningState property: Azure lifecycle management. * @@ -75,13 +89,6 @@ public interface BackupPolicy { */ Integer monthlyBackupsToKeep(); - /** - * Gets the yearlyBackupsToKeep property: Yearly backups count to keep. - * - * @return the yearlyBackupsToKeep value. - */ - Integer yearlyBackupsToKeep(); - /** * Gets the volumesAssigned property: Volumes using current backup policy. * @@ -174,10 +181,7 @@ interface WithCreate DefinitionStages.WithDailyBackupsToKeep, DefinitionStages.WithWeeklyBackupsToKeep, DefinitionStages.WithMonthlyBackupsToKeep, - DefinitionStages.WithYearlyBackupsToKeep, - DefinitionStages.WithVolumesAssigned, - DefinitionStages.WithEnabled, - DefinitionStages.WithVolumeBackups { + DefinitionStages.WithEnabled { /** * Executes the create request. * @@ -233,26 +237,6 @@ interface WithMonthlyBackupsToKeep { */ WithCreate withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep); } - /** The stage of the BackupPolicy definition allowing to specify yearlyBackupsToKeep. */ - interface WithYearlyBackupsToKeep { - /** - * Specifies the yearlyBackupsToKeep property: Yearly backups count to keep. - * - * @param yearlyBackupsToKeep Yearly backups count to keep. - * @return the next definition stage. - */ - WithCreate withYearlyBackupsToKeep(Integer yearlyBackupsToKeep); - } - /** The stage of the BackupPolicy definition allowing to specify volumesAssigned. */ - interface WithVolumesAssigned { - /** - * Specifies the volumesAssigned property: Volumes using current backup policy. - * - * @param volumesAssigned Volumes using current backup policy. - * @return the next definition stage. - */ - WithCreate withVolumesAssigned(Integer volumesAssigned); - } /** The stage of the BackupPolicy definition allowing to specify enabled. */ interface WithEnabled { /** @@ -263,16 +247,6 @@ interface WithEnabled { */ WithCreate withEnabled(Boolean enabled); } - /** The stage of the BackupPolicy definition allowing to specify volumeBackups. */ - interface WithVolumeBackups { - /** - * Specifies the volumeBackups property: A list of volumes assigned to this policy. - * - * @param volumeBackups A list of volumes assigned to this policy. - * @return the next definition stage. - */ - WithCreate withVolumeBackups(List volumeBackups); - } } /** * Begins update for the BackupPolicy resource. @@ -287,10 +261,7 @@ interface Update UpdateStages.WithDailyBackupsToKeep, UpdateStages.WithWeeklyBackupsToKeep, UpdateStages.WithMonthlyBackupsToKeep, - UpdateStages.WithYearlyBackupsToKeep, - UpdateStages.WithVolumesAssigned, - UpdateStages.WithEnabled, - UpdateStages.WithVolumeBackups { + UpdateStages.WithEnabled { /** * Executes the update request. * @@ -348,26 +319,6 @@ interface WithMonthlyBackupsToKeep { */ Update withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep); } - /** The stage of the BackupPolicy update allowing to specify yearlyBackupsToKeep. */ - interface WithYearlyBackupsToKeep { - /** - * Specifies the yearlyBackupsToKeep property: Yearly backups count to keep. - * - * @param yearlyBackupsToKeep Yearly backups count to keep. - * @return the next definition stage. - */ - Update withYearlyBackupsToKeep(Integer yearlyBackupsToKeep); - } - /** The stage of the BackupPolicy update allowing to specify volumesAssigned. */ - interface WithVolumesAssigned { - /** - * Specifies the volumesAssigned property: Volumes using current backup policy. - * - * @param volumesAssigned Volumes using current backup policy. - * @return the next definition stage. - */ - Update withVolumesAssigned(Integer volumesAssigned); - } /** The stage of the BackupPolicy update allowing to specify enabled. */ interface WithEnabled { /** @@ -378,16 +329,6 @@ interface WithEnabled { */ Update withEnabled(Boolean enabled); } - /** The stage of the BackupPolicy update allowing to specify volumeBackups. */ - interface WithVolumeBackups { - /** - * Specifies the volumeBackups property: A list of volumes assigned to this policy. - * - * @param volumeBackups A list of volumes assigned to this policy. - * @return the next definition stage. - */ - Update withVolumeBackups(List volumeBackups); - } } /** * Refreshes the resource to sync with Azure. 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 d0261fe5bbd3..aaca071ca78b 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 @@ -19,6 +19,12 @@ public class BackupPolicyPatch extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyPatch.class); + /* + * Backup Policy Resource ID + */ + @JsonProperty(value = "properties.backupPolicyId", access = JsonProperty.Access.WRITE_ONLY) + private String backupPolicyId; + /* * Azure lifecycle management */ @@ -43,16 +49,10 @@ public class BackupPolicyPatch extends Resource { @JsonProperty(value = "properties.monthlyBackupsToKeep") private Integer monthlyBackupsToKeep; - /* - * Yearly backups count to keep - */ - @JsonProperty(value = "properties.yearlyBackupsToKeep") - private Integer yearlyBackupsToKeep; - /* * Volumes using current backup policy */ - @JsonProperty(value = "properties.volumesAssigned") + @JsonProperty(value = "properties.volumesAssigned", access = JsonProperty.Access.WRITE_ONLY) private Integer volumesAssigned; /* @@ -64,9 +64,18 @@ public class BackupPolicyPatch extends Resource { /* * A list of volumes assigned to this policy */ - @JsonProperty(value = "properties.volumeBackups") + @JsonProperty(value = "properties.volumeBackups", access = JsonProperty.Access.WRITE_ONLY) private List volumeBackups; + /** + * Get the backupPolicyId property: Backup Policy Resource ID. + * + * @return the backupPolicyId value. + */ + public String backupPolicyId() { + return this.backupPolicyId; + } + /** * Get the provisioningState property: Azure lifecycle management. * @@ -136,26 +145,6 @@ public BackupPolicyPatch withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) return this; } - /** - * Get the yearlyBackupsToKeep property: Yearly backups count to keep. - * - * @return the yearlyBackupsToKeep value. - */ - public Integer yearlyBackupsToKeep() { - return this.yearlyBackupsToKeep; - } - - /** - * Set the yearlyBackupsToKeep property: Yearly backups count to keep. - * - * @param yearlyBackupsToKeep the yearlyBackupsToKeep value to set. - * @return the BackupPolicyPatch object itself. - */ - public BackupPolicyPatch withYearlyBackupsToKeep(Integer yearlyBackupsToKeep) { - this.yearlyBackupsToKeep = yearlyBackupsToKeep; - return this; - } - /** * Get the volumesAssigned property: Volumes using current backup policy. * @@ -165,17 +154,6 @@ public Integer volumesAssigned() { return this.volumesAssigned; } - /** - * Set the volumesAssigned property: Volumes using current backup policy. - * - * @param volumesAssigned the volumesAssigned value to set. - * @return the BackupPolicyPatch object itself. - */ - public BackupPolicyPatch withVolumesAssigned(Integer volumesAssigned) { - this.volumesAssigned = volumesAssigned; - return this; - } - /** * Get the enabled property: The property to decide policy is enabled or not. * @@ -205,17 +183,6 @@ public List volumeBackups() { return this.volumeBackups; } - /** - * Set the volumeBackups property: A list of volumes assigned to this policy. - * - * @param volumeBackups the volumeBackups value to set. - * @return the BackupPolicyPatch object itself. - */ - public BackupPolicyPatch withVolumeBackups(List volumeBackups) { - this.volumeBackups = volumeBackups; - return this; - } - /** {@inheritDoc} */ @Override public BackupPolicyPatch withLocation(String location) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java index a98398253240..c3f168cdc3ec 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java @@ -47,22 +47,29 @@ public interface CapacityPool { Map tags(); /** - * Gets the poolId property: UUID v4 used to identify the Pool. + * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the poolId property: poolId UUID v4 used to identify the Pool. * * @return the poolId value. */ String poolId(); /** - * Gets the size property: Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be - * multiply of 4398046511104). + * Gets the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * must be multiply of 4398046511104). * * @return the size value. */ long size(); /** - * Gets the serviceLevel property: The service level of the file system. + * Gets the serviceLevel property: serviceLevel The service level of the file system. * * @return the serviceLevel value. */ @@ -103,6 +110,14 @@ public interface CapacityPool { */ Boolean coolAccess(); + /** + * Gets the encryptionType property: encryptionType Encryption type of the capacity pool, set encryption type for + * data at rest for this pool and all volumes in it. This value can only be set when creating new pool. + * + * @return the encryptionType value. + */ + EncryptionType encryptionType(); + /** * Gets the region of the resource. * @@ -170,11 +185,11 @@ interface WithParentResource { /** The stage of the CapacityPool definition allowing to specify size. */ interface WithSize { /** - * Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks - * (value must be multiply of 4398046511104).. + * Specifies the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB + * chunks (value must be multiply of 4398046511104).. * - * @param size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be - * multiply of 4398046511104). + * @param size size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must + * be multiply of 4398046511104). * @return the next definition stage. */ WithServiceLevel withSize(long size); @@ -182,9 +197,9 @@ interface WithSize { /** The stage of the CapacityPool definition allowing to specify serviceLevel. */ interface WithServiceLevel { /** - * Specifies the serviceLevel property: The service level of the file system. + * Specifies the serviceLevel property: serviceLevel The service level of the file system. * - * @param serviceLevel The service level of the file system. + * @param serviceLevel serviceLevel The service level of the file system. * @return the next definition stage. */ WithCreate withServiceLevel(ServiceLevel serviceLevel); @@ -194,7 +209,10 @@ interface WithServiceLevel { * to be created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithQosType, DefinitionStages.WithCoolAccess { + extends DefinitionStages.WithTags, + DefinitionStages.WithQosType, + DefinitionStages.WithCoolAccess, + DefinitionStages.WithEncryptionType { /** * Executes the create request. * @@ -240,6 +258,19 @@ interface WithCoolAccess { */ WithCreate withCoolAccess(Boolean coolAccess); } + /** The stage of the CapacityPool definition allowing to specify encryptionType. */ + interface WithEncryptionType { + /** + * Specifies the encryptionType property: encryptionType Encryption type of the capacity pool, set + * encryption type for data at rest for this pool and all volumes in it. This value can only be set when + * creating new pool.. + * + * @param encryptionType encryptionType Encryption type of the capacity pool, set encryption type for data + * at rest for this pool and all volumes in it. This value can only be set when creating new pool. + * @return the next definition stage. + */ + WithCreate withEncryptionType(EncryptionType encryptionType); + } } /** * Begins update for the CapacityPool resource. @@ -280,11 +311,11 @@ interface WithTags { /** The stage of the CapacityPool update allowing to specify size. */ interface WithSize { /** - * Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks - * (value must be multiply of 4398046511104).. + * Specifies the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB + * chunks (value must be multiply of 4398046511104).. * - * @param size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be - * multiply of 4398046511104). + * @param size size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must + * be multiply of 4398046511104). * @return the next definition stage. */ Update withSize(Long size); 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 649539baba1a..033a18531450 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,7 +19,7 @@ public class CapacityPoolPatch extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityPoolPatch.class); /* - * Provisioned size of the pool (in bytes). Allowed values are in 4TiB + * size Provisioned size of the pool (in bytes). Allowed values are in 4TiB * chunks (value must be multiply of 4398046511104). */ @JsonProperty(value = "properties.size") @@ -32,8 +32,8 @@ public class CapacityPoolPatch extends Resource { private QosType qosType; /** - * Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be - * multiply of 4398046511104). + * Get the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * must be multiply of 4398046511104). * * @return the size value. */ @@ -42,8 +42,8 @@ public Long size() { } /** - * Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be - * multiply of 4398046511104). + * Set the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value + * must be multiply of 4398046511104). * * @param size the size value to set. * @return the CapacityPoolPatch object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java new file mode 100644 index 000000000000..03f82808a729 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for EncryptionType. */ +public final class EncryptionType extends ExpandableStringEnum { + /** Static value Single for EncryptionType. */ + public static final EncryptionType SINGLE = fromString("Single"); + + /** Static value Double for EncryptionType. */ + public static final EncryptionType DOUBLE = fromString("Double"); + + /** + * Creates or finds a EncryptionType from its string representation. + * + * @param name a name to look for. + * @return the corresponding EncryptionType. + */ + @JsonCreator + public static EncryptionType fromString(String name) { + return fromString(name, EncryptionType.class); + } + + /** @return known EncryptionType values. */ + public static Collection values() { + return values(EncryptionType.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java new file mode 100644 index 000000000000..32ab9525ec6f --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for MetricAggregationType. */ +public final class MetricAggregationType extends ExpandableStringEnum { + /** Static value Average for MetricAggregationType. */ + public static final MetricAggregationType AVERAGE = fromString("Average"); + + /** + * Creates or finds a MetricAggregationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding MetricAggregationType. + */ + @JsonCreator + public static MetricAggregationType fromString(String name) { + return fromString(name, MetricAggregationType.class); + } + + /** @return known MetricAggregationType values. */ + public static Collection values() { + return values(MetricAggregationType.class); + } +} 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 1077da5c090f..a47147965f91 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 @@ -39,6 +39,36 @@ public final class MetricSpecification { @JsonProperty(value = "unit") private String unit; + /* + * Support metric aggregation type. + */ + @JsonProperty(value = "supportedAggregationTypes") + private List supportedAggregationTypes; + + /* + * The supported time grain types for the metrics. + */ + @JsonProperty(value = "supportedTimeGrainTypes") + private List supportedTimeGrainTypes; + + /* + * The internal metric name. + */ + @JsonProperty(value = "internalMetricName") + private String internalMetricName; + + /* + * The source MDM account. + */ + @JsonProperty(value = "sourceMdmAccount") + private String sourceMdmAccount; + + /* + * The source MDM namespace. + */ + @JsonProperty(value = "sourceMdmNamespace") + private String sourceMdmNamespace; + /* * Dimensions of blobs, including blob type and access tier. */ @@ -149,6 +179,106 @@ public MetricSpecification withUnit(String unit) { return this; } + /** + * Get the supportedAggregationTypes property: Support metric aggregation type. + * + * @return the supportedAggregationTypes value. + */ + public List supportedAggregationTypes() { + return this.supportedAggregationTypes; + } + + /** + * Set the supportedAggregationTypes property: Support metric aggregation type. + * + * @param supportedAggregationTypes the supportedAggregationTypes value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withSupportedAggregationTypes(List supportedAggregationTypes) { + this.supportedAggregationTypes = supportedAggregationTypes; + return this; + } + + /** + * Get the supportedTimeGrainTypes property: The supported time grain types for the metrics. + * + * @return the supportedTimeGrainTypes value. + */ + public List supportedTimeGrainTypes() { + return this.supportedTimeGrainTypes; + } + + /** + * Set the supportedTimeGrainTypes property: The supported time grain types for the metrics. + * + * @param supportedTimeGrainTypes the supportedTimeGrainTypes value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withSupportedTimeGrainTypes(List supportedTimeGrainTypes) { + this.supportedTimeGrainTypes = supportedTimeGrainTypes; + return this; + } + + /** + * Get the internalMetricName property: The internal metric name. + * + * @return the internalMetricName value. + */ + public String internalMetricName() { + return this.internalMetricName; + } + + /** + * Set the internalMetricName property: The internal metric name. + * + * @param internalMetricName the internalMetricName value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withInternalMetricName(String internalMetricName) { + this.internalMetricName = internalMetricName; + return this; + } + + /** + * Get the sourceMdmAccount property: The source MDM account. + * + * @return the sourceMdmAccount value. + */ + public String sourceMdmAccount() { + return this.sourceMdmAccount; + } + + /** + * Set the sourceMdmAccount property: The source MDM account. + * + * @param sourceMdmAccount the sourceMdmAccount value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withSourceMdmAccount(String sourceMdmAccount) { + this.sourceMdmAccount = sourceMdmAccount; + return this; + } + + /** + * Get the sourceMdmNamespace property: The source MDM namespace. + * + * @return the sourceMdmNamespace value. + */ + public String sourceMdmNamespace() { + return this.sourceMdmNamespace; + } + + /** + * Set the sourceMdmNamespace property: The source MDM namespace. + * + * @param sourceMdmNamespace the sourceMdmNamespace value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace) { + this.sourceMdmNamespace = sourceMdmNamespace; + return this; + } + /** * Get the dimensions property: Dimensions of blobs, including blob type and access tier. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java index 3b99ec11f430..89860c215177 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java @@ -15,31 +15,31 @@ public final class MountTargetProperties { @JsonIgnore private final ClientLogger logger = new ClientLogger(MountTargetProperties.class); /* - * UUID v4 used to identify the MountTarget + * mountTargetId UUID v4 used to identify the MountTarget */ @JsonProperty(value = "mountTargetId", access = JsonProperty.Access.WRITE_ONLY) private String mountTargetId; /* - * UUID v4 used to identify the MountTarget + * fileSystemId UUID v4 used to identify the MountTarget */ @JsonProperty(value = "fileSystemId", required = true) private String fileSystemId; /* - * The mount target's IPv4 address + * ipAddress The mount target's IPv4 address */ @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY) private String ipAddress; /* - * The SMB server's Fully Qualified Domain Name, FQDN + * smbServerFQDN The SMB server's Fully Qualified Domain Name, FQDN */ @JsonProperty(value = "smbServerFqdn") private String smbServerFqdn; /** - * Get the mountTargetId property: UUID v4 used to identify the MountTarget. + * Get the mountTargetId property: mountTargetId UUID v4 used to identify the MountTarget. * * @return the mountTargetId value. */ @@ -48,7 +48,7 @@ public String mountTargetId() { } /** - * Get the fileSystemId property: UUID v4 used to identify the MountTarget. + * Get the fileSystemId property: fileSystemId UUID v4 used to identify the MountTarget. * * @return the fileSystemId value. */ @@ -57,7 +57,7 @@ public String fileSystemId() { } /** - * Set the fileSystemId property: UUID v4 used to identify the MountTarget. + * Set the fileSystemId property: fileSystemId UUID v4 used to identify the MountTarget. * * @param fileSystemId the fileSystemId value to set. * @return the MountTargetProperties object itself. @@ -68,7 +68,7 @@ public MountTargetProperties withFileSystemId(String fileSystemId) { } /** - * Get the ipAddress property: The mount target's IPv4 address. + * Get the ipAddress property: ipAddress The mount target's IPv4 address. * * @return the ipAddress value. */ @@ -77,7 +77,7 @@ public String ipAddress() { } /** - * Get the smbServerFqdn property: The SMB server's Fully Qualified Domain Name, FQDN. + * Get the smbServerFqdn property: smbServerFQDN The SMB server's Fully Qualified Domain Name, FQDN. * * @return the smbServerFqdn value. */ @@ -86,7 +86,7 @@ public String smbServerFqdn() { } /** - * Set the smbServerFqdn property: The SMB server's Fully Qualified Domain Name, FQDN. + * Set the smbServerFqdn property: smbServerFQDN The SMB server's Fully Qualified Domain Name, FQDN. * * @param smbServerFqdn the smbServerFqdn value to set. * @return the MountTargetProperties object itself. 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 d4148edea5a1..4d978529d532 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 @@ -48,6 +48,13 @@ public interface NetAppAccount { */ Map tags(); + /** + * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + String etag(); + /** * Gets the systemData property: The system meta data relating to this resource. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java index 096f1c02eafb..5b85a1d0382a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java @@ -19,6 +19,9 @@ public final class ServiceLevel extends ExpandableStringEnum { /** Static value Ultra for ServiceLevel. */ public static final ServiceLevel ULTRA = fromString("Ultra"); + /** Static value StandardZRS for ServiceLevel. */ + public static final ServiceLevel STANDARD_ZRS = fromString("StandardZRS"); + /** * Creates or finds a ServiceLevel from its string representation. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java index 4c1b6f05e316..74f75dc61d4c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java @@ -40,14 +40,14 @@ public interface Snapshot { String location(); /** - * Gets the snapshotId property: UUID v4 used to identify the Snapshot. + * Gets the snapshotId property: snapshotId UUID v4 used to identify the Snapshot. * * @return the snapshotId value. */ String snapshotId(); /** - * Gets the created property: The creation date of the snapshot. + * Gets the created property: name The creation date of the snapshot. * * @return the created value. */ 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 a2115338ff39..7bbaa4f00d7c 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 @@ -40,7 +40,7 @@ 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 target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -53,7 +53,7 @@ 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 target. + * @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. @@ -68,7 +68,7 @@ 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 target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -80,7 +80,7 @@ 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 target. + * @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. @@ -93,7 +93,7 @@ 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 target. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -106,7 +106,7 @@ 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 target. + * @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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java index a2b252004125..3e9873c61289 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java @@ -46,6 +46,13 @@ public interface SnapshotPolicy { */ Map tags(); + /** + * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + String etag(); + /** * Gets the hourlySchedule property: Schedule for hourly snapshots. * 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 fbdfa7a6d260..2caba9fd877b 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 @@ -8,6 +8,7 @@ import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -45,6 +46,7 @@ public class SnapshotPolicyPatch { * Resource tags */ @JsonProperty(value = "tags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; /* 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 207fa0af8ac5..24c22eae240d 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 @@ -47,7 +47,7 @@ PagedIterable list( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -62,7 +62,7 @@ PagedIterable list( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @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. @@ -84,7 +84,7 @@ Response getWithResponse( * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. * @param volumeName The name of the volume. - * @param snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -106,7 +106,7 @@ Snapshot 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 snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @param body Snapshot 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. @@ -130,7 +130,7 @@ Snapshot 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 snapshotName The name of the mount target. + * @param snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -144,7 +144,7 @@ Snapshot 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 snapshotName The name of the mount target. + * @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. 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 8d6aef3d9ecd..0c1297186ce9 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 @@ -48,43 +48,51 @@ public interface Volume { Map tags(); /** - * Gets the fileSystemId property: Unique FileSystem Identifier. + * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the fileSystemId property: FileSystem ID Unique FileSystem Identifier. * * @return the fileSystemId value. */ String fileSystemId(); /** - * Gets the creationToken property: A unique file path for the volume. Used when creating mount targets. + * Gets the creationToken property: Creation Token or File Path A unique file path for the volume. Used when + * creating mount targets. * * @return the creationToken value. */ String creationToken(); /** - * Gets the serviceLevel property: The service level of the file system. + * Gets the serviceLevel property: serviceLevel The service level of the file system. * * @return the serviceLevel value. */ ServiceLevel serviceLevel(); /** - * Gets the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. + * Gets the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This + * is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. * * @return the usageThreshold value. */ long usageThreshold(); /** - * Gets the exportPolicy property: Set of export policy rules. + * Gets the exportPolicy property: exportPolicy Set of export policy rules. * * @return the exportPolicy value. */ VolumePropertiesExportPolicy exportPolicy(); /** - * Gets the protocolTypes property: Set of protocol types, default NFSv3, CIFS for SMB protocol. + * Gets the protocolTypes property: protocolTypes Set of protocol types, default NFSv3, CIFS for SMB protocol. * * @return the protocolTypes value. */ @@ -98,21 +106,21 @@ public interface Volume { String provisioningState(); /** - * Gets the snapshotId property: UUID v4 or resource identifier used to identify the Snapshot. + * Gets the snapshotId property: Snapshot ID UUID v4 or resource identifier used to identify the Snapshot. * * @return the snapshotId value. */ String snapshotId(); /** - * Gets the backupId property: UUID v4 or resource identifier used to identify the Backup. + * Gets the backupId property: Backup ID UUID v4 or resource identifier used to identify the Backup. * * @return the backupId value. */ String backupId(); /** - * Gets the baremetalTenantId property: Unique Baremetal Tenant Identifier. + * Gets the baremetalTenantId property: Baremetal Tenant ID Unique Baremetal Tenant Identifier. * * @return the baremetalTenantId value. */ @@ -127,7 +135,7 @@ public interface Volume { String subnetId(); /** - * Gets the mountTargets property: List of mount targets. + * Gets the mountTargets property: mountTargets List of mount targets. * * @return the mountTargets value. */ @@ -141,8 +149,8 @@ public interface Volume { String volumeType(); /** - * Gets the dataProtection property: DataProtection type volumes include an object containing details of the - * replication. + * Gets the dataProtection property: DataProtection DataProtection type volumes include an object containing details + * of the replication. * * @return the dataProtection value. */ @@ -242,6 +250,46 @@ public interface Volume { */ String unixPermissions(); + /** + * Gets the cloneProgress property: When a volume is being restored from another volume's snapshot, will show the + * percentage completion of this cloning process. When this value is empty/null there is no cloning process + * currently happening on this volume. This value will update every 5 minutes during cloning. + * + * @return the cloneProgress value. + */ + Integer cloneProgress(); + + /** + * Gets the avsDataStore property: avsDataStore Specifies whether the volume is enabled for Azure VMware Solution + * (AVS) datastore purpose. + * + * @return the avsDataStore value. + */ + AvsDataStore avsDataStore(); + + /** + * Gets the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. + * + * @return the isDefaultQuotaEnabled value. + */ + Boolean isDefaultQuotaEnabled(); + + /** + * Gets the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies . + * + * @return the defaultUserQuotaInKiBs value. + */ + Long defaultUserQuotaInKiBs(); + + /** + * Gets the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is + * set, the minimum value of 4 KiBs applies. + * + * @return the defaultGroupQuotaInKiBs value. + */ + Long defaultGroupQuotaInKiBs(); + /** * Gets the region of the resource. * @@ -311,10 +359,11 @@ interface WithParentResource { /** The stage of the Volume definition allowing to specify creationToken. */ interface WithCreationToken { /** - * Specifies the creationToken property: A unique file path for the volume. Used when creating mount - * targets. + * Specifies the creationToken property: Creation Token or File Path A unique file path for the volume. Used + * when creating mount targets. * - * @param creationToken A unique file path for the volume. Used when creating mount targets. + * @param creationToken Creation Token or File Path A unique file path for the volume. Used when creating + * mount targets. * @return the next definition stage. */ WithUsageThreshold withCreationToken(String creationToken); @@ -322,11 +371,13 @@ interface WithCreationToken { /** The stage of the Volume definition allowing to specify usageThreshold. */ interface WithUsageThreshold { /** - * Specifies the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is - * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.. + * Specifies the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in + * bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. + * Specified in bytes.. * - * @param usageThreshold Maximum storage quota allowed for a file system in bytes. This is a soft quota used - * for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. + * @param usageThreshold usageThreshold Maximum storage quota allowed for a file system in bytes. This is a + * soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in + * bytes. * @return the next definition stage. */ WithSubnetId withUsageThreshold(long usageThreshold); @@ -367,7 +418,11 @@ interface WithCreate DefinitionStages.WithLdapEnabled, DefinitionStages.WithCoolAccess, DefinitionStages.WithCoolnessPeriod, - DefinitionStages.WithUnixPermissions { + DefinitionStages.WithUnixPermissions, + DefinitionStages.WithAvsDataStore, + DefinitionStages.WithIsDefaultQuotaEnabled, + DefinitionStages.WithDefaultUserQuotaInKiBs, + DefinitionStages.WithDefaultGroupQuotaInKiBs { /** * Executes the create request. * @@ -396,9 +451,9 @@ interface WithTags { /** The stage of the Volume definition allowing to specify serviceLevel. */ interface WithServiceLevel { /** - * Specifies the serviceLevel property: The service level of the file system. + * Specifies the serviceLevel property: serviceLevel The service level of the file system. * - * @param serviceLevel The service level of the file system. + * @param serviceLevel serviceLevel The service level of the file system. * @return the next definition stage. */ WithCreate withServiceLevel(ServiceLevel serviceLevel); @@ -406,9 +461,9 @@ interface WithServiceLevel { /** The stage of the Volume definition allowing to specify exportPolicy. */ interface WithExportPolicy { /** - * Specifies the exportPolicy property: Set of export policy rules. + * Specifies the exportPolicy property: exportPolicy Set of export policy rules. * - * @param exportPolicy Set of export policy rules. + * @param exportPolicy exportPolicy Set of export policy rules. * @return the next definition stage. */ WithCreate withExportPolicy(VolumePropertiesExportPolicy exportPolicy); @@ -416,9 +471,10 @@ interface WithExportPolicy { /** The stage of the Volume definition allowing to specify protocolTypes. */ interface WithProtocolTypes { /** - * Specifies the protocolTypes property: Set of protocol types, default NFSv3, CIFS for SMB protocol. + * Specifies the protocolTypes property: protocolTypes Set of protocol types, default NFSv3, CIFS for SMB + * protocol. * - * @param protocolTypes Set of protocol types, default NFSv3, CIFS for SMB protocol. + * @param protocolTypes protocolTypes Set of protocol types, default NFSv3, CIFS for SMB protocol. * @return the next definition stage. */ WithCreate withProtocolTypes(List protocolTypes); @@ -426,9 +482,10 @@ interface WithProtocolTypes { /** The stage of the Volume definition allowing to specify snapshotId. */ interface WithSnapshotId { /** - * Specifies the snapshotId property: UUID v4 or resource identifier used to identify the Snapshot.. + * Specifies the snapshotId property: Snapshot ID UUID v4 or resource identifier used to identify the + * Snapshot.. * - * @param snapshotId UUID v4 or resource identifier used to identify the Snapshot. + * @param snapshotId Snapshot ID UUID v4 or resource identifier used to identify the Snapshot. * @return the next definition stage. */ WithCreate withSnapshotId(String snapshotId); @@ -436,9 +493,9 @@ interface WithSnapshotId { /** The stage of the Volume definition allowing to specify backupId. */ interface WithBackupId { /** - * Specifies the backupId property: UUID v4 or resource identifier used to identify the Backup.. + * Specifies the backupId property: Backup ID UUID v4 or resource identifier used to identify the Backup.. * - * @param backupId UUID v4 or resource identifier used to identify the Backup. + * @param backupId Backup ID UUID v4 or resource identifier used to identify the Backup. * @return the next definition stage. */ WithCreate withBackupId(String backupId); @@ -456,11 +513,11 @@ interface WithVolumeType { /** The stage of the Volume definition allowing to specify dataProtection. */ interface WithDataProtection { /** - * Specifies the dataProtection property: DataProtection type volumes include an object containing details - * of the replication. + * Specifies the dataProtection property: DataProtection DataProtection type volumes include an object + * containing details of the replication. * - * @param dataProtection DataProtection type volumes include an object containing details of the - * replication. + * @param dataProtection DataProtection DataProtection type volumes include an object containing details of + * the replication. * @return the next definition stage. */ WithCreate withDataProtection(VolumePropertiesDataProtection dataProtection); @@ -606,6 +663,52 @@ interface WithUnixPermissions { */ WithCreate withUnixPermissions(String unixPermissions); } + /** The stage of the Volume definition allowing to specify avsDataStore. */ + interface WithAvsDataStore { + /** + * Specifies the avsDataStore property: avsDataStore Specifies whether the volume is enabled for Azure + * VMware Solution (AVS) datastore purpose. + * + * @param avsDataStore avsDataStore Specifies whether the volume is enabled for Azure VMware Solution (AVS) + * datastore purpose. + * @return the next definition stage. + */ + WithCreate withAvsDataStore(AvsDataStore avsDataStore); + } + /** The stage of the Volume definition allowing to specify isDefaultQuotaEnabled. */ + interface WithIsDefaultQuotaEnabled { + /** + * Specifies the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume.. + * + * @param isDefaultQuotaEnabled Specifies if default quota is enabled for the volume. + * @return the next definition stage. + */ + WithCreate withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled); + } + /** The stage of the Volume definition allowing to specify defaultUserQuotaInKiBs. */ + interface WithDefaultUserQuotaInKiBs { + /** + * Specifies the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If + * isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies .. + * + * @param defaultUserQuotaInKiBs Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the + * minimum value of 4 KiBs applies . + * @return the next definition stage. + */ + WithCreate withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs); + } + /** The stage of the Volume definition allowing to specify defaultGroupQuotaInKiBs. */ + interface WithDefaultGroupQuotaInKiBs { + /** + * Specifies the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If + * isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies.. + * + * @param defaultGroupQuotaInKiBs Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies. + * @return the next definition stage. + */ + WithCreate withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs); + } } /** * Begins update for the Volume resource. @@ -621,7 +724,10 @@ interface Update UpdateStages.WithUsageThreshold, UpdateStages.WithExportPolicy, UpdateStages.WithThroughputMibps, - UpdateStages.WithDataProtection { + UpdateStages.WithDataProtection, + UpdateStages.WithIsDefaultQuotaEnabled, + UpdateStages.WithDefaultUserQuotaInKiBs, + UpdateStages.WithDefaultGroupQuotaInKiBs { /** * Executes the update request. * @@ -652,9 +758,9 @@ interface WithTags { /** The stage of the Volume update allowing to specify serviceLevel. */ interface WithServiceLevel { /** - * Specifies the serviceLevel property: The service level of the file system. + * Specifies the serviceLevel property: serviceLevel The service level of the file system. * - * @param serviceLevel The service level of the file system. + * @param serviceLevel serviceLevel The service level of the file system. * @return the next definition stage. */ Update withServiceLevel(ServiceLevel serviceLevel); @@ -662,11 +768,13 @@ interface WithServiceLevel { /** The stage of the Volume update allowing to specify usageThreshold. */ interface WithUsageThreshold { /** - * Specifies the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is - * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.. + * Specifies the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in + * bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. + * Specified in bytes.. * - * @param usageThreshold Maximum storage quota allowed for a file system in bytes. This is a soft quota used - * for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. + * @param usageThreshold usageThreshold Maximum storage quota allowed for a file system in bytes. This is a + * soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in + * bytes. * @return the next definition stage. */ Update withUsageThreshold(Long usageThreshold); @@ -674,9 +782,9 @@ interface WithUsageThreshold { /** The stage of the Volume update allowing to specify exportPolicy. */ interface WithExportPolicy { /** - * Specifies the exportPolicy property: Set of export policy rules. + * Specifies the exportPolicy property: exportPolicy Set of export policy rules. * - * @param exportPolicy Set of export policy rules. + * @param exportPolicy exportPolicy Set of export policy rules. * @return the next definition stage. */ Update withExportPolicy(VolumePatchPropertiesExportPolicy exportPolicy); @@ -694,15 +802,49 @@ interface WithThroughputMibps { /** The stage of the Volume update allowing to specify dataProtection. */ interface WithDataProtection { /** - * Specifies the dataProtection property: DataProtection type volumes include an object containing details - * of the replication. + * Specifies the dataProtection property: DataProtection DataProtection type volumes include an object + * containing details of the replication. * - * @param dataProtection DataProtection type volumes include an object containing details of the - * replication. + * @param dataProtection DataProtection DataProtection type volumes include an object containing details of + * the replication. * @return the next definition stage. */ Update withDataProtection(VolumePatchPropertiesDataProtection dataProtection); } + /** The stage of the Volume update allowing to specify isDefaultQuotaEnabled. */ + interface WithIsDefaultQuotaEnabled { + /** + * Specifies the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume.. + * + * @param isDefaultQuotaEnabled Specifies if default quota is enabled for the volume. + * @return the next definition stage. + */ + Update withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled); + } + /** The stage of the Volume update allowing to specify defaultUserQuotaInKiBs. */ + interface WithDefaultUserQuotaInKiBs { + /** + * Specifies the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If + * isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies .. + * + * @param defaultUserQuotaInKiBs Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the + * minimum value of 4 KiBs applies . + * @return the next definition stage. + */ + Update withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs); + } + /** The stage of the Volume update allowing to specify defaultGroupQuotaInKiBs. */ + interface WithDefaultGroupQuotaInKiBs { + /** + * Specifies the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If + * isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies.. + * + * @param defaultGroupQuotaInKiBs Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies. + * @return the next definition stage. + */ + Update withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs); + } } /** * Refreshes the resource to sync with Azure. 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 5ffd7ece7ad5..edd357f99265 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,21 +19,21 @@ public class VolumePatch extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePatch.class); /* - * The service level of the file system + * serviceLevel The service level of the file system */ @JsonProperty(value = "properties.serviceLevel") private ServiceLevel serviceLevel; /* - * Maximum storage quota allowed for a file system in bytes. This is a soft - * quota used for alerting only. Minimum size is 100 GiB. Upper limit is - * 100TiB. Specified in bytes. + * usageThreshold Maximum storage quota allowed for a file system in bytes. + * This is a soft quota used for alerting only. Minimum size is 100 GiB. + * Upper limit is 100TiB. Specified in bytes. */ @JsonProperty(value = "properties.usageThreshold") private Long usageThreshold; /* - * Set of export policy rules + * exportPolicy Set of export policy rules */ @JsonProperty(value = "properties.exportPolicy") private VolumePatchPropertiesExportPolicy exportPolicy; @@ -45,14 +45,34 @@ public class VolumePatch extends Resource { private Float throughputMibps; /* - * DataProtection type volumes include an object containing details of the - * replication + * DataProtection DataProtection type volumes include an object containing + * details of the replication */ @JsonProperty(value = "properties.dataProtection") private VolumePatchPropertiesDataProtection dataProtection; + /* + * Specifies if default quota is enabled for the volume. + */ + @JsonProperty(value = "properties.isDefaultQuotaEnabled") + private Boolean isDefaultQuotaEnabled; + + /* + * Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies . + */ + @JsonProperty(value = "properties.defaultUserQuotaInKiBs") + private Long defaultUserQuotaInKiBs; + + /* + * Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies. + */ + @JsonProperty(value = "properties.defaultGroupQuotaInKiBs") + private Long defaultGroupQuotaInKiBs; + /** - * Get the serviceLevel property: The service level of the file system. + * Get the serviceLevel property: serviceLevel The service level of the file system. * * @return the serviceLevel value. */ @@ -61,7 +81,7 @@ public ServiceLevel serviceLevel() { } /** - * Set the serviceLevel property: The service level of the file system. + * Set the serviceLevel property: serviceLevel The service level of the file system. * * @param serviceLevel the serviceLevel value to set. * @return the VolumePatch object itself. @@ -72,8 +92,8 @@ public VolumePatch withServiceLevel(ServiceLevel serviceLevel) { } /** - * Get the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. + * Get the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is + * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. * * @return the usageThreshold value. */ @@ -82,8 +102,8 @@ public Long usageThreshold() { } /** - * Set the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. + * Set the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is + * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. * * @param usageThreshold the usageThreshold value to set. * @return the VolumePatch object itself. @@ -94,7 +114,7 @@ public VolumePatch withUsageThreshold(Long usageThreshold) { } /** - * Get the exportPolicy property: Set of export policy rules. + * Get the exportPolicy property: exportPolicy Set of export policy rules. * * @return the exportPolicy value. */ @@ -103,7 +123,7 @@ public VolumePatchPropertiesExportPolicy exportPolicy() { } /** - * Set the exportPolicy property: Set of export policy rules. + * Set the exportPolicy property: exportPolicy Set of export policy rules. * * @param exportPolicy the exportPolicy value to set. * @return the VolumePatch object itself. @@ -134,8 +154,8 @@ public VolumePatch withThroughputMibps(Float throughputMibps) { } /** - * Get the dataProtection property: DataProtection type volumes include an object containing details of the - * replication. + * Get the dataProtection property: DataProtection DataProtection type volumes include an object containing details + * of the replication. * * @return the dataProtection value. */ @@ -144,8 +164,8 @@ public VolumePatchPropertiesDataProtection dataProtection() { } /** - * Set the dataProtection property: DataProtection type volumes include an object containing details of the - * replication. + * Set the dataProtection property: DataProtection DataProtection type volumes include an object containing details + * of the replication. * * @param dataProtection the dataProtection value to set. * @return the VolumePatch object itself. @@ -155,6 +175,70 @@ public VolumePatch withDataProtection(VolumePatchPropertiesDataProtection dataPr return this; } + /** + * Get the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. + * + * @return the isDefaultQuotaEnabled value. + */ + public Boolean isDefaultQuotaEnabled() { + return this.isDefaultQuotaEnabled; + } + + /** + * Set the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. + * + * @param isDefaultQuotaEnabled the isDefaultQuotaEnabled value to set. + * @return the VolumePatch object itself. + */ + public VolumePatch withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled) { + this.isDefaultQuotaEnabled = isDefaultQuotaEnabled; + return this; + } + + /** + * Get the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies . + * + * @return the defaultUserQuotaInKiBs value. + */ + public Long defaultUserQuotaInKiBs() { + return this.defaultUserQuotaInKiBs; + } + + /** + * Set the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, + * the minimum value of 4 KiBs applies . + * + * @param defaultUserQuotaInKiBs the defaultUserQuotaInKiBs value to set. + * @return the VolumePatch object itself. + */ + public VolumePatch withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs) { + this.defaultUserQuotaInKiBs = defaultUserQuotaInKiBs; + return this; + } + + /** + * Get the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is + * set, the minimum value of 4 KiBs applies. + * + * @return the defaultGroupQuotaInKiBs value. + */ + public Long defaultGroupQuotaInKiBs() { + return this.defaultGroupQuotaInKiBs; + } + + /** + * Set the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is + * set, the minimum value of 4 KiBs applies. + * + * @param defaultGroupQuotaInKiBs the defaultGroupQuotaInKiBs value to set. + * @return the VolumePatch object itself. + */ + public VolumePatch withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { + this.defaultGroupQuotaInKiBs = defaultGroupQuotaInKiBs; + return this; + } + /** {@inheritDoc} */ @Override public VolumePatch withLocation(String location) { 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 40ae37f386dd..f56a6dbdd01c 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 @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** DataProtection type volumes include an object containing details of the replication. */ +/** DataProtection DataProtection type volumes include an object containing details of the replication. */ @Fluent public final class VolumePatchPropertiesDataProtection { @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePatchPropertiesDataProtection.class); 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 7d580059cced..92c1a0378f0f 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 @@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Set of export policy rules. */ +/** exportPolicy Set of export policy rules. */ @Fluent public final class VolumePatchPropertiesExportPolicy { @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePatchPropertiesExportPolicy.class); 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 4f175bbab9f3..48eae8c7d113 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 @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** DataProtection type volumes include an object containing details of the replication. */ +/** DataProtection DataProtection type volumes include an object containing details of the replication. */ @Fluent public final class VolumePropertiesDataProtection { @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePropertiesDataProtection.class); 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 92a6432485cc..d01226c7b59f 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 @@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Set of export policy rules. */ +/** exportPolicy Set of export policy rules. */ @Fluent public final class VolumePropertiesExportPolicy { @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePropertiesExportPolicy.class);