From e7a2cd77365cb9ed3522e43a105ab3246aae85d7 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 9 Sep 2021 15:36:32 +0000 Subject: [PATCH] CodeGen from PR 15850 in Azure/azure-rest-api-specs Merge 92d4fb03b8c76f4769cf89c488f6d9ac22248f4e into a2ff0f70f7f9de671145d948524d9bd806536cdf --- .../azure-resourcemanager-netapp/CHANGELOG.md | 4 +- .../azure-resourcemanager-netapp/README.md | 3 +- .../netapp/NetAppFilesManager.java | 15 +- .../netapp/fluent/NetAppManagementClient.java | 7 + .../NetAppResourceQuotaLimitsClient.java | 67 ++ .../fluent/models/AccountProperties.java | 100 -- .../netapp/fluent/models/BackupInner.java | 103 ++- .../fluent/models/BackupPolicyInner.java | 139 +-- .../fluent/models/BackupPolicyProperties.java | 208 ----- .../fluent/models/BackupProperties.java | 186 ---- .../fluent/models/CapacityPoolInner.java | 148 +-- .../fluent/models/NetAppAccountInner.java | 88 +- .../netapp/fluent/models/OperationInner.java | 30 +- .../fluent/models/OperationProperties.java | 54 -- .../fluent/models/PoolPatchProperties.java | 80 -- .../netapp/fluent/models/PoolProperties.java | 229 ----- .../netapp/fluent/models/SnapshotInner.java | 40 +- .../fluent/models/SnapshotPolicyInner.java | 132 +-- .../models/SnapshotPolicyProperties.java | 185 ---- .../fluent/models/SnapshotProperties.java | 70 -- .../models/SubscriptionQuotaItemInner.java | 88 ++ .../netapp/fluent/models/VaultInner.java | 33 +- .../netapp/fluent/models/VaultProperties.java | 50 - .../netapp/fluent/models/VolumeInner.java | 537 +++++++---- .../fluent/models/VolumePatchProperties.java | 254 ------ .../fluent/models/VolumeProperties.java | 863 ------------------ .../implementation/BackupPolicyImpl.java | 4 - .../NetAppManagementClientImpl.java | 14 + .../NetAppResourceQuotaLimitsClientImpl.java | 383 ++++++++ .../NetAppResourceQuotaLimitsImpl.java | 72 ++ .../SubscriptionQuotaItemImpl.java | 57 ++ .../netapp/implementation/VolumeImpl.java | 21 +- .../netapp/models/BackupPatch.java | 100 +- .../netapp/models/BackupPolicy.java | 7 - .../netapp/models/BackupPolicyPatch.java | 127 +-- .../netapp/models/CapacityPoolPatch.java | 68 +- .../netapp/models/LogSpecification.java | 76 ++ .../netapp/models/MetricSpecification.java | 52 ++ .../models/MountTargetProperties.java | 2 +- .../netapp/models/NetAppAccountPatch.java | 77 +- .../models/NetAppResourceQuotaLimits.java | 60 ++ .../netapp/models/NetworkFeatures.java | 34 + .../netapp/models/ReplicationObject.java | 8 +- .../netapp/models/ServiceSpecification.java | 29 + .../netapp/models/SnapshotPolicyPatch.java | 100 +- .../netapp/models/SubscriptionQuotaItem.java | 67 ++ .../models/SubscriptionQuotaItemList.java | 55 ++ .../resourcemanager/netapp/models/Volume.java | 45 +- .../netapp/models/VolumePatch.java | 150 +-- .../VolumeStorageToNetworkProximity.java | 37 + .../netapp/AccountBackupsDeleteSamples.java | 24 - .../netapp/AccountBackupsGetSamples.java | 24 - .../netapp/AccountBackupsListSamples.java | 24 - .../netapp/AccountsCreateOrUpdateSamples.java | 44 - .../netapp/AccountsDeleteSamples.java | 24 - .../AccountsGetByResourceGroupSamples.java | 24 - .../AccountsListByResourceGroupSamples.java | 24 - .../netapp/AccountsListSamples.java | 24 - .../netapp/AccountsUpdateSamples.java | 40 - .../netapp/BackupPoliciesCreateSamples.java | 31 - .../netapp/BackupPoliciesDeleteSamples.java | 24 - .../netapp/BackupPoliciesGetSamples.java | 24 - .../netapp/BackupPoliciesListSamples.java | 24 - .../netapp/BackupPoliciesUpdateSamples.java | 33 - .../netapp/BackupsCreateSamples.java | 28 - .../netapp/BackupsDeleteSamples.java | 24 - .../netapp/BackupsGetSamples.java | 24 - .../netapp/BackupsGetStatusSamples.java | 24 - .../BackupsGetVolumeRestoreStatusSamples.java | 24 - .../netapp/BackupsListSamples.java | 24 - .../netapp/BackupsUpdateSamples.java | 30 - ...ourceCheckFilePathAvailabilitySamples.java | 33 - ...pResourceCheckNameAvailabilitySamples.java | 34 - ...ResourceCheckQuotaAvailabilitySamples.java | 34 - .../netapp/PoolsCreateOrUpdateSamples.java | 33 - .../netapp/PoolsDeleteSamples.java | 24 - .../netapp/PoolsGetSamples.java | 24 - .../netapp/PoolsListSamples.java | 24 - .../netapp/PoolsUpdateSamples.java | 26 - .../netapp/SnapshotPoliciesCreateSamples.java | 38 - .../netapp/SnapshotPoliciesDeleteSamples.java | 24 - .../netapp/SnapshotPoliciesGetSamples.java | 24 - .../netapp/SnapshotPoliciesListSamples.java | 24 - .../SnapshotPoliciesListVolumesSamples.java | 24 - .../netapp/SnapshotPoliciesUpdateSamples.java | 43 - .../netapp/SnapshotsCreateSamples.java | 27 - .../netapp/SnapshotsDeleteSamples.java | 24 - .../netapp/SnapshotsGetSamples.java | 24 - .../netapp/SnapshotsListSamples.java | 24 - .../netapp/SnapshotsUpdateSamples.java | 38 - .../netapp/VaultsListSamples.java | 24 - .../VolumesAuthorizeReplicationSamples.java | 35 - .../VolumesBreakReplicationSamples.java | 33 - .../netapp/VolumesCreateOrUpdateSamples.java | 36 - .../VolumesDeleteReplicationSamples.java | 24 - .../netapp/VolumesDeleteSamples.java | 24 - .../netapp/VolumesGetSamples.java | 24 - .../netapp/VolumesListSamples.java | 24 - .../netapp/VolumesPoolChangeSamples.java | 35 - ...VolumesReInitializeReplicationSamples.java | 24 - .../VolumesReplicationStatusSamples.java | 24 - .../VolumesResyncReplicationSamples.java | 24 - .../netapp/VolumesRevertSamples.java | 35 - .../netapp/VolumesUpdateSamples.java | 27 - 104 files changed, 2277 insertions(+), 4586 deletions(-) create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java rename sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/{fluent => }/models/MountTargetProperties.java (98%) create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsListSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsGetByResourceGroupSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsListByResourceGroupSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsListSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesCreateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesListSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsCreateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetStatusSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetVolumeRestoreStatusSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsListSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckFilePathAvailabilitySamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckNameAvailabilitySamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckQuotaAvailabilitySamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsListSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesCreateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesListSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesListVolumesSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsCreateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsListSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VaultsListSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesAuthorizeReplicationSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesBreakReplicationSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesDeleteReplicationSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesListSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesPoolChangeSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesReInitializeReplicationSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesReplicationStatusSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesResyncReplicationSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesRevertSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesUpdateSamples.java diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index 0857a87cac8b..522eb9f632bf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.6 (Unreleased) +## 1.0.0-beta.1 (2021-09-09) + +- 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). ### Features Added diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index a8924a3f56ff..a30725aae7ae 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/README.md +++ b/sdk/netapp/azure-resourcemanager-netapp/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-netapp - 1.0.0-beta.5 + 1.0.0-beta.6 ``` [//]: # ({x-version-update-end}) @@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on ## Examples -[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md) ## Troubleshooting 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 0c61c5848ef3..c0e04d246d30 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 @@ -26,6 +26,7 @@ import com.azure.resourcemanager.netapp.implementation.BackupPoliciesImpl; import com.azure.resourcemanager.netapp.implementation.BackupsImpl; import com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder; +import com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsImpl; import com.azure.resourcemanager.netapp.implementation.NetAppResourcesImpl; import com.azure.resourcemanager.netapp.implementation.OperationsImpl; import com.azure.resourcemanager.netapp.implementation.PoolsImpl; @@ -37,6 +38,7 @@ import com.azure.resourcemanager.netapp.models.Accounts; import com.azure.resourcemanager.netapp.models.BackupPolicies; import com.azure.resourcemanager.netapp.models.Backups; +import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits; import com.azure.resourcemanager.netapp.models.NetAppResources; import com.azure.resourcemanager.netapp.models.Operations; import com.azure.resourcemanager.netapp.models.Pools; @@ -56,6 +58,8 @@ public final class NetAppFilesManager { private NetAppResources netAppResources; + private NetAppResourceQuotaLimits netAppResourceQuotaLimits; + private Accounts accounts; private Pools pools; @@ -210,7 +214,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.netapp") .append("/") - .append("1.0.0-beta.5"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -265,6 +269,15 @@ public NetAppResources netAppResources() { return netAppResources; } + /** @return Resource collection API of NetAppResourceQuotaLimits. */ + public NetAppResourceQuotaLimits netAppResourceQuotaLimits() { + if (this.netAppResourceQuotaLimits == null) { + this.netAppResourceQuotaLimits = + new NetAppResourceQuotaLimitsImpl(clientObject.getNetAppResourceQuotaLimits(), this); + } + return netAppResourceQuotaLimits; + } + /** @return Resource collection API of Accounts. */ public Accounts accounts() { if (this.accounts == null) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java index 4366e9035bcc..22a9954a7145 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java @@ -59,6 +59,13 @@ public interface NetAppManagementClient { */ NetAppResourcesClient getNetAppResources(); + /** + * Gets the NetAppResourceQuotaLimitsClient object to access its operations. + * + * @return the NetAppResourceQuotaLimitsClient object. + */ + NetAppResourceQuotaLimitsClient getNetAppResourceQuotaLimits(); + /** * Gets the AccountsClient object to access its operations. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java new file mode 100644 index 000000000000..a619a31c0677 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; + +/** An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsClient. */ +public interface NetAppResourceQuotaLimitsClient { + /** + * Get the default and current limits for quotas. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current limits for quotas. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location); + + /** + * Get the default and current limits for quotas. + * + * @param location The location. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current limits for quotas. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location, Context context); + + /** + * Get the default and current subscription quota limit. + * + * @param location The location. + * @param quotaLimitName The name of the Quota Limit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current subscription quota limit. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SubscriptionQuotaItemInner get(String location, String quotaLimitName); + + /** + * Get the default and current subscription quota limit. + * + * @param location The location. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current subscription quota limit. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String location, String quotaLimitName, Context context); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java deleted file mode 100644 index 742cb02e4c7c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.models.AccountEncryption; -import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** NetApp account properties. */ -@Fluent -public final class AccountProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AccountProperties.class); - - /* - * Azure lifecycle management - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private String provisioningState; - - /* - * Active Directories - */ - @JsonProperty(value = "activeDirectories") - private List activeDirectories; - - /* - * Encryption settings - */ - @JsonProperty(value = "encryption") - private AccountEncryption encryption; - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Get the activeDirectories property: Active Directories. - * - * @return the activeDirectories value. - */ - public List activeDirectories() { - return this.activeDirectories; - } - - /** - * Set the activeDirectories property: Active Directories. - * - * @param activeDirectories the activeDirectories value to set. - * @return the AccountProperties object itself. - */ - public AccountProperties withActiveDirectories(List activeDirectories) { - this.activeDirectories = activeDirectories; - return this; - } - - /** - * Get the encryption property: Encryption settings. - * - * @return the encryption value. - */ - public AccountEncryption encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Encryption settings. - * - * @param encryption the encryption value to set. - * @return the AccountProperties object itself. - */ - public AccountProperties withEncryption(AccountEncryption encryption) { - this.encryption = encryption; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (activeDirectories() != null) { - activeDirectories().forEach(e -> e.validate()); - } - if (encryption() != null) { - encryption().validate(); - } - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java index 0882880be355..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 @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.BackupType; @@ -13,8 +14,9 @@ import java.time.OffsetDateTime; /** Backup of a Volume. */ +@JsonFlatten @Fluent -public final class BackupInner extends ProxyResource { +public class BackupInner extends ProxyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupInner.class); /* @@ -24,10 +26,59 @@ public final class BackupInner extends ProxyResource { private String location; /* - * Backup Properties + * backupId UUID v4 used to identify the Backup */ - @JsonProperty(value = "properties", required = true) - private BackupProperties innerProperties = new BackupProperties(); + @JsonProperty(value = "properties.backupId", access = JsonProperty.Access.WRITE_ONLY) + private String backupId; + + /* + * name The creation date of the backup + */ + @JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime creationDate; + + /* + * Azure lifecycle management + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /* + * Size of backup + */ + @JsonProperty(value = "properties.size", access = JsonProperty.Access.WRITE_ONLY) + private Long size; + + /* + * Label for backup + */ + @JsonProperty(value = "properties.label") + private String label; + + /* + * backupType Type of backup Manual or Scheduled + */ + @JsonProperty(value = "properties.backupType", access = JsonProperty.Access.WRITE_ONLY) + private BackupType backupType; + + /* + * Failure reason + */ + @JsonProperty(value = "properties.failureReason", access = JsonProperty.Access.WRITE_ONLY) + private String failureReason; + + /* + * Volume name + */ + @JsonProperty(value = "properties.volumeName", access = JsonProperty.Access.WRITE_ONLY) + private String volumeName; + + /* + * Manual backup an already existing snapshot. This will always be false + * for scheduled backups and true/false for manual backups + */ + @JsonProperty(value = "properties.useExistingSnapshot") + private Boolean useExistingSnapshot; /** * Get the location property: Resource location. @@ -49,22 +100,13 @@ public BackupInner withLocation(String location) { return this; } - /** - * Get the innerProperties property: Backup Properties. - * - * @return the innerProperties value. - */ - private BackupProperties innerProperties() { - return this.innerProperties; - } - /** * Get the backupId property: backupId UUID v4 used to identify the Backup. * * @return the backupId value. */ public String backupId() { - return this.innerProperties() == null ? null : this.innerProperties().backupId(); + return this.backupId; } /** @@ -73,7 +115,7 @@ public String backupId() { * @return the creationDate value. */ public OffsetDateTime creationDate() { - return this.innerProperties() == null ? null : this.innerProperties().creationDate(); + return this.creationDate; } /** @@ -82,7 +124,7 @@ public OffsetDateTime creationDate() { * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; } /** @@ -91,7 +133,7 @@ public String provisioningState() { * @return the size value. */ public Long size() { - return this.innerProperties() == null ? null : this.innerProperties().size(); + return this.size; } /** @@ -100,7 +142,7 @@ public Long size() { * @return the label value. */ public String label() { - return this.innerProperties() == null ? null : this.innerProperties().label(); + return this.label; } /** @@ -110,10 +152,7 @@ public String label() { * @return the BackupInner object itself. */ public BackupInner withLabel(String label) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupProperties(); - } - this.innerProperties().withLabel(label); + this.label = label; return this; } @@ -123,7 +162,7 @@ public BackupInner withLabel(String label) { * @return the backupType value. */ public BackupType backupType() { - return this.innerProperties() == null ? null : this.innerProperties().backupType(); + return this.backupType; } /** @@ -132,7 +171,7 @@ public BackupType backupType() { * @return the failureReason value. */ public String failureReason() { - return this.innerProperties() == null ? null : this.innerProperties().failureReason(); + return this.failureReason; } /** @@ -141,7 +180,7 @@ public String failureReason() { * @return the volumeName value. */ public String volumeName() { - return this.innerProperties() == null ? null : this.innerProperties().volumeName(); + return this.volumeName; } /** @@ -151,7 +190,7 @@ public String volumeName() { * @return the useExistingSnapshot value. */ public Boolean useExistingSnapshot() { - return this.innerProperties() == null ? null : this.innerProperties().useExistingSnapshot(); + return this.useExistingSnapshot; } /** @@ -162,10 +201,7 @@ public Boolean useExistingSnapshot() { * @return the BackupInner object itself. */ public BackupInner withUseExistingSnapshot(Boolean useExistingSnapshot) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupProperties(); - } - this.innerProperties().withUseExistingSnapshot(useExistingSnapshot); + this.useExistingSnapshot = useExistingSnapshot; return this; } @@ -180,12 +216,5 @@ public void validate() { .logExceptionAsError( new IllegalArgumentException("Missing required property location in model BackupInner")); } - if (innerProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model BackupInner")); - } else { - innerProperties().validate(); - } } } 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 82c18ffb6b23..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 @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; +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.VolumeBackups; @@ -14,8 +15,9 @@ import java.util.Map; /** Backup policy information. */ +@JsonFlatten @Fluent -public final class BackupPolicyInner extends Resource { +public class BackupPolicyInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyInner.class); /* @@ -25,50 +27,60 @@ public final class BackupPolicyInner extends Resource { private String etag; /* - * Backup policy Properties + * Backup Policy Resource ID */ - @JsonProperty(value = "properties", required = true) - private BackupPolicyProperties innerProperties = new BackupPolicyProperties(); + @JsonProperty(value = "properties.backupPolicyId", access = JsonProperty.Access.WRITE_ONLY) + private String backupPolicyId; - /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * - * @return the etag value. + /* + * Azure lifecycle management */ - public String etag() { - return this.etag; - } + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; - /** - * Get the innerProperties property: Backup policy Properties. - * - * @return the innerProperties value. + /* + * Daily backups count to keep */ - private BackupPolicyProperties innerProperties() { - return this.innerProperties; - } + @JsonProperty(value = "properties.dailyBackupsToKeep") + private Integer dailyBackupsToKeep; - /** {@inheritDoc} */ - @Override - public BackupPolicyInner withLocation(String location) { - super.withLocation(location); - return this; - } + /* + * Weekly backups count to keep + */ + @JsonProperty(value = "properties.weeklyBackupsToKeep") + private Integer weeklyBackupsToKeep; - /** {@inheritDoc} */ - @Override - public BackupPolicyInner withTags(Map tags) { - super.withTags(tags); - return this; - } + /* + * Monthly backups count to keep + */ + @JsonProperty(value = "properties.monthlyBackupsToKeep") + private Integer monthlyBackupsToKeep; + + /* + * Volumes using current backup policy + */ + @JsonProperty(value = "properties.volumesAssigned", access = JsonProperty.Access.WRITE_ONLY) + private Integer volumesAssigned; + + /* + * The property to decide policy is enabled or not + */ + @JsonProperty(value = "properties.enabled") + private Boolean enabled; + + /* + * A list of volumes assigned to this policy + */ + @JsonProperty(value = "properties.volumeBackups", access = JsonProperty.Access.WRITE_ONLY) + private List volumeBackups; /** - * Get the name property: Name of backup policy. + * Get the etag property: A unique read-only string that changes whenever the resource is updated. * - * @return the name value. + * @return the etag value. */ - public String namePropertiesName() { - return this.innerProperties() == null ? null : this.innerProperties().name(); + public String etag() { + return this.etag; } /** @@ -77,7 +89,7 @@ public String namePropertiesName() { * @return the backupPolicyId value. */ public String backupPolicyId() { - return this.innerProperties() == null ? null : this.innerProperties().backupPolicyId(); + return this.backupPolicyId; } /** @@ -86,7 +98,7 @@ public String backupPolicyId() { * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; } /** @@ -95,7 +107,7 @@ public String provisioningState() { * @return the dailyBackupsToKeep value. */ public Integer dailyBackupsToKeep() { - return this.innerProperties() == null ? null : this.innerProperties().dailyBackupsToKeep(); + return this.dailyBackupsToKeep; } /** @@ -105,10 +117,7 @@ public Integer dailyBackupsToKeep() { * @return the BackupPolicyInner object itself. */ public BackupPolicyInner withDailyBackupsToKeep(Integer dailyBackupsToKeep) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupPolicyProperties(); - } - this.innerProperties().withDailyBackupsToKeep(dailyBackupsToKeep); + this.dailyBackupsToKeep = dailyBackupsToKeep; return this; } @@ -118,7 +127,7 @@ public BackupPolicyInner withDailyBackupsToKeep(Integer dailyBackupsToKeep) { * @return the weeklyBackupsToKeep value. */ public Integer weeklyBackupsToKeep() { - return this.innerProperties() == null ? null : this.innerProperties().weeklyBackupsToKeep(); + return this.weeklyBackupsToKeep; } /** @@ -128,10 +137,7 @@ public Integer weeklyBackupsToKeep() { * @return the BackupPolicyInner object itself. */ public BackupPolicyInner withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupPolicyProperties(); - } - this.innerProperties().withWeeklyBackupsToKeep(weeklyBackupsToKeep); + this.weeklyBackupsToKeep = weeklyBackupsToKeep; return this; } @@ -141,7 +147,7 @@ public BackupPolicyInner withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep) { * @return the monthlyBackupsToKeep value. */ public Integer monthlyBackupsToKeep() { - return this.innerProperties() == null ? null : this.innerProperties().monthlyBackupsToKeep(); + return this.monthlyBackupsToKeep; } /** @@ -151,10 +157,7 @@ public Integer monthlyBackupsToKeep() { * @return the BackupPolicyInner object itself. */ public BackupPolicyInner withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupPolicyProperties(); - } - this.innerProperties().withMonthlyBackupsToKeep(monthlyBackupsToKeep); + this.monthlyBackupsToKeep = monthlyBackupsToKeep; return this; } @@ -164,7 +167,7 @@ public BackupPolicyInner withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) * @return the volumesAssigned value. */ public Integer volumesAssigned() { - return this.innerProperties() == null ? null : this.innerProperties().volumesAssigned(); + return this.volumesAssigned; } /** @@ -173,7 +176,7 @@ public Integer volumesAssigned() { * @return the enabled value. */ public Boolean enabled() { - return this.innerProperties() == null ? null : this.innerProperties().enabled(); + return this.enabled; } /** @@ -183,10 +186,7 @@ public Boolean enabled() { * @return the BackupPolicyInner object itself. */ public BackupPolicyInner withEnabled(Boolean enabled) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupPolicyProperties(); - } - this.innerProperties().withEnabled(enabled); + this.enabled = enabled; return this; } @@ -196,7 +196,21 @@ public BackupPolicyInner withEnabled(Boolean enabled) { * @return the volumeBackups value. */ public List volumeBackups() { - return this.innerProperties() == null ? null : this.innerProperties().volumeBackups(); + return this.volumeBackups; + } + + /** {@inheritDoc} */ + @Override + public BackupPolicyInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public BackupPolicyInner withTags(Map tags) { + super.withTags(tags); + return this; } /** @@ -205,13 +219,8 @@ public List volumeBackups() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model BackupPolicyInner")); - } else { - innerProperties().validate(); + if (volumeBackups() != null) { + volumeBackups().forEach(e -> e.validate()); } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java deleted file mode 100644 index 3fdb39346bcc..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.models.VolumeBackups; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Backup policy properties. */ -@Fluent -public final class BackupPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyProperties.class); - - /* - * Name of backup policy - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * Backup Policy Resource ID - */ - @JsonProperty(value = "backupPolicyId", access = JsonProperty.Access.WRITE_ONLY) - private String backupPolicyId; - - /* - * Azure lifecycle management - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private String provisioningState; - - /* - * Daily backups count to keep - */ - @JsonProperty(value = "dailyBackupsToKeep") - private Integer dailyBackupsToKeep; - - /* - * Weekly backups count to keep - */ - @JsonProperty(value = "weeklyBackupsToKeep") - private Integer weeklyBackupsToKeep; - - /* - * Monthly backups count to keep - */ - @JsonProperty(value = "monthlyBackupsToKeep") - private Integer monthlyBackupsToKeep; - - /* - * Volumes using current backup policy - */ - @JsonProperty(value = "volumesAssigned", access = JsonProperty.Access.WRITE_ONLY) - private Integer volumesAssigned; - - /* - * The property to decide policy is enabled or not - */ - @JsonProperty(value = "enabled") - private Boolean enabled; - - /* - * A list of volumes assigned to this policy - */ - @JsonProperty(value = "volumeBackups", access = JsonProperty.Access.WRITE_ONLY) - private List volumeBackups; - - /** - * Get the name property: Name of backup policy. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the backupPolicyId property: Backup Policy Resource ID. - * - * @return the backupPolicyId value. - */ - public String backupPolicyId() { - return this.backupPolicyId; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Get the dailyBackupsToKeep property: Daily backups count to keep. - * - * @return the dailyBackupsToKeep value. - */ - public Integer dailyBackupsToKeep() { - return this.dailyBackupsToKeep; - } - - /** - * Set the dailyBackupsToKeep property: Daily backups count to keep. - * - * @param dailyBackupsToKeep the dailyBackupsToKeep value to set. - * @return the BackupPolicyProperties object itself. - */ - public BackupPolicyProperties withDailyBackupsToKeep(Integer dailyBackupsToKeep) { - this.dailyBackupsToKeep = dailyBackupsToKeep; - return this; - } - - /** - * Get the weeklyBackupsToKeep property: Weekly backups count to keep. - * - * @return the weeklyBackupsToKeep value. - */ - public Integer weeklyBackupsToKeep() { - return this.weeklyBackupsToKeep; - } - - /** - * Set the weeklyBackupsToKeep property: Weekly backups count to keep. - * - * @param weeklyBackupsToKeep the weeklyBackupsToKeep value to set. - * @return the BackupPolicyProperties object itself. - */ - public BackupPolicyProperties withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep) { - this.weeklyBackupsToKeep = weeklyBackupsToKeep; - return this; - } - - /** - * Get the monthlyBackupsToKeep property: Monthly backups count to keep. - * - * @return the monthlyBackupsToKeep value. - */ - public Integer monthlyBackupsToKeep() { - return this.monthlyBackupsToKeep; - } - - /** - * Set the monthlyBackupsToKeep property: Monthly backups count to keep. - * - * @param monthlyBackupsToKeep the monthlyBackupsToKeep value to set. - * @return the BackupPolicyProperties object itself. - */ - public BackupPolicyProperties withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) { - this.monthlyBackupsToKeep = monthlyBackupsToKeep; - return this; - } - - /** - * Get the volumesAssigned property: Volumes using current backup policy. - * - * @return the volumesAssigned value. - */ - public Integer volumesAssigned() { - return this.volumesAssigned; - } - - /** - * Get the enabled property: The property to decide policy is enabled or not. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: The property to decide policy is enabled or not. - * - * @param enabled the enabled value to set. - * @return the BackupPolicyProperties object itself. - */ - public BackupPolicyProperties withEnabled(Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Get the volumeBackups property: A list of volumes assigned to this policy. - * - * @return the volumeBackups value. - */ - public List volumeBackups() { - return this.volumeBackups; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (volumeBackups() != null) { - volumeBackups().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java deleted file mode 100644 index eecf71f5aaa7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.models.BackupType; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; - -/** Backup properties. */ -@Fluent -public final class BackupProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupProperties.class); - - /* - * backupId UUID v4 used to identify the Backup - */ - @JsonProperty(value = "backupId", access = JsonProperty.Access.WRITE_ONLY) - private String backupId; - - /* - * name The creation date of the backup - */ - @JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime creationDate; - - /* - * Azure lifecycle management - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private String provisioningState; - - /* - * Size of backup - */ - @JsonProperty(value = "size", access = JsonProperty.Access.WRITE_ONLY) - private Long size; - - /* - * Label for backup - */ - @JsonProperty(value = "label") - private String label; - - /* - * backupType Type of backup Manual or Scheduled - */ - @JsonProperty(value = "backupType", access = JsonProperty.Access.WRITE_ONLY) - private BackupType backupType; - - /* - * Failure reason - */ - @JsonProperty(value = "failureReason", access = JsonProperty.Access.WRITE_ONLY) - private String failureReason; - - /* - * Volume name - */ - @JsonProperty(value = "volumeName", access = JsonProperty.Access.WRITE_ONLY) - private String volumeName; - - /* - * Manual backup an already existing snapshot. This will always be false - * for scheduled backups and true/false for manual backups - */ - @JsonProperty(value = "useExistingSnapshot") - private Boolean useExistingSnapshot; - - /** - * Get the backupId property: backupId UUID v4 used to identify the Backup. - * - * @return the backupId value. - */ - public String backupId() { - return this.backupId; - } - - /** - * Get the creationDate property: name The creation date of the backup. - * - * @return the creationDate value. - */ - public OffsetDateTime creationDate() { - return this.creationDate; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Get the size property: Size of backup. - * - * @return the size value. - */ - public Long size() { - return this.size; - } - - /** - * Get the label property: Label for backup. - * - * @return the label value. - */ - public String label() { - return this.label; - } - - /** - * Set the label property: Label for backup. - * - * @param label the label value to set. - * @return the BackupProperties object itself. - */ - public BackupProperties withLabel(String label) { - this.label = label; - return this; - } - - /** - * Get the backupType property: backupType Type of backup Manual or Scheduled. - * - * @return the backupType value. - */ - public BackupType backupType() { - return this.backupType; - } - - /** - * Get the failureReason property: Failure reason. - * - * @return the failureReason value. - */ - public String failureReason() { - return this.failureReason; - } - - /** - * Get the volumeName property: Volume name. - * - * @return the volumeName value. - */ - public String volumeName() { - return this.volumeName; - } - - /** - * Get the useExistingSnapshot property: Manual backup an already existing snapshot. This will always be false for - * scheduled backups and true/false for manual backups. - * - * @return the useExistingSnapshot value. - */ - public Boolean useExistingSnapshot() { - return this.useExistingSnapshot; - } - - /** - * Set the useExistingSnapshot property: Manual backup an already existing snapshot. This will always be false for - * scheduled backups and true/false for manual backups. - * - * @param useExistingSnapshot the useExistingSnapshot value to set. - * @return the BackupProperties object itself. - */ - public BackupProperties withUseExistingSnapshot(Boolean useExistingSnapshot) { - this.useExistingSnapshot = useExistingSnapshot; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java index fb2d1a8a5ddf..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 @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; +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; @@ -15,8 +16,9 @@ import java.util.Map; /** Capacity pool resource. */ +@JsonFlatten @Fluent -public final class CapacityPoolInner extends Resource { +public class CapacityPoolInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityPoolInner.class); /* @@ -26,10 +28,61 @@ public final class CapacityPoolInner extends Resource { private String etag; /* - * Capacity pool properties + * poolId UUID v4 used to identify the Pool */ - @JsonProperty(value = "properties", required = true) - private PoolProperties innerProperties = new PoolProperties(); + @JsonProperty(value = "properties.poolId", access = JsonProperty.Access.WRITE_ONLY) + private String poolId; + + /* + * 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; + + /* + * serviceLevel The service level of the file system + */ + @JsonProperty(value = "properties.serviceLevel", required = true) + private ServiceLevel serviceLevel; + + /* + * Azure lifecycle management + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /* + * Total throughput of pool in Mibps + */ + @JsonProperty(value = "properties.totalThroughputMibps", access = JsonProperty.Access.WRITE_ONLY) + private Float totalThroughputMibps; + + /* + * Utilized throughput of pool in Mibps + */ + @JsonProperty(value = "properties.utilizedThroughputMibps", access = JsonProperty.Access.WRITE_ONLY) + private Float utilizedThroughputMibps; + + /* + * The qos type of the pool + */ + @JsonProperty(value = "properties.qosType") + private QosType qosType; + + /* + * If enabled (true) the pool can contain cool Access enabled volumes. + */ + @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 etag property: A unique read-only string that changes whenever the resource is updated. @@ -40,36 +93,13 @@ public String etag() { return this.etag; } - /** - * Get the innerProperties property: Capacity pool properties. - * - * @return the innerProperties value. - */ - private PoolProperties innerProperties() { - return this.innerProperties; - } - - /** {@inheritDoc} */ - @Override - public CapacityPoolInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public CapacityPoolInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the poolId property: poolId UUID v4 used to identify the Pool. * * @return the poolId value. */ public String poolId() { - return this.innerProperties() == null ? null : this.innerProperties().poolId(); + return this.poolId; } /** @@ -79,7 +109,7 @@ public String poolId() { * @return the size value. */ public long size() { - return this.innerProperties() == null ? 0L : this.innerProperties().size(); + return this.size; } /** @@ -90,10 +120,7 @@ public long size() { * @return the CapacityPoolInner object itself. */ public CapacityPoolInner withSize(long size) { - if (this.innerProperties() == null) { - this.innerProperties = new PoolProperties(); - } - this.innerProperties().withSize(size); + this.size = size; return this; } @@ -103,7 +130,7 @@ public CapacityPoolInner withSize(long size) { * @return the serviceLevel value. */ public ServiceLevel serviceLevel() { - return this.innerProperties() == null ? null : this.innerProperties().serviceLevel(); + return this.serviceLevel; } /** @@ -113,10 +140,7 @@ public ServiceLevel serviceLevel() { * @return the CapacityPoolInner object itself. */ public CapacityPoolInner withServiceLevel(ServiceLevel serviceLevel) { - if (this.innerProperties() == null) { - this.innerProperties = new PoolProperties(); - } - this.innerProperties().withServiceLevel(serviceLevel); + this.serviceLevel = serviceLevel; return this; } @@ -126,7 +150,7 @@ public CapacityPoolInner withServiceLevel(ServiceLevel serviceLevel) { * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; } /** @@ -135,7 +159,7 @@ public String provisioningState() { * @return the totalThroughputMibps value. */ public Float totalThroughputMibps() { - return this.innerProperties() == null ? null : this.innerProperties().totalThroughputMibps(); + return this.totalThroughputMibps; } /** @@ -144,7 +168,7 @@ public Float totalThroughputMibps() { * @return the utilizedThroughputMibps value. */ public Float utilizedThroughputMibps() { - return this.innerProperties() == null ? null : this.innerProperties().utilizedThroughputMibps(); + return this.utilizedThroughputMibps; } /** @@ -153,7 +177,7 @@ public Float utilizedThroughputMibps() { * @return the qosType value. */ public QosType qosType() { - return this.innerProperties() == null ? null : this.innerProperties().qosType(); + return this.qosType; } /** @@ -163,10 +187,7 @@ public QosType qosType() { * @return the CapacityPoolInner object itself. */ public CapacityPoolInner withQosType(QosType qosType) { - if (this.innerProperties() == null) { - this.innerProperties = new PoolProperties(); - } - this.innerProperties().withQosType(qosType); + this.qosType = qosType; return this; } @@ -176,7 +197,7 @@ public CapacityPoolInner withQosType(QosType qosType) { * @return the coolAccess value. */ public Boolean coolAccess() { - return this.innerProperties() == null ? null : this.innerProperties().coolAccess(); + return this.coolAccess; } /** @@ -186,10 +207,7 @@ public Boolean coolAccess() { * @return the CapacityPoolInner object itself. */ public CapacityPoolInner withCoolAccess(Boolean coolAccess) { - if (this.innerProperties() == null) { - this.innerProperties = new PoolProperties(); - } - this.innerProperties().withCoolAccess(coolAccess); + this.coolAccess = coolAccess; return this; } @@ -200,7 +218,7 @@ public CapacityPoolInner withCoolAccess(Boolean coolAccess) { * @return the encryptionType value. */ public EncryptionType encryptionType() { - return this.innerProperties() == null ? null : this.innerProperties().encryptionType(); + return this.encryptionType; } /** @@ -211,10 +229,21 @@ public EncryptionType encryptionType() { * @return the CapacityPoolInner object itself. */ public CapacityPoolInner withEncryptionType(EncryptionType encryptionType) { - if (this.innerProperties() == null) { - this.innerProperties = new PoolProperties(); - } - this.innerProperties().withEncryptionType(encryptionType); + this.encryptionType = encryptionType; + return this; + } + + /** {@inheritDoc} */ + @Override + public CapacityPoolInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public CapacityPoolInner withTags(Map tags) { + super.withTags(tags); return this; } @@ -224,13 +253,10 @@ public CapacityPoolInner withEncryptionType(EncryptionType encryptionType) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() == null) { + if (serviceLevel() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model CapacityPoolInner")); - } else { - innerProperties().validate(); + new IllegalArgumentException("Missing required property serviceLevel in model CapacityPoolInner")); } } } 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 c282eeb78e76..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 @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; @@ -16,8 +17,9 @@ import java.util.Map; /** NetApp account resource. */ +@JsonFlatten @Fluent -public final class NetAppAccountInner extends Resource { +public class NetAppAccountInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(NetAppAccountInner.class); /* @@ -26,18 +28,30 @@ public final class NetAppAccountInner extends Resource { @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag; - /* - * NetApp Account properties - */ - @JsonProperty(value = "properties") - private AccountProperties innerProperties; - /* * The system meta data relating to this resource. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /* + * Azure lifecycle management + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /* + * Active Directories + */ + @JsonProperty(value = "properties.activeDirectories") + private List activeDirectories; + + /* + * Encryption settings + */ + @JsonProperty(value = "properties.encryption") + private AccountEncryption encryption; + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -47,15 +61,6 @@ public String etag() { return this.etag; } - /** - * Get the innerProperties property: NetApp Account properties. - * - * @return the innerProperties value. - */ - private AccountProperties innerProperties() { - return this.innerProperties; - } - /** * Get the systemData property: The system meta data relating to this resource. * @@ -65,27 +70,13 @@ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ - @Override - public NetAppAccountInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetAppAccountInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the provisioningState property: Azure lifecycle management. * * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; } /** @@ -94,7 +85,7 @@ public String provisioningState() { * @return the activeDirectories value. */ public List activeDirectories() { - return this.innerProperties() == null ? null : this.innerProperties().activeDirectories(); + return this.activeDirectories; } /** @@ -104,10 +95,7 @@ public List activeDirectories() { * @return the NetAppAccountInner object itself. */ public NetAppAccountInner withActiveDirectories(List activeDirectories) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountProperties(); - } - this.innerProperties().withActiveDirectories(activeDirectories); + this.activeDirectories = activeDirectories; return this; } @@ -117,7 +105,7 @@ public NetAppAccountInner withActiveDirectories(List activeDire * @return the encryption value. */ public AccountEncryption encryption() { - return this.innerProperties() == null ? null : this.innerProperties().encryption(); + return this.encryption; } /** @@ -127,10 +115,21 @@ public AccountEncryption encryption() { * @return the NetAppAccountInner object itself. */ public NetAppAccountInner withEncryption(AccountEncryption encryption) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountProperties(); - } - this.innerProperties().withEncryption(encryption); + this.encryption = encryption; + return this; + } + + /** {@inheritDoc} */ + @Override + public NetAppAccountInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public NetAppAccountInner withTags(Map tags) { + super.withTags(tags); return this; } @@ -140,8 +139,11 @@ public NetAppAccountInner withEncryption(AccountEncryption encryption) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); + if (activeDirectories() != null) { + activeDirectories().forEach(e -> e.validate()); + } + if (encryption() != null) { + encryption().validate(); } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java index 2a4977ad8d34..dac62f6efb59 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.OperationDisplay; import com.azure.resourcemanager.netapp.models.ServiceSpecification; @@ -12,8 +13,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** Microsoft.NetApp REST API operation definition. */ +@JsonFlatten @Fluent -public final class OperationInner { +public class OperationInner { @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class); /* @@ -35,10 +37,10 @@ public final class OperationInner { private String origin; /* - * Properties of operation, include metric specifications. + * One property of operation, include metric specifications. */ - @JsonProperty(value = "properties") - private OperationProperties innerProperties; + @JsonProperty(value = "properties.serviceSpecification") + private ServiceSpecification serviceSpecification; /** * Get the name property: Operation name: {provider}/{resource}/{operation}. @@ -100,22 +102,13 @@ public OperationInner withOrigin(String origin) { return this; } - /** - * Get the innerProperties property: Properties of operation, include metric specifications. - * - * @return the innerProperties value. - */ - private OperationProperties innerProperties() { - return this.innerProperties; - } - /** * Get the serviceSpecification property: One property of operation, include metric specifications. * * @return the serviceSpecification value. */ public ServiceSpecification serviceSpecification() { - return this.innerProperties() == null ? null : this.innerProperties().serviceSpecification(); + return this.serviceSpecification; } /** @@ -125,10 +118,7 @@ public ServiceSpecification serviceSpecification() { * @return the OperationInner object itself. */ public OperationInner withServiceSpecification(ServiceSpecification serviceSpecification) { - if (this.innerProperties() == null) { - this.innerProperties = new OperationProperties(); - } - this.innerProperties().withServiceSpecification(serviceSpecification); + this.serviceSpecification = serviceSpecification; return this; } @@ -141,8 +131,8 @@ public void validate() { if (display() != null) { display().validate(); } - if (innerProperties() != null) { - innerProperties().validate(); + if (serviceSpecification() != null) { + serviceSpecification().validate(); } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java deleted file mode 100644 index 4ce35159cf1e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.models.ServiceSpecification; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties of operation, include metric specifications. */ -@Fluent -public final class OperationProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationProperties.class); - - /* - * One property of operation, include metric specifications. - */ - @JsonProperty(value = "serviceSpecification") - private ServiceSpecification serviceSpecification; - - /** - * Get the serviceSpecification property: One property of operation, include metric specifications. - * - * @return the serviceSpecification value. - */ - public ServiceSpecification serviceSpecification() { - return this.serviceSpecification; - } - - /** - * Set the serviceSpecification property: One property of operation, include metric specifications. - * - * @param serviceSpecification the serviceSpecification value to set. - * @return the OperationProperties object itself. - */ - public OperationProperties withServiceSpecification(ServiceSpecification serviceSpecification) { - this.serviceSpecification = serviceSpecification; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (serviceSpecification() != null) { - serviceSpecification().validate(); - } - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java deleted file mode 100644 index e5675217c122..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.models.QosType; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Patchable pool properties. */ -@Fluent -public final class PoolPatchProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PoolPatchProperties.class); - - /* - * size Provisioned size of the pool (in bytes). Allowed values are in 4TiB - * chunks (value must be multiply of 4398046511104). - */ - @JsonProperty(value = "size") - private Long size; - - /* - * The qos type of the pool - */ - @JsonProperty(value = "qosType") - private QosType qosType; - - /** - * 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. - */ - public Long size() { - return this.size; - } - - /** - * 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 PoolPatchProperties object itself. - */ - public PoolPatchProperties withSize(Long size) { - this.size = size; - return this; - } - - /** - * Get the qosType property: The qos type of the pool. - * - * @return the qosType value. - */ - public QosType qosType() { - return this.qosType; - } - - /** - * Set the qosType property: The qos type of the pool. - * - * @param qosType the qosType value to set. - * @return the PoolPatchProperties object itself. - */ - public PoolPatchProperties withQosType(QosType qosType) { - this.qosType = qosType; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java deleted file mode 100644 index 6efdd5cf566c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Pool properties. */ -@Fluent -public final class PoolProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PoolProperties.class); - - /* - * poolId UUID v4 used to identify the Pool - */ - @JsonProperty(value = "poolId", access = JsonProperty.Access.WRITE_ONLY) - private String poolId; - - /* - * size Provisioned size of the pool (in bytes). Allowed values are in 4TiB - * chunks (value must be multiply of 4398046511104). - */ - @JsonProperty(value = "size", required = true) - private long size; - - /* - * serviceLevel The service level of the file system - */ - @JsonProperty(value = "serviceLevel", required = true) - private ServiceLevel serviceLevel; - - /* - * Azure lifecycle management - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private String provisioningState; - - /* - * Total throughput of pool in Mibps - */ - @JsonProperty(value = "totalThroughputMibps", access = JsonProperty.Access.WRITE_ONLY) - private Float totalThroughputMibps; - - /* - * Utilized throughput of pool in Mibps - */ - @JsonProperty(value = "utilizedThroughputMibps", access = JsonProperty.Access.WRITE_ONLY) - private Float utilizedThroughputMibps; - - /* - * The qos type of the pool - */ - @JsonProperty(value = "qosType") - private QosType qosType; - - /* - * If enabled (true) the pool can contain cool Access enabled volumes. - */ - @JsonProperty(value = "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 = "encryptionType") - private EncryptionType encryptionType; - - /** - * Get the poolId property: poolId UUID v4 used to identify the Pool. - * - * @return the poolId value. - */ - public String poolId() { - return this.poolId; - } - - /** - * 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. - */ - public long size() { - return this.size; - } - - /** - * 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 PoolProperties object itself. - */ - public PoolProperties withSize(long size) { - this.size = size; - return this; - } - - /** - * Get the serviceLevel property: serviceLevel The service level of the file system. - * - * @return the serviceLevel value. - */ - public ServiceLevel serviceLevel() { - return this.serviceLevel; - } - - /** - * Set the serviceLevel property: serviceLevel The service level of the file system. - * - * @param serviceLevel the serviceLevel value to set. - * @return the PoolProperties object itself. - */ - public PoolProperties withServiceLevel(ServiceLevel serviceLevel) { - this.serviceLevel = serviceLevel; - return this; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Get the totalThroughputMibps property: Total throughput of pool in Mibps. - * - * @return the totalThroughputMibps value. - */ - public Float totalThroughputMibps() { - return this.totalThroughputMibps; - } - - /** - * Get the utilizedThroughputMibps property: Utilized throughput of pool in Mibps. - * - * @return the utilizedThroughputMibps value. - */ - public Float utilizedThroughputMibps() { - return this.utilizedThroughputMibps; - } - - /** - * Get the qosType property: The qos type of the pool. - * - * @return the qosType value. - */ - public QosType qosType() { - return this.qosType; - } - - /** - * Set the qosType property: The qos type of the pool. - * - * @param qosType the qosType value to set. - * @return the PoolProperties object itself. - */ - public PoolProperties withQosType(QosType qosType) { - this.qosType = qosType; - return this; - } - - /** - * Get the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes. - * - * @return the coolAccess value. - */ - public Boolean coolAccess() { - return this.coolAccess; - } - - /** - * Set the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes. - * - * @param coolAccess the coolAccess value to set. - * @return the PoolProperties object itself. - */ - public PoolProperties withCoolAccess(Boolean coolAccess) { - this.coolAccess = 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 PoolProperties object itself. - */ - public PoolProperties withEncryptionType(EncryptionType encryptionType) { - this.encryptionType = encryptionType; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (serviceLevel() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException("Missing required property serviceLevel in model PoolProperties")); - } - } -} 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 48777cd6f807..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 @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,8 +13,9 @@ import java.time.OffsetDateTime; /** Snapshot of a Volume. */ +@JsonFlatten @Fluent -public final class SnapshotInner extends ProxyResource { +public class SnapshotInner extends ProxyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotInner.class); /* @@ -23,10 +25,22 @@ public final class SnapshotInner extends ProxyResource { private String location; /* - * Snapshot Properties + * snapshotId UUID v4 used to identify the Snapshot */ - @JsonProperty(value = "properties") - private SnapshotProperties innerProperties; + @JsonProperty(value = "properties.snapshotId", access = JsonProperty.Access.WRITE_ONLY) + private String snapshotId; + + /* + * name The creation date of the snapshot + */ + @JsonProperty(value = "properties.created", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime created; + + /* + * Azure lifecycle management + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; /** * Get the location property: Resource location. @@ -48,22 +62,13 @@ public SnapshotInner withLocation(String location) { return this; } - /** - * Get the innerProperties property: Snapshot Properties. - * - * @return the innerProperties value. - */ - private SnapshotProperties innerProperties() { - return this.innerProperties; - } - /** * Get the snapshotId property: snapshotId UUID v4 used to identify the Snapshot. * * @return the snapshotId value. */ public String snapshotId() { - return this.innerProperties() == null ? null : this.innerProperties().snapshotId(); + return this.snapshotId; } /** @@ -72,7 +77,7 @@ public String snapshotId() { * @return the created value. */ public OffsetDateTime created() { - return this.innerProperties() == null ? null : this.innerProperties().created(); + return this.created; } /** @@ -81,7 +86,7 @@ public OffsetDateTime created() { * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; } /** @@ -95,8 +100,5 @@ public void validate() { .logExceptionAsError( new IllegalArgumentException("Missing required property location in model SnapshotInner")); } - if (innerProperties() != null) { - innerProperties().validate(); - } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java index 28896810b2be..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 @@ -5,6 +5,7 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; +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.DailySchedule; @@ -16,8 +17,9 @@ import java.util.Map; /** Snapshot policy information. */ +@JsonFlatten @Fluent -public final class SnapshotPolicyInner extends Resource { +public class SnapshotPolicyInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPolicyInner.class); /* @@ -27,10 +29,40 @@ public final class SnapshotPolicyInner extends Resource { private String etag; /* - * Snapshot policy Properties + * Schedule for hourly snapshots */ - @JsonProperty(value = "properties", required = true) - private SnapshotPolicyProperties innerProperties = new SnapshotPolicyProperties(); + @JsonProperty(value = "properties.hourlySchedule") + private HourlySchedule hourlySchedule; + + /* + * Schedule for daily snapshots + */ + @JsonProperty(value = "properties.dailySchedule") + private DailySchedule dailySchedule; + + /* + * Schedule for weekly snapshots + */ + @JsonProperty(value = "properties.weeklySchedule") + private WeeklySchedule weeklySchedule; + + /* + * Schedule for monthly snapshots + */ + @JsonProperty(value = "properties.monthlySchedule") + private MonthlySchedule monthlySchedule; + + /* + * The property to decide policy is enabled or not + */ + @JsonProperty(value = "properties.enabled") + private Boolean enabled; + + /* + * Azure lifecycle management + */ + @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. @@ -41,36 +73,13 @@ public String etag() { return this.etag; } - /** - * Get the innerProperties property: Snapshot policy Properties. - * - * @return the innerProperties value. - */ - private SnapshotPolicyProperties innerProperties() { - return this.innerProperties; - } - - /** {@inheritDoc} */ - @Override - public SnapshotPolicyInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnapshotPolicyInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the hourlySchedule property: Schedule for hourly snapshots. * * @return the hourlySchedule value. */ public HourlySchedule hourlySchedule() { - return this.innerProperties() == null ? null : this.innerProperties().hourlySchedule(); + return this.hourlySchedule; } /** @@ -80,10 +89,7 @@ public HourlySchedule hourlySchedule() { * @return the SnapshotPolicyInner object itself. */ public SnapshotPolicyInner withHourlySchedule(HourlySchedule hourlySchedule) { - if (this.innerProperties() == null) { - this.innerProperties = new SnapshotPolicyProperties(); - } - this.innerProperties().withHourlySchedule(hourlySchedule); + this.hourlySchedule = hourlySchedule; return this; } @@ -93,7 +99,7 @@ public SnapshotPolicyInner withHourlySchedule(HourlySchedule hourlySchedule) { * @return the dailySchedule value. */ public DailySchedule dailySchedule() { - return this.innerProperties() == null ? null : this.innerProperties().dailySchedule(); + return this.dailySchedule; } /** @@ -103,10 +109,7 @@ public DailySchedule dailySchedule() { * @return the SnapshotPolicyInner object itself. */ public SnapshotPolicyInner withDailySchedule(DailySchedule dailySchedule) { - if (this.innerProperties() == null) { - this.innerProperties = new SnapshotPolicyProperties(); - } - this.innerProperties().withDailySchedule(dailySchedule); + this.dailySchedule = dailySchedule; return this; } @@ -116,7 +119,7 @@ public SnapshotPolicyInner withDailySchedule(DailySchedule dailySchedule) { * @return the weeklySchedule value. */ public WeeklySchedule weeklySchedule() { - return this.innerProperties() == null ? null : this.innerProperties().weeklySchedule(); + return this.weeklySchedule; } /** @@ -126,10 +129,7 @@ public WeeklySchedule weeklySchedule() { * @return the SnapshotPolicyInner object itself. */ public SnapshotPolicyInner withWeeklySchedule(WeeklySchedule weeklySchedule) { - if (this.innerProperties() == null) { - this.innerProperties = new SnapshotPolicyProperties(); - } - this.innerProperties().withWeeklySchedule(weeklySchedule); + this.weeklySchedule = weeklySchedule; return this; } @@ -139,7 +139,7 @@ public SnapshotPolicyInner withWeeklySchedule(WeeklySchedule weeklySchedule) { * @return the monthlySchedule value. */ public MonthlySchedule monthlySchedule() { - return this.innerProperties() == null ? null : this.innerProperties().monthlySchedule(); + return this.monthlySchedule; } /** @@ -149,10 +149,7 @@ public MonthlySchedule monthlySchedule() { * @return the SnapshotPolicyInner object itself. */ public SnapshotPolicyInner withMonthlySchedule(MonthlySchedule monthlySchedule) { - if (this.innerProperties() == null) { - this.innerProperties = new SnapshotPolicyProperties(); - } - this.innerProperties().withMonthlySchedule(monthlySchedule); + this.monthlySchedule = monthlySchedule; return this; } @@ -162,7 +159,7 @@ public SnapshotPolicyInner withMonthlySchedule(MonthlySchedule monthlySchedule) * @return the enabled value. */ public Boolean enabled() { - return this.innerProperties() == null ? null : this.innerProperties().enabled(); + return this.enabled; } /** @@ -172,10 +169,7 @@ public Boolean enabled() { * @return the SnapshotPolicyInner object itself. */ public SnapshotPolicyInner withEnabled(Boolean enabled) { - if (this.innerProperties() == null) { - this.innerProperties = new SnapshotPolicyProperties(); - } - this.innerProperties().withEnabled(enabled); + this.enabled = enabled; return this; } @@ -185,7 +179,21 @@ public SnapshotPolicyInner withEnabled(Boolean enabled) { * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; + } + + /** {@inheritDoc} */ + @Override + public SnapshotPolicyInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public SnapshotPolicyInner withTags(Map tags) { + super.withTags(tags); + return this; } /** @@ -194,13 +202,17 @@ public String provisioningState() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model SnapshotPolicyInner")); - } else { - innerProperties().validate(); + if (hourlySchedule() != null) { + hourlySchedule().validate(); + } + if (dailySchedule() != null) { + dailySchedule().validate(); + } + if (weeklySchedule() != null) { + weeklySchedule().validate(); + } + if (monthlySchedule() != null) { + monthlySchedule().validate(); } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java deleted file mode 100644 index 910410b147b6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.models.DailySchedule; -import com.azure.resourcemanager.netapp.models.HourlySchedule; -import com.azure.resourcemanager.netapp.models.MonthlySchedule; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Snapshot policy properties. */ -@Fluent -public final class SnapshotPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPolicyProperties.class); - - /* - * Schedule for hourly snapshots - */ - @JsonProperty(value = "hourlySchedule") - private HourlySchedule hourlySchedule; - - /* - * Schedule for daily snapshots - */ - @JsonProperty(value = "dailySchedule") - private DailySchedule dailySchedule; - - /* - * Schedule for weekly snapshots - */ - @JsonProperty(value = "weeklySchedule") - private WeeklySchedule weeklySchedule; - - /* - * Schedule for monthly snapshots - */ - @JsonProperty(value = "monthlySchedule") - private MonthlySchedule monthlySchedule; - - /* - * The property to decide policy is enabled or not - */ - @JsonProperty(value = "enabled") - private Boolean enabled; - - /* - * Azure lifecycle management - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private String provisioningState; - - /** - * Get the hourlySchedule property: Schedule for hourly snapshots. - * - * @return the hourlySchedule value. - */ - public HourlySchedule hourlySchedule() { - return this.hourlySchedule; - } - - /** - * Set the hourlySchedule property: Schedule for hourly snapshots. - * - * @param hourlySchedule the hourlySchedule value to set. - * @return the SnapshotPolicyProperties object itself. - */ - public SnapshotPolicyProperties withHourlySchedule(HourlySchedule hourlySchedule) { - this.hourlySchedule = hourlySchedule; - return this; - } - - /** - * Get the dailySchedule property: Schedule for daily snapshots. - * - * @return the dailySchedule value. - */ - public DailySchedule dailySchedule() { - return this.dailySchedule; - } - - /** - * Set the dailySchedule property: Schedule for daily snapshots. - * - * @param dailySchedule the dailySchedule value to set. - * @return the SnapshotPolicyProperties object itself. - */ - public SnapshotPolicyProperties withDailySchedule(DailySchedule dailySchedule) { - this.dailySchedule = dailySchedule; - return this; - } - - /** - * Get the weeklySchedule property: Schedule for weekly snapshots. - * - * @return the weeklySchedule value. - */ - public WeeklySchedule weeklySchedule() { - return this.weeklySchedule; - } - - /** - * Set the weeklySchedule property: Schedule for weekly snapshots. - * - * @param weeklySchedule the weeklySchedule value to set. - * @return the SnapshotPolicyProperties object itself. - */ - public SnapshotPolicyProperties withWeeklySchedule(WeeklySchedule weeklySchedule) { - this.weeklySchedule = weeklySchedule; - return this; - } - - /** - * Get the monthlySchedule property: Schedule for monthly snapshots. - * - * @return the monthlySchedule value. - */ - public MonthlySchedule monthlySchedule() { - return this.monthlySchedule; - } - - /** - * Set the monthlySchedule property: Schedule for monthly snapshots. - * - * @param monthlySchedule the monthlySchedule value to set. - * @return the SnapshotPolicyProperties object itself. - */ - public SnapshotPolicyProperties withMonthlySchedule(MonthlySchedule monthlySchedule) { - this.monthlySchedule = monthlySchedule; - return this; - } - - /** - * Get the enabled property: The property to decide policy is enabled or not. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: The property to decide policy is enabled or not. - * - * @param enabled the enabled value to set. - * @return the SnapshotPolicyProperties object itself. - */ - public SnapshotPolicyProperties withEnabled(Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (hourlySchedule() != null) { - hourlySchedule().validate(); - } - if (dailySchedule() != null) { - dailySchedule().validate(); - } - if (weeklySchedule() != null) { - weeklySchedule().validate(); - } - if (monthlySchedule() != null) { - monthlySchedule().validate(); - } - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java deleted file mode 100644 index 0f6d1ae6981f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; - -/** Snapshot properties. */ -@Immutable -public final class SnapshotProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotProperties.class); - - /* - * snapshotId UUID v4 used to identify the Snapshot - */ - @JsonProperty(value = "snapshotId", access = JsonProperty.Access.WRITE_ONLY) - private String snapshotId; - - /* - * name The creation date of the snapshot - */ - @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime created; - - /* - * Azure lifecycle management - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private String provisioningState; - - /** - * Get the snapshotId property: snapshotId UUID v4 used to identify the Snapshot. - * - * @return the snapshotId value. - */ - public String snapshotId() { - return this.snapshotId; - } - - /** - * Get the created property: name The creation date of the snapshot. - * - * @return the created value. - */ - public OffsetDateTime created() { - return this.created; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java new file mode 100644 index 000000000000..e5e9795dab76 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Information regarding Subscription Quota Item. */ +@JsonFlatten +@Immutable +public class SubscriptionQuotaItemInner extends ProxyResource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SubscriptionQuotaItemInner.class); + + /* + * The system meta data relating to this resource. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /* + * Quota Item name + */ + @JsonProperty(value = "properties.name", access = JsonProperty.Access.WRITE_ONLY) + private String namePropertiesName; + + /* + * The current quota value. + */ + @JsonProperty(value = "properties.current", access = JsonProperty.Access.WRITE_ONLY) + private Integer current; + + /* + * The default quota value. + */ + @JsonProperty(value = "properties.default", access = JsonProperty.Access.WRITE_ONLY) + private Integer defaultProperty; + + /** + * Get the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the namePropertiesName property: Quota Item name. + * + * @return the namePropertiesName value. + */ + public String namePropertiesName() { + return this.namePropertiesName; + } + + /** + * Get the current property: The current quota value. + * + * @return the current value. + */ + public Integer current() { + return this.current; + } + + /** + * Get the defaultProperty property: The default quota value. + * + * @return the defaultProperty value. + */ + public Integer defaultProperty() { + return this.defaultProperty; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java index 6fe4f732175e..65700166ceb9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java @@ -5,14 +5,16 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Vault information. */ +@JsonFlatten @Fluent -public final class VaultInner extends ProxyResource { +public class VaultInner extends ProxyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(VaultInner.class); /* @@ -22,10 +24,10 @@ public final class VaultInner extends ProxyResource { private String location; /* - * Vault Properties + * Vault Name */ - @JsonProperty(value = "properties", required = true) - private VaultProperties innerProperties = new VaultProperties(); + @JsonProperty(value = "properties.vaultName") + private String vaultName; /** * Get the location property: Resource location. @@ -47,22 +49,13 @@ public VaultInner withLocation(String location) { return this; } - /** - * Get the innerProperties property: Vault Properties. - * - * @return the innerProperties value. - */ - private VaultProperties innerProperties() { - return this.innerProperties; - } - /** * Get the vaultName property: Vault Name. * * @return the vaultName value. */ public String vaultName() { - return this.innerProperties() == null ? null : this.innerProperties().vaultName(); + return this.vaultName; } /** @@ -72,10 +65,7 @@ public String vaultName() { * @return the VaultInner object itself. */ public VaultInner withVaultName(String vaultName) { - if (this.innerProperties() == null) { - this.innerProperties = new VaultProperties(); - } - this.innerProperties().withVaultName(vaultName); + this.vaultName = vaultName; return this; } @@ -90,12 +80,5 @@ public void validate() { .logExceptionAsError( new IllegalArgumentException("Missing required property location in model VaultInner")); } - if (innerProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model VaultInner")); - } else { - innerProperties().validate(); - } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java deleted file mode 100644 index 21295214edde..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Vault properties. */ -@Fluent -public final class VaultProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VaultProperties.class); - - /* - * Vault Name - */ - @JsonProperty(value = "vaultName") - private String vaultName; - - /** - * Get the vaultName property: Vault Name. - * - * @return the vaultName value. - */ - public String vaultName() { - return this.vaultName; - } - - /** - * Set the vaultName property: Vault Name. - * - * @param vaultName the vaultName value to set. - * @return the VaultProperties object itself. - */ - public VaultProperties withVaultName(String vaultName) { - this.vaultName = vaultName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java index ce694ee0ec12..94e8df1228fc 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 @@ -5,21 +5,26 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; +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.NetworkFeatures; import com.azure.resourcemanager.netapp.models.SecurityStyle; import com.azure.resourcemanager.netapp.models.ServiceLevel; import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; +import com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; /** Volume resource. */ +@JsonFlatten @Fluent -public final class VolumeInner extends Resource { +public class VolumeInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeInner.class); /* @@ -29,10 +34,239 @@ public final class VolumeInner extends Resource { private String etag; /* - * Volume properties + * FileSystem ID Unique FileSystem Identifier. */ - @JsonProperty(value = "properties", required = true) - private VolumeProperties innerProperties = new VolumeProperties(); + @JsonProperty(value = "properties.fileSystemId", access = JsonProperty.Access.WRITE_ONLY) + private String fileSystemId; + + /* + * 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; + + /* + * serviceLevel The service level of the file system + */ + @JsonProperty(value = "properties.serviceLevel") + private ServiceLevel serviceLevel; + + /* + * 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; + + /* + * exportPolicy Set of export policy rules + */ + @JsonProperty(value = "properties.exportPolicy") + private VolumePropertiesExportPolicy exportPolicy; + + /* + * protocolTypes Set of protocol types, default NFSv3, CIFS for SMB + * protocol + */ + @JsonProperty(value = "properties.protocolTypes") + private List protocolTypes; + + /* + * Azure lifecycle management + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /* + * Snapshot ID UUID v4 or resource identifier used to identify the + * Snapshot. + */ + @JsonProperty(value = "properties.snapshotId") + private String snapshotId; + + /* + * Backup ID UUID v4 or resource identifier used to identify the Backup. + */ + @JsonProperty(value = "properties.backupId") + private String backupId; + + /* + * Baremetal Tenant ID Unique Baremetal Tenant Identifier. + */ + @JsonProperty(value = "properties.baremetalTenantId", access = JsonProperty.Access.WRITE_ONLY) + private String baremetalTenantId; + + /* + * The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes + */ + @JsonProperty(value = "properties.subnetId", required = true) + private String subnetId; + + /* + * Network features Basic network, or Standard features available to the + * volume. + */ + @JsonProperty(value = "properties.networkFeatures") + private NetworkFeatures networkFeatures; + + /* + * Network Sibling Set ID Network Sibling Set ID for the the group of + * volumes sharing networking resources. + */ + @JsonProperty(value = "properties.networkSiblingSetId", access = JsonProperty.Access.WRITE_ONLY) + private String networkSiblingSetId; + + /* + * Storage to Network Proximity Provides storage to network proximity + * information for the volume. + */ + @JsonProperty(value = "properties.storageToNetworkProximity", access = JsonProperty.Access.WRITE_ONLY) + private VolumeStorageToNetworkProximity storageToNetworkProximity; + + /* + * mountTargets List of mount targets + */ + @JsonProperty(value = "properties.mountTargets", access = JsonProperty.Access.WRITE_ONLY) + private List mountTargets; + + /* + * What type of volume is this. For destination volumes in Cross Region + * Replication, set type to DataProtection + */ + @JsonProperty(value = "properties.volumeType") + private String volumeType; + + /* + * DataProtection DataProtection type volumes include an object containing + * details of the replication + */ + @JsonProperty(value = "properties.dataProtection") + private VolumePropertiesDataProtection dataProtection; + + /* + * Restoring + */ + @JsonProperty(value = "properties.isRestoring") + private Boolean isRestoring; + + /* + * If enabled (true) the volume will contain a read-only snapshot directory + * which provides access to each of the volume's snapshots (default to + * true). + */ + @JsonProperty(value = "properties.snapshotDirectoryVisible") + private Boolean snapshotDirectoryVisible; + + /* + * Describe if a volume is KerberosEnabled. To be use with swagger version + * 2020-05-01 or later + */ + @JsonProperty(value = "properties.kerberosEnabled") + private Boolean kerberosEnabled; + + /* + * The security style of volume, default unix, defaults to ntfs for dual + * protocol or CIFS protocol + */ + @JsonProperty(value = "properties.securityStyle") + private SecurityStyle securityStyle; + + /* + * Enables encryption for in-flight smb3 data. Only applicable for + * SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or + * later + */ + @JsonProperty(value = "properties.smbEncryption") + private Boolean smbEncryption; + + /* + * Enables continuously available share property for smb volume. Only + * applicable for SMB volume + */ + @JsonProperty(value = "properties.smbContinuouslyAvailable") + private Boolean smbContinuouslyAvailable; + + /* + * Maximum throughput in Mibps that can be achieved by this volume + */ + @JsonProperty(value = "properties.throughputMibps") + private Float throughputMibps; + + /* + * Encryption Key Source. Possible values are: 'Microsoft.NetApp' + */ + @JsonProperty(value = "properties.encryptionKeySource") + private String encryptionKeySource; + + /* + * Specifies whether LDAP is enabled or not for a given NFS volume. + */ + @JsonProperty(value = "properties.ldapEnabled") + private Boolean ldapEnabled; + + /* + * Specifies whether Cool Access(tiering) is enabled for the volume. + */ + @JsonProperty(value = "properties.coolAccess") + private Boolean coolAccess; + + /* + * Specifies the number of days after which data that is not accessed by + * clients will be tiered. + */ + @JsonProperty(value = "properties.coolnessPeriod") + private Integer coolnessPeriod; + + /* + * UNIX permissions for NFS volume accepted in octal 4 digit format. First + * digit selects the set user ID(4), set group ID (2) and sticky (1) + * attributes. Second digit selects permission for the owner of the file: + * read (4), write (2) and execute (1). Third selects permissions for other + * users in the same group. the fourth for other users not in the group. + * 0755 - gives read/write/execute permissions to owner and read/execute to + * group and other users. + */ + @JsonProperty(value = "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. @@ -43,36 +277,13 @@ public String etag() { return this.etag; } - /** - * Get the innerProperties property: Volume properties. - * - * @return the innerProperties value. - */ - private VolumeProperties innerProperties() { - return this.innerProperties; - } - - /** {@inheritDoc} */ - @Override - public VolumeInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public VolumeInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the fileSystemId property: FileSystem ID Unique FileSystem Identifier. * * @return the fileSystemId value. */ public String fileSystemId() { - return this.innerProperties() == null ? null : this.innerProperties().fileSystemId(); + return this.fileSystemId; } /** @@ -82,7 +293,7 @@ public String fileSystemId() { * @return the creationToken value. */ public String creationToken() { - return this.innerProperties() == null ? null : this.innerProperties().creationToken(); + return this.creationToken; } /** @@ -93,10 +304,7 @@ public String creationToken() { * @return the VolumeInner object itself. */ public VolumeInner withCreationToken(String creationToken) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withCreationToken(creationToken); + this.creationToken = creationToken; return this; } @@ -106,7 +314,7 @@ public VolumeInner withCreationToken(String creationToken) { * @return the serviceLevel value. */ public ServiceLevel serviceLevel() { - return this.innerProperties() == null ? null : this.innerProperties().serviceLevel(); + return this.serviceLevel; } /** @@ -116,10 +324,7 @@ public ServiceLevel serviceLevel() { * @return the VolumeInner object itself. */ public VolumeInner withServiceLevel(ServiceLevel serviceLevel) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withServiceLevel(serviceLevel); + this.serviceLevel = serviceLevel; return this; } @@ -130,7 +335,7 @@ public VolumeInner withServiceLevel(ServiceLevel serviceLevel) { * @return the usageThreshold value. */ public long usageThreshold() { - return this.innerProperties() == null ? 0L : this.innerProperties().usageThreshold(); + return this.usageThreshold; } /** @@ -141,10 +346,7 @@ public long usageThreshold() { * @return the VolumeInner object itself. */ public VolumeInner withUsageThreshold(long usageThreshold) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withUsageThreshold(usageThreshold); + this.usageThreshold = usageThreshold; return this; } @@ -154,7 +356,7 @@ public VolumeInner withUsageThreshold(long usageThreshold) { * @return the exportPolicy value. */ public VolumePropertiesExportPolicy exportPolicy() { - return this.innerProperties() == null ? null : this.innerProperties().exportPolicy(); + return this.exportPolicy; } /** @@ -164,10 +366,7 @@ public VolumePropertiesExportPolicy exportPolicy() { * @return the VolumeInner object itself. */ public VolumeInner withExportPolicy(VolumePropertiesExportPolicy exportPolicy) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withExportPolicy(exportPolicy); + this.exportPolicy = exportPolicy; return this; } @@ -177,7 +376,7 @@ public VolumeInner withExportPolicy(VolumePropertiesExportPolicy exportPolicy) { * @return the protocolTypes value. */ public List protocolTypes() { - return this.innerProperties() == null ? null : this.innerProperties().protocolTypes(); + return this.protocolTypes; } /** @@ -187,10 +386,7 @@ public List protocolTypes() { * @return the VolumeInner object itself. */ public VolumeInner withProtocolTypes(List protocolTypes) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withProtocolTypes(protocolTypes); + this.protocolTypes = protocolTypes; return this; } @@ -200,7 +396,7 @@ public VolumeInner withProtocolTypes(List protocolTypes) { * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; } /** @@ -209,7 +405,7 @@ public String provisioningState() { * @return the snapshotId value. */ public String snapshotId() { - return this.innerProperties() == null ? null : this.innerProperties().snapshotId(); + return this.snapshotId; } /** @@ -219,10 +415,7 @@ public String snapshotId() { * @return the VolumeInner object itself. */ public VolumeInner withSnapshotId(String snapshotId) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withSnapshotId(snapshotId); + this.snapshotId = snapshotId; return this; } @@ -232,7 +425,7 @@ public VolumeInner withSnapshotId(String snapshotId) { * @return the backupId value. */ public String backupId() { - return this.innerProperties() == null ? null : this.innerProperties().backupId(); + return this.backupId; } /** @@ -242,10 +435,7 @@ public String backupId() { * @return the VolumeInner object itself. */ public VolumeInner withBackupId(String backupId) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withBackupId(backupId); + this.backupId = backupId; return this; } @@ -255,7 +445,7 @@ public VolumeInner withBackupId(String backupId) { * @return the baremetalTenantId value. */ public String baremetalTenantId() { - return this.innerProperties() == null ? null : this.innerProperties().baremetalTenantId(); + return this.baremetalTenantId; } /** @@ -265,7 +455,7 @@ public String baremetalTenantId() { * @return the subnetId value. */ public String subnetId() { - return this.innerProperties() == null ? null : this.innerProperties().subnetId(); + return this.subnetId; } /** @@ -276,42 +466,78 @@ public String subnetId() { * @return the VolumeInner object itself. */ public VolumeInner withSubnetId(String subnetId) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withSubnetId(subnetId); + this.subnetId = subnetId; return this; } + /** + * Get the networkFeatures property: Network features Basic network, or Standard features available to the volume. + * + * @return the networkFeatures value. + */ + public NetworkFeatures networkFeatures() { + return this.networkFeatures; + } + + /** + * Set the networkFeatures property: Network features Basic network, or Standard features available to the volume. + * + * @param networkFeatures the networkFeatures value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withNetworkFeatures(NetworkFeatures networkFeatures) { + this.networkFeatures = networkFeatures; + return this; + } + + /** + * Get the networkSiblingSetId property: Network Sibling Set ID Network Sibling Set ID for the the group of volumes + * sharing networking resources. + * + * @return the networkSiblingSetId value. + */ + public String networkSiblingSetId() { + return this.networkSiblingSetId; + } + + /** + * Get the storageToNetworkProximity property: Storage to Network Proximity Provides storage to network proximity + * information for the volume. + * + * @return the storageToNetworkProximity value. + */ + public VolumeStorageToNetworkProximity storageToNetworkProximity() { + return this.storageToNetworkProximity; + } + /** * Get the mountTargets property: mountTargets List of mount targets. * * @return the mountTargets value. */ public List mountTargets() { - return this.innerProperties() == null ? null : this.innerProperties().mountTargets(); + return this.mountTargets; } /** - * Get the volumeType property: What type of volume is this. + * Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, + * set type to DataProtection. * * @return the volumeType value. */ public String volumeType() { - return this.innerProperties() == null ? null : this.innerProperties().volumeType(); + return this.volumeType; } /** - * Set the volumeType property: What type of volume is this. + * Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, + * set type to DataProtection. * * @param volumeType the volumeType value to set. * @return the VolumeInner object itself. */ public VolumeInner withVolumeType(String volumeType) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withVolumeType(volumeType); + this.volumeType = volumeType; return this; } @@ -322,7 +548,7 @@ public VolumeInner withVolumeType(String volumeType) { * @return the dataProtection value. */ public VolumePropertiesDataProtection dataProtection() { - return this.innerProperties() == null ? null : this.innerProperties().dataProtection(); + return this.dataProtection; } /** @@ -333,10 +559,7 @@ public VolumePropertiesDataProtection dataProtection() { * @return the VolumeInner object itself. */ public VolumeInner withDataProtection(VolumePropertiesDataProtection dataProtection) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withDataProtection(dataProtection); + this.dataProtection = dataProtection; return this; } @@ -346,7 +569,7 @@ public VolumeInner withDataProtection(VolumePropertiesDataProtection dataProtect * @return the isRestoring value. */ public Boolean isRestoring() { - return this.innerProperties() == null ? null : this.innerProperties().isRestoring(); + return this.isRestoring; } /** @@ -356,10 +579,7 @@ public Boolean isRestoring() { * @return the VolumeInner object itself. */ public VolumeInner withIsRestoring(Boolean isRestoring) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withIsRestoring(isRestoring); + this.isRestoring = isRestoring; return this; } @@ -370,7 +590,7 @@ public VolumeInner withIsRestoring(Boolean isRestoring) { * @return the snapshotDirectoryVisible value. */ public Boolean snapshotDirectoryVisible() { - return this.innerProperties() == null ? null : this.innerProperties().snapshotDirectoryVisible(); + return this.snapshotDirectoryVisible; } /** @@ -381,10 +601,7 @@ public Boolean snapshotDirectoryVisible() { * @return the VolumeInner object itself. */ public VolumeInner withSnapshotDirectoryVisible(Boolean snapshotDirectoryVisible) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withSnapshotDirectoryVisible(snapshotDirectoryVisible); + this.snapshotDirectoryVisible = snapshotDirectoryVisible; return this; } @@ -395,7 +612,7 @@ public VolumeInner withSnapshotDirectoryVisible(Boolean snapshotDirectoryVisible * @return the kerberosEnabled value. */ public Boolean kerberosEnabled() { - return this.innerProperties() == null ? null : this.innerProperties().kerberosEnabled(); + return this.kerberosEnabled; } /** @@ -406,10 +623,7 @@ public Boolean kerberosEnabled() { * @return the VolumeInner object itself. */ public VolumeInner withKerberosEnabled(Boolean kerberosEnabled) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withKerberosEnabled(kerberosEnabled); + this.kerberosEnabled = kerberosEnabled; return this; } @@ -420,7 +634,7 @@ public VolumeInner withKerberosEnabled(Boolean kerberosEnabled) { * @return the securityStyle value. */ public SecurityStyle securityStyle() { - return this.innerProperties() == null ? null : this.innerProperties().securityStyle(); + return this.securityStyle; } /** @@ -431,10 +645,7 @@ public SecurityStyle securityStyle() { * @return the VolumeInner object itself. */ public VolumeInner withSecurityStyle(SecurityStyle securityStyle) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withSecurityStyle(securityStyle); + this.securityStyle = securityStyle; return this; } @@ -445,7 +656,7 @@ public VolumeInner withSecurityStyle(SecurityStyle securityStyle) { * @return the smbEncryption value. */ public Boolean smbEncryption() { - return this.innerProperties() == null ? null : this.innerProperties().smbEncryption(); + return this.smbEncryption; } /** @@ -456,10 +667,7 @@ public Boolean smbEncryption() { * @return the VolumeInner object itself. */ public VolumeInner withSmbEncryption(Boolean smbEncryption) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withSmbEncryption(smbEncryption); + this.smbEncryption = smbEncryption; return this; } @@ -470,7 +678,7 @@ public VolumeInner withSmbEncryption(Boolean smbEncryption) { * @return the smbContinuouslyAvailable value. */ public Boolean smbContinuouslyAvailable() { - return this.innerProperties() == null ? null : this.innerProperties().smbContinuouslyAvailable(); + return this.smbContinuouslyAvailable; } /** @@ -481,10 +689,7 @@ public Boolean smbContinuouslyAvailable() { * @return the VolumeInner object itself. */ public VolumeInner withSmbContinuouslyAvailable(Boolean smbContinuouslyAvailable) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withSmbContinuouslyAvailable(smbContinuouslyAvailable); + this.smbContinuouslyAvailable = smbContinuouslyAvailable; return this; } @@ -494,7 +699,7 @@ public VolumeInner withSmbContinuouslyAvailable(Boolean smbContinuouslyAvailable * @return the throughputMibps value. */ public Float throughputMibps() { - return this.innerProperties() == null ? null : this.innerProperties().throughputMibps(); + return this.throughputMibps; } /** @@ -504,10 +709,7 @@ public Float throughputMibps() { * @return the VolumeInner object itself. */ public VolumeInner withThroughputMibps(Float throughputMibps) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withThroughputMibps(throughputMibps); + this.throughputMibps = throughputMibps; return this; } @@ -517,7 +719,7 @@ public VolumeInner withThroughputMibps(Float throughputMibps) { * @return the encryptionKeySource value. */ public String encryptionKeySource() { - return this.innerProperties() == null ? null : this.innerProperties().encryptionKeySource(); + return this.encryptionKeySource; } /** @@ -527,10 +729,7 @@ public String encryptionKeySource() { * @return the VolumeInner object itself. */ public VolumeInner withEncryptionKeySource(String encryptionKeySource) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withEncryptionKeySource(encryptionKeySource); + this.encryptionKeySource = encryptionKeySource; return this; } @@ -540,7 +739,7 @@ public VolumeInner withEncryptionKeySource(String encryptionKeySource) { * @return the ldapEnabled value. */ public Boolean ldapEnabled() { - return this.innerProperties() == null ? null : this.innerProperties().ldapEnabled(); + return this.ldapEnabled; } /** @@ -550,10 +749,7 @@ public Boolean ldapEnabled() { * @return the VolumeInner object itself. */ public VolumeInner withLdapEnabled(Boolean ldapEnabled) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withLdapEnabled(ldapEnabled); + this.ldapEnabled = ldapEnabled; return this; } @@ -563,7 +759,7 @@ public VolumeInner withLdapEnabled(Boolean ldapEnabled) { * @return the coolAccess value. */ public Boolean coolAccess() { - return this.innerProperties() == null ? null : this.innerProperties().coolAccess(); + return this.coolAccess; } /** @@ -573,10 +769,7 @@ public Boolean coolAccess() { * @return the VolumeInner object itself. */ public VolumeInner withCoolAccess(Boolean coolAccess) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withCoolAccess(coolAccess); + this.coolAccess = coolAccess; return this; } @@ -587,7 +780,7 @@ public VolumeInner withCoolAccess(Boolean coolAccess) { * @return the coolnessPeriod value. */ public Integer coolnessPeriod() { - return this.innerProperties() == null ? null : this.innerProperties().coolnessPeriod(); + return this.coolnessPeriod; } /** @@ -598,10 +791,7 @@ public Integer coolnessPeriod() { * @return the VolumeInner object itself. */ public VolumeInner withCoolnessPeriod(Integer coolnessPeriod) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withCoolnessPeriod(coolnessPeriod); + this.coolnessPeriod = coolnessPeriod; return this; } @@ -615,7 +805,7 @@ public VolumeInner withCoolnessPeriod(Integer coolnessPeriod) { * @return the unixPermissions value. */ public String unixPermissions() { - return this.innerProperties() == null ? null : this.innerProperties().unixPermissions(); + return this.unixPermissions; } /** @@ -629,10 +819,7 @@ public String unixPermissions() { * @return the VolumeInner object itself. */ public VolumeInner withUnixPermissions(String unixPermissions) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withUnixPermissions(unixPermissions); + this.unixPermissions = unixPermissions; return this; } @@ -644,7 +831,7 @@ public VolumeInner withUnixPermissions(String unixPermissions) { * @return the cloneProgress value. */ public Integer cloneProgress() { - return this.innerProperties() == null ? null : this.innerProperties().cloneProgress(); + return this.cloneProgress; } /** @@ -654,7 +841,7 @@ public Integer cloneProgress() { * @return the avsDataStore value. */ public AvsDataStore avsDataStore() { - return this.innerProperties() == null ? null : this.innerProperties().avsDataStore(); + return this.avsDataStore; } /** @@ -665,10 +852,7 @@ public AvsDataStore avsDataStore() { * @return the VolumeInner object itself. */ public VolumeInner withAvsDataStore(AvsDataStore avsDataStore) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withAvsDataStore(avsDataStore); + this.avsDataStore = avsDataStore; return this; } @@ -678,7 +862,7 @@ public VolumeInner withAvsDataStore(AvsDataStore avsDataStore) { * @return the isDefaultQuotaEnabled value. */ public Boolean isDefaultQuotaEnabled() { - return this.innerProperties() == null ? null : this.innerProperties().isDefaultQuotaEnabled(); + return this.isDefaultQuotaEnabled; } /** @@ -688,10 +872,7 @@ public Boolean isDefaultQuotaEnabled() { * @return the VolumeInner object itself. */ public VolumeInner withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withIsDefaultQuotaEnabled(isDefaultQuotaEnabled); + this.isDefaultQuotaEnabled = isDefaultQuotaEnabled; return this; } @@ -702,7 +883,7 @@ public VolumeInner withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled) { * @return the defaultUserQuotaInKiBs value. */ public Long defaultUserQuotaInKiBs() { - return this.innerProperties() == null ? null : this.innerProperties().defaultUserQuotaInKiBs(); + return this.defaultUserQuotaInKiBs; } /** @@ -713,10 +894,7 @@ public Long defaultUserQuotaInKiBs() { * @return the VolumeInner object itself. */ public VolumeInner withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withDefaultUserQuotaInKiBs(defaultUserQuotaInKiBs); + this.defaultUserQuotaInKiBs = defaultUserQuotaInKiBs; return this; } @@ -727,7 +905,7 @@ public VolumeInner withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs) { * @return the defaultGroupQuotaInKiBs value. */ public Long defaultGroupQuotaInKiBs() { - return this.innerProperties() == null ? null : this.innerProperties().defaultGroupQuotaInKiBs(); + return this.defaultGroupQuotaInKiBs; } /** @@ -738,10 +916,21 @@ public Long defaultGroupQuotaInKiBs() { * @return the VolumeInner object itself. */ public VolumeInner withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withDefaultGroupQuotaInKiBs(defaultGroupQuotaInKiBs); + this.defaultGroupQuotaInKiBs = defaultGroupQuotaInKiBs; + return this; + } + + /** {@inheritDoc} */ + @Override + public VolumeInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public VolumeInner withTags(Map tags) { + super.withTags(tags); return this; } @@ -751,12 +940,24 @@ public VolumeInner withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() == null) { + if (creationToken() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model VolumeInner")); - } else { - innerProperties().validate(); + new IllegalArgumentException("Missing required property creationToken in model VolumeInner")); + } + if (exportPolicy() != null) { + exportPolicy().validate(); + } + if (subnetId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property subnetId in model VolumeInner")); + } + if (mountTargets() != null) { + mountTargets().forEach(e -> e.validate()); + } + if (dataProtection() != null) { + dataProtection().validate(); } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java deleted file mode 100644 index 0466b061aa8d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java +++ /dev/null @@ -1,254 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Patchable volume properties. */ -@Fluent -public final class VolumePatchProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePatchProperties.class); - - /* - * serviceLevel The service level of the file system - */ - @JsonProperty(value = "serviceLevel") - private ServiceLevel serviceLevel; - - /* - * 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 = "usageThreshold") - private Long usageThreshold; - - /* - * exportPolicy Set of export policy rules - */ - @JsonProperty(value = "exportPolicy") - private VolumePatchPropertiesExportPolicy exportPolicy; - - /* - * Maximum throughput in Mibps that can be achieved by this volume - */ - @JsonProperty(value = "throughputMibps") - private Float throughputMibps; - - /* - * DataProtection DataProtection type volumes include an object containing - * details of the replication - */ - @JsonProperty(value = "dataProtection") - private VolumePatchPropertiesDataProtection dataProtection; - - /* - * Specifies if default quota is enabled for the volume. - */ - @JsonProperty(value = "isDefaultQuotaEnabled") - private Boolean isDefaultQuotaEnabled; - - /* - * Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, - * the minimum value of 4 KiBs applies . - */ - @JsonProperty(value = "defaultUserQuotaInKiBs") - private Long defaultUserQuotaInKiBs; - - /* - * Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, - * the minimum value of 4 KiBs applies. - */ - @JsonProperty(value = "defaultGroupQuotaInKiBs") - private Long defaultGroupQuotaInKiBs; - - /** - * Get the serviceLevel property: serviceLevel The service level of the file system. - * - * @return the serviceLevel value. - */ - public ServiceLevel serviceLevel() { - return this.serviceLevel; - } - - /** - * Set the serviceLevel property: serviceLevel The service level of the file system. - * - * @param serviceLevel the serviceLevel value to set. - * @return the VolumePatchProperties object itself. - */ - public VolumePatchProperties withServiceLevel(ServiceLevel serviceLevel) { - this.serviceLevel = serviceLevel; - return this; - } - - /** - * Get the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is - * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. - * - * @return the usageThreshold value. - */ - public Long usageThreshold() { - return this.usageThreshold; - } - - /** - * Set the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is - * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. - * - * @param usageThreshold the usageThreshold value to set. - * @return the VolumePatchProperties object itself. - */ - public VolumePatchProperties withUsageThreshold(Long usageThreshold) { - this.usageThreshold = usageThreshold; - return this; - } - - /** - * Get the exportPolicy property: exportPolicy Set of export policy rules. - * - * @return the exportPolicy value. - */ - public VolumePatchPropertiesExportPolicy exportPolicy() { - return this.exportPolicy; - } - - /** - * Set the exportPolicy property: exportPolicy Set of export policy rules. - * - * @param exportPolicy the exportPolicy value to set. - * @return the VolumePatchProperties object itself. - */ - public VolumePatchProperties withExportPolicy(VolumePatchPropertiesExportPolicy exportPolicy) { - this.exportPolicy = exportPolicy; - return this; - } - - /** - * Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. - * - * @return the throughputMibps value. - */ - public Float throughputMibps() { - return this.throughputMibps; - } - - /** - * Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. - * - * @param throughputMibps the throughputMibps value to set. - * @return the VolumePatchProperties object itself. - */ - public VolumePatchProperties withThroughputMibps(Float throughputMibps) { - this.throughputMibps = throughputMibps; - return this; - } - - /** - * Get the dataProtection property: DataProtection DataProtection type volumes include an object containing details - * of the replication. - * - * @return the dataProtection value. - */ - public VolumePatchPropertiesDataProtection dataProtection() { - return this.dataProtection; - } - - /** - * Set the dataProtection property: DataProtection DataProtection type volumes include an object containing details - * of the replication. - * - * @param dataProtection the dataProtection value to set. - * @return the VolumePatchProperties object itself. - */ - public VolumePatchProperties withDataProtection(VolumePatchPropertiesDataProtection dataProtection) { - this.dataProtection = dataProtection; - 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 VolumePatchProperties object itself. - */ - public VolumePatchProperties 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 VolumePatchProperties object itself. - */ - public VolumePatchProperties 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 VolumePatchProperties object itself. - */ - public VolumePatchProperties withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { - this.defaultGroupQuotaInKiBs = defaultGroupQuotaInKiBs; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (exportPolicy() != null) { - exportPolicy().validate(); - } - if (dataProtection() != null) { - dataProtection().validate(); - } - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java deleted file mode 100644 index bde407f41e9f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java +++ /dev/null @@ -1,863 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.models.AvsDataStore; -import com.azure.resourcemanager.netapp.models.SecurityStyle; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; -import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Volume properties. */ -@Fluent -public final class VolumeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeProperties.class); - - /* - * FileSystem ID Unique FileSystem Identifier. - */ - @JsonProperty(value = "fileSystemId", access = JsonProperty.Access.WRITE_ONLY) - private String fileSystemId; - - /* - * Creation Token or File Path A unique file path for the volume. Used when - * creating mount targets - */ - @JsonProperty(value = "creationToken", required = true) - private String creationToken; - - /* - * serviceLevel The service level of the file system - */ - @JsonProperty(value = "serviceLevel") - private ServiceLevel serviceLevel; - - /* - * 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 = "usageThreshold", required = true) - private long usageThreshold; - - /* - * exportPolicy Set of export policy rules - */ - @JsonProperty(value = "exportPolicy") - private VolumePropertiesExportPolicy exportPolicy; - - /* - * protocolTypes Set of protocol types, default NFSv3, CIFS for SMB - * protocol - */ - @JsonProperty(value = "protocolTypes") - private List protocolTypes; - - /* - * Azure lifecycle management - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private String provisioningState; - - /* - * Snapshot ID UUID v4 or resource identifier used to identify the - * Snapshot. - */ - @JsonProperty(value = "snapshotId") - private String snapshotId; - - /* - * Backup ID UUID v4 or resource identifier used to identify the Backup. - */ - @JsonProperty(value = "backupId") - private String backupId; - - /* - * Baremetal Tenant ID Unique Baremetal Tenant Identifier. - */ - @JsonProperty(value = "baremetalTenantId", access = JsonProperty.Access.WRITE_ONLY) - private String baremetalTenantId; - - /* - * The Azure Resource URI for a delegated subnet. Must have the delegation - * Microsoft.NetApp/volumes - */ - @JsonProperty(value = "subnetId", required = true) - private String subnetId; - - /* - * mountTargets List of mount targets - */ - @JsonProperty(value = "mountTargets", access = JsonProperty.Access.WRITE_ONLY) - private List mountTargets; - - /* - * What type of volume is this - */ - @JsonProperty(value = "volumeType") - private String volumeType; - - /* - * DataProtection DataProtection type volumes include an object containing - * details of the replication - */ - @JsonProperty(value = "dataProtection") - private VolumePropertiesDataProtection dataProtection; - - /* - * Restoring - */ - @JsonProperty(value = "isRestoring") - private Boolean isRestoring; - - /* - * If enabled (true) the volume will contain a read-only snapshot directory - * which provides access to each of the volume's snapshots (default to - * true). - */ - @JsonProperty(value = "snapshotDirectoryVisible") - private Boolean snapshotDirectoryVisible; - - /* - * Describe if a volume is KerberosEnabled. To be use with swagger version - * 2020-05-01 or later - */ - @JsonProperty(value = "kerberosEnabled") - private Boolean kerberosEnabled; - - /* - * The security style of volume, default unix, defaults to ntfs for dual - * protocol or CIFS protocol - */ - @JsonProperty(value = "securityStyle") - private SecurityStyle securityStyle; - - /* - * Enables encryption for in-flight smb3 data. Only applicable for - * SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or - * later - */ - @JsonProperty(value = "smbEncryption") - private Boolean smbEncryption; - - /* - * Enables continuously available share property for smb volume. Only - * applicable for SMB volume - */ - @JsonProperty(value = "smbContinuouslyAvailable") - private Boolean smbContinuouslyAvailable; - - /* - * Maximum throughput in Mibps that can be achieved by this volume - */ - @JsonProperty(value = "throughputMibps") - private Float throughputMibps; - - /* - * Encryption Key Source. Possible values are: 'Microsoft.NetApp' - */ - @JsonProperty(value = "encryptionKeySource") - private String encryptionKeySource; - - /* - * Specifies whether LDAP is enabled or not for a given NFS volume. - */ - @JsonProperty(value = "ldapEnabled") - private Boolean ldapEnabled; - - /* - * Specifies whether Cool Access(tiering) is enabled for the volume. - */ - @JsonProperty(value = "coolAccess") - private Boolean coolAccess; - - /* - * Specifies the number of days after which data that is not accessed by - * clients will be tiered. - */ - @JsonProperty(value = "coolnessPeriod") - private Integer coolnessPeriod; - - /* - * UNIX permissions for NFS volume accepted in octal 4 digit format. First - * digit selects the set user ID(4), set group ID (2) and sticky (1) - * attributes. Second digit selects permission for the owner of the file: - * read (4), write (2) and execute (1). Third selects permissions for other - * users in the same group. the fourth for other users not in the group. - * 0755 - gives read/write/execute permissions to owner and read/execute to - * group and other users. - */ - @JsonProperty(value = "unixPermissions") - private String unixPermissions; - - /* - * 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 = "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 = "avsDataStore") - private AvsDataStore avsDataStore; - - /* - * Specifies if default quota is enabled for the volume. - */ - @JsonProperty(value = "isDefaultQuotaEnabled") - private Boolean isDefaultQuotaEnabled; - - /* - * Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, - * the minimum value of 4 KiBs applies . - */ - @JsonProperty(value = "defaultUserQuotaInKiBs") - private Long defaultUserQuotaInKiBs; - - /* - * Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, - * the minimum value of 4 KiBs applies. - */ - @JsonProperty(value = "defaultGroupQuotaInKiBs") - private Long defaultGroupQuotaInKiBs; - - /** - * Get the fileSystemId property: FileSystem ID Unique FileSystem Identifier. - * - * @return the fileSystemId value. - */ - public String fileSystemId() { - return this.fileSystemId; - } - - /** - * Get the creationToken property: Creation Token or File Path A unique file path for the volume. Used when creating - * mount targets. - * - * @return the creationToken value. - */ - public String creationToken() { - return this.creationToken; - } - - /** - * Set the creationToken property: Creation Token or File Path A unique file path for the volume. Used when creating - * mount targets. - * - * @param creationToken the creationToken value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withCreationToken(String creationToken) { - this.creationToken = creationToken; - return this; - } - - /** - * Get the serviceLevel property: serviceLevel The service level of the file system. - * - * @return the serviceLevel value. - */ - public ServiceLevel serviceLevel() { - return this.serviceLevel; - } - - /** - * Set the serviceLevel property: serviceLevel The service level of the file system. - * - * @param serviceLevel the serviceLevel value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withServiceLevel(ServiceLevel serviceLevel) { - this.serviceLevel = serviceLevel; - return this; - } - - /** - * Get the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is - * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. - * - * @return the usageThreshold value. - */ - public long usageThreshold() { - return this.usageThreshold; - } - - /** - * Set the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is - * a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. - * - * @param usageThreshold the usageThreshold value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withUsageThreshold(long usageThreshold) { - this.usageThreshold = usageThreshold; - return this; - } - - /** - * Get the exportPolicy property: exportPolicy Set of export policy rules. - * - * @return the exportPolicy value. - */ - public VolumePropertiesExportPolicy exportPolicy() { - return this.exportPolicy; - } - - /** - * Set the exportPolicy property: exportPolicy Set of export policy rules. - * - * @param exportPolicy the exportPolicy value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withExportPolicy(VolumePropertiesExportPolicy exportPolicy) { - this.exportPolicy = exportPolicy; - return this; - } - - /** - * Get the protocolTypes property: protocolTypes Set of protocol types, default NFSv3, CIFS for SMB protocol. - * - * @return the protocolTypes value. - */ - public List protocolTypes() { - return this.protocolTypes; - } - - /** - * Set the protocolTypes property: protocolTypes Set of protocol types, default NFSv3, CIFS for SMB protocol. - * - * @param protocolTypes the protocolTypes value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withProtocolTypes(List protocolTypes) { - this.protocolTypes = protocolTypes; - return this; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Get the snapshotId property: Snapshot ID UUID v4 or resource identifier used to identify the Snapshot. - * - * @return the snapshotId value. - */ - public String snapshotId() { - return this.snapshotId; - } - - /** - * Set the snapshotId property: Snapshot ID UUID v4 or resource identifier used to identify the Snapshot. - * - * @param snapshotId the snapshotId value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withSnapshotId(String snapshotId) { - this.snapshotId = snapshotId; - return this; - } - - /** - * Get the backupId property: Backup ID UUID v4 or resource identifier used to identify the Backup. - * - * @return the backupId value. - */ - public String backupId() { - return this.backupId; - } - - /** - * Set the backupId property: Backup ID UUID v4 or resource identifier used to identify the Backup. - * - * @param backupId the backupId value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withBackupId(String backupId) { - this.backupId = backupId; - return this; - } - - /** - * Get the baremetalTenantId property: Baremetal Tenant ID Unique Baremetal Tenant Identifier. - * - * @return the baremetalTenantId value. - */ - public String baremetalTenantId() { - return this.baremetalTenantId; - } - - /** - * Get the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation - * Microsoft.NetApp/volumes. - * - * @return the subnetId value. - */ - public String subnetId() { - return this.subnetId; - } - - /** - * Set the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation - * Microsoft.NetApp/volumes. - * - * @param subnetId the subnetId value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withSubnetId(String subnetId) { - this.subnetId = subnetId; - return this; - } - - /** - * Get the mountTargets property: mountTargets List of mount targets. - * - * @return the mountTargets value. - */ - public List mountTargets() { - return this.mountTargets; - } - - /** - * Get the volumeType property: What type of volume is this. - * - * @return the volumeType value. - */ - public String volumeType() { - return this.volumeType; - } - - /** - * Set the volumeType property: What type of volume is this. - * - * @param volumeType the volumeType value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withVolumeType(String volumeType) { - this.volumeType = volumeType; - return this; - } - - /** - * Get the dataProtection property: DataProtection DataProtection type volumes include an object containing details - * of the replication. - * - * @return the dataProtection value. - */ - public VolumePropertiesDataProtection dataProtection() { - return this.dataProtection; - } - - /** - * Set the dataProtection property: DataProtection DataProtection type volumes include an object containing details - * of the replication. - * - * @param dataProtection the dataProtection value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withDataProtection(VolumePropertiesDataProtection dataProtection) { - this.dataProtection = dataProtection; - return this; - } - - /** - * Get the isRestoring property: Restoring. - * - * @return the isRestoring value. - */ - public Boolean isRestoring() { - return this.isRestoring; - } - - /** - * Set the isRestoring property: Restoring. - * - * @param isRestoring the isRestoring value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withIsRestoring(Boolean isRestoring) { - this.isRestoring = isRestoring; - return this; - } - - /** - * Get the snapshotDirectoryVisible property: If enabled (true) the volume will contain a read-only snapshot - * directory which provides access to each of the volume's snapshots (default to true). - * - * @return the snapshotDirectoryVisible value. - */ - public Boolean snapshotDirectoryVisible() { - return this.snapshotDirectoryVisible; - } - - /** - * Set the snapshotDirectoryVisible property: If enabled (true) the volume will contain a read-only snapshot - * directory which provides access to each of the volume's snapshots (default to true). - * - * @param snapshotDirectoryVisible the snapshotDirectoryVisible value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withSnapshotDirectoryVisible(Boolean snapshotDirectoryVisible) { - this.snapshotDirectoryVisible = snapshotDirectoryVisible; - return this; - } - - /** - * Get the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger version - * 2020-05-01 or later. - * - * @return the kerberosEnabled value. - */ - public Boolean kerberosEnabled() { - return this.kerberosEnabled; - } - - /** - * Set the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger version - * 2020-05-01 or later. - * - * @param kerberosEnabled the kerberosEnabled value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withKerberosEnabled(Boolean kerberosEnabled) { - this.kerberosEnabled = kerberosEnabled; - return this; - } - - /** - * Get the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol or - * CIFS protocol. - * - * @return the securityStyle value. - */ - public SecurityStyle securityStyle() { - return this.securityStyle; - } - - /** - * Set the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol or - * CIFS protocol. - * - * @param securityStyle the securityStyle value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withSecurityStyle(SecurityStyle securityStyle) { - this.securityStyle = securityStyle; - return this; - } - - /** - * Get the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol - * volume. To be used with swagger version 2020-08-01 or later. - * - * @return the smbEncryption value. - */ - public Boolean smbEncryption() { - return this.smbEncryption; - } - - /** - * Set the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol - * volume. To be used with swagger version 2020-08-01 or later. - * - * @param smbEncryption the smbEncryption value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withSmbEncryption(Boolean smbEncryption) { - this.smbEncryption = smbEncryption; - return this; - } - - /** - * Get the smbContinuouslyAvailable property: Enables continuously available share property for smb volume. Only - * applicable for SMB volume. - * - * @return the smbContinuouslyAvailable value. - */ - public Boolean smbContinuouslyAvailable() { - return this.smbContinuouslyAvailable; - } - - /** - * Set the smbContinuouslyAvailable property: Enables continuously available share property for smb volume. Only - * applicable for SMB volume. - * - * @param smbContinuouslyAvailable the smbContinuouslyAvailable value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withSmbContinuouslyAvailable(Boolean smbContinuouslyAvailable) { - this.smbContinuouslyAvailable = smbContinuouslyAvailable; - return this; - } - - /** - * Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. - * - * @return the throughputMibps value. - */ - public Float throughputMibps() { - return this.throughputMibps; - } - - /** - * Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume. - * - * @param throughputMibps the throughputMibps value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withThroughputMibps(Float throughputMibps) { - this.throughputMibps = throughputMibps; - return this; - } - - /** - * Get the encryptionKeySource property: Encryption Key Source. Possible values are: 'Microsoft.NetApp'. - * - * @return the encryptionKeySource value. - */ - public String encryptionKeySource() { - return this.encryptionKeySource; - } - - /** - * Set the encryptionKeySource property: Encryption Key Source. Possible values are: 'Microsoft.NetApp'. - * - * @param encryptionKeySource the encryptionKeySource value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withEncryptionKeySource(String encryptionKeySource) { - this.encryptionKeySource = encryptionKeySource; - return this; - } - - /** - * Get the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume. - * - * @return the ldapEnabled value. - */ - public Boolean ldapEnabled() { - return this.ldapEnabled; - } - - /** - * Set the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume. - * - * @param ldapEnabled the ldapEnabled value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withLdapEnabled(Boolean ldapEnabled) { - this.ldapEnabled = ldapEnabled; - return this; - } - - /** - * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * - * @return the coolAccess value. - */ - public Boolean coolAccess() { - return this.coolAccess; - } - - /** - * Set the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * - * @param coolAccess the coolAccess value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withCoolAccess(Boolean coolAccess) { - this.coolAccess = coolAccess; - return this; - } - - /** - * Get the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients - * will be tiered. - * - * @return the coolnessPeriod value. - */ - public Integer coolnessPeriod() { - return this.coolnessPeriod; - } - - /** - * Set the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients - * will be tiered. - * - * @param coolnessPeriod the coolnessPeriod value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withCoolnessPeriod(Integer coolnessPeriod) { - this.coolnessPeriod = coolnessPeriod; - return this; - } - - /** - * Get the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit - * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the - * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same - * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. - * - * @return the unixPermissions value. - */ - public String unixPermissions() { - return this.unixPermissions; - } - - /** - * Set the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit - * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the - * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same - * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. - * - * @param unixPermissions the unixPermissions value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withUnixPermissions(String unixPermissions) { - this.unixPermissions = 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 VolumeProperties object itself. - */ - public VolumeProperties 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 VolumeProperties object itself. - */ - public VolumeProperties 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 VolumeProperties object itself. - */ - public VolumeProperties 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 VolumeProperties object itself. - */ - public VolumeProperties withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { - this.defaultGroupQuotaInKiBs = defaultGroupQuotaInKiBs; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (creationToken() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException("Missing required property creationToken in model VolumeProperties")); - } - if (exportPolicy() != null) { - exportPolicy().validate(); - } - if (subnetId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException("Missing required property subnetId in model VolumeProperties")); - } - if (mountTargets() != null) { - mountTargets().forEach(e -> e.validate()); - } - if (dataProtection() != null) { - dataProtection().validate(); - } - } -} 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 401037bee94e..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 @@ -48,10 +48,6 @@ public String etag() { return this.innerModel().etag(); } - public String namePropertiesName() { - return this.innerModel().namePropertiesName(); - } - public String backupPolicyId() { return this.innerModel().backupPolicyId(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java index 7b1a3fef23e4..182e0140a833 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 @@ -26,6 +26,7 @@ import com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient; import com.azure.resourcemanager.netapp.fluent.BackupsClient; import com.azure.resourcemanager.netapp.fluent.NetAppManagementClient; +import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; import com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient; import com.azure.resourcemanager.netapp.fluent.OperationsClient; import com.azure.resourcemanager.netapp.fluent.PoolsClient; @@ -148,6 +149,18 @@ public NetAppResourcesClient getNetAppResources() { return this.netAppResources; } + /** The NetAppResourceQuotaLimitsClient object to access its operations. */ + private final NetAppResourceQuotaLimitsClient netAppResourceQuotaLimits; + + /** + * Gets the NetAppResourceQuotaLimitsClient object to access its operations. + * + * @return the NetAppResourceQuotaLimitsClient object. + */ + public NetAppResourceQuotaLimitsClient getNetAppResourceQuotaLimits() { + return this.netAppResourceQuotaLimits; + } + /** The AccountsClient object to access its operations. */ private final AccountsClient accounts; @@ -282,6 +295,7 @@ public VaultsClient getVaults() { this.apiVersion = "2021-06-01"; this.operations = new OperationsClientImpl(this); this.netAppResources = new NetAppResourcesClientImpl(this); + this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this); this.accounts = new AccountsClientImpl(this); this.pools = new PoolsClientImpl(this); this.volumes = new VolumesClientImpl(this); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java new file mode 100644 index 000000000000..3382e3b72693 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java @@ -0,0 +1,383 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; +import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItemList; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsClient. */ +public final class NetAppResourceQuotaLimitsClientImpl implements NetAppResourceQuotaLimitsClient { + private final ClientLogger logger = new ClientLogger(NetAppResourceQuotaLimitsClientImpl.class); + + /** The proxy service used to perform REST calls. */ + private final NetAppResourceQuotaLimitsService service; + + /** The service client containing this operation class. */ + private final NetAppManagementClientImpl client; + + /** + * Initializes an instance of NetAppResourceQuotaLimitsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + NetAppResourceQuotaLimitsClientImpl(NetAppManagementClientImpl client) { + this.service = + RestProxy + .create( + NetAppResourceQuotaLimitsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for NetAppManagementClientNetAppResourceQuotaLimits to be used by the + * proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "NetAppManagementClie") + private interface NetAppResourceQuotaLimitsService { + @Headers({"Content-Type: application/json"}) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits" + + "/{quotaLimitName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, + @PathParam("quotaLimitName") String quotaLimitName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Get the default and current limits for quotas. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current limits for quotas. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .list( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + location, + this.client.getApiVersion(), + accept, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the default and current limits for quotas. + * + * @param location The location. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current limits for quotas. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location 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(), + location, + this.client.getApiVersion(), + accept, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + } + + /** + * Get the default and current limits for quotas. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current limits for quotas. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String location) { + return new PagedFlux<>(() -> listSinglePageAsync(location)); + } + + /** + * Get the default and current limits for quotas. + * + * @param location The location. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current limits for quotas. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String location, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(location, context)); + } + + /** + * Get the default and current limits for quotas. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current limits for quotas. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location) { + return new PagedIterable<>(listAsync(location)); + } + + /** + * Get the default and current limits for quotas. + * + * @param location The location. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current limits for quotas. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location, Context context) { + return new PagedIterable<>(listAsync(location, context)); + } + + /** + * Get the default and current subscription quota limit. + * + * @param location The location. + * @param quotaLimitName The name of the Quota Limit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current subscription quota limit. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String location, String quotaLimitName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (quotaLimitName == null) { + return Mono.error(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .get( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + location, + quotaLimitName, + this.client.getApiVersion(), + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the default and current subscription quota limit. + * + * @param location The location. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current subscription quota limit. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync( + String location, String quotaLimitName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (quotaLimitName == null) { + return Mono.error(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .get( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + location, + quotaLimitName, + this.client.getApiVersion(), + accept, + context); + } + + /** + * Get the default and current subscription quota limit. + * + * @param location The location. + * @param quotaLimitName The name of the Quota Limit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current subscription quota limit. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String location, String quotaLimitName) { + return getWithResponseAsync(location, quotaLimitName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Get the default and current subscription quota limit. + * + * @param location The location. + * @param quotaLimitName The name of the Quota Limit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current subscription quota limit. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SubscriptionQuotaItemInner get(String location, String quotaLimitName) { + return getAsync(location, quotaLimitName).block(); + } + + /** + * Get the default and current subscription quota limit. + * + * @param location The location. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current subscription quota limit. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse( + String location, String quotaLimitName, Context context) { + return getWithResponseAsync(location, quotaLimitName, context).block(); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java new file mode 100644 index 000000000000..4ad68db430cb --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; +import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits; +import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; +import com.fasterxml.jackson.annotation.JsonIgnore; + +public final class NetAppResourceQuotaLimitsImpl implements NetAppResourceQuotaLimits { + @JsonIgnore private final ClientLogger logger = new ClientLogger(NetAppResourceQuotaLimitsImpl.class); + + private final NetAppResourceQuotaLimitsClient innerClient; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + public NetAppResourceQuotaLimitsImpl( + NetAppResourceQuotaLimitsClient innerClient, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String location) { + PagedIterable inner = this.serviceClient().list(location); + return Utils.mapPage(inner, inner1 -> new SubscriptionQuotaItemImpl(inner1, this.manager())); + } + + public PagedIterable list(String location, Context context) { + PagedIterable inner = this.serviceClient().list(location, context); + return Utils.mapPage(inner, inner1 -> new SubscriptionQuotaItemImpl(inner1, this.manager())); + } + + public SubscriptionQuotaItem get(String location, String quotaLimitName) { + SubscriptionQuotaItemInner inner = this.serviceClient().get(location, quotaLimitName); + if (inner != null) { + return new SubscriptionQuotaItemImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getWithResponse(String location, String quotaLimitName, Context context) { + Response inner = + this.serviceClient().getWithResponse(location, quotaLimitName, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new SubscriptionQuotaItemImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + private NetAppResourceQuotaLimitsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java new file mode 100644 index 000000000000..819270bfa065 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; +import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; + +public final class SubscriptionQuotaItemImpl implements SubscriptionQuotaItem { + private SubscriptionQuotaItemInner innerObject; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + SubscriptionQuotaItemImpl( + SubscriptionQuotaItemInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String namePropertiesName() { + return this.innerModel().namePropertiesName(); + } + + public Integer current() { + return this.innerModel().current(); + } + + public Integer defaultProperty() { + return this.innerModel().defaultProperty(); + } + + public SubscriptionQuotaItemInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java index 5f25557a64c6..65356b3a55f1 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 @@ -6,11 +6,12 @@ import com.azure.core.management.Region; import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; import com.azure.resourcemanager.netapp.models.AuthorizeRequest; import com.azure.resourcemanager.netapp.models.AvsDataStore; import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; +import com.azure.resourcemanager.netapp.models.MountTargetProperties; +import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.PoolChangeRequest; import com.azure.resourcemanager.netapp.models.SecurityStyle; import com.azure.resourcemanager.netapp.models.ServiceLevel; @@ -21,6 +22,7 @@ import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; import com.azure.resourcemanager.netapp.models.VolumeRevert; +import com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity; import java.util.Collections; import java.util.List; import java.util.Map; @@ -108,6 +110,18 @@ public String subnetId() { return this.innerModel().subnetId(); } + public NetworkFeatures networkFeatures() { + return this.innerModel().networkFeatures(); + } + + public String networkSiblingSetId() { + return this.innerModel().networkSiblingSetId(); + } + + public VolumeStorageToNetworkProximity storageToNetworkProximity() { + return this.innerModel().storageToNetworkProximity(); + } + public List mountTargets() { List inner = this.innerModel().mountTargets(); if (inner != null) { @@ -429,6 +443,11 @@ public VolumeImpl withBackupId(String backupId) { return this; } + public VolumeImpl withNetworkFeatures(NetworkFeatures networkFeatures) { + this.innerModel().withNetworkFeatures(networkFeatures); + return this; + } + public VolumeImpl withVolumeType(String volumeType) { this.innerModel().withVolumeType(volumeType); return this; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java index aae1d00b4388..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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.models.BackupProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -14,8 +14,9 @@ import java.util.Map; /** Backup patch. */ +@JsonFlatten @Fluent -public final class BackupPatch { +public class BackupPatch { @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPatch.class); /* @@ -26,10 +27,59 @@ public final class BackupPatch { private Map tags; /* - * Backup Properties + * backupId UUID v4 used to identify the Backup */ - @JsonProperty(value = "properties") - private BackupProperties innerProperties; + @JsonProperty(value = "properties.backupId", access = JsonProperty.Access.WRITE_ONLY) + private String backupId; + + /* + * name The creation date of the backup + */ + @JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime creationDate; + + /* + * Azure lifecycle management + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /* + * Size of backup + */ + @JsonProperty(value = "properties.size", access = JsonProperty.Access.WRITE_ONLY) + private Long size; + + /* + * Label for backup + */ + @JsonProperty(value = "properties.label") + private String label; + + /* + * backupType Type of backup Manual or Scheduled + */ + @JsonProperty(value = "properties.backupType", access = JsonProperty.Access.WRITE_ONLY) + private BackupType backupType; + + /* + * Failure reason + */ + @JsonProperty(value = "properties.failureReason", access = JsonProperty.Access.WRITE_ONLY) + private String failureReason; + + /* + * Volume name + */ + @JsonProperty(value = "properties.volumeName", access = JsonProperty.Access.WRITE_ONLY) + private String volumeName; + + /* + * Manual backup an already existing snapshot. This will always be false + * for scheduled backups and true/false for manual backups + */ + @JsonProperty(value = "properties.useExistingSnapshot") + private Boolean useExistingSnapshot; /** * Get the tags property: Resource tags. @@ -51,22 +101,13 @@ public BackupPatch withTags(Map tags) { return this; } - /** - * Get the innerProperties property: Backup Properties. - * - * @return the innerProperties value. - */ - private BackupProperties innerProperties() { - return this.innerProperties; - } - /** * Get the backupId property: backupId UUID v4 used to identify the Backup. * * @return the backupId value. */ public String backupId() { - return this.innerProperties() == null ? null : this.innerProperties().backupId(); + return this.backupId; } /** @@ -75,7 +116,7 @@ public String backupId() { * @return the creationDate value. */ public OffsetDateTime creationDate() { - return this.innerProperties() == null ? null : this.innerProperties().creationDate(); + return this.creationDate; } /** @@ -84,7 +125,7 @@ public OffsetDateTime creationDate() { * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; } /** @@ -93,7 +134,7 @@ public String provisioningState() { * @return the size value. */ public Long size() { - return this.innerProperties() == null ? null : this.innerProperties().size(); + return this.size; } /** @@ -102,7 +143,7 @@ public Long size() { * @return the label value. */ public String label() { - return this.innerProperties() == null ? null : this.innerProperties().label(); + return this.label; } /** @@ -112,10 +153,7 @@ public String label() { * @return the BackupPatch object itself. */ public BackupPatch withLabel(String label) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupProperties(); - } - this.innerProperties().withLabel(label); + this.label = label; return this; } @@ -125,7 +163,7 @@ public BackupPatch withLabel(String label) { * @return the backupType value. */ public BackupType backupType() { - return this.innerProperties() == null ? null : this.innerProperties().backupType(); + return this.backupType; } /** @@ -134,7 +172,7 @@ public BackupType backupType() { * @return the failureReason value. */ public String failureReason() { - return this.innerProperties() == null ? null : this.innerProperties().failureReason(); + return this.failureReason; } /** @@ -143,7 +181,7 @@ public String failureReason() { * @return the volumeName value. */ public String volumeName() { - return this.innerProperties() == null ? null : this.innerProperties().volumeName(); + return this.volumeName; } /** @@ -153,7 +191,7 @@ public String volumeName() { * @return the useExistingSnapshot value. */ public Boolean useExistingSnapshot() { - return this.innerProperties() == null ? null : this.innerProperties().useExistingSnapshot(); + return this.useExistingSnapshot; } /** @@ -164,10 +202,7 @@ public Boolean useExistingSnapshot() { * @return the BackupPatch object itself. */ public BackupPatch withUseExistingSnapshot(Boolean useExistingSnapshot) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupProperties(); - } - this.innerProperties().withUseExistingSnapshot(useExistingSnapshot); + this.useExistingSnapshot = useExistingSnapshot; return this; } @@ -177,8 +212,5 @@ public BackupPatch withUseExistingSnapshot(Boolean useExistingSnapshot) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java index 4551c1d26b4c..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 @@ -54,13 +54,6 @@ public interface BackupPolicy { */ String etag(); - /** - * Gets the namePropertiesName property: Name of backup policy. - * - * @return the namePropertiesName value. - */ - String namePropertiesName(); - /** * Gets the backupPolicyId property: Backup Policy Resource ID. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java index 9f36dbed297b..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 @@ -5,56 +5,67 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; /** Backup policy Details for create and update. */ +@JsonFlatten @Fluent -public final class BackupPolicyPatch extends Resource { +public class BackupPolicyPatch extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyPatch.class); /* - * Backup policy Properties + * Backup Policy Resource ID */ - @JsonProperty(value = "properties") - private BackupPolicyProperties innerProperties; + @JsonProperty(value = "properties.backupPolicyId", access = JsonProperty.Access.WRITE_ONLY) + private String backupPolicyId; - /** - * Get the innerProperties property: Backup policy Properties. - * - * @return the innerProperties value. + /* + * Azure lifecycle management */ - private BackupPolicyProperties innerProperties() { - return this.innerProperties; - } + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; - /** {@inheritDoc} */ - @Override - public BackupPolicyPatch withLocation(String location) { - super.withLocation(location); - return this; - } + /* + * Daily backups count to keep + */ + @JsonProperty(value = "properties.dailyBackupsToKeep") + private Integer dailyBackupsToKeep; - /** {@inheritDoc} */ - @Override - public BackupPolicyPatch withTags(Map tags) { - super.withTags(tags); - return this; - } + /* + * Weekly backups count to keep + */ + @JsonProperty(value = "properties.weeklyBackupsToKeep") + private Integer weeklyBackupsToKeep; - /** - * Get the name property: Name of backup policy. - * - * @return the name value. + /* + * Monthly backups count to keep */ - public String namePropertiesName() { - return this.innerProperties() == null ? null : this.innerProperties().name(); - } + @JsonProperty(value = "properties.monthlyBackupsToKeep") + private Integer monthlyBackupsToKeep; + + /* + * Volumes using current backup policy + */ + @JsonProperty(value = "properties.volumesAssigned", access = JsonProperty.Access.WRITE_ONLY) + private Integer volumesAssigned; + + /* + * The property to decide policy is enabled or not + */ + @JsonProperty(value = "properties.enabled") + private Boolean enabled; + + /* + * A list of volumes assigned to this policy + */ + @JsonProperty(value = "properties.volumeBackups", access = JsonProperty.Access.WRITE_ONLY) + private List volumeBackups; /** * Get the backupPolicyId property: Backup Policy Resource ID. @@ -62,7 +73,7 @@ public String namePropertiesName() { * @return the backupPolicyId value. */ public String backupPolicyId() { - return this.innerProperties() == null ? null : this.innerProperties().backupPolicyId(); + return this.backupPolicyId; } /** @@ -71,7 +82,7 @@ public String backupPolicyId() { * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; } /** @@ -80,7 +91,7 @@ public String provisioningState() { * @return the dailyBackupsToKeep value. */ public Integer dailyBackupsToKeep() { - return this.innerProperties() == null ? null : this.innerProperties().dailyBackupsToKeep(); + return this.dailyBackupsToKeep; } /** @@ -90,10 +101,7 @@ public Integer dailyBackupsToKeep() { * @return the BackupPolicyPatch object itself. */ public BackupPolicyPatch withDailyBackupsToKeep(Integer dailyBackupsToKeep) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupPolicyProperties(); - } - this.innerProperties().withDailyBackupsToKeep(dailyBackupsToKeep); + this.dailyBackupsToKeep = dailyBackupsToKeep; return this; } @@ -103,7 +111,7 @@ public BackupPolicyPatch withDailyBackupsToKeep(Integer dailyBackupsToKeep) { * @return the weeklyBackupsToKeep value. */ public Integer weeklyBackupsToKeep() { - return this.innerProperties() == null ? null : this.innerProperties().weeklyBackupsToKeep(); + return this.weeklyBackupsToKeep; } /** @@ -113,10 +121,7 @@ public Integer weeklyBackupsToKeep() { * @return the BackupPolicyPatch object itself. */ public BackupPolicyPatch withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupPolicyProperties(); - } - this.innerProperties().withWeeklyBackupsToKeep(weeklyBackupsToKeep); + this.weeklyBackupsToKeep = weeklyBackupsToKeep; return this; } @@ -126,7 +131,7 @@ public BackupPolicyPatch withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep) { * @return the monthlyBackupsToKeep value. */ public Integer monthlyBackupsToKeep() { - return this.innerProperties() == null ? null : this.innerProperties().monthlyBackupsToKeep(); + return this.monthlyBackupsToKeep; } /** @@ -136,10 +141,7 @@ public Integer monthlyBackupsToKeep() { * @return the BackupPolicyPatch object itself. */ public BackupPolicyPatch withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupPolicyProperties(); - } - this.innerProperties().withMonthlyBackupsToKeep(monthlyBackupsToKeep); + this.monthlyBackupsToKeep = monthlyBackupsToKeep; return this; } @@ -149,7 +151,7 @@ public BackupPolicyPatch withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) * @return the volumesAssigned value. */ public Integer volumesAssigned() { - return this.innerProperties() == null ? null : this.innerProperties().volumesAssigned(); + return this.volumesAssigned; } /** @@ -158,7 +160,7 @@ public Integer volumesAssigned() { * @return the enabled value. */ public Boolean enabled() { - return this.innerProperties() == null ? null : this.innerProperties().enabled(); + return this.enabled; } /** @@ -168,10 +170,7 @@ public Boolean enabled() { * @return the BackupPolicyPatch object itself. */ public BackupPolicyPatch withEnabled(Boolean enabled) { - if (this.innerProperties() == null) { - this.innerProperties = new BackupPolicyProperties(); - } - this.innerProperties().withEnabled(enabled); + this.enabled = enabled; return this; } @@ -181,7 +180,21 @@ public BackupPolicyPatch withEnabled(Boolean enabled) { * @return the volumeBackups value. */ public List volumeBackups() { - return this.innerProperties() == null ? null : this.innerProperties().volumeBackups(); + return this.volumeBackups; + } + + /** {@inheritDoc} */ + @Override + public BackupPolicyPatch withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public BackupPolicyPatch withTags(Map tags) { + super.withTags(tags); + return this; } /** @@ -190,8 +203,8 @@ public List volumeBackups() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); + if (volumeBackups() != null) { + volumeBackups().forEach(e -> e.validate()); } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java index be1642f10838..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 @@ -5,46 +5,31 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Capacity pool patch resource. */ +@JsonFlatten @Fluent -public final class CapacityPoolPatch extends Resource { +public class CapacityPoolPatch extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityPoolPatch.class); /* - * Capacity pool properties + * size Provisioned size of the pool (in bytes). Allowed values are in 4TiB + * chunks (value must be multiply of 4398046511104). */ - @JsonProperty(value = "properties") - private PoolPatchProperties innerProperties; + @JsonProperty(value = "properties.size") + private Long size; - /** - * Get the innerProperties property: Capacity pool properties. - * - * @return the innerProperties value. + /* + * The qos type of the pool */ - private PoolPatchProperties innerProperties() { - return this.innerProperties; - } - - /** {@inheritDoc} */ - @Override - public CapacityPoolPatch withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public CapacityPoolPatch withTags(Map tags) { - super.withTags(tags); - return this; - } + @JsonProperty(value = "properties.qosType") + private QosType qosType; /** * Get the size property: size Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value @@ -53,7 +38,7 @@ public CapacityPoolPatch withTags(Map tags) { * @return the size value. */ public Long size() { - return this.innerProperties() == null ? null : this.innerProperties().size(); + return this.size; } /** @@ -64,10 +49,7 @@ public Long size() { * @return the CapacityPoolPatch object itself. */ public CapacityPoolPatch withSize(Long size) { - if (this.innerProperties() == null) { - this.innerProperties = new PoolPatchProperties(); - } - this.innerProperties().withSize(size); + this.size = size; return this; } @@ -77,7 +59,7 @@ public CapacityPoolPatch withSize(Long size) { * @return the qosType value. */ public QosType qosType() { - return this.innerProperties() == null ? null : this.innerProperties().qosType(); + return this.qosType; } /** @@ -87,10 +69,21 @@ public QosType qosType() { * @return the CapacityPoolPatch object itself. */ public CapacityPoolPatch withQosType(QosType qosType) { - if (this.innerProperties() == null) { - this.innerProperties = new PoolPatchProperties(); - } - this.innerProperties().withQosType(qosType); + this.qosType = qosType; + return this; + } + + /** {@inheritDoc} */ + @Override + public CapacityPoolPatch withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public CapacityPoolPatch withTags(Map tags) { + super.withTags(tags); return this; } @@ -100,8 +93,5 @@ public CapacityPoolPatch withQosType(QosType qosType) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java new file mode 100644 index 000000000000..81b024e82758 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Log Definition of a single resource metric. */ +@Fluent +public final class LogSpecification { + @JsonIgnore private final ClientLogger logger = new ClientLogger(LogSpecification.class); + + /* + * The name property. + */ + @JsonProperty(value = "name") + private String name; + + /* + * The displayName property. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /** + * Get the name property: The name property. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name property. + * + * @param name the name value to set. + * @return the LogSpecification object itself. + */ + public LogSpecification withName(String name) { + this.name = name; + return this; + } + + /** + * Get the displayName property: The displayName property. + * + * @return the displayName value. + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the displayName property: The displayName property. + * + * @param displayName the displayName value to set. + * @return the LogSpecification object itself. + */ + public LogSpecification withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java index a47147965f91..b5c8f8550774 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 @@ -57,6 +57,12 @@ public final class MetricSpecification { @JsonProperty(value = "internalMetricName") private String internalMetricName; + /* + * Whether or not the service is using regional MDM accounts. + */ + @JsonProperty(value = "enableRegionalMdmAccount") + private Boolean enableRegionalMdmAccount; + /* * The source MDM account. */ @@ -99,6 +105,12 @@ public final class MetricSpecification { @JsonProperty(value = "resourceIdDimensionNameOverride") private String resourceIdDimensionNameOverride; + /* + * Whether the metric is internal. + */ + @JsonProperty(value = "isInternal") + private Boolean isInternal; + /** * Get the name property: Name of metric specification. * @@ -239,6 +251,26 @@ public MetricSpecification withInternalMetricName(String internalMetricName) { return this; } + /** + * Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts. + * + * @return the enableRegionalMdmAccount value. + */ + public Boolean enableRegionalMdmAccount() { + return this.enableRegionalMdmAccount; + } + + /** + * Set the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts. + * + * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount) { + this.enableRegionalMdmAccount = enableRegionalMdmAccount; + return this; + } + /** * Get the sourceMdmAccount property: The source MDM account. * @@ -379,6 +411,26 @@ public MetricSpecification withResourceIdDimensionNameOverride(String resourceId return this; } + /** + * Get the isInternal property: Whether the metric is internal. + * + * @return the isInternal value. + */ + public Boolean isInternal() { + return this.isInternal; + } + + /** + * Set the isInternal property: Whether the metric is internal. + * + * @param isInternal the isInternal value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withIsInternal(Boolean isInternal) { + this.isInternal = isInternal; + return this; + } + /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java similarity index 98% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java index e1f9505a0212..89860c215177 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.resourcemanager.netapp.fluent.models; +package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java index ca02631d05a9..2896e007f870 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java @@ -5,47 +5,37 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.models.AccountProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; /** NetApp account patch resource. */ +@JsonFlatten @Fluent -public final class NetAppAccountPatch extends Resource { +public class NetAppAccountPatch extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(NetAppAccountPatch.class); /* - * NetApp Account properties + * Azure lifecycle management */ - @JsonProperty(value = "properties") - private AccountProperties innerProperties; + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; - /** - * Get the innerProperties property: NetApp Account properties. - * - * @return the innerProperties value. + /* + * Active Directories */ - private AccountProperties innerProperties() { - return this.innerProperties; - } - - /** {@inheritDoc} */ - @Override - public NetAppAccountPatch withLocation(String location) { - super.withLocation(location); - return this; - } + @JsonProperty(value = "properties.activeDirectories") + private List activeDirectories; - /** {@inheritDoc} */ - @Override - public NetAppAccountPatch withTags(Map tags) { - super.withTags(tags); - return this; - } + /* + * Encryption settings + */ + @JsonProperty(value = "properties.encryption") + private AccountEncryption encryption; /** * Get the provisioningState property: Azure lifecycle management. @@ -53,7 +43,7 @@ public NetAppAccountPatch withTags(Map tags) { * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; } /** @@ -62,7 +52,7 @@ public String provisioningState() { * @return the activeDirectories value. */ public List activeDirectories() { - return this.innerProperties() == null ? null : this.innerProperties().activeDirectories(); + return this.activeDirectories; } /** @@ -72,10 +62,7 @@ public List activeDirectories() { * @return the NetAppAccountPatch object itself. */ public NetAppAccountPatch withActiveDirectories(List activeDirectories) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountProperties(); - } - this.innerProperties().withActiveDirectories(activeDirectories); + this.activeDirectories = activeDirectories; return this; } @@ -85,7 +72,7 @@ public NetAppAccountPatch withActiveDirectories(List activeDire * @return the encryption value. */ public AccountEncryption encryption() { - return this.innerProperties() == null ? null : this.innerProperties().encryption(); + return this.encryption; } /** @@ -95,10 +82,21 @@ public AccountEncryption encryption() { * @return the NetAppAccountPatch object itself. */ public NetAppAccountPatch withEncryption(AccountEncryption encryption) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountProperties(); - } - this.innerProperties().withEncryption(encryption); + this.encryption = encryption; + return this; + } + + /** {@inheritDoc} */ + @Override + public NetAppAccountPatch withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public NetAppAccountPatch withTags(Map tags) { + super.withTags(tags); return this; } @@ -108,8 +106,11 @@ public NetAppAccountPatch withEncryption(AccountEncryption encryption) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); + if (activeDirectories() != null) { + activeDirectories().forEach(e -> e.validate()); + } + if (encryption() != null) { + encryption().validate(); } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java new file mode 100644 index 000000000000..37fc6b6f1492 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** Resource collection API of NetAppResourceQuotaLimits. */ +public interface NetAppResourceQuotaLimits { + /** + * Get the default and current limits for quotas. + * + * @param location The location. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current limits for quotas. + */ + PagedIterable list(String location); + + /** + * Get the default and current limits for quotas. + * + * @param location The location. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current limits for quotas. + */ + PagedIterable list(String location, Context context); + + /** + * Get the default and current subscription quota limit. + * + * @param location The location. + * @param quotaLimitName The name of the Quota Limit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current subscription quota limit. + */ + SubscriptionQuotaItem get(String location, String quotaLimitName); + + /** + * Get the default and current subscription quota limit. + * + * @param location The location. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current subscription quota limit. + */ + Response getWithResponse(String location, String quotaLimitName, Context context); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java new file mode 100644 index 000000000000..51ee84538d37 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.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 NetworkFeatures. */ +public final class NetworkFeatures extends ExpandableStringEnum { + /** Static value Basic for NetworkFeatures. */ + public static final NetworkFeatures BASIC = fromString("Basic"); + + /** Static value Standard for NetworkFeatures. */ + public static final NetworkFeatures STANDARD = fromString("Standard"); + + /** + * Creates or finds a NetworkFeatures from its string representation. + * + * @param name a name to look for. + * @return the corresponding NetworkFeatures. + */ + @JsonCreator + public static NetworkFeatures fromString(String name) { + return fromString(name, NetworkFeatures.class); + } + + /** @return known NetworkFeatures values. */ + public static Collection values() { + return values(NetworkFeatures.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java index 35b10b339af3..ae79fab80acf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java @@ -30,7 +30,7 @@ public final class ReplicationObject { /* * Schedule */ - @JsonProperty(value = "replicationSchedule", required = true) + @JsonProperty(value = "replicationSchedule") private ReplicationSchedule replicationSchedule; /* @@ -153,12 +153,6 @@ public ReplicationObject withRemoteVolumeRegion(String remoteVolumeRegion) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (replicationSchedule() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property replicationSchedule in model ReplicationObject")); - } if (remoteVolumeResourceId() == null) { throw logger .logExceptionAsError( diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java index 912e494da4bd..368ab9b943a0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java @@ -21,6 +21,12 @@ public final class ServiceSpecification { @JsonProperty(value = "metricSpecifications") private List metricSpecifications; + /* + * The logSpecifications property. + */ + @JsonProperty(value = "logSpecifications") + private List logSpecifications; + /** * Get the metricSpecifications property: Metric specifications of operation. * @@ -41,6 +47,26 @@ public ServiceSpecification withMetricSpecifications(List m return this; } + /** + * Get the logSpecifications property: The logSpecifications property. + * + * @return the logSpecifications value. + */ + public List logSpecifications() { + return this.logSpecifications; + } + + /** + * Set the logSpecifications property: The logSpecifications property. + * + * @param logSpecifications the logSpecifications value to set. + * @return the ServiceSpecification object itself. + */ + public ServiceSpecification withLogSpecifications(List logSpecifications) { + this.logSpecifications = logSpecifications; + return this; + } + /** * Validates the instance. * @@ -50,5 +76,8 @@ public void validate() { if (metricSpecifications() != null) { metricSpecifications().forEach(e -> e.validate()); } + if (logSpecifications() != null) { + logSpecifications().forEach(e -> e.validate()); + } } } 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 e090fcf80038..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 @@ -5,16 +5,17 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Snapshot policy Details for create and update. */ +@JsonFlatten @Fluent -public final class SnapshotPolicyPatch { +public class SnapshotPolicyPatch { @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPolicyPatch.class); /* @@ -49,10 +50,40 @@ public final class SnapshotPolicyPatch { private Map tags; /* - * Snapshot Policy properties + * Schedule for hourly snapshots */ - @JsonProperty(value = "properties") - private SnapshotPolicyProperties innerProperties; + @JsonProperty(value = "properties.hourlySchedule") + private HourlySchedule hourlySchedule; + + /* + * Schedule for daily snapshots + */ + @JsonProperty(value = "properties.dailySchedule") + private DailySchedule dailySchedule; + + /* + * Schedule for weekly snapshots + */ + @JsonProperty(value = "properties.weeklySchedule") + private WeeklySchedule weeklySchedule; + + /* + * Schedule for monthly snapshots + */ + @JsonProperty(value = "properties.monthlySchedule") + private MonthlySchedule monthlySchedule; + + /* + * The property to decide policy is enabled or not + */ + @JsonProperty(value = "properties.enabled") + private Boolean enabled; + + /* + * Azure lifecycle management + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; /** * Get the location property: Resource location. @@ -121,22 +152,13 @@ public SnapshotPolicyPatch withTags(Map tags) { return this; } - /** - * Get the innerProperties property: Snapshot Policy properties. - * - * @return the innerProperties value. - */ - private SnapshotPolicyProperties innerProperties() { - return this.innerProperties; - } - /** * Get the hourlySchedule property: Schedule for hourly snapshots. * * @return the hourlySchedule value. */ public HourlySchedule hourlySchedule() { - return this.innerProperties() == null ? null : this.innerProperties().hourlySchedule(); + return this.hourlySchedule; } /** @@ -146,10 +168,7 @@ public HourlySchedule hourlySchedule() { * @return the SnapshotPolicyPatch object itself. */ public SnapshotPolicyPatch withHourlySchedule(HourlySchedule hourlySchedule) { - if (this.innerProperties() == null) { - this.innerProperties = new SnapshotPolicyProperties(); - } - this.innerProperties().withHourlySchedule(hourlySchedule); + this.hourlySchedule = hourlySchedule; return this; } @@ -159,7 +178,7 @@ public SnapshotPolicyPatch withHourlySchedule(HourlySchedule hourlySchedule) { * @return the dailySchedule value. */ public DailySchedule dailySchedule() { - return this.innerProperties() == null ? null : this.innerProperties().dailySchedule(); + return this.dailySchedule; } /** @@ -169,10 +188,7 @@ public DailySchedule dailySchedule() { * @return the SnapshotPolicyPatch object itself. */ public SnapshotPolicyPatch withDailySchedule(DailySchedule dailySchedule) { - if (this.innerProperties() == null) { - this.innerProperties = new SnapshotPolicyProperties(); - } - this.innerProperties().withDailySchedule(dailySchedule); + this.dailySchedule = dailySchedule; return this; } @@ -182,7 +198,7 @@ public SnapshotPolicyPatch withDailySchedule(DailySchedule dailySchedule) { * @return the weeklySchedule value. */ public WeeklySchedule weeklySchedule() { - return this.innerProperties() == null ? null : this.innerProperties().weeklySchedule(); + return this.weeklySchedule; } /** @@ -192,10 +208,7 @@ public WeeklySchedule weeklySchedule() { * @return the SnapshotPolicyPatch object itself. */ public SnapshotPolicyPatch withWeeklySchedule(WeeklySchedule weeklySchedule) { - if (this.innerProperties() == null) { - this.innerProperties = new SnapshotPolicyProperties(); - } - this.innerProperties().withWeeklySchedule(weeklySchedule); + this.weeklySchedule = weeklySchedule; return this; } @@ -205,7 +218,7 @@ public SnapshotPolicyPatch withWeeklySchedule(WeeklySchedule weeklySchedule) { * @return the monthlySchedule value. */ public MonthlySchedule monthlySchedule() { - return this.innerProperties() == null ? null : this.innerProperties().monthlySchedule(); + return this.monthlySchedule; } /** @@ -215,10 +228,7 @@ public MonthlySchedule monthlySchedule() { * @return the SnapshotPolicyPatch object itself. */ public SnapshotPolicyPatch withMonthlySchedule(MonthlySchedule monthlySchedule) { - if (this.innerProperties() == null) { - this.innerProperties = new SnapshotPolicyProperties(); - } - this.innerProperties().withMonthlySchedule(monthlySchedule); + this.monthlySchedule = monthlySchedule; return this; } @@ -228,7 +238,7 @@ public SnapshotPolicyPatch withMonthlySchedule(MonthlySchedule monthlySchedule) * @return the enabled value. */ public Boolean enabled() { - return this.innerProperties() == null ? null : this.innerProperties().enabled(); + return this.enabled; } /** @@ -238,10 +248,7 @@ public Boolean enabled() { * @return the SnapshotPolicyPatch object itself. */ public SnapshotPolicyPatch withEnabled(Boolean enabled) { - if (this.innerProperties() == null) { - this.innerProperties = new SnapshotPolicyProperties(); - } - this.innerProperties().withEnabled(enabled); + this.enabled = enabled; return this; } @@ -251,7 +258,7 @@ public SnapshotPolicyPatch withEnabled(Boolean enabled) { * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; } /** @@ -260,8 +267,17 @@ public String provisioningState() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); + if (hourlySchedule() != null) { + hourlySchedule().validate(); + } + if (dailySchedule() != null) { + dailySchedule().validate(); + } + if (weeklySchedule() != null) { + weeklySchedule().validate(); + } + if (monthlySchedule() != null) { + monthlySchedule().validate(); } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java new file mode 100644 index 000000000000..95dee6c6b589 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; + +/** An immutable client-side representation of SubscriptionQuotaItem. */ +public interface SubscriptionQuotaItem { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the systemData property: The system meta data relating to this resource. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the namePropertiesName property: Quota Item name. + * + * @return the namePropertiesName value. + */ + String namePropertiesName(); + + /** + * Gets the current property: The current quota value. + * + * @return the current value. + */ + Integer current(); + + /** + * Gets the defaultProperty property: The default quota value. + * + * @return the defaultProperty value. + */ + Integer defaultProperty(); + + /** + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner object. + * + * @return the inner object. + */ + SubscriptionQuotaItemInner innerModel(); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java new file mode 100644 index 000000000000..97d1fb8b7ae6 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** List of Subscription Quota Items. */ +@Fluent +public final class SubscriptionQuotaItemList { + @JsonIgnore private final ClientLogger logger = new ClientLogger(SubscriptionQuotaItemList.class); + + /* + * A list of SubscriptionQuotaItems + */ + @JsonProperty(value = "value") + private List value; + + /** + * Get the value property: A list of SubscriptionQuotaItems. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: A list of SubscriptionQuotaItems. + * + * @param value the value value to set. + * @return the SubscriptionQuotaItemList object itself. + */ + public SubscriptionQuotaItemList withValue(List value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java index 83ae5bcec313..ae090609d52a 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 @@ -6,7 +6,6 @@ import com.azure.core.management.Region; import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; import java.util.List; import java.util.Map; @@ -135,6 +134,29 @@ public interface Volume { */ String subnetId(); + /** + * Gets the networkFeatures property: Network features Basic network, or Standard features available to the volume. + * + * @return the networkFeatures value. + */ + NetworkFeatures networkFeatures(); + + /** + * Gets the networkSiblingSetId property: Network Sibling Set ID Network Sibling Set ID for the the group of volumes + * sharing networking resources. + * + * @return the networkSiblingSetId value. + */ + String networkSiblingSetId(); + + /** + * Gets the storageToNetworkProximity property: Storage to Network Proximity Provides storage to network proximity + * information for the volume. + * + * @return the storageToNetworkProximity value. + */ + VolumeStorageToNetworkProximity storageToNetworkProximity(); + /** * Gets the mountTargets property: mountTargets List of mount targets. * @@ -143,7 +165,8 @@ public interface Volume { List mountTargets(); /** - * Gets the volumeType property: What type of volume is this. + * Gets the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, + * set type to DataProtection. * * @return the volumeType value. */ @@ -406,6 +429,7 @@ interface WithCreate DefinitionStages.WithProtocolTypes, DefinitionStages.WithSnapshotId, DefinitionStages.WithBackupId, + DefinitionStages.WithNetworkFeatures, DefinitionStages.WithVolumeType, DefinitionStages.WithDataProtection, DefinitionStages.WithIsRestoring, @@ -501,12 +525,25 @@ interface WithBackupId { */ WithCreate withBackupId(String backupId); } + /** The stage of the Volume definition allowing to specify networkFeatures. */ + interface WithNetworkFeatures { + /** + * Specifies the networkFeatures property: Network features Basic network, or Standard features available to + * the volume.. + * + * @param networkFeatures Network features Basic network, or Standard features available to the volume. + * @return the next definition stage. + */ + WithCreate withNetworkFeatures(NetworkFeatures networkFeatures); + } /** The stage of the Volume definition allowing to specify volumeType. */ interface WithVolumeType { /** - * Specifies the volumeType property: What type of volume is this. + * Specifies the volumeType property: What type of volume is this. For destination volumes in Cross Region + * Replication, set type to DataProtection. * - * @param volumeType What type of volume is this. + * @param volumeType What type of volume is this. For destination volumes in Cross Region Replication, set + * type to DataProtection. * @return the next definition stage. */ WithCreate withVolumeType(String volumeType); 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 ab342b98dd21..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 @@ -5,46 +5,71 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Volume patch resource. */ +@JsonFlatten @Fluent -public final class VolumePatch extends Resource { +public class VolumePatch extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePatch.class); /* - * Patchable volume properties + * serviceLevel The service level of the file system */ - @JsonProperty(value = "properties") - private VolumePatchProperties innerProperties; + @JsonProperty(value = "properties.serviceLevel") + private ServiceLevel serviceLevel; - /** - * Get the innerProperties property: Patchable volume properties. - * - * @return the innerProperties value. + /* + * 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. */ - private VolumePatchProperties innerProperties() { - return this.innerProperties; - } + @JsonProperty(value = "properties.usageThreshold") + private Long usageThreshold; - /** {@inheritDoc} */ - @Override - public VolumePatch withLocation(String location) { - super.withLocation(location); - return this; - } + /* + * exportPolicy Set of export policy rules + */ + @JsonProperty(value = "properties.exportPolicy") + private VolumePatchPropertiesExportPolicy exportPolicy; - /** {@inheritDoc} */ - @Override - public VolumePatch withTags(Map tags) { - super.withTags(tags); - return this; - } + /* + * Maximum throughput in Mibps that can be achieved by this volume + */ + @JsonProperty(value = "properties.throughputMibps") + private Float throughputMibps; + + /* + * 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: serviceLevel The service level of the file system. @@ -52,7 +77,7 @@ public VolumePatch withTags(Map tags) { * @return the serviceLevel value. */ public ServiceLevel serviceLevel() { - return this.innerProperties() == null ? null : this.innerProperties().serviceLevel(); + return this.serviceLevel; } /** @@ -62,10 +87,7 @@ public ServiceLevel serviceLevel() { * @return the VolumePatch object itself. */ public VolumePatch withServiceLevel(ServiceLevel serviceLevel) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumePatchProperties(); - } - this.innerProperties().withServiceLevel(serviceLevel); + this.serviceLevel = serviceLevel; return this; } @@ -76,7 +98,7 @@ public VolumePatch withServiceLevel(ServiceLevel serviceLevel) { * @return the usageThreshold value. */ public Long usageThreshold() { - return this.innerProperties() == null ? null : this.innerProperties().usageThreshold(); + return this.usageThreshold; } /** @@ -87,10 +109,7 @@ public Long usageThreshold() { * @return the VolumePatch object itself. */ public VolumePatch withUsageThreshold(Long usageThreshold) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumePatchProperties(); - } - this.innerProperties().withUsageThreshold(usageThreshold); + this.usageThreshold = usageThreshold; return this; } @@ -100,7 +119,7 @@ public VolumePatch withUsageThreshold(Long usageThreshold) { * @return the exportPolicy value. */ public VolumePatchPropertiesExportPolicy exportPolicy() { - return this.innerProperties() == null ? null : this.innerProperties().exportPolicy(); + return this.exportPolicy; } /** @@ -110,10 +129,7 @@ public VolumePatchPropertiesExportPolicy exportPolicy() { * @return the VolumePatch object itself. */ public VolumePatch withExportPolicy(VolumePatchPropertiesExportPolicy exportPolicy) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumePatchProperties(); - } - this.innerProperties().withExportPolicy(exportPolicy); + this.exportPolicy = exportPolicy; return this; } @@ -123,7 +139,7 @@ public VolumePatch withExportPolicy(VolumePatchPropertiesExportPolicy exportPoli * @return the throughputMibps value. */ public Float throughputMibps() { - return this.innerProperties() == null ? null : this.innerProperties().throughputMibps(); + return this.throughputMibps; } /** @@ -133,10 +149,7 @@ public Float throughputMibps() { * @return the VolumePatch object itself. */ public VolumePatch withThroughputMibps(Float throughputMibps) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumePatchProperties(); - } - this.innerProperties().withThroughputMibps(throughputMibps); + this.throughputMibps = throughputMibps; return this; } @@ -147,7 +160,7 @@ public VolumePatch withThroughputMibps(Float throughputMibps) { * @return the dataProtection value. */ public VolumePatchPropertiesDataProtection dataProtection() { - return this.innerProperties() == null ? null : this.innerProperties().dataProtection(); + return this.dataProtection; } /** @@ -158,10 +171,7 @@ public VolumePatchPropertiesDataProtection dataProtection() { * @return the VolumePatch object itself. */ public VolumePatch withDataProtection(VolumePatchPropertiesDataProtection dataProtection) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumePatchProperties(); - } - this.innerProperties().withDataProtection(dataProtection); + this.dataProtection = dataProtection; return this; } @@ -171,7 +181,7 @@ public VolumePatch withDataProtection(VolumePatchPropertiesDataProtection dataPr * @return the isDefaultQuotaEnabled value. */ public Boolean isDefaultQuotaEnabled() { - return this.innerProperties() == null ? null : this.innerProperties().isDefaultQuotaEnabled(); + return this.isDefaultQuotaEnabled; } /** @@ -181,10 +191,7 @@ public Boolean isDefaultQuotaEnabled() { * @return the VolumePatch object itself. */ public VolumePatch withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumePatchProperties(); - } - this.innerProperties().withIsDefaultQuotaEnabled(isDefaultQuotaEnabled); + this.isDefaultQuotaEnabled = isDefaultQuotaEnabled; return this; } @@ -195,7 +202,7 @@ public VolumePatch withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled) { * @return the defaultUserQuotaInKiBs value. */ public Long defaultUserQuotaInKiBs() { - return this.innerProperties() == null ? null : this.innerProperties().defaultUserQuotaInKiBs(); + return this.defaultUserQuotaInKiBs; } /** @@ -206,10 +213,7 @@ public Long defaultUserQuotaInKiBs() { * @return the VolumePatch object itself. */ public VolumePatch withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumePatchProperties(); - } - this.innerProperties().withDefaultUserQuotaInKiBs(defaultUserQuotaInKiBs); + this.defaultUserQuotaInKiBs = defaultUserQuotaInKiBs; return this; } @@ -220,7 +224,7 @@ public VolumePatch withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs) { * @return the defaultGroupQuotaInKiBs value. */ public Long defaultGroupQuotaInKiBs() { - return this.innerProperties() == null ? null : this.innerProperties().defaultGroupQuotaInKiBs(); + return this.defaultGroupQuotaInKiBs; } /** @@ -231,10 +235,21 @@ public Long defaultGroupQuotaInKiBs() { * @return the VolumePatch object itself. */ public VolumePatch withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumePatchProperties(); - } - this.innerProperties().withDefaultGroupQuotaInKiBs(defaultGroupQuotaInKiBs); + this.defaultGroupQuotaInKiBs = defaultGroupQuotaInKiBs; + return this; + } + + /** {@inheritDoc} */ + @Override + public VolumePatch withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public VolumePatch withTags(Map tags) { + super.withTags(tags); return this; } @@ -244,8 +259,11 @@ public VolumePatch withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); + if (exportPolicy() != null) { + exportPolicy().validate(); + } + if (dataProtection() != null) { + dataProtection().validate(); } } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java new file mode 100644 index 000000000000..8972f77103ae --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java @@ -0,0 +1,37 @@ +// 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 VolumeStorageToNetworkProximity. */ +public final class VolumeStorageToNetworkProximity extends ExpandableStringEnum { + /** Static value Default for VolumeStorageToNetworkProximity. */ + public static final VolumeStorageToNetworkProximity DEFAULT = fromString("Default"); + + /** Static value T1 for VolumeStorageToNetworkProximity. */ + public static final VolumeStorageToNetworkProximity T1 = fromString("T1"); + + /** Static value T2 for VolumeStorageToNetworkProximity. */ + public static final VolumeStorageToNetworkProximity T2 = fromString("T2"); + + /** + * Creates or finds a VolumeStorageToNetworkProximity from its string representation. + * + * @param name a name to look for. + * @return the corresponding VolumeStorageToNetworkProximity. + */ + @JsonCreator + public static VolumeStorageToNetworkProximity fromString(String name) { + return fromString(name, VolumeStorageToNetworkProximity.class); + } + + /** @return known VolumeStorageToNetworkProximity values. */ + public static Collection values() { + return values(VolumeStorageToNetworkProximity.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsDeleteSamples.java deleted file mode 100644 index fd0018bde853..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for AccountBackups Delete. */ -public final class AccountBackupsDeleteSamples { - /* - * operationId: AccountBackups_Delete - * api-version: 2021-06-01 - * x-ms-examples: AccountBackups_Delete - */ - /** - * Sample code: AccountBackups_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountBackupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.accountBackups().delete("resourceGroup", "accountName", "backupName", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsGetSamples.java deleted file mode 100644 index f6402552a81f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for AccountBackups Get. */ -public final class AccountBackupsGetSamples { - /* - * operationId: AccountBackups_Get - * api-version: 2021-06-01 - * x-ms-examples: AccountBackups_Get - */ - /** - * Sample code: AccountBackups_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountBackupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.accountBackups().getWithResponse("myRG", "account1", "backup1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsListSamples.java deleted file mode 100644 index d8e7f4db7040..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountBackupsListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for AccountBackups List. */ -public final class AccountBackupsListSamples { - /* - * operationId: AccountBackups_List - * api-version: 2021-06-01 - * x-ms-examples: AccountBackups_List - */ - /** - * Sample code: AccountBackups_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountBackupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.accountBackups().list("myRG", "account1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsCreateOrUpdateSamples.java deleted file mode 100644 index ca30991b4cdb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsCreateOrUpdateSamples.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import java.util.Arrays; - -/** Samples for Accounts CreateOrUpdate. */ -public final class AccountsCreateOrUpdateSamples { - /* - * operationId: Accounts_CreateOrUpdate - * api-version: 2021-06-01 - * x-ms-examples: Accounts_CreateOrUpdate - */ - /** - * Sample code: Accounts_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .accounts() - .define("account1") - .withRegion("eastus") - .withExistingResourceGroup("myRG") - .withActiveDirectories( - Arrays - .asList( - new ActiveDirectory() - .withUsername("ad_user_name") - .withPassword("ad_password") - .withDomain("10.10.10.3") - .withDns("10.10.10.3, 10.10.10.4") - .withSmbServerName("SMBServer") - .withOrganizationalUnit("Engineering") - .withSite("SiteName") - .withAesEncryption(true) - .withLdapSigning(false) - .withLdapOverTls(false))) - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsDeleteSamples.java deleted file mode 100644 index 2a27ca8bea29..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Accounts Delete. */ -public final class AccountsDeleteSamples { - /* - * operationId: Accounts_Delete - * api-version: 2021-06-01 - * x-ms-examples: Accounts_Delete - */ - /** - * Sample code: Accounts_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.accounts().delete("myRG", "account1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsGetByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsGetByResourceGroupSamples.java deleted file mode 100644 index 81199c5a165f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsGetByResourceGroupSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Accounts GetByResourceGroup. */ -public final class AccountsGetByResourceGroupSamples { - /* - * operationId: Accounts_Get - * api-version: 2021-06-01 - * x-ms-examples: Accounts_Get - */ - /** - * Sample code: Accounts_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.accounts().getByResourceGroupWithResponse("myRG", "account1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsListByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsListByResourceGroupSamples.java deleted file mode 100644 index 4767c05789cc..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsListByResourceGroupSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Accounts ListByResourceGroup. */ -public final class AccountsListByResourceGroupSamples { - /* - * operationId: Accounts_List - * api-version: 2021-06-01 - * x-ms-examples: Accounts_List - */ - /** - * Sample code: Accounts_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.accounts().listByResourceGroup("myRG", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsListSamples.java deleted file mode 100644 index 7fed44f10bbb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Accounts List. */ -public final class AccountsListSamples { - /* - * operationId: Accounts_ListBySubscription - * api-version: 2021-06-01 - * x-ms-examples: Accounts_List - */ - /** - * Sample code: Accounts_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.accounts().list(Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsUpdateSamples.java deleted file mode 100644 index 92d58b9731cb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/AccountsUpdateSamples.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.NetAppAccount; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Accounts Update. */ -public final class AccountsUpdateSamples { - /* - * operationId: Accounts_Update - * api-version: 2021-06-01 - * x-ms-examples: Accounts_Update - */ - /** - * Sample code: Accounts_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - NetAppAccount resource = - manager.accounts().getByResourceGroupWithResponse("myRG", "account1", Context.NONE).getValue(); - resource.update().withTags(mapOf("Tag1", "Value1")).apply(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesCreateSamples.java deleted file mode 100644 index 53289393a3b6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesCreateSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -/** Samples for BackupPolicies Create. */ -public final class BackupPoliciesCreateSamples { - /* - * operationId: BackupPolicies_Create - * api-version: 2021-06-01 - * x-ms-examples: BackupPolicies_Create - */ - /** - * Sample code: BackupPolicies_Create. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void backupPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .backupPolicies() - .define("backupPolicyName") - .withRegion("westus") - .withExistingNetAppAccount("myRG", "account1") - .withDailyBackupsToKeep(10) - .withWeeklyBackupsToKeep(10) - .withMonthlyBackupsToKeep(10) - .withEnabled(true) - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesDeleteSamples.java deleted file mode 100644 index caa663ba2152..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for BackupPolicies Delete. */ -public final class BackupPoliciesDeleteSamples { - /* - * operationId: BackupPolicies_Delete - * api-version: 2021-06-01 - * x-ms-examples: Backups_Delete - */ - /** - * Sample code: Backups_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void backupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.backupPolicies().delete("resourceGroup", "accountName", "backupPolicyName", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesGetSamples.java deleted file mode 100644 index 06119ed9a420..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for BackupPolicies Get. */ -public final class BackupPoliciesGetSamples { - /* - * operationId: BackupPolicies_Get - * api-version: 2021-06-01 - * x-ms-examples: Backups_Get - */ - /** - * Sample code: Backups_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void backupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.backupPolicies().getWithResponse("myRG", "account1", "backupPolicyName", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesListSamples.java deleted file mode 100644 index ddc2393b6b83..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for BackupPolicies List. */ -public final class BackupPoliciesListSamples { - /* - * operationId: BackupPolicies_List - * api-version: 2021-06-01 - * x-ms-examples: Backups_List - */ - /** - * Sample code: Backups_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void backupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.backupPolicies().list("myRG", "account1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesUpdateSamples.java deleted file mode 100644 index c4a700086710..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupPoliciesUpdateSamples.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.BackupPolicy; - -/** Samples for BackupPolicies Update. */ -public final class BackupPoliciesUpdateSamples { - /* - * operationId: BackupPolicies_Update - * api-version: 2021-06-01 - * x-ms-examples: BackupPolicies_Update - */ - /** - * Sample code: BackupPolicies_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void backupPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - BackupPolicy resource = - manager.backupPolicies().getWithResponse("myRG", "account1", "backupPolicyName", Context.NONE).getValue(); - resource - .update() - .withDailyBackupsToKeep(5) - .withWeeklyBackupsToKeep(10) - .withMonthlyBackupsToKeep(10) - .withEnabled(false) - .apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsCreateSamples.java deleted file mode 100644 index cc4b6e8d9f12..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsCreateSamples.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -/** Samples for Backups Create. */ -public final class BackupsCreateSamples { - /* - * operationId: Backups_Create - * api-version: 2021-06-01 - * x-ms-examples: Backups_Create - */ - /** - * Sample code: Backups_Create. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void backupsCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .backups() - .define("backup1") - .withRegion("eastus") - .withExistingVolume("myRG", "account1", "pool1", "volume1") - .withLabel("myLabel") - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsDeleteSamples.java deleted file mode 100644 index 1593abcaf705..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Backups Delete. */ -public final class BackupsDeleteSamples { - /* - * operationId: Backups_Delete - * api-version: 2021-06-01 - * x-ms-examples: Backups_Delete - */ - /** - * Sample code: Backups_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void backupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.backups().delete("resourceGroup", "accountName", "poolName", "volumeName", "backupName", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetSamples.java deleted file mode 100644 index 41e6d80ad4ed..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Backups Get. */ -public final class BackupsGetSamples { - /* - * operationId: Backups_Get - * api-version: 2021-06-01 - * x-ms-examples: Backups_Get - */ - /** - * Sample code: Backups_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void backupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.backups().getWithResponse("myRG", "account1", "pool1", "volume1", "backup1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetStatusSamples.java deleted file mode 100644 index cdadfdd2b4d3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetStatusSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Backups GetStatus. */ -public final class BackupsGetStatusSamples { - /* - * operationId: Backups_GetStatus - * api-version: 2021-06-01 - * x-ms-examples: Volumes_BackupStatus - */ - /** - * Sample code: Volumes_BackupStatus. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesBackupStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.backups().getStatusWithResponse("myRG", "account1", "pool1", "volume1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetVolumeRestoreStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetVolumeRestoreStatusSamples.java deleted file mode 100644 index be2621b4fd5e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsGetVolumeRestoreStatusSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Backups GetVolumeRestoreStatus. */ -public final class BackupsGetVolumeRestoreStatusSamples { - /* - * operationId: Backups_GetVolumeRestoreStatus - * api-version: 2021-06-01 - * x-ms-examples: Volumes_RestoreStatus - */ - /** - * Sample code: Volumes_RestoreStatus. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.backups().getVolumeRestoreStatusWithResponse("myRG", "account1", "pool1", "volume1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsListSamples.java deleted file mode 100644 index b4e6d8162daa..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Backups List. */ -public final class BackupsListSamples { - /* - * operationId: Backups_List - * api-version: 2021-06-01 - * x-ms-examples: Backups_List - */ - /** - * Sample code: Backups_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void backupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.backups().list("myRG", "account1", "pool1", "volume1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsUpdateSamples.java deleted file mode 100644 index 243547e9ded3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/BackupsUpdateSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.Backup; - -/** Samples for Backups Update. */ -public final class BackupsUpdateSamples { - /* - * operationId: Backups_Update - * api-version: 2021-06-01 - * x-ms-examples: Backups_Update - */ - /** - * Sample code: Backups_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void backupsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - Backup resource = - manager - .backups() - .getWithResponse("myRG", "account1", "pool1", "volume1", "backup1", Context.NONE) - .getValue(); - resource.update().apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckFilePathAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckFilePathAvailabilitySamples.java deleted file mode 100644 index 322de015b1ca..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckFilePathAvailabilitySamples.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; - -/** Samples for NetAppResource CheckFilePathAvailability. */ -public final class NetAppResourceCheckFilePathAvailabilitySamples { - /* - * operationId: NetAppResource_CheckFilePathAvailability - * api-version: 2021-06-01 - * x-ms-examples: CheckFilePathAvailability - */ - /** - * Sample code: CheckFilePathAvailability. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .checkFilePathAvailabilityWithResponse( - "eastus", - new FilePathAvailabilityRequest() - .withName("my-exact-filepth") - .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), - Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckNameAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckNameAvailabilitySamples.java deleted file mode 100644 index a3dd002ce85e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckNameAvailabilitySamples.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes; -import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; - -/** Samples for NetAppResource CheckNameAvailability. */ -public final class NetAppResourceCheckNameAvailabilitySamples { - /* - * operationId: NetAppResource_CheckNameAvailability - * api-version: 2021-06-01 - * x-ms-examples: CheckNameAvailability - */ - /** - * Sample code: CheckNameAvailability. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void checkNameAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .checkNameAvailabilityWithResponse( - "eastus", - new ResourceNameAvailabilityRequest() - .withName("accName") - .withType(CheckNameResourceTypes.fromString("netAppAccount")) - .withResourceGroup("myRG"), - Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckQuotaAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckQuotaAvailabilitySamples.java deleted file mode 100644 index 0f1cd1cc4b57..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/NetAppResourceCheckQuotaAvailabilitySamples.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes; -import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; - -/** Samples for NetAppResource CheckQuotaAvailability. */ -public final class NetAppResourceCheckQuotaAvailabilitySamples { - /* - * operationId: NetAppResource_CheckQuotaAvailability - * api-version: 2021-06-01 - * x-ms-examples: CheckQuotaAvailability - */ - /** - * Sample code: CheckQuotaAvailability. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void checkQuotaAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .checkQuotaAvailabilityWithResponse( - "eastus", - new QuotaAvailabilityRequest() - .withName("resource1") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS) - .withResourceGroup("myRG"), - Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsCreateOrUpdateSamples.java deleted file mode 100644 index 790700385e65..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsCreateOrUpdateSamples.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; - -/** Samples for Pools CreateOrUpdate. */ -public final class PoolsCreateOrUpdateSamples { - /* - * operationId: Pools_CreateOrUpdate - * api-version: 2021-06-01 - * x-ms-examples: Pools_CreateOrUpdate - */ - /** - * Sample code: Pools_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .pools() - .define("pool1") - .withRegion("eastus") - .withExistingNetAppAccount("myRG", "account1") - .withSize(4398046511104L) - .withServiceLevel(ServiceLevel.PREMIUM) - .withQosType(QosType.AUTO) - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsDeleteSamples.java deleted file mode 100644 index 1453145126b1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Pools Delete. */ -public final class PoolsDeleteSamples { - /* - * operationId: Pools_Delete - * api-version: 2021-06-01 - * x-ms-examples: Pools_Delete - */ - /** - * Sample code: Pools_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void poolsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.pools().delete("myRG", "account1", "pool1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsGetSamples.java deleted file mode 100644 index 07bd6764dcc0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Pools Get. */ -public final class PoolsGetSamples { - /* - * operationId: Pools_Get - * api-version: 2021-06-01 - * x-ms-examples: Pools_Get - */ - /** - * Sample code: Pools_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void poolsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.pools().getWithResponse("myRG", "account1", "pool1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsListSamples.java deleted file mode 100644 index f025c3fe5fd5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Pools List. */ -public final class PoolsListSamples { - /* - * operationId: Pools_List - * api-version: 2021-06-01 - * x-ms-examples: Pools_List - */ - /** - * Sample code: Pools_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void poolsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.pools().list("myRG", "account1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsUpdateSamples.java deleted file mode 100644 index e61ac6dae9d4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/PoolsUpdateSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.CapacityPool; - -/** Samples for Pools Update. */ -public final class PoolsUpdateSamples { - /* - * operationId: Pools_Update - * api-version: 2021-06-01 - * x-ms-examples: Pools_Update - */ - /** - * Sample code: Pools_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - CapacityPool resource = manager.pools().getWithResponse("myRG", "account1", "pool1", Context.NONE).getValue(); - resource.update().apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesCreateSamples.java deleted file mode 100644 index d56e8ddb49f5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesCreateSamples.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.resourcemanager.netapp.models.DailySchedule; -import com.azure.resourcemanager.netapp.models.HourlySchedule; -import com.azure.resourcemanager.netapp.models.MonthlySchedule; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; - -/** Samples for SnapshotPolicies Create. */ -public final class SnapshotPoliciesCreateSamples { - /* - * operationId: SnapshotPolicies_Create - * api-version: 2021-06-01 - * x-ms-examples: SnapshotPolicies_Create - */ - /** - * Sample code: SnapshotPolicies_Create. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshotPolicies() - .define("snapshotPolicyName") - .withRegion("eastus") - .withExistingNetAppAccount("myRG", "account1") - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)) - .withWeeklySchedule( - new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45)) - .withMonthlySchedule( - new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15)) - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesDeleteSamples.java deleted file mode 100644 index 3c8440f223dc..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for SnapshotPolicies Delete. */ -public final class SnapshotPoliciesDeleteSamples { - /* - * operationId: SnapshotPolicies_Delete - * api-version: 2021-06-01 - * x-ms-examples: SnapshotPolicies_Delete - */ - /** - * Sample code: SnapshotPolicies_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.snapshotPolicies().delete("resourceGroup", "accountName", "snapshotPolicyName", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesGetSamples.java deleted file mode 100644 index ece0708d53b1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for SnapshotPolicies Get. */ -public final class SnapshotPoliciesGetSamples { - /* - * operationId: SnapshotPolicies_Get - * api-version: 2021-06-01 - * x-ms-examples: SnapshotPolicies_Get - */ - /** - * Sample code: SnapshotPolicies_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.snapshotPolicies().getWithResponse("myRG", "account1", "snapshotPolicyName", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesListSamples.java deleted file mode 100644 index d7c7f72da686..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for SnapshotPolicies List. */ -public final class SnapshotPoliciesListSamples { - /* - * operationId: SnapshotPolicies_List - * api-version: 2021-06-01 - * x-ms-examples: SnapshotPolicies_List - */ - /** - * Sample code: SnapshotPolicies_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotPoliciesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.snapshotPolicies().list("myRG", "account1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesListVolumesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesListVolumesSamples.java deleted file mode 100644 index 8eee16a0e3ed..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesListVolumesSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for SnapshotPolicies ListVolumes. */ -public final class SnapshotPoliciesListVolumesSamples { - /* - * operationId: SnapshotPolicies_ListVolumes - * api-version: 2021-06-01 - * x-ms-examples: SnapshotPolicies_ListVolumes - */ - /** - * Sample code: SnapshotPolicies_ListVolumes. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotPoliciesListVolumes(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.snapshotPolicies().listVolumesWithResponse("myRG", "account1", "snapshotPolicyName", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesUpdateSamples.java deleted file mode 100644 index a51f70b5905f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotPoliciesUpdateSamples.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.DailySchedule; -import com.azure.resourcemanager.netapp.models.HourlySchedule; -import com.azure.resourcemanager.netapp.models.MonthlySchedule; -import com.azure.resourcemanager.netapp.models.SnapshotPolicy; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; - -/** Samples for SnapshotPolicies Update. */ -public final class SnapshotPoliciesUpdateSamples { - /* - * operationId: SnapshotPolicies_Update - * api-version: 2021-06-01 - * x-ms-examples: SnapshotPolicies_Update - */ - /** - * Sample code: SnapshotPolicies_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - SnapshotPolicy resource = - manager - .snapshotPolicies() - .getWithResponse("myRG", "account1", "snapshotPolicyName", Context.NONE) - .getValue(); - resource - .update() - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)) - .withWeeklySchedule( - new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45)) - .withMonthlySchedule( - new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15)) - .withEnabled(true) - .apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsCreateSamples.java deleted file mode 100644 index 83d5928b5e1e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsCreateSamples.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -/** Samples for Snapshots Create. */ -public final class SnapshotsCreateSamples { - /* - * operationId: Snapshots_Create - * api-version: 2021-06-01 - * x-ms-examples: Snapshots_Create - */ - /** - * Sample code: Snapshots_Create. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotsCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshots() - .define("snapshot1") - .withRegion("eastus") - .withExistingVolume("myRG", "account1", "pool1", "volume1") - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsDeleteSamples.java deleted file mode 100644 index 9706937c8264..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Snapshots Delete. */ -public final class SnapshotsDeleteSamples { - /* - * operationId: Snapshots_Delete - * api-version: 2021-06-01 - * x-ms-examples: Snapshots_Delete - */ - /** - * Sample code: Snapshots_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.snapshots().delete("myRG", "account1", "pool1", "volume1", "snapshot1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsGetSamples.java deleted file mode 100644 index 309cc376f201..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Snapshots Get. */ -public final class SnapshotsGetSamples { - /* - * operationId: Snapshots_Get - * api-version: 2021-06-01 - * x-ms-examples: Snapshots_Get - */ - /** - * Sample code: Snapshots_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.snapshots().getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsListSamples.java deleted file mode 100644 index 6f674b82427a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Snapshots List. */ -public final class SnapshotsListSamples { - /* - * operationId: Snapshots_List - * api-version: 2021-06-01 - * x-ms-examples: Snapshots_List - */ - /** - * Sample code: Snapshots_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.snapshots().list("myRG", "account1", "pool1", "volume1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsUpdateSamples.java deleted file mode 100644 index 16caf5967a16..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/SnapshotsUpdateSamples.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import java.io.IOException; - -/** Samples for Snapshots Update. */ -public final class SnapshotsUpdateSamples { - /* - * operationId: Snapshots_Update - * api-version: 2021-06-01 - * x-ms-examples: Snapshots_Update - */ - /** - * Sample code: Snapshots_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) throws IOException { - manager - .snapshots() - .update( - "myRG", - "account1", - "pool1", - "volume1", - "snapshot1", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize("{}", Object.class, SerializerEncoding.JSON), - Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VaultsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VaultsListSamples.java deleted file mode 100644 index f1e0e921c762..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VaultsListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Vaults List. */ -public final class VaultsListSamples { - /* - * operationId: Vaults_List - * api-version: 2021-06-01 - * x-ms-examples: Vaults_List - */ - /** - * Sample code: Vaults_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void vaultsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.vaults().list("myRG", "account1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesAuthorizeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesAuthorizeReplicationSamples.java deleted file mode 100644 index dfffa74246fb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesAuthorizeReplicationSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.AuthorizeRequest; - -/** Samples for Volumes AuthorizeReplication. */ -public final class VolumesAuthorizeReplicationSamples { - /* - * operationId: Volumes_AuthorizeReplication - * api-version: 2021-06-01 - * x-ms-examples: Volumes_AuthorizeReplication - */ - /** - * Sample code: Volumes_AuthorizeReplication. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesAuthorizeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .authorizeReplication( - "myRG", - "account1", - "pool1", - "volume1", - new AuthorizeRequest() - .withRemoteVolumeResourceId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"), - Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesBreakReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesBreakReplicationSamples.java deleted file mode 100644 index c782b140fba2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesBreakReplicationSamples.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; - -/** Samples for Volumes BreakReplication. */ -public final class VolumesBreakReplicationSamples { - /* - * operationId: Volumes_BreakReplication - * api-version: 2021-06-01 - * x-ms-examples: Volumes_BreakReplication - */ - /** - * Sample code: Volumes_BreakReplication. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesBreakReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .breakReplication( - "myRG", - "account1", - "pool1", - "volume1", - new BreakReplicationRequest().withForceBreakReplication(false), - Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesCreateOrUpdateSamples.java deleted file mode 100644 index 6eb10e944542..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesCreateOrUpdateSamples.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.resourcemanager.netapp.models.ServiceLevel; - -/** Samples for Volumes CreateOrUpdate. */ -public final class VolumesCreateOrUpdateSamples { - /* - * operationId: Volumes_CreateOrUpdate - * api-version: 2021-06-01 - * x-ms-examples: Volumes_CreateOrUpdate - */ - /** - * Sample code: Volumes_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .define("volume1") - .withRegion("eastus") - .withExistingCapacityPool("myRG", "account1", "pool1") - .withCreationToken("my-unique-file-path") - .withUsageThreshold(107374182400L) - .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") - .withServiceLevel(ServiceLevel.PREMIUM) - .withThroughputMibps(128.0f) - .withEncryptionKeySource("Microsoft.KeyVault") - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesDeleteReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesDeleteReplicationSamples.java deleted file mode 100644 index c8e448b618cd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesDeleteReplicationSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Volumes DeleteReplication. */ -public final class VolumesDeleteReplicationSamples { - /* - * operationId: Volumes_DeleteReplication - * api-version: 2021-06-01 - * x-ms-examples: Volumes_DeleteReplication - */ - /** - * Sample code: Volumes_DeleteReplication. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesDeleteReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().deleteReplication("myRG", "account1", "pool1", "volume1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesDeleteSamples.java deleted file mode 100644 index 3fdc0bd763ee..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Volumes Delete. */ -public final class VolumesDeleteSamples { - /* - * operationId: Volumes_Delete - * api-version: 2021-06-01 - * x-ms-examples: Volumes_Delete - */ - /** - * Sample code: Volumes_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().delete("myRG", "account1", "pool1", "volume1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesGetSamples.java deleted file mode 100644 index 64c65b9019c1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Volumes Get. */ -public final class VolumesGetSamples { - /* - * operationId: Volumes_Get - * api-version: 2021-06-01 - * x-ms-examples: Volumes_Get - */ - /** - * Sample code: Volumes_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().getWithResponse("myRG", "account1", "pool1", "volume1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesListSamples.java deleted file mode 100644 index 5e40f3d6e14c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Volumes List. */ -public final class VolumesListSamples { - /* - * operationId: Volumes_List - * api-version: 2021-06-01 - * x-ms-examples: Volumes_List - */ - /** - * Sample code: Volumes_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().list("myRG", "account1", "pool1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesPoolChangeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesPoolChangeSamples.java deleted file mode 100644 index a67cb853b566..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesPoolChangeSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.PoolChangeRequest; - -/** Samples for Volumes PoolChange. */ -public final class VolumesPoolChangeSamples { - /* - * operationId: Volumes_PoolChange - * api-version: 2021-06-01 - * x-ms-examples: Volumes_AuthorizeReplication - */ - /** - * Sample code: Volumes_AuthorizeReplication. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesAuthorizeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .poolChange( - "myRG", - "account1", - "pool1", - "volume1", - new PoolChangeRequest() - .withNewPoolResourceId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), - Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesReInitializeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesReInitializeReplicationSamples.java deleted file mode 100644 index 7c7124c8e9cd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesReInitializeReplicationSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Volumes ReInitializeReplication. */ -public final class VolumesReInitializeReplicationSamples { - /* - * operationId: Volumes_ReInitializeReplication - * api-version: 2021-06-01 - * x-ms-examples: Volumes_ReInitializeReplication - */ - /** - * Sample code: Volumes_ReInitializeReplication. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesReInitializeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().reInitializeReplication("myRG", "account1", "pool1", "volume1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesReplicationStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesReplicationStatusSamples.java deleted file mode 100644 index 80a28710af47..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesReplicationStatusSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Volumes ReplicationStatus. */ -public final class VolumesReplicationStatusSamples { - /* - * operationId: Volumes_ReplicationStatus - * api-version: 2021-06-01 - * x-ms-examples: Volumes_ReplicationStatus - */ - /** - * Sample code: Volumes_ReplicationStatus. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesReplicationStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().replicationStatusWithResponse("myRG", "account1", "pool1", "volume1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesResyncReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesResyncReplicationSamples.java deleted file mode 100644 index b00319a7b0d1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesResyncReplicationSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; - -/** Samples for Volumes ResyncReplication. */ -public final class VolumesResyncReplicationSamples { - /* - * operationId: Volumes_ResyncReplication - * api-version: 2021-06-01 - * x-ms-examples: Volumes_ResyncReplication - */ - /** - * Sample code: Volumes_ResyncReplication. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesResyncReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().resyncReplication("myRG", "account1", "pool1", "volume1", Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesRevertSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesRevertSamples.java deleted file mode 100644 index 24bce5721fad..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesRevertSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.VolumeRevert; - -/** Samples for Volumes Revert. */ -public final class VolumesRevertSamples { - /* - * operationId: Volumes_Revert - * api-version: 2021-06-01 - * x-ms-examples: Volumes_Revert - */ - /** - * Sample code: Volumes_Revert. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesRevert(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .revert( - "myRG", - "account1", - "pool1", - "volume1", - new VolumeRevert() - .withSnapshotId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"), - Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesUpdateSamples.java deleted file mode 100644 index d51bf0861c52..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/VolumesUpdateSamples.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.models.Volume; - -/** Samples for Volumes Update. */ -public final class VolumesUpdateSamples { - /* - * operationId: Volumes_Update - * api-version: 2021-06-01 - * x-ms-examples: Volumes_Update - */ - /** - * Sample code: Volumes_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - Volume resource = - manager.volumes().getWithResponse("myRG", "account1", "pool1", "volume1", Context.NONE).getValue(); - resource.update().apply(); - } -}