From 090ca66db2f70520b19a96917d5534256b620d3f Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Thu, 21 Sep 2023 09:35:11 +0000 Subject: [PATCH 01/13] Update to api-version 2023-05-01 --- .../Azure.ResourceManager.NetApp/CHANGELOG.md | 7 +- ...e.ResourceManager.NetApp.netstandard2.0.cs | 119 +++ .../Azure.ResourceManager.NetApp/assets.json | 2 +- .../Samples/Sample_CapacityPoolCollection.cs | 8 +- .../Samples/Sample_CapacityPoolResource.cs | 6 +- .../Sample_NetAppAccountBackupCollection.cs | 122 --- .../Sample_NetAppAccountBackupResource.cs | 80 -- .../Samples/Sample_NetAppAccountCollection.cs | 10 +- .../Samples/Sample_NetAppAccountResource.cs | 46 +- .../Sample_NetAppBackupPolicyCollection.cs | 8 +- .../Sample_NetAppBackupPolicyResource.cs | 6 +- .../Sample_NetAppSubvolumeInfoCollection.cs | 8 +- .../Sample_NetAppSubvolumeInfoResource.cs | 8 +- .../Sample_NetAppVolumeBackupCollection.cs | 171 ----- .../Sample_NetAppVolumeBackupResource.cs | 155 ---- .../Samples/Sample_NetAppVolumeCollection.cs | 8 +- .../Sample_NetAppVolumeGroupCollection.cs | 693 +++++++++++++++++- .../Sample_NetAppVolumeGroupResource.cs | 652 +++++++++++++++- .../Sample_NetAppVolumeQuotaRuleCollection.cs | 8 +- .../Sample_NetAppVolumeQuotaRuleResource.cs | 6 +- .../Samples/Sample_NetAppVolumeResource.cs | 103 +-- .../Sample_NetAppVolumeSnapshotCollection.cs | 8 +- .../Sample_NetAppVolumeSnapshotResource.cs | 8 +- .../Sample_SnapshotPolicyCollection.cs | 8 +- .../Samples/Sample_SnapshotPolicyResource.cs | 8 +- .../Sample_SubscriptionResourceExtensions.cs | 68 +- .../src/Custom/ArmNetAppModelFactory.cs | 201 +++++ .../src/Custom/Extensions/NetAppExtensions.cs | 58 ++ .../NetAppVolumeBackupOperationSource.cs | 4 +- .../Models/BackupsList.Serialization.cs | 2 +- .../Models/BackupsList.cs | 4 +- .../Models/NetAppBackupData .cs} | 6 +- .../Models/NetAppBackupData.Serialization.cs | 4 +- .../Models/NetAppBackupType.cs | 5 +- .../Custom/Models/NetAppReplicationObject.cs | 19 + ...ppVolumeBackupBackupRestoreFilesContent.cs | 6 +- .../Models/NetAppVolumeBackupConfiguration.cs | 26 + .../NetAppVolumeBackupPatch.Serialization.cs | 2 +- .../Models/NetAppVolumeBackupPatch.cs | 4 +- .../NetAppVolumeBackupStatus.Serialization.cs | 5 +- .../Models/NetAppVolumeBackupStatus.cs | 7 +- .../Models/NetAppVolumeDataProtection.cs | 33 + .../src/Custom/Models/NetAppVolumePatch.cs | 14 + ...VolumePatchDataProtection.Serialization.cs | 4 +- .../Models/NetAppVolumePatchDataProtection.cs | 16 + .../NetAppAccountBackupCollection.cs | 8 +- .../NetAppAccountBackupResource.cs | 8 +- .../src/Custom/NetAppAccountResource.cs | 57 ++ .../NetAppVolumeBackupCollection .cs} | 8 +- .../NetAppVolumeBackupResource.cs | 18 +- .../src/Custom/NetAppVolumeResource.cs | 165 +++++ .../AccountBackupsRestOperations.cs | 4 +- .../RestOperations/BackupsRestOperations.cs | 621 ++++++++++++++++ .../src/Generated/ArmNetAppModelFactory.cs | 134 ++-- .../src/Generated/CapacityPoolData.cs | 2 +- .../Generated/Extensions/NetAppExtensions.cs | 140 +++- .../SubscriptionResourceExtensionClient.cs | 136 ++++ .../NetworkSiblingSetOperationSource.cs | 31 + .../Models/CapacityPoolData.Serialization.cs | 4 +- .../Models/CoolAccessRetrievalPolicy.cs | 59 ++ .../src/Generated/Models/CreatedByType.cs | 57 ++ .../Models/NetAppAccountData.Serialization.cs | 4 +- .../Generated/Models/NetAppApplicationType.cs | 3 + .../NetAppBackupPolicyData.Serialization.cs | 4 +- .../Generated/Models/NetAppNetworkFeature.cs | 12 +- .../NetAppReplicationObject.Serialization.cs | 5 - .../Models/NetAppReplicationObject.cs | 3 - ...tAppSubscriptionQuotaItem.Serialization.cs | 4 +- .../Models/NetAppSubscriptionQuotaItem.cs | 2 +- .../NetAppSubvolumeMetadata.Serialization.cs | 4 +- .../Models/NetAppSubvolumeMetadata.cs | 2 +- ...BackupRestoreFilesContent.Serialization.cs | 35 - ...VolumeBackupConfiguration.Serialization.cs | 16 - .../Models/NetAppVolumeBackupConfiguration.cs | 38 - .../Models/NetAppVolumeData.Serialization.cs | 35 +- ...etAppVolumeDataProtection.Serialization.cs | 17 +- .../Models/NetAppVolumeDataProtection.cs | 6 +- .../NetAppVolumeGroupData.Serialization.cs | 4 +- .../NetAppVolumeGroupResult.Serialization.cs | 4 +- .../Models/NetAppVolumeGroupResult.cs | 2 +- .../NetAppVolumeGroupVolume.Serialization.cs | 56 +- .../Models/NetAppVolumeGroupVolume.cs | 39 +- .../Models/NetAppVolumePatch.Serialization.cs | 22 + .../src/Generated/Models/NetAppVolumePatch.cs | 27 +- .../Models/NetAppVolumePatchDataProtection.cs | 2 - ...NetAppVolumeQuotaRuleData.Serialization.cs | 4 +- .../Models/NetworkSiblingSet.Serialization.cs | 85 +++ .../src/Generated/Models/NetworkSiblingSet.cs | 52 ++ .../NetworkSiblingSetProvisioningState.cs | 57 ++ .../Generated/Models/NicInfo.Serialization.cs | 56 ++ .../src/Generated/Models/NicInfo.cs | 36 + ...yNetworkSiblingSetContent.Serialization.cs | 25 + .../Models/QueryNetworkSiblingSetContent.cs | 34 + .../Models/SmbAccessBasedEnumeration.cs | 2 +- .../src/Generated/Models/SmbNonBrowsable.cs | 2 +- .../SnapshotPolicyData.Serialization.cs | 4 +- ...eNetworkSiblingSetContent.Serialization.cs | 29 + .../Models/UpdateNetworkSiblingSetContent.cs | 43 ++ .../src/Generated/NetAppAccountData.cs | 2 +- .../src/Generated/NetAppAccountResource.cs | 53 -- .../src/Generated/NetAppBackupPolicyData.cs | 2 +- .../src/Generated/NetAppVolumeData.cs | 34 +- .../src/Generated/NetAppVolumeGroupData.cs | 2 +- .../Generated/NetAppVolumeQuotaRuleData.cs | 2 +- .../src/Generated/NetAppVolumeResource.cs | 198 ++--- .../RestOperations/AccountsRestOperations.cs | 2 +- .../BackupPoliciesRestOperations.cs | 2 +- .../RestOperations/BackupsRestOperations.cs | 663 +---------------- ...NetAppResourceQuotaLimitsRestOperations.cs | 2 +- .../NetAppResourceRestOperations.cs | 152 +++- .../RestOperations/PoolsRestOperations.cs | 2 +- .../SnapshotPoliciesRestOperations.cs | 2 +- .../RestOperations/SnapshotsRestOperations.cs | 2 +- .../SubvolumesRestOperations.cs | 2 +- .../VolumeGroupsRestOperations.cs | 2 +- .../VolumeQuotaRulesRestOperations.cs | 2 +- .../RestOperations/VolumesRestOperations.cs | 85 ++- .../src/Generated/SnapshotPolicyData.cs | 2 +- .../src/autorest.md | 2 +- .../NetAppResource_NetworkSiblingSetTests.cs | 101 +++ ...bilityTests.cs => NetAppResource_Tests.cs} | 13 +- .../tests/ResourceTests/RegionInfoTests.cs | 38 - 122 files changed, 4452 insertions(+), 1888 deletions(-) delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupCollection.cs delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupResource.cs delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupCollection.cs delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupResource.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Extensions/NetAppExtensions.cs rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/LongRunningOperation/NetAppVolumeBackupOperationSource.cs (94%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/Models/BackupsList.Serialization.cs (95%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/Models/BackupsList.cs (85%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated/NetAppBackupData.cs => Custom/Models/NetAppBackupData .cs} (96%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/Models/NetAppBackupData.Serialization.cs (98%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/Models/NetAppBackupType.cs (95%) create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppReplicationObject.cs rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/Models/NetAppVolumeBackupBackupRestoreFilesContent.cs (92%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/Models/NetAppVolumeBackupPatch.Serialization.cs (95%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/Models/NetAppVolumeBackupPatch.cs (95%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/Models/NetAppVolumeBackupStatus.Serialization.cs (97%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/Models/NetAppVolumeBackupStatus.cs (95%) create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeDataProtection.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatch.cs rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/Models/NetAppVolumePatchDataProtection.Serialization.cs (90%) create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.cs rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/NetAppAccountBackupCollection.cs (98%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/NetAppAccountBackupResource.cs (98%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated/NetAppVolumeBackupCollection.cs => Custom/NetAppVolumeBackupCollection .cs} (99%) rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/NetAppVolumeBackupResource.cs (97%) create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeResource.cs rename sdk/netapp/Azure.ResourceManager.NetApp/src/{Generated => Custom}/RestOperations/AccountBackupsRestOperations.cs (99%) create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/RestOperations/BackupsRestOperations.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetworkSiblingSetOperationSource.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessRetrievalPolicy.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CreatedByType.cs delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupBackupRestoreFilesContent.Serialization.cs delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.Serialization.cs delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.Serialization.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSetProvisioningState.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.Serialization.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.Serialization.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.Serialization.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs rename sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/{ResourceAvailabilityTests.cs => NetAppResource_Tests.cs} (78%) delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/RegionInfoTests.cs diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md b/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md index 3622279d971f3..933844520cf5e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md +++ b/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md @@ -1,9 +1,12 @@ # Release History ## 1.4.0-beta.1 (Unreleased) - +- Updated to support ANF api-version 2022-09-01 ### Features Added - +- Added `QueryNetworkSiblingSetNetAppResource` and `UpdateNetworkSiblingSetNetAppResource` to allow clients to query and update the Networking features for a Networking siblingset related to a ANF Volume +- Added `CoolAccessRetrievalPolicy` to `NetAppVolumePatch` and `NetAppVolumeData`, coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. +- Added `SmbNonBrowsable` to `NetAppVolumePatch`, enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume +- Added `SmbAccessBasedEnumeration` to `NetAppVolumePatch`, Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume ### Breaking Changes ### Bugs Fixed diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.netstandard2.0.cs b/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.netstandard2.0.cs index 4829ad57dac33..167ed94f2dfc0 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.netstandard2.0.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.netstandard2.0.cs @@ -52,6 +52,7 @@ protected CapacityPoolResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.CapacityPoolPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.CapacityPoolPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class NetAppAccountBackupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected NetAppAccountBackupCollection() { } @@ -65,6 +66,7 @@ protected NetAppAccountBackupCollection() { } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class NetAppAccountBackupResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; @@ -102,6 +104,7 @@ public NetAppAccountData(Azure.Core.AzureLocation location) : base (default(Azur public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class NetAppAccountResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; @@ -119,7 +122,9 @@ protected NetAppAccountResource() { } public virtual System.Threading.Tasks.Task> GetCapacityPoolAsync(string poolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.NetApp.CapacityPoolCollection GetCapacityPools() { throw null; } public virtual Azure.Response GetNetAppAccountBackup(string backupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetNetAppAccountBackupAsync(string backupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.NetApp.NetAppAccountBackupCollection GetNetAppAccountBackups() { throw null; } public virtual Azure.ResourceManager.NetApp.NetAppBackupPolicyCollection GetNetAppBackupPolicies() { throw null; } public virtual Azure.Response GetNetAppBackupPolicy(string backupPolicyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -145,6 +150,7 @@ protected NetAppAccountResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppAccountPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppAccountPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class NetAppBackupData : Azure.ResourceManager.Models.ResourceData { public NetAppBackupData(Azure.Core.AzureLocation location) { } @@ -235,8 +241,12 @@ public static partial class NetAppExtensions public static Azure.ResourceManager.NetApp.NetAppVolumeResource GetNetAppVolumeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeSnapshotResource GetNetAppVolumeSnapshotResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.NetApp.SnapshotPolicyResource GetSnapshotPolicyResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response QueryNetworkSiblingSetNetAppResource(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.NetApp.Models.QueryNetworkSiblingSetContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> QueryNetworkSiblingSetNetAppResourceAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.NetApp.Models.QueryNetworkSiblingSetContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response QueryRegionInfoNetAppResource(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> QueryRegionInfoNetAppResourceAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ArmOperation UpdateNetworkSiblingSetNetAppResource(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.WaitUntil waitUntil, Azure.Core.AzureLocation location, Azure.ResourceManager.NetApp.Models.UpdateNetworkSiblingSetContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> UpdateNetworkSiblingSetNetAppResourceAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.WaitUntil waitUntil, Azure.Core.AzureLocation location, Azure.ResourceManager.NetApp.Models.UpdateNetworkSiblingSetContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class NetAppSubvolumeInfoCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -277,6 +287,7 @@ protected NetAppSubvolumeInfoResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppSubvolumeInfoPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppSubvolumeInfoPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class NetAppVolumeBackupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected NetAppVolumeBackupCollection() { } @@ -292,20 +303,31 @@ protected NetAppVolumeBackupCollection() { } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class NetAppVolumeBackupResource : Azure.ResourceManager.ArmResource { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static readonly Azure.Core.ResourceType ResourceType; protected NetAppVolumeBackupResource() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.NetApp.NetAppBackupData Data { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.ArmOperation RestoreFiles(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupBackupRestoreFilesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task RestoreFilesAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupBackupRestoreFilesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class NetAppVolumeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable @@ -332,6 +354,7 @@ public NetAppVolumeData(Azure.Core.AzureLocation location, string creationToken, public string BaremetalTenantId { get { throw null; } } public Azure.Core.ResourceIdentifier CapacityPoolResourceId { get { throw null; } set { } } public int? CloneProgress { get { throw null; } } + public Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? CoolAccessRetrievalPolicy { get { throw null; } set { } } public int? CoolnessPeriod { get { throw null; } set { } } public string CreationToken { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection DataProtection { get { throw null; } set { } } @@ -480,15 +503,20 @@ protected NetAppVolumeResource() { } public virtual System.Threading.Tasks.Task FinalizeRelocationAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response GetBackupStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetBackupStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation GetGetGroupIdListForLdapUser(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.GetGroupIdListForLdapUserContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetGetGroupIdListForLdapUserAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.GetGroupIdListForLdapUserContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetNetAppSubvolumeInfo(string subvolumeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetNetAppSubvolumeInfoAsync(string subvolumeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.NetApp.NetAppSubvolumeInfoCollection GetNetAppSubvolumeInfos() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response GetNetAppVolumeBackup(string backupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetNetAppVolumeBackupAsync(string backupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.NetApp.NetAppVolumeBackupCollection GetNetAppVolumeBackups() { throw null; } public virtual Azure.Response GetNetAppVolumeQuotaRule(string volumeQuotaRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetNetAppVolumeQuotaRuleAsync(string volumeQuotaRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -504,6 +532,8 @@ protected NetAppVolumeResource() { } public virtual System.Threading.Tasks.Task> GetRestoreStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation PoolChange(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppVolumePoolChangeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task PoolChangeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppVolumePoolChangeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation PopulateAvailabilityZone(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PopulateAvailabilityZoneAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation ReestablishReplication(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppVolumeReestablishReplicationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ReestablishReplicationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppVolumeReestablishReplicationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation ReInitializeReplication(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -628,16 +658,19 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.Models.NetAppEncryptionIdentity NetAppEncryptionIdentity(string principalId = null, string userAssignedIdentity = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppKeyVaultProperties NetAppKeyVaultProperties(string keyVaultId = null, System.Uri keyVaultUri = null, string keyName = null, string keyVaultResourceId = null, Azure.ResourceManager.NetApp.Models.NetAppKeyVaultStatus? status = default(Azure.ResourceManager.NetApp.Models.NetAppKeyVaultStatus?)) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppRegionInfo NetAppRegionInfo(Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity? storageToNetworkProximity = default(Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity?), System.Collections.Generic.IEnumerable availabilityZoneMappings = null) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppReplicationObject NetAppReplicationObject(string replicationId = null, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType = default(Azure.ResourceManager.NetApp.Models.NetAppEndpointType?), Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule?), Azure.Core.ResourceIdentifier remoteVolumeResourceId = null, string remoteVolumeRegion = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus = default(Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus?), Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string unhealthyReason = null, string errorMessage = null, long? totalTransferBytes = default(long?)) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, int? current = default(int?), int? @default = default(int?)) { throw null; } public static Azure.ResourceManager.NetApp.NetAppSubvolumeInfoData NetAppSubvolumeInfoData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string path = null, long? size = default(long?), string parentPath = null, string provisioningState = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppSubvolumeMetadata NetAppSubvolumeMetadata(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string path = null, string parentPath = null, long? size = default(long?), long? bytesUsed = default(long?), string permissions = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? accessedOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? changedOn = default(System.DateTimeOffset?), string provisioningState = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupDetail NetAppVolumeBackupDetail(string volumeName = null, int? backupsCount = default(int?), bool? isPolicyEnabled = default(bool?)) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus = default(Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus?), Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string unhealthyReason = null, string errorMessage = null, long? lastTransferSize = default(long?), string lastTransferType = null, long? totalTransferBytes = default(long?)) { throw null; } + public static Azure.ResourceManager.NetApp.NetAppVolumeData NetAppVolumeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable zones = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), System.Guid? networkSiblingSetId = default(System.Guid?), Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity?), System.Collections.Generic.IEnumerable mountTargets = null, string volumeType = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), string unixPermissions = null, int? cloneProgress = default(int?), Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs = default(Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog?), Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore = default(Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore?), System.Collections.Generic.IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = default(bool?), long? defaultUserQuotaInKiBs = default(long?), long? defaultGroupQuotaInKiBs = default(long?), long? maximumNumberOfFiles = default(long?), string volumeGroupName = null, Azure.Core.ResourceIdentifier capacityPoolResourceId = null, Azure.Core.ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = default(bool?), System.Collections.Generic.IEnumerable placementRules = null, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes = default(Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume?), string provisionedAvailabilityZone = null, bool? isLargeVolume = default(bool?), Azure.Core.ResourceIdentifier originatingResourceId = null) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeData NetAppVolumeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable zones = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), System.Guid? networkSiblingSetId = default(System.Guid?), Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity?), System.Collections.Generic.IEnumerable mountTargets = null, string volumeType = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), string unixPermissions = null, int? cloneProgress = default(int?), Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs = default(Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog?), Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore = default(Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore?), System.Collections.Generic.IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = default(bool?), long? defaultUserQuotaInKiBs = default(long?), long? defaultGroupQuotaInKiBs = default(long?), long? maximumNumberOfFiles = default(long?), string volumeGroupName = null, Azure.Core.ResourceIdentifier capacityPoolResourceId = null, Azure.Core.ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = default(bool?), System.Collections.Generic.IEnumerable placementRules = null, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes = default(Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume?), string provisionedAvailabilityZone = null, bool? isLargeVolume = default(bool?), Azure.Core.ResourceIdentifier originatingResourceId = null) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeGroupData NetAppVolumeGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string provisioningState = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupMetadata groupMetaData = null, System.Collections.Generic.IEnumerable volumes = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupMetadata NetAppVolumeGroupMetadata(string groupDescription = null, Azure.ResourceManager.NetApp.Models.NetAppApplicationType? applicationType = default(Azure.ResourceManager.NetApp.Models.NetAppApplicationType?), string applicationIdentifier = null, System.Collections.Generic.IEnumerable globalPlacementRules = null, string deploymentSpecId = null, long? volumesCount = default(long?)) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupResult NetAppVolumeGroupResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string provisioningState = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupMetadata groupMetaData = null) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), System.Collections.Generic.IDictionary tags = null, System.Collections.Generic.IEnumerable zones = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), System.Guid? networkSiblingSetId = default(System.Guid?), Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity?), System.Collections.Generic.IEnumerable mountTargets = null, string volumeType = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), string unixPermissions = null, int? cloneProgress = default(int?), Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs = default(Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog?), Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore = default(Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore?), System.Collections.Generic.IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = default(bool?), long? defaultUserQuotaInKiBs = default(long?), long? defaultGroupQuotaInKiBs = default(long?), long? maximumNumberOfFiles = default(long?), string volumeGroupName = null, Azure.Core.ResourceIdentifier capacityPoolResourceId = null, Azure.Core.ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = default(bool?), System.Collections.Generic.IEnumerable placementRules = null, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes = default(Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume?), string provisionedAvailabilityZone = null, bool? isLargeVolume = default(bool?), Azure.Core.ResourceIdentifier originatingResourceId = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), System.Collections.Generic.IDictionary tags = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), System.Guid? networkSiblingSetId = default(System.Guid?), Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity?), System.Collections.Generic.IEnumerable mountTargets = null, string volumeType = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), string unixPermissions = null, int? cloneProgress = default(int?), Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs = default(Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog?), Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore = default(Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore?), System.Collections.Generic.IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = default(bool?), long? defaultUserQuotaInKiBs = default(long?), long? defaultGroupQuotaInKiBs = default(long?), long? maximumNumberOfFiles = default(long?), string volumeGroupName = null, Azure.Core.ResourceIdentifier capacityPoolResourceId = null, Azure.Core.ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = default(bool?), System.Collections.Generic.IEnumerable placementRules = null, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes = default(Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume?), string provisionedAvailabilityZone = null, bool? isLargeVolume = default(bool?), Azure.Core.ResourceIdentifier originatingResourceId = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeMountTarget NetAppVolumeMountTarget(System.Guid? mountTargetId = default(System.Guid?), System.Guid fileSystemId = default(System.Guid), System.Net.IPAddress ipAddress = null, string smbServerFqdn = null) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeQuotaRuleData NetAppVolumeQuotaRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.NetApp.Models.NetAppProvisioningState? provisioningState = default(Azure.ResourceManager.NetApp.Models.NetAppProvisioningState?), long? quotaSizeInKiBs = default(long?), Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaType? quotaType = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaType?), string quotaTarget = null) { throw null; } @@ -645,6 +678,8 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplication NetAppVolumeReplication(Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType = default(Azure.ResourceManager.NetApp.Models.NetAppEndpointType?), Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule?), Azure.Core.ResourceIdentifier remoteVolumeResourceId = null, string remoteVolumeRegion = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplicationStatus NetAppVolumeReplicationStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus = default(Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus?), Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string totalProgress = null, string errorMessage = null) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeSnapshotData NetAppVolumeSnapshotData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string snapshotId = null, System.DateTimeOffset? created = default(System.DateTimeOffset?), string provisioningState = null) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetworkSiblingSet NetworkSiblingSet(string networkSiblingSetId = null, Azure.Core.ResourceIdentifier subnetId = null, string networkSiblingSetStateId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState? provisioningState = default(Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState?), System.Collections.Generic.IEnumerable nicInfoList = null) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NicInfo NicInfo(string ipAddress = null, System.Collections.Generic.IEnumerable volumeResourceIds = null) { throw null; } public static Azure.ResourceManager.NetApp.SnapshotPolicyData SnapshotPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.NetApp.Models.SnapshotPolicyHourlySchedule hourlySchedule = null, Azure.ResourceManager.NetApp.Models.SnapshotPolicyDailySchedule dailySchedule = null, Azure.ResourceManager.NetApp.Models.SnapshotPolicyWeeklySchedule weeklySchedule = null, Azure.ResourceManager.NetApp.Models.SnapshotPolicyMonthlySchedule monthlySchedule = null, bool? isEnabled = default(bool?), string provisioningState = null) { throw null; } } public partial class AvailabilityZoneMapping @@ -697,6 +732,25 @@ public CapacityPoolPatch(Azure.Core.AzureLocation location) : base (default(Azur public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CoolAccessRetrievalPolicy : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CoolAccessRetrievalPolicy(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy Default { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy Never { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy OnRead { get { throw null; } } + public bool Equals(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy left, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy right) { throw null; } + public static implicit operator Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy left, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EnableNetAppSubvolume : System.IEquatable { private readonly object _dummy; @@ -794,6 +848,7 @@ public NetAppAccountPatch(Azure.Core.AzureLocation location) : base (default(Azu private readonly object _dummy; private readonly int _dummyPrimitive; public NetAppApplicationType(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppApplicationType Oracle { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppApplicationType SapHana { get { throw null; } } public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppApplicationType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -835,6 +890,7 @@ public NetAppBackupPolicyPatch(Azure.Core.AzureLocation location) : base (defaul public int? VolumesAssigned { get { throw null; } } public int? WeeklyBackupsToKeep { get { throw null; } set { } } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct NetAppBackupType : System.IEquatable { @@ -1090,7 +1146,9 @@ public NetAppNameAvailabilityContent(string name, Azure.ResourceManager.NetApp.M private readonly int _dummyPrimitive; public NetAppNetworkFeature(string value) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature Basic { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature BasicStandard { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature Standard { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature StandardBasic { get { throw null; } } public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -1168,6 +1226,7 @@ public NetAppReplicationObject(Azure.Core.ResourceIdentifier remoteVolumeResourc public Azure.ResourceManager.NetApp.Models.NetAppEndpointType? EndpointType { get { throw null; } set { } } public string RemoteVolumeRegion { get { throw null; } set { } } public Azure.Core.ResourceIdentifier RemoteVolumeResourceId { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public string ReplicationId { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? ReplicationSchedule { get { throw null; } set { } } } @@ -1237,6 +1296,7 @@ public partial class NetAppVolumeAuthorizeReplicationContent public NetAppVolumeAuthorizeReplicationContent() { } public Azure.Core.ResourceIdentifier RemoteVolumeResourceId { get { throw null; } set { } } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class NetAppVolumeBackupBackupRestoreFilesContent { public NetAppVolumeBackupBackupRestoreFilesContent(System.Collections.Generic.IEnumerable fileList, Azure.Core.ResourceIdentifier destinationVolumeId) { } @@ -1246,6 +1306,7 @@ public NetAppVolumeBackupBackupRestoreFilesContent(System.Collections.Generic.IE } public partial class NetAppVolumeBackupConfiguration { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public NetAppVolumeBackupConfiguration() { } public Azure.Core.ResourceIdentifier BackupPolicyId { get { throw null; } set { } } public bool? IsBackupEnabled { get { throw null; } set { } } @@ -1274,6 +1335,7 @@ public NetAppVolumeBackupPatch() { } public bool? UseExistingSnapshot { get { throw null; } set { } } public string VolumeName { get { throw null; } } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class NetAppVolumeBackupStatus { internal NetAppVolumeBackupStatus() { } @@ -1300,6 +1362,7 @@ public NetAppVolumeBreakReplicationContent() { } public partial class NetAppVolumeDataProtection { public NetAppVolumeDataProtection() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupConfiguration Backup { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.NetAppReplicationObject Replication { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SnapshotPolicyId { get { throw null; } set { } } @@ -1350,6 +1413,7 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Azure. public string BaremetalTenantId { get { throw null; } } public Azure.Core.ResourceIdentifier CapacityPoolResourceId { get { throw null; } set { } } public int? CloneProgress { get { throw null; } } + public Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? CoolAccessRetrievalPolicy { get { throw null; } set { } } public int? CoolnessPeriod { get { throw null; } set { } } public string CreationToken { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection DataProtection { get { throw null; } set { } } @@ -1401,6 +1465,7 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Azure. public string VolumeGroupName { get { throw null; } } public string VolumeSpecName { get { throw null; } set { } } public string VolumeType { get { throw null; } set { } } + public System.Collections.Generic.IList Zones { get { throw null; } } } public partial class NetAppVolumeMountTarget { @@ -1413,6 +1478,7 @@ internal NetAppVolumeMountTarget() { } public partial class NetAppVolumePatch : Azure.ResourceManager.Models.TrackedResourceData { public NetAppVolumePatch(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? CoolAccessRetrievalPolicy { get { throw null; } set { } } public int? CoolnessPeriod { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.NetAppVolumePatchDataProtection DataProtection { get { throw null; } set { } } public long? DefaultGroupQuotaInKiBs { get { throw null; } set { } } @@ -1422,6 +1488,9 @@ public NetAppVolumePatch(Azure.Core.AzureLocation location) : base (default(Azur public bool? IsDefaultQuotaEnabled { get { throw null; } set { } } public bool? IsSnapshotDirectoryVisible { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? ServiceLevel { get { throw null; } set { } } + public Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? SmbAccessBasedEnumeration { get { throw null; } set { } } + public Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? SmbNonBrowsable { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SnapshotPolicyId { get { throw null; } set { } } public float? ThroughputMibps { get { throw null; } set { } } public string UnixPermissions { get { throw null; } set { } } public long? UsageThreshold { get { throw null; } set { } } @@ -1549,6 +1618,48 @@ public NetAppVolumeSnapshotRestoreFilesContent(System.Collections.Generic.IEnume public static bool operator !=(Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity left, Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity right) { throw null; } public override string ToString() { throw null; } } + public partial class NetworkSiblingSet + { + internal NetworkSiblingSet() { } + public Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? NetworkFeatures { get { throw null; } } + public string NetworkSiblingSetId { get { throw null; } } + public string NetworkSiblingSetStateId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList NicInfoList { get { throw null; } } + public Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState? ProvisioningState { get { throw null; } } + public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct NetworkSiblingSetProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public NetworkSiblingSetProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState left, Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState left, Azure.ResourceManager.NetApp.Models.NetworkSiblingSetProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class NicInfo + { + internal NicInfo() { } + public string IPAddress { get { throw null; } } + public System.Collections.Generic.IReadOnlyList VolumeResourceIds { get { throw null; } } + } + public partial class QueryNetworkSiblingSetContent + { + public QueryNetworkSiblingSetContent(string networkSiblingSetId, Azure.Core.ResourceIdentifier subnetId) { } + public string NetworkSiblingSetId { get { throw null; } } + public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RegionStorageToNetworkProximity : System.IEquatable { @@ -1657,4 +1768,12 @@ public SnapshotPolicyWeeklySchedule() { } public int? SnapshotsToKeep { get { throw null; } set { } } public long? UsedBytes { get { throw null; } set { } } } + public partial class UpdateNetworkSiblingSetContent + { + public UpdateNetworkSiblingSetContent(string networkSiblingSetId, Azure.Core.ResourceIdentifier subnetId, string networkSiblingSetStateId, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature networkFeatures) { } + public Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature NetworkFeatures { get { throw null; } } + public string NetworkSiblingSetId { get { throw null; } } + public string NetworkSiblingSetStateId { get { throw null; } } + public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } } + } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json index fe87c70d890b1..9f1fedb8c83ee 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json +++ b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/netapp/Azure.ResourceManager.NetApp", - "Tag": "net/netapp/Azure.ResourceManager.NetApp_3361636ec4" + "Tag": "net/netapp/Azure.ResourceManager.NetApp_3538fc7009" } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs index ae5e3a07b5067..f437b2666c22f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_CapacityPoolCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_PoolsList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_List.json // this example is just showing the usage of "Pools_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_PoolsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PoolsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Get.json // this example is just showing the usage of "Pools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_PoolsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_PoolsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Get.json // this example is just showing the usage of "Pools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_PoolsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PoolsCreateOrUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_CreateOrUpdate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_CreateOrUpdate.json // this example is just showing the usage of "Pools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolResource.cs index bdb83c95f5222..a06d0ce3eb049 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolResource.cs @@ -23,7 +23,7 @@ public partial class Sample_CapacityPoolResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PoolsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Get.json // this example is just showing the usage of "Pools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_PoolsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PoolsUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Update.json // this example is just showing the usage of "Pools_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Update_PoolsUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_PoolsDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Delete.json // this example is just showing the usage of "Pools_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupCollection.cs deleted file mode 100644 index 296757f50d5b5..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupCollection.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.NetApp; - -namespace Azure.ResourceManager.NetApp.Samples -{ - public partial class Sample_NetAppAccountBackupCollection - { - // AccountBackups_List - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_AccountBackupsList() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Account_List.json - // this example is just showing the usage of "AccountBackups_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppAccountResource created on azure - // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); - NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); - - // get the collection of this NetAppAccountBackupResource - NetAppAccountBackupCollection collection = netAppAccount.GetNetAppAccountBackups(); - - // invoke the operation and iterate over the result - await foreach (NetAppAccountBackupResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // AccountBackups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_AccountBackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Account_Get.json - // this example is just showing the usage of "AccountBackups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppAccountResource created on azure - // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); - NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); - - // get the collection of this NetAppAccountBackupResource - NetAppAccountBackupCollection collection = netAppAccount.GetNetAppAccountBackups(); - - // invoke the operation - string backupName = "backup1"; - NetAppAccountBackupResource result = await collection.GetAsync(backupName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // AccountBackups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_AccountBackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Account_Get.json - // this example is just showing the usage of "AccountBackups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppAccountResource created on azure - // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); - NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); - - // get the collection of this NetAppAccountBackupResource - NetAppAccountBackupCollection collection = netAppAccount.GetNetAppAccountBackups(); - - // invoke the operation - string backupName = "backup1"; - bool result = await collection.ExistsAsync(backupName); - - Console.WriteLine($"Succeeded: {result}"); - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupResource.cs deleted file mode 100644 index b287249bcf068..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupResource.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.NetApp; - -namespace Azure.ResourceManager.NetApp.Samples -{ - public partial class Sample_NetAppAccountBackupResource - { - // AccountBackups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_AccountBackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Account_Get.json - // this example is just showing the usage of "AccountBackups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppAccountBackupResource created on azure - // for more information of creating NetAppAccountBackupResource, please refer to the document of NetAppAccountBackupResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string backupName = "backup1"; - ResourceIdentifier netAppAccountBackupResourceId = NetAppAccountBackupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, backupName); - NetAppAccountBackupResource netAppAccountBackup = client.GetNetAppAccountBackupResource(netAppAccountBackupResourceId); - - // invoke the operation - NetAppAccountBackupResource result = await netAppAccountBackup.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // AccountBackups_Delete - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_AccountBackupsDelete() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Account_Delete.json - // this example is just showing the usage of "AccountBackups_Delete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppAccountBackupResource created on azure - // for more information of creating NetAppAccountBackupResource, please refer to the document of NetAppAccountBackupResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "resourceGroup"; - string accountName = "accountName"; - string backupName = "backupName"; - ResourceIdentifier netAppAccountBackupResourceId = NetAppAccountBackupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, backupName); - NetAppAccountBackupResource netAppAccountBackup = client.GetNetAppAccountBackupResource(netAppAccountBackupResourceId); - - // invoke the operation - await netAppAccountBackup.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountCollection.cs index 65c69fc87b231..1ba8d5be1ab6b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_NetAppAccountCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_AccountsList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_List.json // this example is just showing the usage of "Accounts_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_AccountsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AccountsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Get.json // this example is just showing the usage of "Accounts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_AccountsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_AccountsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Get.json // this example is just showing the usage of "Accounts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Exists_AccountsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AccountsCreateOrUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_CreateOrUpdate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_CreateOrUpdate.json // this example is just showing the usage of "Accounts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +160,7 @@ public async Task CreateOrUpdate_AccountsCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AccountsCreateOrUpdateWithActiveDirectory() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_CreateOrUpdateAD.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_CreateOrUpdateAD.json // this example is just showing the usage of "Accounts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountResource.cs index 6e39402ed05c1..876207cfe565a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountResource.cs @@ -24,7 +24,7 @@ public partial class Sample_NetAppAccountResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetAppAccounts_AccountsList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_List.json // this example is just showing the usage of "Accounts_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetNetAppAccounts_AccountsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AccountsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Get.json // this example is just showing the usage of "Accounts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_AccountsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_AccountsDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Delete.json // this example is just showing the usage of "Accounts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Delete_AccountsDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_AccountsUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Update.json // this example is just showing the usage of "Accounts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task Update_AccountsUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RenewCredentials_AccountsRenewCredentials() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_RenewCredentials.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_RenewCredentials.json // this example is just showing the usage of "Accounts_RenewCredentials" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,12 +175,42 @@ public async Task RenewCredentials_AccountsRenewCredentials() Console.WriteLine($"Succeeded"); } - // VolumeGroups_List + // VolumeGroups_List_Oracle [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetVolumeGroups_VolumeGroupsList() + public async Task GetVolumeGroups_VolumeGroupsListOracle() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_List_Oracle.json + // this example is just showing the usage of "VolumeGroups_ListByNetAppAccount" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetAppAccountResource created on azure + // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + string resourceGroupName = "myRG"; + string accountName = "account1"; + ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); + NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); + + // invoke the operation and iterate over the result + await foreach (NetAppVolumeGroupResult item in netAppAccount.GetVolumeGroupsAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + + // VolumeGroups_List_SapHana + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetVolumeGroups_VolumeGroupsListSapHana() + { + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_List_SapHana.json // this example is just showing the usage of "VolumeGroups_ListByNetAppAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs index 6299a30008746..fe1732392b27c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NetAppBackupPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_BackupsList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/BackupPolicies_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_List.json // this example is just showing the usage of "BackupPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task GetAll_BackupsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_BackupsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/BackupPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Get.json // this example is just showing the usage of "BackupPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_BackupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_BackupsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/BackupPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Get.json // this example is just showing the usage of "BackupPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_BackupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_BackupPoliciesCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/BackupPolicies_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Create.json // this example is just showing the usage of "BackupPolicies_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyResource.cs index 8ba568e8fab92..49ab196105188 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyResource.cs @@ -23,7 +23,7 @@ public partial class Sample_NetAppBackupPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_BackupsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/BackupPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Get.json // this example is just showing the usage of "BackupPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_BackupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_BackupPoliciesUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/BackupPolicies_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Update.json // this example is just showing the usage of "BackupPolicies_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Update_BackupPoliciesUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_BackupsDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/BackupPolicies_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Delete.json // this example is just showing the usage of "BackupPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs index cab9b19e6e072..dff0b33a1c838 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NetAppSubvolumeInfoCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_SubvolumesList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Subvolumes_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_List.json // this example is just showing the usage of "Subvolumes_ListByVolume" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task GetAll_SubvolumesList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SubvolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Subvolumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Get.json // this example is just showing the usage of "Subvolumes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_SubvolumesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_SubvolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Subvolumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Get.json // this example is just showing the usage of "Subvolumes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task Exists_SubvolumesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SubvolumesCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Subvolumes_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Create.json // this example is just showing the usage of "Subvolumes_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoResource.cs index 1d71f6a708f0b..b8947c09f20e5 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoResource.cs @@ -23,7 +23,7 @@ public partial class Sample_NetAppSubvolumeInfoResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SubvolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Subvolumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Get.json // this example is just showing the usage of "Subvolumes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_SubvolumesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SubvolumesUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Subvolumes_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Update.json // this example is just showing the usage of "Subvolumes_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Update_SubvolumesUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_SubvolumesDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Subvolumes_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Delete.json // this example is just showing the usage of "Subvolumes_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Delete_SubvolumesDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetMetadata_SubvolumesMetadata() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Subvolumes_Metadata.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Metadata.json // this example is just showing the usage of "Subvolumes_GetMetadata" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupCollection.cs deleted file mode 100644 index 9caa34ff4d0ac..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupCollection.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.NetApp; - -namespace Azure.ResourceManager.NetApp.Samples -{ - public partial class Sample_NetAppVolumeBackupCollection - { - // Backups_List - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_BackupsList() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_List.json - // this example is just showing the usage of "Backups_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppVolumeBackupResource - NetAppVolumeBackupCollection collection = netAppVolume.GetNetAppVolumeBackups(); - - // invoke the operation and iterate over the result - await foreach (NetAppVolumeBackupResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Backups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_BackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Get.json - // this example is just showing the usage of "Backups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppVolumeBackupResource - NetAppVolumeBackupCollection collection = netAppVolume.GetNetAppVolumeBackups(); - - // invoke the operation - string backupName = "backup1"; - NetAppVolumeBackupResource result = await collection.GetAsync(backupName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Backups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_BackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Get.json - // this example is just showing the usage of "Backups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppVolumeBackupResource - NetAppVolumeBackupCollection collection = netAppVolume.GetNetAppVolumeBackups(); - - // invoke the operation - string backupName = "backup1"; - bool result = await collection.ExistsAsync(backupName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Backups_Create - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_BackupsCreate() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Create.json - // this example is just showing the usage of "Backups_Create" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppVolumeBackupResource - NetAppVolumeBackupCollection collection = netAppVolume.GetNetAppVolumeBackups(); - - // invoke the operation - string backupName = "backup1"; - NetAppBackupData data = new NetAppBackupData(new AzureLocation("eastus")) - { - Label = "myLabel", - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, backupName, data); - NetAppVolumeBackupResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupResource.cs deleted file mode 100644 index d958c3f20149e..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupResource.cs +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.NetApp; -using Azure.ResourceManager.NetApp.Models; - -namespace Azure.ResourceManager.NetApp.Samples -{ - public partial class Sample_NetAppVolumeBackupResource - { - // Backups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_BackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Get.json - // this example is just showing the usage of "Backups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeBackupResource created on azure - // for more information of creating NetAppVolumeBackupResource, please refer to the document of NetAppVolumeBackupResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - string backupName = "backup1"; - ResourceIdentifier netAppVolumeBackupResourceId = NetAppVolumeBackupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); - NetAppVolumeBackupResource netAppVolumeBackup = client.GetNetAppVolumeBackupResource(netAppVolumeBackupResourceId); - - // invoke the operation - NetAppVolumeBackupResource result = await netAppVolumeBackup.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Backups_Update - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_BackupsUpdate() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Update.json - // this example is just showing the usage of "Backups_Update" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeBackupResource created on azure - // for more information of creating NetAppVolumeBackupResource, please refer to the document of NetAppVolumeBackupResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - string backupName = "backup1"; - ResourceIdentifier netAppVolumeBackupResourceId = NetAppVolumeBackupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); - NetAppVolumeBackupResource netAppVolumeBackup = client.GetNetAppVolumeBackupResource(netAppVolumeBackupResourceId); - - // invoke the operation - NetAppVolumeBackupPatch patch = new NetAppVolumeBackupPatch(); - ArmOperation lro = await netAppVolumeBackup.UpdateAsync(WaitUntil.Completed, patch); - NetAppVolumeBackupResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Backups_Delete - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_BackupsDelete() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Delete.json - // this example is just showing the usage of "Backups_Delete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeBackupResource created on azure - // for more information of creating NetAppVolumeBackupResource, please refer to the document of NetAppVolumeBackupResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "resourceGroup"; - string accountName = "accountName"; - string poolName = "poolName"; - string volumeName = "volumeName"; - string backupName = "backupName"; - ResourceIdentifier netAppVolumeBackupResourceId = NetAppVolumeBackupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); - NetAppVolumeBackupResource netAppVolumeBackup = client.GetNetAppVolumeBackupResource(netAppVolumeBackupResourceId); - - // invoke the operation - await netAppVolumeBackup.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - - // Backups_SingleFileRestore - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task RestoreFiles_BackupsSingleFileRestore() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_SingleFileRestore.json - // this example is just showing the usage of "Backups_RestoreFiles" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeBackupResource created on azure - // for more information of creating NetAppVolumeBackupResource, please refer to the document of NetAppVolumeBackupResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - string backupName = "backup1"; - ResourceIdentifier netAppVolumeBackupResourceId = NetAppVolumeBackupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); - NetAppVolumeBackupResource netAppVolumeBackup = client.GetNetAppVolumeBackupResource(netAppVolumeBackupResourceId); - - // invoke the operation - NetAppVolumeBackupBackupRestoreFilesContent content = new NetAppVolumeBackupBackupRestoreFilesContent(new string[] - { -"/dir1/customer1.db","/dir1/customer2.db" - }, new ResourceIdentifier("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1")); - await netAppVolumeBackup.RestoreFilesAsync(WaitUntil.Completed, content); - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs index a328f368443d9..172874d659f16 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_NetAppVolumeCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VolumesList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_List.json // this example is just showing the usage of "Volumes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task GetAll_VolumesList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Get.json // this example is just showing the usage of "Volumes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Get_VolumesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Get.json // this example is just showing the usage of "Volumes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task Exists_VolumesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VolumesCreateOrUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_CreateOrUpdate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_CreateOrUpdate.json // this example is just showing the usage of "Volumes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs index 3af01817da5ee..fae87c9fd5234 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs @@ -18,12 +18,12 @@ namespace Azure.ResourceManager.NetApp.Samples { public partial class Sample_NetAppVolumeGroupCollection { - // VolumeGroups_Get + // VolumeGroups_Get_Oracle [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VolumeGroupsGet() + public async Task Get_VolumeGroupsGetOracle() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_Oracle.json // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,12 +53,12 @@ public async Task Get_VolumeGroupsGet() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VolumeGroups_Get + // VolumeGroups_Get_Oracle [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_VolumeGroupsGet() + public async Task Exists_VolumeGroupsGetOracle() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_Oracle.json // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,12 +84,548 @@ public async Task Exists_VolumeGroupsGet() Console.WriteLine($"Succeeded: {result}"); } - // VolumeGroups_Create + // VolumeGroups_Get_SapHana [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_VolumeGroupsCreate() + public async Task Get_VolumeGroupsGetSapHana() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_SapHana.json + // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetAppAccountResource created on azure + // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + string resourceGroupName = "myRG"; + string accountName = "account1"; + ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); + NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); + + // get the collection of this NetAppVolumeGroupResource + NetAppVolumeGroupCollection collection = netAppAccount.GetNetAppVolumeGroups(); + + // invoke the operation + string volumeGroupName = "group1"; + NetAppVolumeGroupResource result = await collection.GetAsync(volumeGroupName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetAppVolumeGroupData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // VolumeGroups_Get_SapHana + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_VolumeGroupsGetSapHana() + { + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_SapHana.json + // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetAppAccountResource created on azure + // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + string resourceGroupName = "myRG"; + string accountName = "account1"; + ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); + NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); + + // get the collection of this NetAppVolumeGroupResource + NetAppVolumeGroupCollection collection = netAppAccount.GetNetAppVolumeGroups(); + + // invoke the operation + string volumeGroupName = "group1"; + bool result = await collection.ExistsAsync(volumeGroupName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // VolumeGroups_Create_Oracle + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_VolumeGroupsCreateOracle() + { + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Create_Oracle.json + // this example is just showing the usage of "VolumeGroups_Create" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetAppAccountResource created on azure + // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + string resourceGroupName = "myRG"; + string accountName = "account1"; + ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); + NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); + + // get the collection of this NetAppVolumeGroupResource + NetAppVolumeGroupCollection collection = netAppAccount.GetNetAppVolumeGroups(); + + // invoke the operation + string volumeGroupName = "group1"; + NetAppVolumeGroupData data = new NetAppVolumeGroupData() + { + Location = new AzureLocation("westus"), + GroupMetaData = new NetAppVolumeGroupMetadata() + { + GroupDescription = "Volume group", + ApplicationType = NetAppApplicationType.Oracle, + ApplicationIdentifier = "OR2", + }, + Volumes = +{ +new NetAppVolumeGroupVolume("test-ora-data1",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data1", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data1", +},new NetAppVolumeGroupVolume("test-ora-data2",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data2", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data2", +},new NetAppVolumeGroupVolume("test-ora-data3",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data3", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data3", +},new NetAppVolumeGroupVolume("test-ora-data4",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data4", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data4", +},new NetAppVolumeGroupVolume("test-ora-data5",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data5", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data5", +},new NetAppVolumeGroupVolume("test-ora-data6",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data6", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data6", +},new NetAppVolumeGroupVolume("test-ora-data7",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data7", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data7", +},new NetAppVolumeGroupVolume("test-ora-data8",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data8", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data8", +},new NetAppVolumeGroupVolume("test-ora-log",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-log", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-log", +},new NetAppVolumeGroupVolume("test-ora-log-mirror",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-log-mirror", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-log-mirror", +},new NetAppVolumeGroupVolume("test-ora-binary",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-binary", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-binary", +},new NetAppVolumeGroupVolume("test-ora-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-backup", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-backup", +} +}, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, volumeGroupName, data); + NetAppVolumeGroupResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetAppVolumeGroupData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // VolumeGroups_Create_SapHana + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_VolumeGroupsCreateSapHana() + { + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Create_SapHana.json // this example is just showing the usage of "VolumeGroups_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,8 +653,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreate() { GroupDescription = "Volume group", ApplicationType = NetAppApplicationType.SapHana, - ApplicationIdentifier = "DEV", - DeploymentSpecId = "20542149-bfca-5618-1879-9863dc6767f1", + ApplicationIdentifier = "SH9", }, Volumes = { @@ -126,6 +661,30 @@ public async Task CreateOrUpdate_VolumeGroupsCreate() { Name = "test-data-mnt00001", ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), @@ -134,6 +693,30 @@ public async Task CreateOrUpdate_VolumeGroupsCreate() { Name = "test-log-mnt00001", ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), @@ -142,10 +725,98 @@ public async Task CreateOrUpdate_VolumeGroupsCreate() { Name = "test-shared", ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), VolumeSpecName = "shared", +},new NetAppVolumeGroupVolume("test-data-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-data-backup", +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), +VolumeSpecName = "data-backup", +},new NetAppVolumeGroupVolume("test-log-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-log-backup", +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), +VolumeSpecName = "log-backup", } }, }; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupResource.cs index 9ddcdbd991971..75fca3421e034 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupResource.cs @@ -18,12 +18,12 @@ namespace Azure.ResourceManager.NetApp.Samples { public partial class Sample_NetAppVolumeGroupResource { - // VolumeGroups_Get + // VolumeGroups_Get_Oracle [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_VolumeGroupsGet() + public async Task Get_VolumeGroupsGetOracle() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_Oracle.json // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,12 +50,511 @@ public async Task Get_VolumeGroupsGet() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VolumeGroups_Create + // VolumeGroups_Get_SapHana [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_VolumeGroupsCreate() + public async Task Get_VolumeGroupsGetSapHana() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_SapHana.json + // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetAppVolumeGroupResource created on azure + // for more information of creating NetAppVolumeGroupResource, please refer to the document of NetAppVolumeGroupResource + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + string resourceGroupName = "myRG"; + string accountName = "account1"; + string volumeGroupName = "group1"; + ResourceIdentifier netAppVolumeGroupResourceId = NetAppVolumeGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, volumeGroupName); + NetAppVolumeGroupResource netAppVolumeGroup = client.GetNetAppVolumeGroupResource(netAppVolumeGroupResourceId); + + // invoke the operation + NetAppVolumeGroupResource result = await netAppVolumeGroup.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetAppVolumeGroupData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // VolumeGroups_Create_Oracle + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_VolumeGroupsCreateOracle() + { + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Create_Oracle.json + // this example is just showing the usage of "VolumeGroups_Create" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetAppVolumeGroupResource created on azure + // for more information of creating NetAppVolumeGroupResource, please refer to the document of NetAppVolumeGroupResource + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + string resourceGroupName = "myRG"; + string accountName = "account1"; + string volumeGroupName = "group1"; + ResourceIdentifier netAppVolumeGroupResourceId = NetAppVolumeGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, volumeGroupName); + NetAppVolumeGroupResource netAppVolumeGroup = client.GetNetAppVolumeGroupResource(netAppVolumeGroupResourceId); + + // invoke the operation + NetAppVolumeGroupData data = new NetAppVolumeGroupData() + { + Location = new AzureLocation("westus"), + GroupMetaData = new NetAppVolumeGroupMetadata() + { + GroupDescription = "Volume group", + ApplicationType = NetAppApplicationType.Oracle, + ApplicationIdentifier = "OR2", + }, + Volumes = +{ +new NetAppVolumeGroupVolume("test-ora-data1",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data1", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data1", +},new NetAppVolumeGroupVolume("test-ora-data2",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data2", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data2", +},new NetAppVolumeGroupVolume("test-ora-data3",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data3", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data3", +},new NetAppVolumeGroupVolume("test-ora-data4",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data4", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data4", +},new NetAppVolumeGroupVolume("test-ora-data5",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data5", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data5", +},new NetAppVolumeGroupVolume("test-ora-data6",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data6", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data6", +},new NetAppVolumeGroupVolume("test-ora-data7",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data7", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data7", +},new NetAppVolumeGroupVolume("test-ora-data8",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-data8", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-data8", +},new NetAppVolumeGroupVolume("test-ora-log",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-log", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-log", +},new NetAppVolumeGroupVolume("test-ora-log-mirror",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-log-mirror", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-log-mirror", +},new NetAppVolumeGroupVolume("test-ora-binary",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-binary", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-binary", +},new NetAppVolumeGroupVolume("test-ora-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-ora-backup", +Zones = +{ +"1" +}, +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +VolumeSpecName = "ora-backup", +} +}, + }; + ArmOperation lro = await netAppVolumeGroup.UpdateAsync(WaitUntil.Completed, data); + NetAppVolumeGroupResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetAppVolumeGroupData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // VolumeGroups_Create_SapHana + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_VolumeGroupsCreateSapHana() + { + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Create_SapHana.json // this example is just showing the usage of "VolumeGroups_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,8 +579,7 @@ public async Task Update_VolumeGroupsCreate() { GroupDescription = "Volume group", ApplicationType = NetAppApplicationType.SapHana, - ApplicationIdentifier = "DEV", - DeploymentSpecId = "20542149-bfca-5618-1879-9863dc6767f1", + ApplicationIdentifier = "SH9", }, Volumes = { @@ -89,6 +587,30 @@ public async Task Update_VolumeGroupsCreate() { Name = "test-data-mnt00001", ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), @@ -97,6 +619,30 @@ public async Task Update_VolumeGroupsCreate() { Name = "test-log-mnt00001", ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), @@ -105,10 +651,98 @@ public async Task Update_VolumeGroupsCreate() { Name = "test-shared", ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), VolumeSpecName = "shared", +},new NetAppVolumeGroupVolume("test-data-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-data-backup", +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), +VolumeSpecName = "data-backup", +},new NetAppVolumeGroupVolume("test-log-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +{ +Name = "test-log-backup", +ServiceLevel = NetAppFileServiceLevel.Premium, +ExportRules = +{ +new NetAppVolumeExportPolicyRule() +{ +RuleIndex = 1, +IsUnixReadOnly = true, +IsUnixReadWrite = true, +IsKerberos5ReadOnly = false, +IsKerberos5ReadWrite = false, +IsKerberos5iReadOnly = false, +IsKerberos5iReadWrite = false, +IsKerberos5pReadOnly = false, +IsKerberos5pReadWrite = false, +AllowCifsProtocol = false, +AllowNfsV3Protocol = false, +AllowNfsV41Protocol = true, +AllowedClients = "0.0.0.0/0", +HasRootAccess = true, +} +}, +ProtocolTypes = +{ +"NFSv4.1" +}, +ThroughputMibps = 10, +CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), +ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), +VolumeSpecName = "log-backup", } }, }; @@ -127,7 +761,7 @@ public async Task Update_VolumeGroupsCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VolumeGroupsDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Delete.json // this example is just showing the usage of "VolumeGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs index 3267321ec6392..18d4febeb2e12 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_NetAppVolumeQuotaRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VolumeQuotaRulesList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeQuotaRules_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_List.json // this example is just showing the usage of "VolumeQuotaRules_ListByVolume" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task GetAll_VolumeQuotaRulesList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VolumeQuotaRulesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeQuotaRules_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Get.json // this example is just showing the usage of "VolumeQuotaRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,7 +99,7 @@ public async Task Get_VolumeQuotaRulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VolumeQuotaRulesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeQuotaRules_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Get.json // this example is just showing the usage of "VolumeQuotaRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task Exists_VolumeQuotaRulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VolumeQuotaRulesCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeQuotaRules_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Create.json // this example is just showing the usage of "VolumeQuotaRules_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs index 3af085176db5a..997bbedfcafb1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs @@ -23,7 +23,7 @@ public partial class Sample_NetAppVolumeQuotaRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VolumeQuotaRulesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeQuotaRules_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Get.json // this example is just showing the usage of "VolumeQuotaRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_VolumeQuotaRulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VolumeQuotaRulesUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeQuotaRules_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Update.json // this example is just showing the usage of "VolumeQuotaRules_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Update_VolumeQuotaRulesUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VolumeQuotaRulesDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeQuotaRules_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Delete.json // this example is just showing the usage of "VolumeQuotaRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeResource.cs index 77d86d545d685..edea3fbe5da21 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeResource.cs @@ -24,7 +24,7 @@ public partial class Sample_NetAppVolumeResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Get.json // this example is just showing the usage of "Volumes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_VolumesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VolumesUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Update.json // this example is just showing the usage of "Volumes_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Update_VolumesUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VolumesDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Delete.json // this example is just showing the usage of "Volumes_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -116,12 +116,46 @@ public async Task Delete_VolumesDelete() Console.WriteLine($"Succeeded"); } + // Volumes_PopulateAvailabilityZones + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task PopulateAvailabilityZone_VolumesPopulateAvailabilityZones() + { + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PopulateAvailabilityZones.json + // this example is just showing the usage of "Volumes_PopulateAvailabilityZone" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetAppVolumeResource created on azure + // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + string resourceGroupName = "myRG"; + string accountName = "account1"; + string poolName = "pool1"; + string volumeName = "volume1"; + ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); + + // invoke the operation + ArmOperation lro = await netAppVolume.PopulateAvailabilityZoneAsync(WaitUntil.Completed); + NetAppVolumeResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetAppVolumeData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // Volumes_Revert [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Revert_VolumesRevert() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_Revert.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Revert.json // this example is just showing the usage of "Volumes_Revert" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -154,7 +188,7 @@ public async Task Revert_VolumesRevert() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ResetCifsPassword_VolumesResetCifsPassword() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_ResetCifsPassword.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResetCifsPassword.json // this example is just showing the usage of "Volumes_ResetCifsPassword" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +217,7 @@ public async Task ResetCifsPassword_VolumesResetCifsPassword() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task BreakFileLocks_VolumesBreakFileLocks() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_BreakFileLocks.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakFileLocks.json // this example is just showing the usage of "Volumes_BreakFileLocks" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -217,7 +251,7 @@ public async Task BreakFileLocks_VolumesBreakFileLocks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetGetGroupIdListForLdapUser_GetGroupIdListForUser() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/GroupIdListForLDAPUser.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/GroupIdListForLDAPUser.json // this example is just showing the usage of "Volumes_ListGetGroupIdListForLdapUser" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -248,7 +282,7 @@ public async Task GetGetGroupIdListForLdapUser_GetGroupIdListForUser() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task BreakReplication_VolumesBreakReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_BreakReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakReplication.json // this example is just showing the usage of "Volumes_BreakReplication" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -281,7 +315,7 @@ public async Task BreakReplication_VolumesBreakReplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ReestablishReplication_VolumesReestablishReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_ReestablishReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReestablishReplication.json // this example is just showing the usage of "Volumes_ReestablishReplication" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -314,7 +348,7 @@ public async Task ReestablishReplication_VolumesReestablishReplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetReplicationStatus_VolumesReplicationStatus() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_ReplicationStatus.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReplicationStatus.json // this example is just showing the usage of "Volumes_ReplicationStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -343,7 +377,7 @@ public async Task GetReplicationStatus_VolumesReplicationStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetReplications_VolumesListReplications() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_ListReplications.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ListReplications.json // this example is just showing the usage of "Volumes_ListReplications" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -375,7 +409,7 @@ public async Task GetReplications_VolumesListReplications() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ResyncReplication_VolumesResyncReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_ResyncReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResyncReplication.json // this example is just showing the usage of "Volumes_ResyncReplication" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -404,7 +438,7 @@ public async Task ResyncReplication_VolumesResyncReplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DeleteReplication_VolumesDeleteReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_DeleteReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_DeleteReplication.json // this example is just showing the usage of "Volumes_DeleteReplication" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -433,7 +467,7 @@ public async Task DeleteReplication_VolumesDeleteReplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task AuthorizeReplication_VolumesAuthorizeReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_AuthorizeReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_AuthorizeReplication.json // this example is just showing the usage of "Volumes_AuthorizeReplication" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -466,7 +500,7 @@ public async Task AuthorizeReplication_VolumesAuthorizeReplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ReInitializeReplication_VolumesReInitializeReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_ReInitializeReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReInitializeReplication.json // this example is just showing the usage of "Volumes_ReInitializeReplication" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -495,7 +529,7 @@ public async Task ReInitializeReplication_VolumesReInitializeReplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PoolChange_VolumesAuthorizeReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_PoolChange.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PoolChange.json // this example is just showing the usage of "Volumes_PoolChange" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -525,7 +559,7 @@ public async Task PoolChange_VolumesAuthorizeReplication() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Relocate_VolumesRelocate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_Relocate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Relocate.json // this example is just showing the usage of "Volumes_Relocate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -555,7 +589,7 @@ public async Task Relocate_VolumesRelocate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task FinalizeRelocation_VolumesFinalizeRelocation() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_FinalizeRelocation.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_FinalizeRelocation.json // this example is just showing the usage of "Volumes_FinalizeRelocation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -584,7 +618,7 @@ public async Task FinalizeRelocation_VolumesFinalizeRelocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RevertRelocation_VolumesRevertRelocation() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_RevertRelocation.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RevertRelocation.json // this example is just showing the usage of "Volumes_RevertRelocation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -608,41 +642,12 @@ public async Task RevertRelocation_VolumesRevertRelocation() Console.WriteLine($"Succeeded"); } - // Volumes_BackupStatus - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetBackupStatus_VolumesBackupStatus() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_BackupStatus.json - // this example is just showing the usage of "Backups_GetStatus" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // invoke the operation - NetAppVolumeBackupStatus result = await netAppVolume.GetBackupStatusAsync(); - - Console.WriteLine($"Succeeded: {result}"); - } - // Volumes_RestoreStatus [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRestoreStatus_VolumesRestoreStatus() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_RestoreStatus.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RestoreStatus.json // this example is just showing the usage of "Backups_GetVolumeRestoreStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs index b3feb7cb0fb3e..4f27d56d1d6e3 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NetAppVolumeSnapshotCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_SnapshotsList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Snapshots_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_List.json // this example is just showing the usage of "Snapshots_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task GetAll_SnapshotsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SnapshotsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Snapshots_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Get.json // this example is just showing the usage of "Snapshots_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_SnapshotsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_SnapshotsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Snapshots_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Get.json // this example is just showing the usage of "Snapshots_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task Exists_SnapshotsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SnapshotsCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Snapshots_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Create.json // this example is just showing the usage of "Snapshots_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotResource.cs index b9ba21532a9da..a1d7592a997bb 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotResource.cs @@ -23,7 +23,7 @@ public partial class Sample_NetAppVolumeSnapshotResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SnapshotsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Snapshots_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Get.json // this example is just showing the usage of "Snapshots_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_SnapshotsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SnapshotsCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Snapshots_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Create.json // this example is just showing the usage of "Snapshots_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Update_SnapshotsCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_SnapshotsDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Snapshots_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Delete.json // this example is just showing the usage of "Snapshots_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Delete_SnapshotsDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RestoreFiles_SnapshotsSingleFileRestore() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Snapshots_SingleFileRestore.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_SingleFileRestore.json // this example is just showing the usage of "Snapshots_RestoreFiles" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyCollection.cs index fbc6bfd325e0d..fb635e04fd6db 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_SnapshotPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_SnapshotPoliciesList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_List.json // this example is just showing the usage of "SnapshotPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_SnapshotPoliciesList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SnapshotPoliciesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Get.json // this example is just showing the usage of "SnapshotPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_SnapshotPoliciesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_SnapshotPoliciesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Get.json // this example is just showing the usage of "SnapshotPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_SnapshotPoliciesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SnapshotPoliciesCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Create.json // this example is just showing the usage of "SnapshotPolicies_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyResource.cs index a1f44849d81bf..016fb0358f93e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyResource.cs @@ -23,7 +23,7 @@ public partial class Sample_SnapshotPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SnapshotPoliciesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Get.json // this example is just showing the usage of "SnapshotPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_SnapshotPoliciesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SnapshotPoliciesUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Update.json // this example is just showing the usage of "SnapshotPolicies_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task Update_SnapshotPoliciesUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_SnapshotPoliciesDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Delete.json // this example is just showing the usage of "SnapshotPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task Delete_SnapshotPoliciesDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVolumes_SnapshotPoliciesListVolumes() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_ListVolumes.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_ListVolumes.json // this example is just showing the usage of "SnapshotPolicies_ListVolumes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 2afdd099fc06e..c81537d118fa7 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -7,6 +7,7 @@ using System; using System.Threading.Tasks; +using Azure; using Azure.Core; using Azure.Identity; using Azure.ResourceManager; @@ -23,7 +24,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckNetAppNameAvailability_CheckNameAvailability() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/CheckNameAvailability.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckNameAvailability.json // this example is just showing the usage of "NetAppResource_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +51,7 @@ public async Task CheckNetAppNameAvailability_CheckNameAvailability() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckNetAppFilePathAvailability_CheckFilePathAvailability() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/CheckFilePathAvailability.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckFilePathAvailability.json // this example is just showing the usage of "NetAppResource_CheckFilePathAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -77,7 +78,7 @@ public async Task CheckNetAppFilePathAvailability_CheckFilePathAvailability() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckNetAppQuotaAvailability_CheckQuotaAvailability() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/CheckQuotaAvailability.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckQuotaAvailability.json // this example is just showing the usage of "NetAppResource_CheckQuotaAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -104,7 +105,7 @@ public async Task CheckNetAppQuotaAvailability_CheckQuotaAvailability() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task QueryRegionInfoNetAppResource_RegionInfoQuery() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/RegionInfo.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/RegionInfo.json // this example is just showing the usage of "NetAppResource_QueryRegionInfo" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,12 +126,67 @@ public async Task QueryRegionInfoNetAppResource_RegionInfoQuery() Console.WriteLine($"Succeeded: {result}"); } + // NetworkSiblingSet_Query + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task QueryNetworkSiblingSetNetAppResource_NetworkSiblingSetQuery() + { + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/NetworkSiblingSet_Query.json + // this example is just showing the usage of "NetAppResource_QueryNetworkSiblingSet" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation + AzureLocation location = new AzureLocation("eastus"); + QueryNetworkSiblingSetContent content = new QueryNetworkSiblingSetContent("9760acf5-4638-11e7-9bdb-020073ca3333", new ResourceIdentifier("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet")); + NetworkSiblingSet result = await subscriptionResource.QueryNetworkSiblingSetNetAppResourceAsync(location, content); + + Console.WriteLine($"Succeeded: {result}"); + } + + // NetworkFeatures_Update + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task UpdateNetworkSiblingSetNetAppResource_NetworkFeaturesUpdate() + { + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/NetworkSiblingSet_Update.json + // this example is just showing the usage of "NetAppResource_UpdateNetworkSiblingSet" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation + AzureLocation location = new AzureLocation("eastus"); + UpdateNetworkSiblingSetContent content = new UpdateNetworkSiblingSetContent("9760acf5-4638-11e7-9bdb-020073ca3333", new ResourceIdentifier("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), "12345_44420.8001578125", NetAppNetworkFeature.Standard); + ArmOperation lro = await subscriptionResource.UpdateNetworkSiblingSetNetAppResourceAsync(WaitUntil.Completed, location, content); + NetworkSiblingSet result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + // QuotaLimits [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetAppQuotaLimits_QuotaLimits() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/QuotaLimits_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_List.json // this example is just showing the usage of "NetAppResourceQuotaLimits_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -159,7 +215,7 @@ public async Task GetNetAppQuotaLimits_QuotaLimits() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetAppQuotaLimit_QuotaLimits() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/QuotaLimits_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_Get.json // this example is just showing the usage of "NetAppResourceQuotaLimits_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs new file mode 100644 index 0000000000000..ea3b22325d94b --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs @@ -0,0 +1,201 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager.Models; +using System; +using Azure.ResourceManager.NetApp.Models; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// Model factory for models. + public static partial class ArmNetAppModelFactory + { + /// Initializes a new instance of NetAppVolumeBackupStatus. + /// Backup health status. + /// Status of the backup mirror relationship. + /// The status of the backup. + /// Reason for the unhealthy backup relationship. + /// Displays error message if the backup is in an error state. + /// Displays the last transfer size. + /// Displays the last transfer type. + /// Displays the total bytes transferred. + /// A new instance for mocking. + public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = null, NetAppRelationshipStatus? relationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? lastTransferSize = null, string lastTransferType = null, long? totalTransferBytes = null) + { + return new NetAppVolumeBackupStatus(isHealthy, relationshipStatus, mirrorState, unhealthyReason, errorMessage, lastTransferSize, lastTransferType, totalTransferBytes); + } + + /// Initializes a new instance of NetAppBackupData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Resource location. + /// UUID v4 used to identify the Backup. + /// The creation date of the backup. + /// Azure lifecycle management. + /// Size of backup. + /// Label for backup. + /// Type of backup Manual or Scheduled. + /// Failure reason. + /// Volume name. + /// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups. + /// A new instance for mocking. + public static NetAppBackupData NetAppBackupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation location = default, string backupId = null, DateTimeOffset? createdOn = null, string provisioningState = null, long? size = null, string label = null, NetAppBackupType? backupType = null, string failureReason = null, string volumeName = null, bool? useExistingSnapshot = null) + { + return new NetAppBackupData(id, name, resourceType, systemData, location, backupId, createdOn, provisioningState, size, label, backupType, failureReason, volumeName, useExistingSnapshot); + } + + /// Initializes a new instance of NetAppVolumeGroupVolume. + /// Resource Id. + /// Resource name. + /// Resource type. + /// Resource tags. + /// Unique FileSystem Identifier. + /// A unique file path for the volume. Used when creating mount targets. + /// The service level of the file system. + /// 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, 500Tib for LargeVolume. Specified in bytes. + /// Set of export policy rules. + /// Set of protocol types, default NFSv3, CIFS for SMB protocol. + /// Azure lifecycle management. + /// UUID v4 or resource identifier used to identify the Snapshot. + /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false. + /// UUID v4 or resource identifier used to identify the Backup. + /// Unique Baremetal Tenant Identifier. + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. + /// Basic network, or Standard features available to the volume. + /// Network Sibling Set ID for the the group of volumes sharing networking resources. + /// Provides storage to network proximity information for the volume. + /// List of mount targets. + /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. + /// DataProtection type volumes include an object containing details of the replication. + /// Restoring. + /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (defaults to true). + /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. + /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. + /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. + /// Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables continuously available share property for smb volume. Only applicable for SMB volume. + /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. + /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. + /// Source of key used to encrypt data in volume. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'. + /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. + /// Specifies whether LDAP is enabled or not for a given NFS volume. + /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// 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. + /// 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. + /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + /// Data store resource unique identifier. + /// Specifies if default quota is enabled for the volume. + /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. + /// Volume Group Name. + /// Pool Resource Id used in case of creating a volume through volume group. + /// Proximity placement group associated with the volume. + /// T2 network information. + /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log. + /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. + /// Application specific placement rules for the particular volume. + /// Flag indicating whether subvolume operations are enabled on the volume. + /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + /// Specifies whether volume is a Large Volume or Regular Volume. + /// Id of the snapshot or backup that the volume is restored from. + /// A new instance for mocking. + public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, IDictionary tags = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) + { + tags ??= new Dictionary(); + exportRules ??= new List(); + protocolTypes ??= new List(); + mountTargets ??= new List(); + dataStoreResourceId ??= new List(); + placementRules ??= new List(); + //Set null for zones and coolAccessRetrievalPolicy for backwards compat + return new NetAppVolumeGroupVolume(id, name, resourceType, tags, null, fileSystemId, creationToken, serviceLevel, usageThreshold, exportRules != null ? new VolumePropertiesExportPolicy(exportRules?.ToList()) : null, protocolTypes?.ToList(), provisioningState, snapshotId, deleteBaseSnapshot, backupId, baremetalTenantId, subnetId, networkFeatures, networkSiblingSetId, storageToNetworkProximity, mountTargets?.ToList(), volumeType, dataProtection, isRestoring, isSnapshotDirectoryVisible, isKerberosEnabled, securityStyle, isSmbEncryptionEnabled, smbAccessBasedEnumeration, smbNonBrowsable, isSmbContinuouslyAvailable, throughputMibps, actualThroughputMibps, encryptionKeySource, keyVaultPrivateEndpointResourceId, isLdapEnabled, isCoolAccessEnabled, coolnessPeriod, null, unixPermissions, cloneProgress, fileAccessLogs, avsDataStore, dataStoreResourceId?.ToList(), isDefaultQuotaEnabled, defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs, maximumNumberOfFiles, volumeGroupName, capacityPoolResourceId, proximityPlacementGroupId, t2Network, volumeSpecName, isEncrypted, placementRules?.ToList(), enableSubvolumes, provisionedAvailabilityZone, isLargeVolume, originatingResourceId); + } + + /// Initializes a new instance of NetAppVolumeData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// A unique read-only string that changes whenever the resource is updated. + /// Availability Zone. + /// Unique FileSystem Identifier. + /// A unique file path for the volume. Used when creating mount targets. + /// The service level of the file system. + /// 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, 500Tib for LargeVolume. Specified in bytes. + /// Set of export policy rules. + /// Set of protocol types, default NFSv3, CIFS for SMB protocol. + /// Azure lifecycle management. + /// UUID v4 or resource identifier used to identify the Snapshot. + /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false. + /// UUID v4 or resource identifier used to identify the Backup. + /// Unique Baremetal Tenant Identifier. + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. + /// Basic network, or Standard features available to the volume. + /// Network Sibling Set ID for the the group of volumes sharing networking resources. + /// Provides storage to network proximity information for the volume. + /// List of mount targets. + /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. + /// DataProtection type volumes include an object containing details of the replication. + /// Restoring. + /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (defaults to true). + /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. + /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. + /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. + /// Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables continuously available share property for smb volume. Only applicable for SMB volume. + /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. + /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. + /// Source of key used to encrypt data in volume. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'. + /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. + /// Specifies whether LDAP is enabled or not for a given NFS volume. + /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// 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. + /// 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. + /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + /// Data store resource unique identifier. + /// Specifies if default quota is enabled for the volume. + /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. + /// Volume Group Name. + /// Pool Resource Id used in case of creating a volume through volume group. + /// Proximity placement group associated with the volume. + /// T2 network information. + /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log. + /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. + /// Application specific placement rules for the particular volume. + /// Flag indicating whether subvolume operations are enabled on the volume. + /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + /// Specifies whether volume is a Large Volume or Regular Volume. + /// Id of the snapshot or backup that the volume is restored from. + /// A new instance for mocking. + public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, IEnumerable zones = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) + { + tags ??= new Dictionary(); + zones ??= new List(); + exportRules ??= new List(); + protocolTypes ??= new List(); + mountTargets ??= new List(); + dataStoreResourceId ??= new List(); + placementRules ??= new List(); + //Set null for zones and coolAccessRetrievalPolicy for backwards compat + return new NetAppVolumeData(id, name, resourceType, systemData, tags, location, etag, zones?.ToList(), fileSystemId, creationToken, serviceLevel, usageThreshold, exportRules != null ? new VolumePropertiesExportPolicy(exportRules?.ToList()) : null, protocolTypes?.ToList(), provisioningState, snapshotId, deleteBaseSnapshot, backupId, baremetalTenantId, subnetId, networkFeatures, networkSiblingSetId, storageToNetworkProximity, mountTargets?.ToList(), volumeType, dataProtection, isRestoring, isSnapshotDirectoryVisible, isKerberosEnabled, securityStyle, isSmbEncryptionEnabled, smbAccessBasedEnumeration, smbNonBrowsable, isSmbContinuouslyAvailable, throughputMibps, actualThroughputMibps, encryptionKeySource, keyVaultPrivateEndpointResourceId, isLdapEnabled, isCoolAccessEnabled, coolnessPeriod, null, unixPermissions, cloneProgress, fileAccessLogs, avsDataStore, dataStoreResourceId?.ToList(), isDefaultQuotaEnabled, defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs, maximumNumberOfFiles, volumeGroupName, capacityPoolResourceId, proximityPlacementGroupId, t2Network, volumeSpecName, isEncrypted, placementRules?.ToList(), enableSubvolumes, provisionedAvailabilityZone, isLargeVolume, originatingResourceId); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Extensions/NetAppExtensions.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Extensions/NetAppExtensions.cs new file mode 100644 index 0000000000000..17415253349a5 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Extensions/NetAppExtensions.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; +using Azure.ResourceManager.NetApp.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.NetApp +{ + /// A class to add extension methods to Azure.ResourceManager.NetApp. + public static partial class NetAppExtensions + { + #region NetAppAccountBackupResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static NetAppAccountBackupResource GetNetAppAccountBackupResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + NetAppAccountBackupResource.ValidateResourceId(id); + return new NetAppAccountBackupResource(client, id); + } + ); + } + #endregion + + #region NetAppVolumeBackupResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static NetAppVolumeBackupResource GetNetAppVolumeBackupResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + NetAppVolumeBackupResource.ValidateResourceId(id); + return new NetAppVolumeBackupResource(client, id); + } + ); + } + #endregion + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppVolumeBackupOperationSource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/LongRunningOperation/NetAppVolumeBackupOperationSource.cs similarity index 94% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppVolumeBackupOperationSource.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/LongRunningOperation/NetAppVolumeBackupOperationSource.cs index 694ea941d9c66..d99537cee1a57 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppVolumeBackupOperationSource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/LongRunningOperation/NetAppVolumeBackupOperationSource.cs @@ -1,8 +1,6 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System.Text.Json; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/BackupsList.Serialization.cs similarity index 95% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.Serialization.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/BackupsList.Serialization.cs index b42c36c03fabd..57b0d90dfd73b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/BackupsList.Serialization.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/BackupsList.cs similarity index 85% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/BackupsList.cs index ca7edd38c8a02..58de3348961d2 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/BackupsList.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using System.ComponentModel; using Azure.Core; using Azure.ResourceManager.NetApp; @@ -28,6 +29,7 @@ internal BackupsList(IReadOnlyList value) } /// A list of Backups. + [EditorBrowsable(EditorBrowsableState.Never)] public IReadOnlyList Value { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData .cs similarity index 96% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupData.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData .cs index 2f5d2fa1e5d5d..43ea5a6dd5715 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData .cs @@ -1,11 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; +using System.ComponentModel; using Azure.Core; using Azure.ResourceManager.Models; using Azure.ResourceManager.NetApp.Models; @@ -16,6 +15,7 @@ namespace Azure.ResourceManager.NetApp /// A class representing the NetAppBackup data model. /// Backup of a Volume /// + [EditorBrowsable(EditorBrowsableState.Never)] public partial class NetAppBackupData : ResourceData { /// Initializes a new instance of NetAppBackupData. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData.Serialization.cs similarity index 98% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupData.Serialization.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData.Serialization.cs index 334cc75760e29..8c0cc4885cca2 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData.Serialization.cs @@ -1,8 +1,6 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupType.cs similarity index 95% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupType.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupType.cs index fbe667f1928ba..54f17213724ea 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupType.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupType.cs @@ -1,8 +1,6 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; @@ -11,6 +9,7 @@ namespace Azure.ResourceManager.NetApp.Models { /// Type of backup Manual or Scheduled. + [EditorBrowsable(EditorBrowsableState.Never)] public readonly partial struct NetAppBackupType : IEquatable { private readonly string _value; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppReplicationObject.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppReplicationObject.cs new file mode 100644 index 0000000000000..c1393721309c9 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppReplicationObject.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// Replication properties. + public partial class NetAppReplicationObject + { + /// Id. + [EditorBrowsable(EditorBrowsableState.Never)] + public string ReplicationId { get; set; } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupBackupRestoreFilesContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupBackupRestoreFilesContent.cs similarity index 92% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupBackupRestoreFilesContent.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupBackupRestoreFilesContent.cs index a2221f76c38db..2a0a6f48c039e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupBackupRestoreFilesContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupBackupRestoreFilesContent.cs @@ -1,18 +1,18 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using Azure.Core; namespace Azure.ResourceManager.NetApp.Models { /// Restore payload for single file backup restore. + [EditorBrowsable(EditorBrowsableState.Never)] public partial class NetAppVolumeBackupBackupRestoreFilesContent { /// Initializes a new instance of NetAppVolumeBackupBackupRestoreFilesContent. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupConfiguration.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupConfiguration.cs index fd9354a673eea..2ef05a63f5fca 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupConfiguration.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupConfiguration.cs @@ -12,6 +12,12 @@ namespace Azure.ResourceManager.NetApp.Models /// Volume Backup Properties. public partial class NetAppVolumeBackupConfiguration { + /// Initializes a new instance of NetAppVolumeBackupConfiguration. + [EditorBrowsable(EditorBrowsableState.Never)] + public NetAppVolumeBackupConfiguration() + { + } + /// Initializes a new instance of NetAppVolumeBackupConfiguration. /// Backup Policy Resource ID. /// Policy Enforced. @@ -25,6 +31,26 @@ internal NetAppVolumeBackupConfiguration(ResourceIdentifier backupPolicyId, bool IsBackupEnabled = isBackupEnabled; } + /// Initializes a new instance of NetAppVolumeBackupConfiguration. + /// Backup Policy Resource ID. + /// Policy Enforced. + /// Backup Enabled. + internal NetAppVolumeBackupConfiguration(ResourceIdentifier backupPolicyId, bool? isPolicyEnforced, bool? isBackupEnabled) + { + BackupPolicyId = backupPolicyId; + IsPolicyEnforced = isPolicyEnforced; + IsBackupEnabled = isBackupEnabled; + } + + /// Backup Policy Resource ID. + public ResourceIdentifier BackupPolicyId { get; set; } + + /// Policy Enforced. + public bool? IsPolicyEnforced { get; set; } + + /// Backup Enabled. + public bool? IsBackupEnabled { get; set; } + /// Vault Resource ID. [EditorBrowsable(EditorBrowsableState.Never)] public ResourceIdentifier VaultId { get; set; } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupPatch.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupPatch.Serialization.cs similarity index 95% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupPatch.Serialization.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupPatch.Serialization.cs index 02024914c58ba..8552b32f1b08d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupPatch.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupPatch.Serialization.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupPatch.cs similarity index 95% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupPatch.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupPatch.cs index bb65a2a5d0d4f..6a99c148b4396 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupPatch.cs @@ -1,8 +1,6 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupStatus.Serialization.cs similarity index 97% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.Serialization.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupStatus.Serialization.cs index f9629774d12ae..3fa6cc35d330c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupStatus.Serialization.cs @@ -1,10 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable +using System.ComponentModel; using System.Text.Json; using Azure.Core; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupStatus.cs similarity index 95% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupStatus.cs index 6c813a92e96b6..5731a02508067 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupStatus.cs @@ -1,13 +1,14 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable +using System.ComponentModel; + namespace Azure.ResourceManager.NetApp.Models { /// Backup status. + [EditorBrowsable(EditorBrowsableState.Never)] public partial class NetAppVolumeBackupStatus { /// Initializes a new instance of NetAppVolumeBackupStatus. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeDataProtection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeDataProtection.cs new file mode 100644 index 0000000000000..405349fc69bda --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeDataProtection.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Text; +using Azure.ResourceManager.NetApp.Models; +using static System.Net.Mime.MediaTypeNames; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// DataProtection type volumes include an object containing details of the replication. + public partial class NetAppVolumeDataProtection + { + /// Backup Properties. + [EditorBrowsable(EditorBrowsableState.Never)] + public NetAppVolumeBackupConfiguration Backup { get; set; } + + /// Initializes a new instance of NetAppVolumeDataProtection. + /// Backup Properties. + /// Replication properties. + /// Snapshot properties. + /// VolumeRelocation properties. + internal NetAppVolumeDataProtection(NetAppVolumeBackupConfiguration backup, NetAppReplicationObject replication, VolumeSnapshotProperties snapshot, NetAppVolumeRelocationProperties volumeRelocation) + { + Backup = backup; + Replication = replication; + Snapshot = snapshot; + VolumeRelocation = volumeRelocation; + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatch.cs new file mode 100644 index 0000000000000..093d623ee0407 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatch.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.NetApp.Models +{ + public partial class NetAppVolumePatch : TrackedResourceData + { + /// DataProtection type volumes include an object containing details of the replication. + public NetAppVolumePatchDataProtection DataProtection { get; set; } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.Serialization.cs similarity index 90% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.Serialization.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.Serialization.cs index a673727efa1c0..d88ba936e95cd 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.Serialization.cs @@ -1,8 +1,6 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System.Text.Json; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.cs new file mode 100644 index 0000000000000..de334e2ba933b --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// DataProtection type volumes include an object containing details of the replication. + public partial class NetAppVolumePatchDataProtection + { + /// Backup Properties. + public NetAppVolumeBackupConfiguration Backup { get; set; } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountBackupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppAccountBackupCollection.cs similarity index 98% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountBackupCollection.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppAccountBackupCollection.cs index 496ef471d5446..18fbb4e6a9565 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountBackupCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppAccountBackupCollection.cs @@ -1,13 +1,12 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; using System.Collections; using System.Collections.Generic; +using System.ComponentModel; using System.Globalization; using System.Threading; using System.Threading.Tasks; @@ -24,6 +23,7 @@ namespace Azure.ResourceManager.NetApp /// Each in the collection will belong to the same instance of . /// To get a instance call the GetNetAppAccountBackups method from an instance of . /// + [EditorBrowsable(EditorBrowsableState.Never)] public partial class NetAppAccountBackupCollection : ArmCollection, IEnumerable, IAsyncEnumerable { private readonly ClientDiagnostics _netAppAccountBackupAccountBackupsClientDiagnostics; @@ -43,7 +43,7 @@ internal NetAppAccountBackupCollection(ArmClient client, ResourceIdentifier id) TryGetApiVersion(NetAppAccountBackupResource.ResourceType, out string netAppAccountBackupAccountBackupsApiVersion); _netAppAccountBackupAccountBackupsRestClient = new AccountBackupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, netAppAccountBackupAccountBackupsApiVersion); #if DEBUG - ValidateResourceId(Id); + ValidateResourceId(Id); #endif } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountBackupResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppAccountBackupResource.cs similarity index 98% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountBackupResource.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppAccountBackupResource.cs index eb5181fd3f350..1e1b7a036669d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountBackupResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppAccountBackupResource.cs @@ -1,11 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; +using System.ComponentModel; using System.Globalization; using System.Threading; using System.Threading.Tasks; @@ -22,6 +21,7 @@ namespace Azure.ResourceManager.NetApp /// from an instance of using the GetNetAppAccountBackupResource method. /// Otherwise you can get one from its parent resource using the GetNetAppAccountBackup method. /// + [EditorBrowsable(EditorBrowsableState.Never)] public partial class NetAppAccountBackupResource : ArmResource { /// Generate the resource identifier of a instance. @@ -58,7 +58,7 @@ internal NetAppAccountBackupResource(ArmClient client, ResourceIdentifier id) : TryGetApiVersion(ResourceType, out string netAppAccountBackupAccountBackupsApiVersion); _netAppAccountBackupAccountBackupsRestClient = new AccountBackupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, netAppAccountBackupAccountBackupsApiVersion); #if DEBUG - ValidateResourceId(Id); + ValidateResourceId(Id); #endif } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppAccountResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppAccountResource.cs index d5aac8d079698..bc968ebac7331 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppAccountResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppAccountResource.cs @@ -6,6 +6,7 @@ using System.ComponentModel; using System.Text; using System.Threading; +using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.NetApp; @@ -13,6 +14,7 @@ namespace Azure.ResourceManager.NetApp { + [EditorBrowsable(EditorBrowsableState.Never)] public partial class NetAppAccountResource: ArmResource { private VaultsRestOperations _vaultsRestClient; @@ -70,5 +72,60 @@ public virtual Pageable GetVaults(CancellationToken cancellationTok HttpMessage FirstPageRequest(int? pageSizeHint) => VaultsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); return PageableHelpers.CreatePageable(FirstPageRequest, null, NetAppVault.DeserializeNetAppVault, VaultsClientDiagnostics, Pipeline, "NetAppAccountResource.GetVaults", "value", null, cancellationToken); } + + /// Gets a collection of NetAppAccountBackupResources in the NetAppAccount. + /// An object representing collection of NetAppAccountBackupResources and their operations over a NetAppAccountBackupResource. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual NetAppAccountBackupCollection GetNetAppAccountBackups() + { + return GetCachedClient(Client => new NetAppAccountBackupCollection(Client, Id)); + } + + /// + /// Gets the specified backup for a Netapp Account + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName} + /// + /// + /// Operation Id + /// AccountBackups_Get + /// + /// + /// + /// The name of the backup. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetNetAppAccountBackupAsync(string backupName, CancellationToken cancellationToken = default) + { + return await GetNetAppAccountBackups().GetAsync(backupName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specified backup for a Netapp Account + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName} + /// + /// + /// Operation Id + /// AccountBackups_Get + /// + /// + /// + /// The name of the backup. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetNetAppAccountBackup(string backupName, CancellationToken cancellationToken = default) + { + return GetNetAppAccountBackups().Get(backupName, cancellationToken); + } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeBackupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeBackupCollection .cs similarity index 99% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeBackupCollection.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeBackupCollection .cs index 3ef528afa9802..78feb4d4ad7b5 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeBackupCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeBackupCollection .cs @@ -1,13 +1,12 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; using System.Collections; using System.Collections.Generic; +using System.ComponentModel; using System.Globalization; using System.Threading; using System.Threading.Tasks; @@ -24,6 +23,7 @@ namespace Azure.ResourceManager.NetApp /// Each in the collection will belong to the same instance of . /// To get a instance call the GetNetAppVolumeBackups method from an instance of . /// + [EditorBrowsable(EditorBrowsableState.Never)] public partial class NetAppVolumeBackupCollection : ArmCollection, IEnumerable, IAsyncEnumerable { private readonly ClientDiagnostics _netAppVolumeBackupBackupsClientDiagnostics; @@ -43,7 +43,7 @@ internal NetAppVolumeBackupCollection(ArmClient client, ResourceIdentifier id) : TryGetApiVersion(NetAppVolumeBackupResource.ResourceType, out string netAppVolumeBackupBackupsApiVersion); _netAppVolumeBackupBackupsRestClient = new BackupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, netAppVolumeBackupBackupsApiVersion); #if DEBUG - ValidateResourceId(Id); + ValidateResourceId(Id); #endif } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeBackupResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeBackupResource.cs similarity index 97% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeBackupResource.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeBackupResource.cs index 455cef1a92431..2852a32007822 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeBackupResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeBackupResource.cs @@ -1,11 +1,10 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; +using System.ComponentModel; using System.Globalization; using System.Threading; using System.Threading.Tasks; @@ -23,6 +22,7 @@ namespace Azure.ResourceManager.NetApp /// from an instance of using the GetNetAppVolumeBackupResource method. /// Otherwise you can get one from its parent resource using the GetNetAppVolumeBackup method. /// + [EditorBrowsable(EditorBrowsableState.Never)] public partial class NetAppVolumeBackupResource : ArmResource { /// Generate the resource identifier of a instance. @@ -59,18 +59,21 @@ internal NetAppVolumeBackupResource(ArmClient client, ResourceIdentifier id) : b TryGetApiVersion(ResourceType, out string netAppVolumeBackupBackupsApiVersion); _netAppVolumeBackupBackupsRestClient = new BackupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, netAppVolumeBackupBackupsApiVersion); #if DEBUG - ValidateResourceId(Id); + ValidateResourceId(Id); #endif } /// Gets the resource type for the operations. + [EditorBrowsable(EditorBrowsableState.Never)] public static readonly ResourceType ResourceType = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/backups"; /// Gets whether or not the current instance has data. + [EditorBrowsable(EditorBrowsableState.Never)] public virtual bool HasData { get; } /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. + [EditorBrowsable(EditorBrowsableState.Never)] public virtual NetAppBackupData Data { get @@ -101,6 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { using var scope = _netAppVolumeBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeBackupResource.Get"); @@ -133,6 +137,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] public virtual Response Get(CancellationToken cancellationToken = default) { using var scope = _netAppVolumeBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeBackupResource.Get"); @@ -166,6 +171,7 @@ public virtual Response Get(CancellationToken cancel /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _netAppVolumeBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeBackupResource.Delete"); @@ -200,6 +206,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _netAppVolumeBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeBackupResource.Delete"); @@ -236,6 +243,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Backup object supplied in the body of the operation. /// The cancellation token to use. /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] public virtual async Task> UpdateAsync(WaitUntil waitUntil, NetAppVolumeBackupPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); @@ -312,6 +320,7 @@ public virtual ArmOperation Update(WaitUntil waitUnt /// Restore payload supplied in the body of the operation. /// The cancellation token to use. /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] public virtual async Task RestoreFilesAsync(WaitUntil waitUntil, NetAppVolumeBackupBackupRestoreFilesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -350,6 +359,7 @@ public virtual async Task RestoreFilesAsync(WaitUntil waitUntil, N /// Restore payload supplied in the body of the operation. /// The cancellation token to use. /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] public virtual ArmOperation RestoreFiles(WaitUntil waitUntil, NetAppVolumeBackupBackupRestoreFilesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeResource.cs new file mode 100644 index 0000000000000..eb28ba09fec5d --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeResource.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.NetApp.Models; + +namespace Azure.ResourceManager.NetApp +{ + /// + /// A Class representing a NetAppVolume along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetNetAppVolumeResource method. + /// Otherwise you can get one from its parent resource using the GetNetAppVolume method. + /// + public partial class NetAppVolumeResource : ArmResource + { + private VaultsRestOperations _vaultsRestClient; + private ClientDiagnostics _vaultsClientDiagnostics; + + private ClientDiagnostics VaultsClientDiagnostics => _vaultsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NetApp", NetAppAccountResource.ResourceType.Namespace, Diagnostics); + private VaultsRestOperations VaultsRestClient => _vaultsRestClient ??= new VaultsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(NetAppAccountResource.ResourceType)); + + private string GetApiVersionOrNull(ResourceType resourceType) + { + TryGetApiVersion(resourceType, out string apiVersion); + return apiVersion; + } + + private BackupsRestOperations _netAppVolumeBackupBackupsRestClient; + private ClientDiagnostics _netAppVolumeBackupBackupsClientDiagnostics; + + private ClientDiagnostics NetAppVolumeBackupBackupsClientDiagnostics => _netAppVolumeBackupBackupsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NetApp", NetAppAccountResource.ResourceType.Namespace, Diagnostics); + private BackupsRestOperations NetAppVolumeBackupBackupsRestClient => _netAppVolumeBackupBackupsRestClient ??= new BackupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(NetAppAccountResource.ResourceType)); + + /// Gets a collection of NetAppVolumeBackupResources in the NetAppVolume. + /// An object representing collection of NetAppVolumeBackupResources and their operations over a NetAppVolumeBackupResource. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual NetAppVolumeBackupCollection GetNetAppVolumeBackups() + { + return GetCachedClient(Client => new NetAppVolumeBackupCollection(Client, Id)); + } + + /// + /// Get the status of the backup for a volume + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backupStatus + /// + /// + /// Operation Id + /// Backups_GetStatus + /// + /// + /// + /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetBackupStatusAsync(CancellationToken cancellationToken = default) + { + using var scope = NetAppVolumeBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetBackupStatus"); + scope.Start(); + try + { + var response = await NetAppVolumeBackupBackupsRestClient.GetStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get the status of the backup for a volume + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backupStatus + /// + /// + /// Operation Id + /// Backups_GetStatus + /// + /// + /// + /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response GetBackupStatus(CancellationToken cancellationToken = default) + { + using var scope = NetAppVolumeBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetBackupStatus"); + scope.Start(); + try + { + var response = NetAppVolumeBackupBackupsRestClient.GetStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specified backup of the volume + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName} + /// + /// + /// Operation Id + /// Backups_Get + /// + /// + /// + /// The name of the backup. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response GetNetAppVolumeBackup(string backupName, CancellationToken cancellationToken = default) + { + return GetNetAppVolumeBackups().Get(backupName, cancellationToken); + } + + /// + /// Gets the specified backup of the volume + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName} + /// + /// + /// Operation Id + /// Backups_Get + /// + /// + /// + /// The name of the backup. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetNetAppVolumeBackupAsync(string backupName, CancellationToken cancellationToken = default) + { + return await GetNetAppVolumeBackups().GetAsync(backupName, cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountBackupsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/RestOperations/AccountBackupsRestOperations.cs similarity index 99% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountBackupsRestOperations.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/RestOperations/AccountBackupsRestOperations.cs index d2dae0a2e5d56..cf22639023cfe 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountBackupsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/RestOperations/AccountBackupsRestOperations.cs @@ -1,8 +1,6 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/RestOperations/BackupsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/RestOperations/BackupsRestOperations.cs new file mode 100644 index 0000000000000..3d8f0876bd3f1 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/RestOperations/BackupsRestOperations.cs @@ -0,0 +1,621 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.NetApp.Models; + +namespace Azure.ResourceManager.NetApp +{ + internal partial class BackupsRestOperations + { + private readonly string _backup_old_apiVersion = "2022-11-01"; + + internal HttpMessage CreateGetStatusRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/backupStatus", false); + uri.AppendQuery("api-version", _backup_old_apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get the status of the backup for a volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetStatusAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreateGetStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NetAppVolumeBackupStatus value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = NetAppVolumeBackupStatus.DeserializeNetAppVolumeBackupStatus(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get the status of the backup for a volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response GetStatus(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreateGetStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NetAppVolumeBackupStatus value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = NetAppVolumeBackupStatus.DeserializeNetAppVolumeBackupStatus(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create a backup for the volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The name of the backup. + /// Backup object supplied in the body of the operation. + /// The cancellation token to use. + /// , , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + [EditorBrowsable(EditorBrowsableState.Never)] + public async Task CreateAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppBackupData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create a backup for the volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The name of the backup. + /// Backup object supplied in the body of the operation. + /// The cancellation token to use. + /// , , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + [EditorBrowsable(EditorBrowsableState.Never)] + public Response Create(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppBackupData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppBackupData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _backup_old_apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _backup_old_apiVersion, true); + request.Uri = uri; + _userAgent.Apply(message); + return message; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/backups", false); + uri.AppendQuery("api-version", _backup_old_apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + internal HttpMessage CreateRestoreFilesRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupBackupRestoreFilesContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupName, true); + uri.AppendPath("/restoreFiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupPatch patch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _backup_old_apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Delete a backup of the volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The name of the backup. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + [EditorBrowsable(EditorBrowsableState.Never)] + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete a backup of the volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The name of the backup. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + [EditorBrowsable(EditorBrowsableState.Never)] + public Response Delete(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _backup_old_apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets the specified backup of the volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The name of the backup. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NetAppBackupData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = NetAppBackupData.DeserializeNetAppBackupData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((NetAppBackupData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets the specified backup of the volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The name of the backup. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NetAppBackupData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = NetAppBackupData.DeserializeNetAppBackupData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((NetAppBackupData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Restore the specified files from the specified backup to the active filesystem. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The name of the backup. + /// Restore payload supplied in the body of the operation. + /// The cancellation token to use. + /// , , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public async Task RestoreFilesAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupBackupRestoreFilesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateRestoreFilesRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Restore the specified files from the specified backup to the active filesystem. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The name of the backup. + /// Restore payload supplied in the body of the operation. + /// The cancellation token to use. + /// , , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public Response RestoreFiles(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupBackupRestoreFilesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateRestoreFilesRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Patch a backup for the volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The name of the backup. + /// Backup object supplied in the body of the operation. + /// The cancellation token to use. + /// , , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Patch a backup for the volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The name of the backup. + /// Backup object supplied in the body of the operation. + /// The cancellation token to use. + /// , , , , , or is null. + /// , , , , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs index dfd885d38d63e..6a64f0cb66efb 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs @@ -37,7 +37,7 @@ public static NetAppCheckAvailabilityResult NetAppCheckAvailabilityResult(bool? /// The current quota value. /// The default quota value. /// A new instance for mocking. - public static NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, int? current = null, int? @default = null) + public static NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, int? current = null, int? @default = null) { return new NetAppSubscriptionQuotaItem(id, name, resourceType, systemData, current, @default); } @@ -62,6 +62,32 @@ public static AvailabilityZoneMapping AvailabilityZoneMapping(string availabilit return new AvailabilityZoneMapping(availabilityZone, isAvailable); } + /// Initializes a new instance of NetworkSiblingSet. + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + /// Network sibling set state Id identifying the current state of the sibling set. + /// Network features available to the volume, or current state of update. + /// Gets the status of the NetworkSiblingSet at the time the operation was called. + /// List of NIC information. + /// A new instance for mocking. + public static NetworkSiblingSet NetworkSiblingSet(string networkSiblingSetId = null, ResourceIdentifier subnetId = null, string networkSiblingSetStateId = null, NetAppNetworkFeature? networkFeatures = null, NetworkSiblingSetProvisioningState? provisioningState = null, IEnumerable nicInfoList = null) + { + nicInfoList ??= new List(); + + return new NetworkSiblingSet(networkSiblingSetId, subnetId, networkSiblingSetStateId, networkFeatures, provisioningState, nicInfoList?.ToList()); + } + + /// Initializes a new instance of NicInfo. + /// ipAddress. + /// Volume resource Ids. + /// A new instance for mocking. + public static NicInfo NicInfo(string ipAddress = null, IEnumerable volumeResourceIds = null) + { + volumeResourceIds ??= new List(); + + return new NicInfo(ipAddress, volumeResourceIds?.ToList()); + } + /// Initializes a new instance of NetAppAccountData. /// The id. /// The name. @@ -76,7 +102,7 @@ public static AvailabilityZoneMapping AvailabilityZoneMapping(string availabilit /// Encryption settings. /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. /// A new instance for mocking. - public static NetAppAccountData NetAppAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ManagedServiceIdentity identity = null, string provisioningState = null, IEnumerable activeDirectories = null, NetAppAccountEncryption encryption = null, bool? disableShowmount = null) + public static NetAppAccountData NetAppAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ManagedServiceIdentity identity = null, string provisioningState = null, IEnumerable activeDirectories = null, NetAppAccountEncryption encryption = null, bool? disableShowmount = null) { tags ??= new Dictionary(); activeDirectories ??= new List(); @@ -157,7 +183,7 @@ public static NetAppEncryptionIdentity NetAppEncryptionIdentity(string principal /// If enabled (true) the pool can contain cool Access enabled volumes. /// 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. /// A new instance for mocking. - public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, Guid? poolId = null, long size = default, NetAppFileServiceLevel serviceLevel = default, string provisioningState = null, float? totalThroughputMibps = null, float? utilizedThroughputMibps = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, CapacityPoolEncryptionType? encryptionType = null) + public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, Guid? poolId = null, long size = default, NetAppFileServiceLevel serviceLevel = default, string provisioningState = null, float? totalThroughputMibps = null, float? utilizedThroughputMibps = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, CapacityPoolEncryptionType? encryptionType = null) { tags ??= new Dictionary(); @@ -176,7 +202,7 @@ public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, st /// Unique FileSystem Identifier. /// A unique file path for the volume. Used when creating mount targets. /// The service level of the file system. - /// 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, 500Tib for LargeVolume. Specified in bytes. + /// 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, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. /// Set of export policy rules. /// Set of protocol types, default NFSv3, CIFS for SMB protocol. /// Azure lifecycle management. @@ -185,7 +211,7 @@ public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, st /// UUID v4 or resource identifier used to identify the Backup. /// Unique Baremetal Tenant Identifier. /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// Basic network, or Standard features available to the volume. + /// Network features available to the volume, or current state of update. /// Network Sibling Set ID for the the group of volumes sharing networking resources. /// Provides storage to network proximity information for the volume. /// List of mount targets. @@ -196,8 +222,8 @@ public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, st /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. - /// Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. /// Enables continuously available share property for smb volume. Only applicable for SMB volume. /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. @@ -206,6 +232,12 @@ public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, st /// Specifies whether LDAP is enabled or not for a given NFS volume. /// Specifies whether Cool Access(tiering) is enabled for the volume. /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// + /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// /// 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. /// 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. /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. @@ -227,7 +259,7 @@ public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, st /// Specifies whether volume is a Large Volume or Regular Volume. /// Id of the snapshot or backup that the volume is restored from. /// A new instance for mocking. - public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, IEnumerable zones = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) + public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, IEnumerable zones = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) { tags ??= new Dictionary(); zones ??= new List(); @@ -237,7 +269,7 @@ public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id = null, st dataStoreResourceId ??= new List(); placementRules ??= new List(); - return new NetAppVolumeData(id, name, resourceType, systemData, tags, location, etag, zones?.ToList(), fileSystemId, creationToken, serviceLevel, usageThreshold, exportRules != null ? new VolumePropertiesExportPolicy(exportRules?.ToList()) : null, protocolTypes?.ToList(), provisioningState, snapshotId, deleteBaseSnapshot, backupId, baremetalTenantId, subnetId, networkFeatures, networkSiblingSetId, storageToNetworkProximity, mountTargets?.ToList(), volumeType, dataProtection, isRestoring, isSnapshotDirectoryVisible, isKerberosEnabled, securityStyle, isSmbEncryptionEnabled, smbAccessBasedEnumeration, smbNonBrowsable, isSmbContinuouslyAvailable, throughputMibps, actualThroughputMibps, encryptionKeySource, keyVaultPrivateEndpointResourceId, isLdapEnabled, isCoolAccessEnabled, coolnessPeriod, unixPermissions, cloneProgress, fileAccessLogs, avsDataStore, dataStoreResourceId?.ToList(), isDefaultQuotaEnabled, defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs, maximumNumberOfFiles, volumeGroupName, capacityPoolResourceId, proximityPlacementGroupId, t2Network, volumeSpecName, isEncrypted, placementRules?.ToList(), enableSubvolumes, provisionedAvailabilityZone, isLargeVolume, originatingResourceId); + return new NetAppVolumeData(id, name, resourceType, systemData, tags, location, etag, zones?.ToList(), fileSystemId, creationToken, serviceLevel, usageThreshold, exportRules != null ? new VolumePropertiesExportPolicy(exportRules?.ToList()) : null, protocolTypes?.ToList(), provisioningState, snapshotId, deleteBaseSnapshot, backupId, baremetalTenantId, subnetId, networkFeatures, networkSiblingSetId, storageToNetworkProximity, mountTargets?.ToList(), volumeType, dataProtection, isRestoring, isSnapshotDirectoryVisible, isKerberosEnabled, securityStyle, isSmbEncryptionEnabled, smbAccessBasedEnumeration, smbNonBrowsable, isSmbContinuouslyAvailable, throughputMibps, actualThroughputMibps, encryptionKeySource, keyVaultPrivateEndpointResourceId, isLdapEnabled, isCoolAccessEnabled, coolnessPeriod, coolAccessRetrievalPolicy, unixPermissions, cloneProgress, fileAccessLogs, avsDataStore, dataStoreResourceId?.ToList(), isDefaultQuotaEnabled, defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs, maximumNumberOfFiles, volumeGroupName, capacityPoolResourceId, proximityPlacementGroupId, t2Network, volumeSpecName, isEncrypted, placementRules?.ToList(), enableSubvolumes, provisionedAvailabilityZone, isLargeVolume, originatingResourceId); } /// Initializes a new instance of NetAppVolumeMountTarget. @@ -251,6 +283,18 @@ public static NetAppVolumeMountTarget NetAppVolumeMountTarget(Guid? mountTargetI return new NetAppVolumeMountTarget(mountTargetId, fileSystemId, ipAddress, smbServerFqdn); } + /// Initializes a new instance of NetAppReplicationObject. + /// Id. + /// Indicates whether the local volume is the source or destination for the Volume Replication. + /// Schedule. + /// The resource ID of the remote volume. + /// The remote region for the other end of the Volume Replication. + /// A new instance for mocking. + public static NetAppReplicationObject NetAppReplicationObject(string replicationId = null, NetAppEndpointType? endpointType = null, NetAppReplicationSchedule? replicationSchedule = null, ResourceIdentifier remoteVolumeResourceId = null, string remoteVolumeRegion = null) + { + return new NetAppReplicationObject(replicationId, endpointType, replicationSchedule, remoteVolumeResourceId, remoteVolumeRegion); + } + /// Initializes a new instance of NetAppVolumeRelocationProperties. /// Has relocation been requested for this volume. /// Has relocation finished and is ready to be cleaned up. @@ -303,7 +347,7 @@ public static NetAppVolumeReplication NetAppVolumeReplication(NetAppEndpointType /// The creation date of the snapshot. /// Azure lifecycle management. /// A new instance for mocking. - public static NetAppVolumeSnapshotData NetAppVolumeSnapshotData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation location = default, string snapshotId = null, DateTimeOffset? created = null, string provisioningState = null) + public static NetAppVolumeSnapshotData NetAppVolumeSnapshotData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, AzureLocation location = default, string snapshotId = null, DateTimeOffset? created = null, string provisioningState = null) { return new NetAppVolumeSnapshotData(id, name, resourceType, systemData, location, snapshotId, created, provisioningState); } @@ -323,28 +367,13 @@ public static NetAppVolumeSnapshotData NetAppVolumeSnapshotData(ResourceIdentifi /// The property to decide policy is enabled or not. /// Azure lifecycle management. /// A new instance for mocking. - public static SnapshotPolicyData SnapshotPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, SnapshotPolicyHourlySchedule hourlySchedule = null, SnapshotPolicyDailySchedule dailySchedule = null, SnapshotPolicyWeeklySchedule weeklySchedule = null, SnapshotPolicyMonthlySchedule monthlySchedule = null, bool? isEnabled = null, string provisioningState = null) + public static SnapshotPolicyData SnapshotPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, SnapshotPolicyHourlySchedule hourlySchedule = null, SnapshotPolicyDailySchedule dailySchedule = null, SnapshotPolicyWeeklySchedule weeklySchedule = null, SnapshotPolicyMonthlySchedule monthlySchedule = null, bool? isEnabled = null, string provisioningState = null) { tags ??= new Dictionary(); return new SnapshotPolicyData(id, name, resourceType, systemData, tags, location, etag, hourlySchedule, dailySchedule, weeklySchedule, monthlySchedule, isEnabled, provisioningState); } - /// Initializes a new instance of NetAppVolumeBackupStatus. - /// Backup health status. - /// Status of the backup mirror relationship. - /// The status of the backup. - /// Reason for the unhealthy backup relationship. - /// Displays error message if the backup is in an error state. - /// Displays the last transfer size. - /// Displays the last transfer type. - /// Displays the total bytes transferred. - /// A new instance for mocking. - public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = null, NetAppRelationshipStatus? relationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? lastTransferSize = null, string lastTransferType = null, long? totalTransferBytes = null) - { - return new NetAppVolumeBackupStatus(isHealthy, relationshipStatus, mirrorState, unhealthyReason, errorMessage, lastTransferSize, lastTransferType, totalTransferBytes); - } - /// Initializes a new instance of NetAppRestoreStatus. /// Restore health status. /// Status of the restore SnapMirror relationship. @@ -358,27 +387,6 @@ public static NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = null, Ne return new NetAppRestoreStatus(isHealthy, relationshipStatus, mirrorState, unhealthyReason, errorMessage, totalTransferBytes); } - /// Initializes a new instance of NetAppBackupData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Resource location. - /// UUID v4 used to identify the Backup. - /// The creation date of the backup. - /// Azure lifecycle management. - /// Size of backup. - /// Label for backup. - /// Type of backup Manual or Scheduled. - /// Failure reason. - /// Volume name. - /// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups. - /// A new instance for mocking. - public static NetAppBackupData NetAppBackupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation location = default, string backupId = null, DateTimeOffset? createdOn = null, string provisioningState = null, long? size = null, string label = null, NetAppBackupType? backupType = null, string failureReason = null, string volumeName = null, bool? useExistingSnapshot = null) - { - return new NetAppBackupData(id, name, resourceType, systemData, location, backupId, createdOn, provisioningState, size, label, backupType, failureReason, volumeName, useExistingSnapshot); - } - /// Initializes a new instance of NetAppBackupPolicyData. /// The id. /// The name. @@ -396,7 +404,7 @@ public static NetAppBackupData NetAppBackupData(ResourceIdentifier id = null, st /// The property to decide policy is enabled or not. /// A list of volumes assigned to this policy. /// A new instance for mocking. - public static NetAppBackupPolicyData NetAppBackupPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = null, int? weeklyBackupsToKeep = null, int? monthlyBackupsToKeep = null, int? volumesAssigned = null, bool? isEnabled = null, IEnumerable volumeBackups = null) + public static NetAppBackupPolicyData NetAppBackupPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = null, int? weeklyBackupsToKeep = null, int? monthlyBackupsToKeep = null, int? volumesAssigned = null, bool? isEnabled = null, IEnumerable volumeBackups = null) { tags ??= new Dictionary(); volumeBackups ??= new List(); @@ -426,7 +434,7 @@ public static NetAppVolumeBackupDetail NetAppVolumeBackupDetail(string volumeNam /// Type of quota. /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. /// A new instance for mocking. - public static NetAppVolumeQuotaRuleData NetAppVolumeQuotaRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NetAppProvisioningState? provisioningState = null, long? quotaSizeInKiBs = null, NetAppVolumeQuotaType? quotaType = null, string quotaTarget = null) + public static NetAppVolumeQuotaRuleData NetAppVolumeQuotaRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NetAppProvisioningState? provisioningState = null, long? quotaSizeInKiBs = null, NetAppVolumeQuotaType? quotaType = null, string quotaTarget = null) { tags ??= new Dictionary(); @@ -442,7 +450,7 @@ public static NetAppVolumeQuotaRuleData NetAppVolumeQuotaRuleData(ResourceIdenti /// Azure lifecycle management. /// Volume group details. /// A new instance for mocking. - public static NetAppVolumeGroupResult NetAppVolumeGroupResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null) + public static NetAppVolumeGroupResult NetAppVolumeGroupResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null) { return new NetAppVolumeGroupResult(id, name, resourceType, systemData, location, provisioningState, groupMetaData); } @@ -472,7 +480,7 @@ public static NetAppVolumeGroupMetadata NetAppVolumeGroupMetadata(string groupDe /// Volume group details. /// List of volumes from group. /// A new instance for mocking. - public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null, IEnumerable volumes = null) + public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null, IEnumerable volumes = null) { volumes ??= new List(); @@ -484,10 +492,11 @@ public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id /// Resource name. /// Resource type. /// Resource tags. + /// Availability Zone. /// Unique FileSystem Identifier. /// A unique file path for the volume. Used when creating mount targets. /// The service level of the file system. - /// 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, 500Tib for LargeVolume. Specified in bytes. + /// 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, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. /// Set of export policy rules. /// Set of protocol types, default NFSv3, CIFS for SMB protocol. /// Azure lifecycle management. @@ -496,7 +505,7 @@ public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id /// UUID v4 or resource identifier used to identify the Backup. /// Unique Baremetal Tenant Identifier. /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// Basic network, or Standard features available to the volume. + /// Network features available to the volume, or current state of update. /// Network Sibling Set ID for the the group of volumes sharing networking resources. /// Provides storage to network proximity information for the volume. /// List of mount targets. @@ -507,8 +516,8 @@ public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. - /// Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. /// Enables continuously available share property for smb volume. Only applicable for SMB volume. /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. @@ -517,6 +526,12 @@ public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id /// Specifies whether LDAP is enabled or not for a given NFS volume. /// Specifies whether Cool Access(tiering) is enabled for the volume. /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// + /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// /// 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. /// 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. /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. @@ -538,16 +553,17 @@ public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id /// Specifies whether volume is a Large Volume or Regular Volume. /// Id of the snapshot or backup that the volume is restored from. /// A new instance for mocking. - public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, IDictionary tags = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) + public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, IDictionary tags = null, IEnumerable zones = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) { tags ??= new Dictionary(); + zones ??= new List(); exportRules ??= new List(); protocolTypes ??= new List(); mountTargets ??= new List(); dataStoreResourceId ??= new List(); placementRules ??= new List(); - return new NetAppVolumeGroupVolume(id, name, resourceType, tags, fileSystemId, creationToken, serviceLevel, usageThreshold, exportRules != null ? new VolumePropertiesExportPolicy(exportRules?.ToList()) : null, protocolTypes?.ToList(), provisioningState, snapshotId, deleteBaseSnapshot, backupId, baremetalTenantId, subnetId, networkFeatures, networkSiblingSetId, storageToNetworkProximity, mountTargets?.ToList(), volumeType, dataProtection, isRestoring, isSnapshotDirectoryVisible, isKerberosEnabled, securityStyle, isSmbEncryptionEnabled, smbAccessBasedEnumeration, smbNonBrowsable, isSmbContinuouslyAvailable, throughputMibps, actualThroughputMibps, encryptionKeySource, keyVaultPrivateEndpointResourceId, isLdapEnabled, isCoolAccessEnabled, coolnessPeriod, unixPermissions, cloneProgress, fileAccessLogs, avsDataStore, dataStoreResourceId?.ToList(), isDefaultQuotaEnabled, defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs, maximumNumberOfFiles, volumeGroupName, capacityPoolResourceId, proximityPlacementGroupId, t2Network, volumeSpecName, isEncrypted, placementRules?.ToList(), enableSubvolumes, provisionedAvailabilityZone, isLargeVolume, originatingResourceId); + return new NetAppVolumeGroupVolume(id, name, resourceType, tags, zones?.ToList(), fileSystemId, creationToken, serviceLevel, usageThreshold, exportRules != null ? new VolumePropertiesExportPolicy(exportRules?.ToList()) : null, protocolTypes?.ToList(), provisioningState, snapshotId, deleteBaseSnapshot, backupId, baremetalTenantId, subnetId, networkFeatures, networkSiblingSetId, storageToNetworkProximity, mountTargets?.ToList(), volumeType, dataProtection, isRestoring, isSnapshotDirectoryVisible, isKerberosEnabled, securityStyle, isSmbEncryptionEnabled, smbAccessBasedEnumeration, smbNonBrowsable, isSmbContinuouslyAvailable, throughputMibps, actualThroughputMibps, encryptionKeySource, keyVaultPrivateEndpointResourceId, isLdapEnabled, isCoolAccessEnabled, coolnessPeriod, coolAccessRetrievalPolicy, unixPermissions, cloneProgress, fileAccessLogs, avsDataStore, dataStoreResourceId?.ToList(), isDefaultQuotaEnabled, defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs, maximumNumberOfFiles, volumeGroupName, capacityPoolResourceId, proximityPlacementGroupId, t2Network, volumeSpecName, isEncrypted, placementRules?.ToList(), enableSubvolumes, provisionedAvailabilityZone, isLargeVolume, originatingResourceId); } /// Initializes a new instance of NetAppSubvolumeInfoData. @@ -560,7 +576,7 @@ public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier /// parent path to the subvolume. /// Azure lifecycle management. /// A new instance for mocking. - public static NetAppSubvolumeInfoData NetAppSubvolumeInfoData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string path = null, long? size = null, string parentPath = null, string provisioningState = null) + public static NetAppSubvolumeInfoData NetAppSubvolumeInfoData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, string path = null, long? size = null, string parentPath = null, string provisioningState = null) { return new NetAppSubvolumeInfoData(id, name, resourceType, systemData, path, size, parentPath, provisioningState); } @@ -581,7 +597,7 @@ public static NetAppSubvolumeInfoData NetAppSubvolumeInfoData(ResourceIdentifier /// Most recent change time and date. /// Azure lifecycle management. /// A new instance for mocking. - public static NetAppSubvolumeMetadata NetAppSubvolumeMetadata(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string path = null, string parentPath = null, long? size = null, long? bytesUsed = null, string permissions = null, DateTimeOffset? createdOn = null, DateTimeOffset? accessedOn = null, DateTimeOffset? modifiedOn = null, DateTimeOffset? changedOn = null, string provisioningState = null) + public static NetAppSubvolumeMetadata NetAppSubvolumeMetadata(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, string path = null, string parentPath = null, long? size = null, long? bytesUsed = null, string permissions = null, DateTimeOffset? createdOn = null, DateTimeOffset? accessedOn = null, DateTimeOffset? modifiedOn = null, DateTimeOffset? changedOn = null, string provisioningState = null) { return new NetAppSubvolumeMetadata(id, name, resourceType, systemData, path, parentPath, size, bytesUsed, permissions, createdOn, accessedOn, modifiedOn, changedOn, provisioningState); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs index 7c16a6ee6575d..f15e02a1c8602 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs @@ -47,7 +47,7 @@ public CapacityPoolData(AzureLocation location, long size, NetAppFileServiceLeve /// The qos type of the pool. /// If enabled (true) the pool can contain cool Access enabled volumes. /// 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. - internal CapacityPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, Guid? poolId, long size, NetAppFileServiceLevel serviceLevel, string provisioningState, float? totalThroughputMibps, float? utilizedThroughputMibps, CapacityPoolQosType? qosType, bool? isCoolAccessEnabled, CapacityPoolEncryptionType? encryptionType) : base(id, name, resourceType, systemData, tags, location) + internal CapacityPoolData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, Guid? poolId, long size, NetAppFileServiceLevel serviceLevel, string provisioningState, float? totalThroughputMibps, float? utilizedThroughputMibps, CapacityPoolQosType? qosType, bool? isCoolAccessEnabled, CapacityPoolEncryptionType? encryptionType) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; PoolId = poolId; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/NetAppExtensions.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/NetAppExtensions.cs index d39f2066d3088..9d8a9f1248088 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/NetAppExtensions.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/NetAppExtensions.cs @@ -145,44 +145,6 @@ public static SnapshotPolicyResource GetSnapshotPolicyResource(this ArmClient cl } #endregion - #region NetAppVolumeBackupResource - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// Returns a object. - public static NetAppVolumeBackupResource GetNetAppVolumeBackupResource(this ArmClient client, ResourceIdentifier id) - { - return client.GetResourceClient(() => - { - NetAppVolumeBackupResource.ValidateResourceId(id); - return new NetAppVolumeBackupResource(client, id); - } - ); - } - #endregion - - #region NetAppAccountBackupResource - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// Returns a object. - public static NetAppAccountBackupResource GetNetAppAccountBackupResource(this ArmClient client, ResourceIdentifier id) - { - return client.GetResourceClient(() => - { - NetAppAccountBackupResource.ValidateResourceId(id); - return new NetAppAccountBackupResource(client, id); - } - ); - } - #endregion - #region NetAppBackupPolicyResource /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. @@ -507,6 +469,108 @@ public static Response QueryRegionInfoNetAppResource(this Subs return GetSubscriptionResourceExtensionClient(subscriptionResource).QueryRegionInfoNetAppResource(location, cancellationToken); } + /// + /// Get details of the specified network sibling set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet + /// + /// + /// Operation Id + /// NetAppResource_QueryNetworkSiblingSet + /// + /// + /// + /// The instance the method will execute against. + /// The name of Azure region. + /// Network sibling set to query. + /// The cancellation token to use. + /// is null. + public static async Task> QueryNetworkSiblingSetNetAppResourceAsync(this SubscriptionResource subscriptionResource, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + return await GetSubscriptionResourceExtensionClient(subscriptionResource).QueryNetworkSiblingSetNetAppResourceAsync(location, content, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get details of the specified network sibling set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet + /// + /// + /// Operation Id + /// NetAppResource_QueryNetworkSiblingSet + /// + /// + /// + /// The instance the method will execute against. + /// The name of Azure region. + /// Network sibling set to query. + /// The cancellation token to use. + /// is null. + public static Response QueryNetworkSiblingSetNetAppResource(this SubscriptionResource subscriptionResource, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + return GetSubscriptionResourceExtensionClient(subscriptionResource).QueryNetworkSiblingSetNetAppResource(location, content, cancellationToken); + } + + /// + /// Update the network features of the specified network sibling set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet + /// + /// + /// Operation Id + /// NetAppResource_UpdateNetworkSiblingSet + /// + /// + /// + /// The instance the method will execute against. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of Azure region. + /// Update for the specified network sibling set. + /// The cancellation token to use. + /// is null. + public static async Task> UpdateNetworkSiblingSetNetAppResourceAsync(this SubscriptionResource subscriptionResource, WaitUntil waitUntil, AzureLocation location, UpdateNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + return await GetSubscriptionResourceExtensionClient(subscriptionResource).UpdateNetworkSiblingSetNetAppResourceAsync(waitUntil, location, content, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update the network features of the specified network sibling set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet + /// + /// + /// Operation Id + /// NetAppResource_UpdateNetworkSiblingSet + /// + /// + /// + /// The instance the method will execute against. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of Azure region. + /// Update for the specified network sibling set. + /// The cancellation token to use. + /// is null. + public static ArmOperation UpdateNetworkSiblingSetNetAppResource(this SubscriptionResource subscriptionResource, WaitUntil waitUntil, AzureLocation location, UpdateNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + return GetSubscriptionResourceExtensionClient(subscriptionResource).UpdateNetworkSiblingSetNetAppResource(waitUntil, location, content, cancellationToken); + } + /// /// Get the default and current limits for quotas /// diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index da314613f7524..dedbaa98ecac2 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -306,6 +306,142 @@ public virtual Response QueryRegionInfoNetAppResource(AzureLoc } } + /// + /// Get details of the specified network sibling set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet + /// + /// + /// Operation Id + /// NetAppResource_QueryNetworkSiblingSet + /// + /// + /// + /// The name of Azure region. + /// Network sibling set to query. + /// The cancellation token to use. + public virtual async Task> QueryNetworkSiblingSetNetAppResourceAsync(AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + using var scope = NetAppResourceClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.QueryNetworkSiblingSetNetAppResource"); + scope.Start(); + try + { + var response = await NetAppResourceRestClient.QueryNetworkSiblingSetAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get details of the specified network sibling set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet + /// + /// + /// Operation Id + /// NetAppResource_QueryNetworkSiblingSet + /// + /// + /// + /// The name of Azure region. + /// Network sibling set to query. + /// The cancellation token to use. + public virtual Response QueryNetworkSiblingSetNetAppResource(AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + using var scope = NetAppResourceClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.QueryNetworkSiblingSetNetAppResource"); + scope.Start(); + try + { + var response = NetAppResourceRestClient.QueryNetworkSiblingSet(Id.SubscriptionId, location, content, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update the network features of the specified network sibling set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet + /// + /// + /// Operation Id + /// NetAppResource_UpdateNetworkSiblingSet + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of Azure region. + /// Update for the specified network sibling set. + /// The cancellation token to use. + public virtual async Task> UpdateNetworkSiblingSetNetAppResourceAsync(WaitUntil waitUntil, AzureLocation location, UpdateNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + using var scope = NetAppResourceClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.UpdateNetworkSiblingSetNetAppResource"); + scope.Start(); + try + { + var response = await NetAppResourceRestClient.UpdateNetworkSiblingSetAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(new NetworkSiblingSetOperationSource(), NetAppResourceClientDiagnostics, Pipeline, NetAppResourceRestClient.CreateUpdateNetworkSiblingSetRequest(Id.SubscriptionId, location, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update the network features of the specified network sibling set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet + /// + /// + /// Operation Id + /// NetAppResource_UpdateNetworkSiblingSet + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of Azure region. + /// Update for the specified network sibling set. + /// The cancellation token to use. + public virtual ArmOperation UpdateNetworkSiblingSetNetAppResource(WaitUntil waitUntil, AzureLocation location, UpdateNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + using var scope = NetAppResourceClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.UpdateNetworkSiblingSetNetAppResource"); + scope.Start(); + try + { + var response = NetAppResourceRestClient.UpdateNetworkSiblingSet(Id.SubscriptionId, location, content, cancellationToken); + var operation = new NetAppArmOperation(new NetworkSiblingSetOperationSource(), NetAppResourceClientDiagnostics, Pipeline, NetAppResourceRestClient.CreateUpdateNetworkSiblingSetRequest(Id.SubscriptionId, location, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Get the default and current limits for quotas /// diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetworkSiblingSetOperationSource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetworkSiblingSetOperationSource.cs new file mode 100644 index 0000000000000..c1ca102f94363 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetworkSiblingSetOperationSource.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager.NetApp.Models; + +namespace Azure.ResourceManager.NetApp +{ + internal class NetworkSiblingSetOperationSource : IOperationSource + { + NetworkSiblingSet IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return NetworkSiblingSet.DeserializeNetworkSiblingSet(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return NetworkSiblingSet.DeserializeNetworkSiblingSet(document.RootElement); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolData.Serialization.cs index 75b316cdabff7..4941fccf995a0 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolData.Serialization.cs @@ -77,7 +77,7 @@ internal static CapacityPoolData DeserializeCapacityPoolData(JsonElement element ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional poolId = default; long size = default; NetAppFileServiceLevel serviceLevel = default; @@ -138,7 +138,7 @@ internal static CapacityPoolData DeserializeCapacityPoolData(JsonElement element { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessRetrievalPolicy.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessRetrievalPolicy.cs new file mode 100644 index 0000000000000..e70edc58d2fcc --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessRetrievalPolicy.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// + /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// + public readonly partial struct CoolAccessRetrievalPolicy : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CoolAccessRetrievalPolicy(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DefaultValue = "Default"; + private const string OnReadValue = "OnRead"; + private const string NeverValue = "Never"; + + /// Default. + public static CoolAccessRetrievalPolicy Default { get; } = new CoolAccessRetrievalPolicy(DefaultValue); + /// OnRead. + public static CoolAccessRetrievalPolicy OnRead { get; } = new CoolAccessRetrievalPolicy(OnReadValue); + /// Never. + public static CoolAccessRetrievalPolicy Never { get; } = new CoolAccessRetrievalPolicy(NeverValue); + /// Determines if two values are the same. + public static bool operator ==(CoolAccessRetrievalPolicy left, CoolAccessRetrievalPolicy right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CoolAccessRetrievalPolicy left, CoolAccessRetrievalPolicy right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator CoolAccessRetrievalPolicy(string value) => new CoolAccessRetrievalPolicy(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CoolAccessRetrievalPolicy other && Equals(other); + /// + public bool Equals(CoolAccessRetrievalPolicy other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CreatedByType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CreatedByType.cs new file mode 100644 index 0000000000000..ffbf25ac27431 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CreatedByType.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// The type of identity that created the resource. + internal readonly partial struct CreatedByType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CreatedByType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string UserValue = "User"; + private const string ApplicationValue = "Application"; + private const string ManagedIdentityValue = "ManagedIdentity"; + private const string KeyValue = "Key"; + + /// User. + public static CreatedByType User { get; } = new CreatedByType(UserValue); + /// Application. + public static CreatedByType Application { get; } = new CreatedByType(ApplicationValue); + /// ManagedIdentity. + public static CreatedByType ManagedIdentity { get; } = new CreatedByType(ManagedIdentityValue); + /// Key. + public static CreatedByType Key { get; } = new CreatedByType(KeyValue); + /// Determines if two values are the same. + public static bool operator ==(CreatedByType left, CreatedByType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CreatedByType left, CreatedByType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator CreatedByType(string value) => new CreatedByType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CreatedByType other && Equals(other); + /// + public bool Equals(CreatedByType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountData.Serialization.cs index 439fe15e63376..d996c7e316849 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountData.Serialization.cs @@ -72,7 +72,7 @@ internal static NetAppAccountData DeserializeNetAppAccountData(JsonElement eleme ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional provisioningState = default; Optional> activeDirectories = default; Optional encryption = default; @@ -138,7 +138,7 @@ internal static NetAppAccountData DeserializeNetAppAccountData(JsonElement eleme { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppApplicationType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppApplicationType.cs index 025b56265e1bf..bb53e875bcfbf 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppApplicationType.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppApplicationType.cs @@ -23,9 +23,12 @@ public NetAppApplicationType(string value) } private const string SapHanaValue = "SAP-HANA"; + private const string OracleValue = "ORACLE"; /// SAP-HANA. public static NetAppApplicationType SapHana { get; } = new NetAppApplicationType(SapHanaValue); + /// ORACLE. + public static NetAppApplicationType Oracle { get; } = new NetAppApplicationType(OracleValue); /// Determines if two values are the same. public static bool operator ==(NetAppApplicationType left, NetAppApplicationType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyData.Serialization.cs index b0f000bdce157..249fe85af00be 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyData.Serialization.cs @@ -70,7 +70,7 @@ internal static NetAppBackupPolicyData DeserializeNetAppBackupPolicyData(JsonEle ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional backupPolicyId = default; Optional provisioningState = default; Optional dailyBackupsToKeep = default; @@ -130,7 +130,7 @@ internal static NetAppBackupPolicyData DeserializeNetAppBackupPolicyData(JsonEle { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNetworkFeature.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNetworkFeature.cs index d7490a19efaf6..8a1ea9e4842fe 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNetworkFeature.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNetworkFeature.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Basic network, or Standard features available to the volume. + /// Network features available to the volume, or current state of update. public readonly partial struct NetAppNetworkFeature : IEquatable { private readonly string _value; @@ -24,11 +24,17 @@ public NetAppNetworkFeature(string value) private const string BasicValue = "Basic"; private const string StandardValue = "Standard"; + private const string BasicStandardValue = "Basic_Standard"; + private const string StandardBasicValue = "Standard_Basic"; - /// Basic network feature. + /// Basic network features. public static NetAppNetworkFeature Basic { get; } = new NetAppNetworkFeature(BasicValue); - /// Standard network feature. + /// Standard network features. public static NetAppNetworkFeature Standard { get; } = new NetAppNetworkFeature(StandardValue); + /// Updating from Basic to Standard network features. + public static NetAppNetworkFeature BasicStandard { get; } = new NetAppNetworkFeature(BasicStandardValue); + /// Updating from Standard to Basic network features. + public static NetAppNetworkFeature StandardBasic { get; } = new NetAppNetworkFeature(StandardBasicValue); /// Determines if two values are the same. public static bool operator ==(NetAppNetworkFeature left, NetAppNetworkFeature right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.Serialization.cs index fa7fa0043b360..a394524223051 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.Serialization.cs @@ -15,11 +15,6 @@ public partial class NetAppReplicationObject : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(ReplicationId)) - { - writer.WritePropertyName("replicationId"u8); - writer.WriteStringValue(ReplicationId); - } if (Optional.IsDefined(EndpointType)) { writer.WritePropertyName("endpointType"u8); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.cs index 9d903da79f149..8c61cd023546c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.cs @@ -37,9 +37,6 @@ internal NetAppReplicationObject(string replicationId, NetAppEndpointType? endpo RemoteVolumeResourceId = remoteVolumeResourceId; RemoteVolumeRegion = remoteVolumeRegion; } - - /// Id. - public string ReplicationId { get; set; } /// Indicates whether the local volume is the source or destination for the Volume Replication. public NetAppEndpointType? EndpointType { get; set; } /// Schedule. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.Serialization.cs index 0da406c805ff4..d24fee87712f9 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.Serialization.cs @@ -31,7 +31,7 @@ internal static NetAppSubscriptionQuotaItem DeserializeNetAppSubscriptionQuotaIt ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional current = default; Optional @default = default; foreach (var property in element.EnumerateObject()) @@ -57,7 +57,7 @@ internal static NetAppSubscriptionQuotaItem DeserializeNetAppSubscriptionQuotaIt { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs index 47e4c141efa3c..8d1fdab678e6b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs @@ -25,7 +25,7 @@ public NetAppSubscriptionQuotaItem() /// The systemData. /// The current quota value. /// The default quota value. - internal NetAppSubscriptionQuotaItem(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, int? current, int? @default) : base(id, name, resourceType, systemData) + internal NetAppSubscriptionQuotaItem(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, int? current, int? @default) : base(id, name, resourceType, systemData) { Current = current; Default = @default; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.Serialization.cs index ae0cad3947e05..db3bb319daa63 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.Serialization.cs @@ -23,7 +23,7 @@ internal static NetAppSubvolumeMetadata DeserializeNetAppSubvolumeMetadata(JsonE ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional path = default; Optional parentPath = default; Optional size = default; @@ -57,7 +57,7 @@ internal static NetAppSubvolumeMetadata DeserializeNetAppSubvolumeMetadata(JsonE { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs index 51fbdfdb6174d..9f8ed84f43025 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs @@ -34,7 +34,7 @@ internal NetAppSubvolumeMetadata() /// Most recent modification time and date. /// Most recent change time and date. /// Azure lifecycle management. - internal NetAppSubvolumeMetadata(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string path, string parentPath, long? size, long? bytesUsed, string permissions, DateTimeOffset? createdOn, DateTimeOffset? accessedOn, DateTimeOffset? modifiedOn, DateTimeOffset? changedOn, string provisioningState) : base(id, name, resourceType, systemData) + internal NetAppSubvolumeMetadata(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, string path, string parentPath, long? size, long? bytesUsed, string permissions, DateTimeOffset? createdOn, DateTimeOffset? accessedOn, DateTimeOffset? modifiedOn, DateTimeOffset? changedOn, string provisioningState) : base(id, name, resourceType, systemData) { Path = path; ParentPath = parentPath; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupBackupRestoreFilesContent.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupBackupRestoreFilesContent.Serialization.cs deleted file mode 100644 index bd20c2b21ec49..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupBackupRestoreFilesContent.Serialization.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - public partial class NetAppVolumeBackupBackupRestoreFilesContent : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("fileList"u8); - writer.WriteStartArray(); - foreach (var item in FileList) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - if (Optional.IsDefined(RestoreFilePath)) - { - writer.WritePropertyName("restoreFilePath"u8); - writer.WriteStringValue(RestoreFilePath); - } - writer.WritePropertyName("destinationVolumeId"u8); - writer.WriteStringValue(DestinationVolumeId); - writer.WriteEndObject(); - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.Serialization.cs deleted file mode 100644 index 9a4dec1cdf194..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.Serialization.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - public partial class NetAppVolumeBackupConfiguration : IUtf8JsonSerializable - { - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.cs deleted file mode 100644 index ac08dd018b08d..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Volume Backup Properties. - public partial class NetAppVolumeBackupConfiguration - { - /// Initializes a new instance of NetAppVolumeBackupConfiguration. - public NetAppVolumeBackupConfiguration() - { - } - - /// Initializes a new instance of NetAppVolumeBackupConfiguration. - /// Backup Policy Resource ID. - /// Policy Enforced. - /// Backup Enabled. - internal NetAppVolumeBackupConfiguration(ResourceIdentifier backupPolicyId, bool? isPolicyEnforced, bool? isBackupEnabled) - { - BackupPolicyId = backupPolicyId; - IsPolicyEnforced = isPolicyEnforced; - IsBackupEnabled = isBackupEnabled; - } - - /// Backup Policy Resource ID. - public ResourceIdentifier BackupPolicyId { get; set; } - /// Policy Enforced. - public bool? IsPolicyEnforced { get; set; } - /// Backup Enabled. - public bool? IsBackupEnabled { get; set; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeData.Serialization.cs index 70917e3a80f02..80f2bb939bb8a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeData.Serialization.cs @@ -142,8 +142,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } if (Optional.IsDefined(SmbAccessBasedEnumeration)) { - writer.WritePropertyName("smbAccessBasedEnumeration"u8); - writer.WriteStringValue(SmbAccessBasedEnumeration.Value.ToString()); + if (SmbAccessBasedEnumeration != null) + { + writer.WritePropertyName("smbAccessBasedEnumeration"u8); + writer.WriteStringValue(SmbAccessBasedEnumeration.Value.ToString()); + } + else + { + writer.WriteNull("smbAccessBasedEnumeration"); + } } if (Optional.IsDefined(SmbNonBrowsable)) { @@ -192,6 +199,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("coolnessPeriod"u8); writer.WriteNumberValue(CoolnessPeriod.Value); } + if (Optional.IsDefined(CoolAccessRetrievalPolicy)) + { + writer.WritePropertyName("coolAccessRetrievalPolicy"u8); + writer.WriteStringValue(CoolAccessRetrievalPolicy.Value.ToString()); + } if (Optional.IsDefined(UnixPermissions)) { if (UnixPermissions != null) @@ -276,7 +288,7 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional fileSystemId = default; string creationToken = default; Optional serviceLevel = default; @@ -300,7 +312,7 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element Optional kerberosEnabled = default; Optional securityStyle = default; Optional smbEncryption = default; - Optional smbAccessBasedEnumeration = default; + Optional smbAccessBasedEnumeration = default; Optional smbNonBrowsable = default; Optional smbContinuouslyAvailable = default; Optional throughputMibps = default; @@ -310,6 +322,7 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element Optional ldapEnabled = default; Optional coolAccess = default; Optional coolnessPeriod = default; + Optional coolAccessRetrievalPolicy = default; Optional unixPermissions = default; Optional cloneProgress = default; Optional fileAccessLogs = default; @@ -395,7 +408,7 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) @@ -606,6 +619,7 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element { if (property0.Value.ValueKind == JsonValueKind.Null) { + smbAccessBasedEnumeration = null; continue; } smbAccessBasedEnumeration = new SmbAccessBasedEnumeration(property0.Value.GetString()); @@ -693,6 +707,15 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element coolnessPeriod = property0.Value.GetInt32(); continue; } + if (property0.NameEquals("coolAccessRetrievalPolicy"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + coolAccessRetrievalPolicy = new CoolAccessRetrievalPolicy(property0.Value.GetString()); + continue; + } if (property0.NameEquals("unixPermissions"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -886,7 +909,7 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element continue; } } - return new NetAppVolumeData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(etag), Optional.ToList(zones), Optional.ToNullable(fileSystemId), creationToken, Optional.ToNullable(serviceLevel), usageThreshold, exportPolicy.Value, Optional.ToList(protocolTypes), provisioningState.Value, snapshotId.Value, Optional.ToNullable(deleteBaseSnapshot), backupId.Value, baremetalTenantId.Value, subnetId, Optional.ToNullable(networkFeatures), Optional.ToNullable(networkSiblingSetId), Optional.ToNullable(storageToNetworkProximity), Optional.ToList(mountTargets), volumeType.Value, dataProtection.Value, Optional.ToNullable(isRestoring), Optional.ToNullable(snapshotDirectoryVisible), Optional.ToNullable(kerberosEnabled), Optional.ToNullable(securityStyle), Optional.ToNullable(smbEncryption), Optional.ToNullable(smbAccessBasedEnumeration), Optional.ToNullable(smbNonBrowsable), Optional.ToNullable(smbContinuouslyAvailable), Optional.ToNullable(throughputMibps), Optional.ToNullable(actualThroughputMibps), Optional.ToNullable(encryptionKeySource), keyVaultPrivateEndpointResourceId.Value, Optional.ToNullable(ldapEnabled), Optional.ToNullable(coolAccess), Optional.ToNullable(coolnessPeriod), unixPermissions.Value, Optional.ToNullable(cloneProgress), Optional.ToNullable(fileAccessLogs), Optional.ToNullable(avsDataStore), Optional.ToList(dataStoreResourceId), Optional.ToNullable(isDefaultQuotaEnabled), Optional.ToNullable(defaultUserQuotaInKiBs), Optional.ToNullable(defaultGroupQuotaInKiBs), Optional.ToNullable(maximumNumberOfFiles), volumeGroupName.Value, capacityPoolResourceId.Value, proximityPlacementGroup.Value, t2Network.Value, volumeSpecName.Value, Optional.ToNullable(encrypted), Optional.ToList(placementRules), Optional.ToNullable(enableSubvolumes), provisionedAvailabilityZone.Value, Optional.ToNullable(isLargeVolume), originatingResourceId.Value); + return new NetAppVolumeData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(etag), Optional.ToList(zones), Optional.ToNullable(fileSystemId), creationToken, Optional.ToNullable(serviceLevel), usageThreshold, exportPolicy.Value, Optional.ToList(protocolTypes), provisioningState.Value, snapshotId.Value, Optional.ToNullable(deleteBaseSnapshot), backupId.Value, baremetalTenantId.Value, subnetId, Optional.ToNullable(networkFeatures), Optional.ToNullable(networkSiblingSetId), Optional.ToNullable(storageToNetworkProximity), Optional.ToList(mountTargets), volumeType.Value, dataProtection.Value, Optional.ToNullable(isRestoring), Optional.ToNullable(snapshotDirectoryVisible), Optional.ToNullable(kerberosEnabled), Optional.ToNullable(securityStyle), Optional.ToNullable(smbEncryption), Optional.ToNullable(smbAccessBasedEnumeration), Optional.ToNullable(smbNonBrowsable), Optional.ToNullable(smbContinuouslyAvailable), Optional.ToNullable(throughputMibps), Optional.ToNullable(actualThroughputMibps), Optional.ToNullable(encryptionKeySource), keyVaultPrivateEndpointResourceId.Value, Optional.ToNullable(ldapEnabled), Optional.ToNullable(coolAccess), Optional.ToNullable(coolnessPeriod), Optional.ToNullable(coolAccessRetrievalPolicy), unixPermissions.Value, Optional.ToNullable(cloneProgress), Optional.ToNullable(fileAccessLogs), Optional.ToNullable(avsDataStore), Optional.ToList(dataStoreResourceId), Optional.ToNullable(isDefaultQuotaEnabled), Optional.ToNullable(defaultUserQuotaInKiBs), Optional.ToNullable(defaultGroupQuotaInKiBs), Optional.ToNullable(maximumNumberOfFiles), volumeGroupName.Value, capacityPoolResourceId.Value, proximityPlacementGroup.Value, t2Network.Value, volumeSpecName.Value, Optional.ToNullable(encrypted), Optional.ToList(placementRules), Optional.ToNullable(enableSubvolumes), provisionedAvailabilityZone.Value, Optional.ToNullable(isLargeVolume), originatingResourceId.Value); } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.Serialization.cs index d09faaee096c2..fd054ba70c86b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.Serialization.cs @@ -15,11 +15,6 @@ public partial class NetAppVolumeDataProtection : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(Backup)) - { - writer.WritePropertyName("backup"u8); - writer.WriteObjectValue(Backup); - } if (Optional.IsDefined(Replication)) { writer.WritePropertyName("replication"u8); @@ -44,21 +39,11 @@ internal static NetAppVolumeDataProtection DeserializeNetAppVolumeDataProtection { return null; } - Optional backup = default; Optional replication = default; Optional snapshot = default; Optional volumeRelocation = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("backup"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - backup = NetAppVolumeBackupConfiguration.DeserializeNetAppVolumeBackupConfiguration(property.Value); - continue; - } if (property.NameEquals("replication"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -87,7 +72,7 @@ internal static NetAppVolumeDataProtection DeserializeNetAppVolumeDataProtection continue; } } - return new NetAppVolumeDataProtection(backup.Value, replication.Value, snapshot.Value, volumeRelocation.Value); + return new NetAppVolumeDataProtection(replication.Value, snapshot.Value, volumeRelocation.Value); } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.cs index db5f4ec0e3517..26d6da9165759 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.cs @@ -18,20 +18,16 @@ public NetAppVolumeDataProtection() } /// Initializes a new instance of NetAppVolumeDataProtection. - /// Backup Properties. /// Replication properties. /// Snapshot properties. /// VolumeRelocation properties. - internal NetAppVolumeDataProtection(NetAppVolumeBackupConfiguration backup, NetAppReplicationObject replication, VolumeSnapshotProperties snapshot, NetAppVolumeRelocationProperties volumeRelocation) + internal NetAppVolumeDataProtection(NetAppReplicationObject replication, VolumeSnapshotProperties snapshot, NetAppVolumeRelocationProperties volumeRelocation) { - Backup = backup; Replication = replication; Snapshot = snapshot; VolumeRelocation = volumeRelocation; } - /// Backup Properties. - public NetAppVolumeBackupConfiguration Backup { get; set; } /// Replication properties. public NetAppReplicationObject Replication { get; set; } /// Snapshot properties. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupData.Serialization.cs index 7e3c823598322..94cf132ff6205 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupData.Serialization.cs @@ -54,7 +54,7 @@ internal static NetAppVolumeGroupData DeserializeNetAppVolumeGroupData(JsonEleme ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional provisioningState = default; Optional groupMetaData = default; Optional> volumes = default; @@ -90,7 +90,7 @@ internal static NetAppVolumeGroupData DeserializeNetAppVolumeGroupData(JsonEleme { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.Serialization.cs index 461108fff3924..95c9a8294306a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.Serialization.cs @@ -23,7 +23,7 @@ internal static NetAppVolumeGroupResult DeserializeNetAppVolumeGroupResult(JsonE ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional provisioningState = default; Optional groupMetaData = default; foreach (var property in element.EnumerateObject()) @@ -58,7 +58,7 @@ internal static NetAppVolumeGroupResult DeserializeNetAppVolumeGroupResult(JsonE { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs index ada6399db1001..52b81f2b65d40 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs @@ -26,7 +26,7 @@ internal NetAppVolumeGroupResult() /// Resource location. /// Azure lifecycle management. /// Volume group details. - internal NetAppVolumeGroupResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, string provisioningState, NetAppVolumeGroupMetadata groupMetaData) : base(id, name, resourceType, systemData) + internal NetAppVolumeGroupResult(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, AzureLocation? location, string provisioningState, NetAppVolumeGroupMetadata groupMetaData) : base(id, name, resourceType, systemData) { Location = location; ProvisioningState = provisioningState; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.Serialization.cs index 8cc47bd4beec4..3b93ebdc38030 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.Serialization.cs @@ -33,6 +33,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsCollectionDefined(Zones)) + { + writer.WritePropertyName("zones"u8); + writer.WriteStartArray(); + foreach (var item in Zones) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); writer.WritePropertyName("creationToken"u8); @@ -132,8 +142,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } if (Optional.IsDefined(SmbAccessBasedEnumeration)) { - writer.WritePropertyName("smbAccessBasedEnumeration"u8); - writer.WriteStringValue(SmbAccessBasedEnumeration.Value.ToString()); + if (SmbAccessBasedEnumeration != null) + { + writer.WritePropertyName("smbAccessBasedEnumeration"u8); + writer.WriteStringValue(SmbAccessBasedEnumeration.Value.ToString()); + } + else + { + writer.WriteNull("smbAccessBasedEnumeration"); + } } if (Optional.IsDefined(SmbNonBrowsable)) { @@ -182,6 +199,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("coolnessPeriod"u8); writer.WriteNumberValue(CoolnessPeriod.Value); } + if (Optional.IsDefined(CoolAccessRetrievalPolicy)) + { + writer.WritePropertyName("coolAccessRetrievalPolicy"u8); + writer.WriteStringValue(CoolAccessRetrievalPolicy.Value.ToString()); + } if (Optional.IsDefined(UnixPermissions)) { if (UnixPermissions != null) @@ -263,6 +285,7 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE Optional name = default; Optional type = default; Optional> tags = default; + Optional> zones = default; Optional fileSystemId = default; string creationToken = default; Optional serviceLevel = default; @@ -286,7 +309,7 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE Optional kerberosEnabled = default; Optional securityStyle = default; Optional smbEncryption = default; - Optional smbAccessBasedEnumeration = default; + Optional smbAccessBasedEnumeration = default; Optional smbNonBrowsable = default; Optional smbContinuouslyAvailable = default; Optional throughputMibps = default; @@ -296,6 +319,7 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE Optional ldapEnabled = default; Optional coolAccess = default; Optional coolnessPeriod = default; + Optional coolAccessRetrievalPolicy = default; Optional unixPermissions = default; Optional cloneProgress = default; Optional fileAccessLogs = default; @@ -355,6 +379,20 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE tags = dictionary; continue; } + if (property.NameEquals("zones"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + zones = array; + continue; + } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -563,6 +601,7 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE { if (property0.Value.ValueKind == JsonValueKind.Null) { + smbAccessBasedEnumeration = null; continue; } smbAccessBasedEnumeration = new SmbAccessBasedEnumeration(property0.Value.GetString()); @@ -650,6 +689,15 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE coolnessPeriod = property0.Value.GetInt32(); continue; } + if (property0.NameEquals("coolAccessRetrievalPolicy"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + coolAccessRetrievalPolicy = new CoolAccessRetrievalPolicy(property0.Value.GetString()); + continue; + } if (property0.NameEquals("unixPermissions"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -843,7 +891,7 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE continue; } } - return new NetAppVolumeGroupVolume(id.Value, name.Value, Optional.ToNullable(type), Optional.ToDictionary(tags), Optional.ToNullable(fileSystemId), creationToken, Optional.ToNullable(serviceLevel), usageThreshold, exportPolicy.Value, Optional.ToList(protocolTypes), provisioningState.Value, snapshotId.Value, Optional.ToNullable(deleteBaseSnapshot), backupId.Value, baremetalTenantId.Value, subnetId, Optional.ToNullable(networkFeatures), Optional.ToNullable(networkSiblingSetId), Optional.ToNullable(storageToNetworkProximity), Optional.ToList(mountTargets), volumeType.Value, dataProtection.Value, Optional.ToNullable(isRestoring), Optional.ToNullable(snapshotDirectoryVisible), Optional.ToNullable(kerberosEnabled), Optional.ToNullable(securityStyle), Optional.ToNullable(smbEncryption), Optional.ToNullable(smbAccessBasedEnumeration), Optional.ToNullable(smbNonBrowsable), Optional.ToNullable(smbContinuouslyAvailable), Optional.ToNullable(throughputMibps), Optional.ToNullable(actualThroughputMibps), Optional.ToNullable(encryptionKeySource), keyVaultPrivateEndpointResourceId.Value, Optional.ToNullable(ldapEnabled), Optional.ToNullable(coolAccess), Optional.ToNullable(coolnessPeriod), unixPermissions.Value, Optional.ToNullable(cloneProgress), Optional.ToNullable(fileAccessLogs), Optional.ToNullable(avsDataStore), Optional.ToList(dataStoreResourceId), Optional.ToNullable(isDefaultQuotaEnabled), Optional.ToNullable(defaultUserQuotaInKiBs), Optional.ToNullable(defaultGroupQuotaInKiBs), Optional.ToNullable(maximumNumberOfFiles), volumeGroupName.Value, capacityPoolResourceId.Value, proximityPlacementGroup.Value, t2Network.Value, volumeSpecName.Value, Optional.ToNullable(encrypted), Optional.ToList(placementRules), Optional.ToNullable(enableSubvolumes), provisionedAvailabilityZone.Value, Optional.ToNullable(isLargeVolume), originatingResourceId.Value); + return new NetAppVolumeGroupVolume(id.Value, name.Value, Optional.ToNullable(type), Optional.ToDictionary(tags), Optional.ToList(zones), Optional.ToNullable(fileSystemId), creationToken, Optional.ToNullable(serviceLevel), usageThreshold, exportPolicy.Value, Optional.ToList(protocolTypes), provisioningState.Value, snapshotId.Value, Optional.ToNullable(deleteBaseSnapshot), backupId.Value, baremetalTenantId.Value, subnetId, Optional.ToNullable(networkFeatures), Optional.ToNullable(networkSiblingSetId), Optional.ToNullable(storageToNetworkProximity), Optional.ToList(mountTargets), volumeType.Value, dataProtection.Value, Optional.ToNullable(isRestoring), Optional.ToNullable(snapshotDirectoryVisible), Optional.ToNullable(kerberosEnabled), Optional.ToNullable(securityStyle), Optional.ToNullable(smbEncryption), Optional.ToNullable(smbAccessBasedEnumeration), Optional.ToNullable(smbNonBrowsable), Optional.ToNullable(smbContinuouslyAvailable), Optional.ToNullable(throughputMibps), Optional.ToNullable(actualThroughputMibps), Optional.ToNullable(encryptionKeySource), keyVaultPrivateEndpointResourceId.Value, Optional.ToNullable(ldapEnabled), Optional.ToNullable(coolAccess), Optional.ToNullable(coolnessPeriod), Optional.ToNullable(coolAccessRetrievalPolicy), unixPermissions.Value, Optional.ToNullable(cloneProgress), Optional.ToNullable(fileAccessLogs), Optional.ToNullable(avsDataStore), Optional.ToList(dataStoreResourceId), Optional.ToNullable(isDefaultQuotaEnabled), Optional.ToNullable(defaultUserQuotaInKiBs), Optional.ToNullable(defaultGroupQuotaInKiBs), Optional.ToNullable(maximumNumberOfFiles), volumeGroupName.Value, capacityPoolResourceId.Value, proximityPlacementGroup.Value, t2Network.Value, volumeSpecName.Value, Optional.ToNullable(encrypted), Optional.ToList(placementRules), Optional.ToNullable(enableSubvolumes), provisionedAvailabilityZone.Value, Optional.ToNullable(isLargeVolume), originatingResourceId.Value); } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs index 04457cf159a83..f40035e5957e3 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs @@ -16,7 +16,7 @@ public partial class NetAppVolumeGroupVolume { /// Initializes a new instance of NetAppVolumeGroupVolume. /// A unique file path for the volume. Used when creating mount targets. - /// 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, 500Tib for LargeVolume. Specified in bytes. + /// 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, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. /// or is null. public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, ResourceIdentifier subnetId) @@ -25,6 +25,7 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Resour Argument.AssertNotNull(subnetId, nameof(subnetId)); Tags = new ChangeTrackingDictionary(); + Zones = new ChangeTrackingList(); CreationToken = creationToken; UsageThreshold = usageThreshold; ProtocolTypes = new ChangeTrackingList(); @@ -39,10 +40,11 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Resour /// Resource name. /// Resource type. /// Resource tags. + /// Availability Zone. /// Unique FileSystem Identifier. /// A unique file path for the volume. Used when creating mount targets. /// The service level of the file system. - /// 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, 500Tib for LargeVolume. Specified in bytes. + /// 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, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. /// Set of export policy rules. /// Set of protocol types, default NFSv3, CIFS for SMB protocol. /// Azure lifecycle management. @@ -51,7 +53,7 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Resour /// UUID v4 or resource identifier used to identify the Backup. /// Unique Baremetal Tenant Identifier. /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// Basic network, or Standard features available to the volume. + /// Network features available to the volume, or current state of update. /// Network Sibling Set ID for the the group of volumes sharing networking resources. /// Provides storage to network proximity information for the volume. /// List of mount targets. @@ -62,8 +64,8 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Resour /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. - /// Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. /// Enables continuously available share property for smb volume. Only applicable for SMB volume. /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. @@ -72,6 +74,12 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Resour /// Specifies whether LDAP is enabled or not for a given NFS volume. /// Specifies whether Cool Access(tiering) is enabled for the volume. /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// + /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// /// 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. /// 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. /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. @@ -92,12 +100,13 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Resour /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. /// Specifies whether volume is a Large Volume or Regular Volume. /// Id of the snapshot or backup that the volume is restored from. - internal NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary tags, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, VolumePropertiesExportPolicy exportPolicy, IList protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IReadOnlyList mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IReadOnlyList dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IList placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) + internal NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary tags, IList zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, VolumePropertiesExportPolicy exportPolicy, IList protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IReadOnlyList mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IReadOnlyList dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IList placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) { Id = id; Name = name; ResourceType = resourceType; Tags = tags; + Zones = zones; FileSystemId = fileSystemId; CreationToken = creationToken; ServiceLevel = serviceLevel; @@ -131,6 +140,7 @@ internal NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceTyp IsLdapEnabled = isLdapEnabled; IsCoolAccessEnabled = isCoolAccessEnabled; CoolnessPeriod = coolnessPeriod; + CoolAccessRetrievalPolicy = coolAccessRetrievalPolicy; UnixPermissions = unixPermissions; CloneProgress = cloneProgress; FileAccessLogs = fileAccessLogs; @@ -161,13 +171,15 @@ internal NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceTyp public ResourceType? ResourceType { get; } /// Resource tags. public IDictionary Tags { get; } + /// Availability Zone. + public IList Zones { get; } /// Unique FileSystem Identifier. public Guid? FileSystemId { get; } /// A unique file path for the volume. Used when creating mount targets. public string CreationToken { get; set; } /// The service level of the file system. public NetAppFileServiceLevel? ServiceLevel { get; set; } - /// 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, 500Tib for LargeVolume. Specified in bytes. + /// 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, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. public long UsageThreshold { get; set; } /// Set of export policy rules. internal VolumePropertiesExportPolicy ExportPolicy { get; set; } @@ -196,7 +208,7 @@ public IList ExportRules public string BaremetalTenantId { get; } /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. public ResourceIdentifier SubnetId { get; set; } - /// Basic network, or Standard features available to the volume. + /// Network features available to the volume, or current state of update. public NetAppNetworkFeature? NetworkFeatures { get; set; } /// Network Sibling Set ID for the the group of volumes sharing networking resources. public Guid? NetworkSiblingSetId { get; } @@ -218,9 +230,9 @@ public IList ExportRules public NetAppVolumeSecurityStyle? SecurityStyle { get; set; } /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. public bool? IsSmbEncryptionEnabled { get; set; } - /// Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. public SmbAccessBasedEnumeration? SmbAccessBasedEnumeration { get; set; } - /// Enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. public SmbNonBrowsable? SmbNonBrowsable { get; set; } /// Enables continuously available share property for smb volume. Only applicable for SMB volume. public bool? IsSmbContinuouslyAvailable { get; set; } @@ -238,6 +250,13 @@ public IList ExportRules public bool? IsCoolAccessEnabled { get; set; } /// Specifies the number of days after which data that is not accessed by clients will be tiered. public int? CoolnessPeriod { get; set; } + /// + /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// + public CoolAccessRetrievalPolicy? CoolAccessRetrievalPolicy { get; set; } /// 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. public string UnixPermissions { get; set; } /// 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. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.Serialization.cs index 1becfbaf51bde..8d8402b596792 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.Serialization.cs @@ -92,11 +92,33 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("coolnessPeriod"u8); writer.WriteNumberValue(CoolnessPeriod.Value); } + if (Optional.IsDefined(CoolAccessRetrievalPolicy)) + { + writer.WritePropertyName("coolAccessRetrievalPolicy"u8); + writer.WriteStringValue(CoolAccessRetrievalPolicy.Value.ToString()); + } if (Optional.IsDefined(IsSnapshotDirectoryVisible)) { writer.WritePropertyName("snapshotDirectoryVisible"u8); writer.WriteBooleanValue(IsSnapshotDirectoryVisible.Value); } + if (Optional.IsDefined(SmbAccessBasedEnumeration)) + { + if (SmbAccessBasedEnumeration != null) + { + writer.WritePropertyName("smbAccessBasedEnumeration"u8); + writer.WriteStringValue(SmbAccessBasedEnumeration.Value.ToString()); + } + else + { + writer.WriteNull("smbAccessBasedEnumeration"); + } + } + if (Optional.IsDefined(SmbNonBrowsable)) + { + writer.WritePropertyName("smbNonBrowsable"u8); + writer.WriteStringValue(SmbNonBrowsable.Value.ToString()); + } writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.cs index a6b1d188828e8..b94b279048e37 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.cs @@ -22,7 +22,7 @@ public NetAppVolumePatch(AzureLocation location) : base(location) /// The service level of the file system. public NetAppFileServiceLevel? ServiceLevel { get; set; } - /// 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, 500Tib for LargeVolume. Specified in bytes. + /// 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, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. public long? UsageThreshold { get; set; } /// Set of export policy rules. internal VolumePatchPropertiesExportPolicy ExportPolicy { get; set; } @@ -39,8 +39,18 @@ public IList ExportRules /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. public float? ThroughputMibps { get; set; } - /// DataProtection type volumes include an object containing details of the replication. - public NetAppVolumePatchDataProtection DataProtection { get; set; } + /// Snapshot Policy ResourceId. + public ResourceIdentifier SnapshotPolicyId + { + get => DataProtection is null ? default : DataProtection.SnapshotPolicyId; + set + { + if (DataProtection is null) + DataProtection = new NetAppVolumePatchDataProtection(); + DataProtection.SnapshotPolicyId = value; + } + } + /// Specifies if default quota is enabled for the volume. public bool? IsDefaultQuotaEnabled { get; set; } /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . @@ -53,7 +63,18 @@ public IList ExportRules public bool? IsCoolAccessEnabled { get; set; } /// Specifies the number of days after which data that is not accessed by clients will be tiered. public int? CoolnessPeriod { get; set; } + /// + /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// + public CoolAccessRetrievalPolicy? CoolAccessRetrievalPolicy { get; set; } /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots. public bool? IsSnapshotDirectoryVisible { get; set; } + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + public SmbAccessBasedEnumeration? SmbAccessBasedEnumeration { get; set; } + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + public SmbNonBrowsable? SmbNonBrowsable { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.cs index 8841a960f7b23..364a360887f7f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.cs @@ -17,8 +17,6 @@ public NetAppVolumePatchDataProtection() { } - /// Backup Properties. - public NetAppVolumeBackupConfiguration Backup { get; set; } /// Snapshot properties. internal VolumeSnapshotProperties Snapshot { get; set; } /// Snapshot Policy ResourceId. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRuleData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRuleData.Serialization.cs index 091c7925359cd..225bccd502912 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRuleData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRuleData.Serialization.cs @@ -63,7 +63,7 @@ internal static NetAppVolumeQuotaRuleData DeserializeNetAppVolumeQuotaRuleData(J ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional provisioningState = default; Optional quotaSizeInKiBs = default; Optional quotaType = default; @@ -110,7 +110,7 @@ internal static NetAppVolumeQuotaRuleData DeserializeNetAppVolumeQuotaRuleData(J { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.Serialization.cs new file mode 100644 index 0000000000000..1926391b266fb --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.Serialization.cs @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + public partial class NetworkSiblingSet + { + internal static NetworkSiblingSet DeserializeNetworkSiblingSet(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional networkSiblingSetId = default; + Optional subnetId = default; + Optional networkSiblingSetStateId = default; + Optional networkFeatures = default; + Optional provisioningState = default; + Optional> nicInfoList = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("networkSiblingSetId"u8)) + { + networkSiblingSetId = property.Value.GetString(); + continue; + } + if (property.NameEquals("subnetId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + subnetId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("networkSiblingSetStateId"u8)) + { + networkSiblingSetStateId = property.Value.GetString(); + continue; + } + if (property.NameEquals("networkFeatures"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + networkFeatures = new NetAppNetworkFeature(property.Value.GetString()); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkSiblingSetProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("nicInfoList"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(NicInfo.DeserializeNicInfo(item)); + } + nicInfoList = array; + continue; + } + } + return new NetworkSiblingSet(networkSiblingSetId.Value, subnetId.Value, networkSiblingSetStateId.Value, Optional.ToNullable(networkFeatures), Optional.ToNullable(provisioningState), Optional.ToList(nicInfoList)); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs new file mode 100644 index 0000000000000..d656f57bfa1cb --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// Describes the contents of a network sibling set. + public partial class NetworkSiblingSet + { + /// Initializes a new instance of NetworkSiblingSet. + internal NetworkSiblingSet() + { + NicInfoList = new ChangeTrackingList(); + } + + /// Initializes a new instance of NetworkSiblingSet. + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + /// Network sibling set state Id identifying the current state of the sibling set. + /// Network features available to the volume, or current state of update. + /// Gets the status of the NetworkSiblingSet at the time the operation was called. + /// List of NIC information. + internal NetworkSiblingSet(string networkSiblingSetId, ResourceIdentifier subnetId, string networkSiblingSetStateId, NetAppNetworkFeature? networkFeatures, NetworkSiblingSetProvisioningState? provisioningState, IReadOnlyList nicInfoList) + { + NetworkSiblingSetId = networkSiblingSetId; + SubnetId = subnetId; + NetworkSiblingSetStateId = networkSiblingSetStateId; + NetworkFeatures = networkFeatures; + ProvisioningState = provisioningState; + NicInfoList = nicInfoList; + } + + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + public string NetworkSiblingSetId { get; } + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + public ResourceIdentifier SubnetId { get; } + /// Network sibling set state Id identifying the current state of the sibling set. + public string NetworkSiblingSetStateId { get; } + /// Network features available to the volume, or current state of update. + public NetAppNetworkFeature? NetworkFeatures { get; } + /// Gets the status of the NetworkSiblingSet at the time the operation was called. + public NetworkSiblingSetProvisioningState? ProvisioningState { get; } + /// List of NIC information. + public IReadOnlyList NicInfoList { get; } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSetProvisioningState.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSetProvisioningState.cs new file mode 100644 index 0000000000000..a9defdeb078d5 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSetProvisioningState.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// Gets the status of the NetworkSiblingSet at the time the operation was called. + public readonly partial struct NetworkSiblingSetProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NetworkSiblingSetProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string UpdatingValue = "Updating"; + + /// Succeeded. + public static NetworkSiblingSetProvisioningState Succeeded { get; } = new NetworkSiblingSetProvisioningState(SucceededValue); + /// Failed. + public static NetworkSiblingSetProvisioningState Failed { get; } = new NetworkSiblingSetProvisioningState(FailedValue); + /// Canceled. + public static NetworkSiblingSetProvisioningState Canceled { get; } = new NetworkSiblingSetProvisioningState(CanceledValue); + /// Updating. + public static NetworkSiblingSetProvisioningState Updating { get; } = new NetworkSiblingSetProvisioningState(UpdatingValue); + /// Determines if two values are the same. + public static bool operator ==(NetworkSiblingSetProvisioningState left, NetworkSiblingSetProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NetworkSiblingSetProvisioningState left, NetworkSiblingSetProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NetworkSiblingSetProvisioningState(string value) => new NetworkSiblingSetProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NetworkSiblingSetProvisioningState other && Equals(other); + /// + public bool Equals(NetworkSiblingSetProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.Serialization.cs new file mode 100644 index 0000000000000..7138bd7eada8f --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + public partial class NicInfo + { + internal static NicInfo DeserializeNicInfo(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional ipAddress = default; + Optional> volumeResourceIds = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("ipAddress"u8)) + { + ipAddress = property.Value.GetString(); + continue; + } + if (property.NameEquals("volumeResourceIds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(new ResourceIdentifier(item.GetString())); + } + } + volumeResourceIds = array; + continue; + } + } + return new NicInfo(ipAddress.Value, Optional.ToList(volumeResourceIds)); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs new file mode 100644 index 0000000000000..d6a7e11c7b8cd --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// NIC information and list of volumes for which the NIC has the primary mount ip address. + public partial class NicInfo + { + /// Initializes a new instance of NicInfo. + internal NicInfo() + { + VolumeResourceIds = new ChangeTrackingList(); + } + + /// Initializes a new instance of NicInfo. + /// ipAddress. + /// Volume resource Ids. + internal NicInfo(string ipAddress, IReadOnlyList volumeResourceIds) + { + IPAddress = ipAddress; + VolumeResourceIds = volumeResourceIds; + } + + /// ipAddress. + public string IPAddress { get; } + /// Volume resource Ids. + public IReadOnlyList VolumeResourceIds { get; } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.Serialization.cs new file mode 100644 index 0000000000000..8f183ff3c2c43 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.Serialization.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + public partial class QueryNetworkSiblingSetContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("networkSiblingSetId"u8); + writer.WriteStringValue(NetworkSiblingSetId); + writer.WritePropertyName("subnetId"u8); + writer.WriteStringValue(SubnetId); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.cs new file mode 100644 index 0000000000000..a4f94ae1f613d --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// Network sibling set query. + public partial class QueryNetworkSiblingSetContent + { + /// Initializes a new instance of QueryNetworkSiblingSetContent. + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + /// or is null. + public QueryNetworkSiblingSetContent(string networkSiblingSetId, ResourceIdentifier subnetId) + { + Argument.AssertNotNull(networkSiblingSetId, nameof(networkSiblingSetId)); + Argument.AssertNotNull(subnetId, nameof(subnetId)); + + NetworkSiblingSetId = networkSiblingSetId; + SubnetId = subnetId; + } + + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + public string NetworkSiblingSetId { get; } + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + public ResourceIdentifier SubnetId { get; } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbAccessBasedEnumeration.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbAccessBasedEnumeration.cs index f8c3eb0756605..ab480d5fab70f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbAccessBasedEnumeration.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbAccessBasedEnumeration.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. public readonly partial struct SmbAccessBasedEnumeration : IEquatable { private readonly string _value; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbNonBrowsable.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbNonBrowsable.cs index 69fc4347ed681..f3e72e8204d16 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbNonBrowsable.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbNonBrowsable.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. public readonly partial struct SmbNonBrowsable : IEquatable { private readonly string _value; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyData.Serialization.cs index e54fa4ee88b1e..6cf594ea8a021 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyData.Serialization.cs @@ -75,7 +75,7 @@ internal static SnapshotPolicyData DeserializeSnapshotPolicyData(JsonElement ele ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional hourlySchedule = default; Optional dailySchedule = default; Optional weeklySchedule = default; @@ -133,7 +133,7 @@ internal static SnapshotPolicyData DeserializeSnapshotPolicyData(JsonElement ele { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.Serialization.cs new file mode 100644 index 0000000000000..64a8beb8b284d --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.Serialization.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + public partial class UpdateNetworkSiblingSetContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("networkSiblingSetId"u8); + writer.WriteStringValue(NetworkSiblingSetId); + writer.WritePropertyName("subnetId"u8); + writer.WriteStringValue(SubnetId); + writer.WritePropertyName("networkSiblingSetStateId"u8); + writer.WriteStringValue(NetworkSiblingSetStateId); + writer.WritePropertyName("networkFeatures"u8); + writer.WriteStringValue(NetworkFeatures.ToString()); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.cs new file mode 100644 index 0000000000000..567a4041c3d7f --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// Network sibling set update. + public partial class UpdateNetworkSiblingSetContent + { + /// Initializes a new instance of UpdateNetworkSiblingSetContent. + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + /// Network sibling set state Id identifying the current state of the sibling set. + /// Network features available to the volume, some such. + /// , or is null. + public UpdateNetworkSiblingSetContent(string networkSiblingSetId, ResourceIdentifier subnetId, string networkSiblingSetStateId, NetAppNetworkFeature networkFeatures) + { + Argument.AssertNotNull(networkSiblingSetId, nameof(networkSiblingSetId)); + Argument.AssertNotNull(subnetId, nameof(subnetId)); + Argument.AssertNotNull(networkSiblingSetStateId, nameof(networkSiblingSetStateId)); + + NetworkSiblingSetId = networkSiblingSetId; + SubnetId = subnetId; + NetworkSiblingSetStateId = networkSiblingSetStateId; + NetworkFeatures = networkFeatures; + } + + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + public string NetworkSiblingSetId { get; } + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + public ResourceIdentifier SubnetId { get; } + /// Network sibling set state Id identifying the current state of the sibling set. + public string NetworkSiblingSetStateId { get; } + /// Network features available to the volume, some such. + public NetAppNetworkFeature NetworkFeatures { get; } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs index ccf651d44ad3d..34c4d00136444 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs @@ -39,7 +39,7 @@ public NetAppAccountData(AzureLocation location) : base(location) /// Active Directories. /// Encryption settings. /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. - internal NetAppAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ManagedServiceIdentity identity, string provisioningState, IList activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount) : base(id, name, resourceType, systemData, tags, location) + internal NetAppAccountData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ManagedServiceIdentity identity, string provisioningState, IList activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; Identity = identity; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountResource.cs index e43475e6864a6..220b79542c637 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountResource.cs @@ -201,59 +201,6 @@ public virtual Response GetSnapshotPolicy(string snapsho return GetSnapshotPolicies().Get(snapshotPolicyName, cancellationToken); } - /// Gets a collection of NetAppAccountBackupResources in the NetAppAccount. - /// An object representing collection of NetAppAccountBackupResources and their operations over a NetAppAccountBackupResource. - public virtual NetAppAccountBackupCollection GetNetAppAccountBackups() - { - return GetCachedClient(Client => new NetAppAccountBackupCollection(Client, Id)); - } - - /// - /// Gets the specified backup for a Netapp Account - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName} - /// - /// - /// Operation Id - /// AccountBackups_Get - /// - /// - /// - /// The name of the backup. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual async Task> GetNetAppAccountBackupAsync(string backupName, CancellationToken cancellationToken = default) - { - return await GetNetAppAccountBackups().GetAsync(backupName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the specified backup for a Netapp Account - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName} - /// - /// - /// Operation Id - /// AccountBackups_Get - /// - /// - /// - /// The name of the backup. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual Response GetNetAppAccountBackup(string backupName, CancellationToken cancellationToken = default) - { - return GetNetAppAccountBackups().Get(backupName, cancellationToken); - } - /// Gets a collection of NetAppBackupPolicyResources in the NetAppAccount. /// An object representing collection of NetAppBackupPolicyResources and their operations over a NetAppBackupPolicyResource. public virtual NetAppBackupPolicyCollection GetNetAppBackupPolicies() diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs index a0da65294b9c0..7949b285eb4ad 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs @@ -42,7 +42,7 @@ public NetAppBackupPolicyData(AzureLocation location) : base(location) /// Volumes using current backup policy. /// The property to decide policy is enabled or not. /// A list of volumes assigned to this policy. - internal NetAppBackupPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ResourceIdentifier backupPolicyId, string provisioningState, int? dailyBackupsToKeep, int? weeklyBackupsToKeep, int? monthlyBackupsToKeep, int? volumesAssigned, bool? isEnabled, IReadOnlyList volumeBackups) : base(id, name, resourceType, systemData, tags, location) + internal NetAppBackupPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ResourceIdentifier backupPolicyId, string provisioningState, int? dailyBackupsToKeep, int? weeklyBackupsToKeep, int? monthlyBackupsToKeep, int? volumesAssigned, bool? isEnabled, IReadOnlyList volumeBackups) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; BackupPolicyId = backupPolicyId; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs index a923ac90f5a05..0b54ec9a403d8 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs @@ -23,7 +23,7 @@ public partial class NetAppVolumeData : TrackedResourceData /// Initializes a new instance of NetAppVolumeData. /// The location. /// A unique file path for the volume. Used when creating mount targets. - /// 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, 500Tib for LargeVolume. Specified in bytes. + /// 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, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. /// or is null. public NetAppVolumeData(AzureLocation location, string creationToken, long usageThreshold, ResourceIdentifier subnetId) : base(location) @@ -53,7 +53,7 @@ public NetAppVolumeData(AzureLocation location, string creationToken, long usage /// Unique FileSystem Identifier. /// A unique file path for the volume. Used when creating mount targets. /// The service level of the file system. - /// 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, 500Tib for LargeVolume. Specified in bytes. + /// 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, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. /// Set of export policy rules. /// Set of protocol types, default NFSv3, CIFS for SMB protocol. /// Azure lifecycle management. @@ -62,7 +62,7 @@ public NetAppVolumeData(AzureLocation location, string creationToken, long usage /// UUID v4 or resource identifier used to identify the Backup. /// Unique Baremetal Tenant Identifier. /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// Basic network, or Standard features available to the volume. + /// Network features available to the volume, or current state of update. /// Network Sibling Set ID for the the group of volumes sharing networking resources. /// Provides storage to network proximity information for the volume. /// List of mount targets. @@ -73,8 +73,8 @@ public NetAppVolumeData(AzureLocation location, string creationToken, long usage /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. - /// Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. /// Enables continuously available share property for smb volume. Only applicable for SMB volume. /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. @@ -83,6 +83,12 @@ public NetAppVolumeData(AzureLocation location, string creationToken, long usage /// Specifies whether LDAP is enabled or not for a given NFS volume. /// Specifies whether Cool Access(tiering) is enabled for the volume. /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// + /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// /// 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. /// 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. /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. @@ -103,7 +109,7 @@ public NetAppVolumeData(AzureLocation location, string creationToken, long usage /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. /// Specifies whether volume is a Large Volume or Regular Volume. /// Id of the snapshot or backup that the volume is restored from. - internal NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, IList zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, VolumePropertiesExportPolicy exportPolicy, IList protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IReadOnlyList mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IReadOnlyList dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IList placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) : base(id, name, resourceType, systemData, tags, location) + internal NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, IList zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, VolumePropertiesExportPolicy exportPolicy, IList protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IReadOnlyList mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IReadOnlyList dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IList placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; Zones = zones; @@ -140,6 +146,7 @@ internal NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resou IsLdapEnabled = isLdapEnabled; IsCoolAccessEnabled = isCoolAccessEnabled; CoolnessPeriod = coolnessPeriod; + CoolAccessRetrievalPolicy = coolAccessRetrievalPolicy; UnixPermissions = unixPermissions; CloneProgress = cloneProgress; FileAccessLogs = fileAccessLogs; @@ -172,7 +179,7 @@ internal NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resou public string CreationToken { get; set; } /// The service level of the file system. public NetAppFileServiceLevel? ServiceLevel { get; set; } - /// 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, 500Tib for LargeVolume. Specified in bytes. + /// 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, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. public long UsageThreshold { get; set; } /// Set of export policy rules. internal VolumePropertiesExportPolicy ExportPolicy { get; set; } @@ -201,7 +208,7 @@ public IList ExportRules public string BaremetalTenantId { get; } /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. public ResourceIdentifier SubnetId { get; set; } - /// Basic network, or Standard features available to the volume. + /// Network features available to the volume, or current state of update. public NetAppNetworkFeature? NetworkFeatures { get; set; } /// Network Sibling Set ID for the the group of volumes sharing networking resources. public Guid? NetworkSiblingSetId { get; } @@ -223,9 +230,9 @@ public IList ExportRules public NetAppVolumeSecurityStyle? SecurityStyle { get; set; } /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. public bool? IsSmbEncryptionEnabled { get; set; } - /// Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. public SmbAccessBasedEnumeration? SmbAccessBasedEnumeration { get; set; } - /// Enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. public SmbNonBrowsable? SmbNonBrowsable { get; set; } /// Enables continuously available share property for smb volume. Only applicable for SMB volume. public bool? IsSmbContinuouslyAvailable { get; set; } @@ -243,6 +250,13 @@ public IList ExportRules public bool? IsCoolAccessEnabled { get; set; } /// Specifies the number of days after which data that is not accessed by clients will be tiered. public int? CoolnessPeriod { get; set; } + /// + /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// + public CoolAccessRetrievalPolicy? CoolAccessRetrievalPolicy { get; set; } /// 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. public string UnixPermissions { get; set; } /// 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. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs index fdcc4a76f6663..3ad19186a9029 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs @@ -33,7 +33,7 @@ public NetAppVolumeGroupData() /// Azure lifecycle management. /// Volume group details. /// List of volumes from group. - internal NetAppVolumeGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, string provisioningState, NetAppVolumeGroupMetadata groupMetaData, IList volumes) : base(id, name, resourceType, systemData) + internal NetAppVolumeGroupData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, AzureLocation? location, string provisioningState, NetAppVolumeGroupMetadata groupMetaData, IList volumes) : base(id, name, resourceType, systemData) { Location = location; ProvisioningState = provisioningState; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs index 779db2da04733..8acff689c7d17 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs @@ -35,7 +35,7 @@ public NetAppVolumeQuotaRuleData(AzureLocation location) : base(location) /// Size of quota. /// Type of quota. /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. - internal NetAppVolumeQuotaRuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, NetAppProvisioningState? provisioningState, long? quotaSizeInKiBs, NetAppVolumeQuotaType? quotaType, string quotaTarget) : base(id, name, resourceType, systemData, tags, location) + internal NetAppVolumeQuotaRuleData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, NetAppProvisioningState? provisioningState, long? quotaSizeInKiBs, NetAppVolumeQuotaType? quotaType, string quotaTarget) : base(id, name, resourceType, systemData, tags, location) { ProvisioningState = provisioningState; QuotaSizeInKiBs = quotaSizeInKiBs; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs index 836170267c4b1..c552ca0e93125 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs @@ -36,8 +36,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _netAppVolumeVolumesClientDiagnostics; private readonly VolumesRestOperations _netAppVolumeVolumesRestClient; - private readonly ClientDiagnostics _netAppVolumeBackupBackupsClientDiagnostics; - private readonly BackupsRestOperations _netAppVolumeBackupBackupsRestClient; + private readonly ClientDiagnostics _backupsClientDiagnostics; + private readonly BackupsRestOperations _backupsRestClient; private readonly NetAppVolumeData _data; /// Initializes a new instance of the class for mocking. @@ -62,9 +62,8 @@ internal NetAppVolumeResource(ArmClient client, ResourceIdentifier id) : base(cl _netAppVolumeVolumesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetApp", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string netAppVolumeVolumesApiVersion); _netAppVolumeVolumesRestClient = new VolumesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, netAppVolumeVolumesApiVersion); - _netAppVolumeBackupBackupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetApp", NetAppVolumeBackupResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(NetAppVolumeBackupResource.ResourceType, out string netAppVolumeBackupBackupsApiVersion); - _netAppVolumeBackupBackupsRestClient = new BackupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, netAppVolumeBackupBackupsApiVersion); + _backupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetApp", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _backupsRestClient = new BackupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG ValidateResourceId(Id); #endif @@ -147,59 +146,6 @@ public virtual Response GetNetAppVolumeSnapshot(st return GetNetAppVolumeSnapshots().Get(snapshotName, cancellationToken); } - /// Gets a collection of NetAppVolumeBackupResources in the NetAppVolume. - /// An object representing collection of NetAppVolumeBackupResources and their operations over a NetAppVolumeBackupResource. - public virtual NetAppVolumeBackupCollection GetNetAppVolumeBackups() - { - return GetCachedClient(Client => new NetAppVolumeBackupCollection(Client, Id)); - } - - /// - /// Gets the specified backup of the volume - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName} - /// - /// - /// Operation Id - /// Backups_Get - /// - /// - /// - /// The name of the backup. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual async Task> GetNetAppVolumeBackupAsync(string backupName, CancellationToken cancellationToken = default) - { - return await GetNetAppVolumeBackups().GetAsync(backupName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the specified backup of the volume - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName} - /// - /// - /// Operation Id - /// Backups_Get - /// - /// - /// - /// The name of the backup. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - [ForwardsClientCalls] - public virtual Response GetNetAppVolumeBackup(string backupName, CancellationToken cancellationToken = default) - { - return GetNetAppVolumeBackups().Get(backupName, cancellationToken); - } - /// Gets a collection of NetAppVolumeQuotaRuleResources in the NetAppVolume. /// An object representing collection of NetAppVolumeQuotaRuleResources and their operations over a NetAppVolumeQuotaRuleResource. public virtual NetAppVolumeQuotaRuleCollection GetNetAppVolumeQuotaRules() @@ -516,6 +462,74 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Ne } } + /// + /// This operation will populate availability zone information for a volume + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone + /// + /// + /// Operation Id + /// Volumes_PopulateAvailabilityZone + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task> PopulateAvailabilityZoneAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PopulateAvailabilityZone"); + scope.Start(); + try + { + var response = await _netAppVolumeVolumesRestClient.PopulateAvailabilityZoneAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(new NetAppVolumeOperationSource(Client), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePopulateAvailabilityZoneRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// This operation will populate availability zone information for a volume + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone + /// + /// + /// Operation Id + /// Volumes_PopulateAvailabilityZone + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation PopulateAvailabilityZone(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PopulateAvailabilityZone"); + scope.Start(); + try + { + var response = _netAppVolumeVolumesRestClient.PopulateAvailabilityZone(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(new NetAppVolumeOperationSource(Client), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePopulateAvailabilityZoneRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Revert a volume to the snapshot specified in the body /// @@ -1616,66 +1630,6 @@ public virtual ArmOperation RevertRelocation(WaitUntil waitUntil, CancellationTo } } - /// - /// Get the status of the backup for a volume - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backupStatus - /// - /// - /// Operation Id - /// Backups_GetStatus - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetBackupStatusAsync(CancellationToken cancellationToken = default) - { - using var scope = _netAppVolumeBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetBackupStatus"); - scope.Start(); - try - { - var response = await _netAppVolumeBackupBackupsRestClient.GetStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Get the status of the backup for a volume - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backupStatus - /// - /// - /// Operation Id - /// Backups_GetStatus - /// - /// - /// - /// The cancellation token to use. - public virtual Response GetBackupStatus(CancellationToken cancellationToken = default) - { - using var scope = _netAppVolumeBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetBackupStatus"); - scope.Start(); - try - { - var response = _netAppVolumeBackupBackupsRestClient.GetStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Get the status of the restore for a volume /// @@ -1692,11 +1646,11 @@ public virtual Response GetBackupStatus(CancellationTo /// The cancellation token to use. public virtual async Task> GetRestoreStatusAsync(CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetRestoreStatus"); + using var scope = _backupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetRestoreStatus"); scope.Start(); try { - var response = await _netAppVolumeBackupBackupsRestClient.GetVolumeRestoreStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupsRestClient.GetVolumeRestoreStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -1722,11 +1676,11 @@ public virtual async Task> GetRestoreStatusAsync(C /// The cancellation token to use. public virtual Response GetRestoreStatus(CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetRestoreStatus"); + using var scope = _backupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetRestoreStatus"); scope.Start(); try { - var response = _netAppVolumeBackupBackupsRestClient.GetVolumeRestoreStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _backupsRestClient.GetVolumeRestoreStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountsRestOperations.cs index af5c67702efe9..3a73df9d0e665 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountsRestOperations.cs @@ -33,7 +33,7 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupPoliciesRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupPoliciesRestOperations.cs index 559c83cc8e8f8..19f9add289be9 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupPoliciesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupPoliciesRestOperations.cs @@ -33,7 +33,7 @@ public BackupPoliciesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs index 82711e175f306..024b16bb1a59c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs @@ -33,101 +33,10 @@ public BackupsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateGetStatusRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/backupStatus", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Get the status of the backup for a volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetStatusAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateGetStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - NetAppVolumeBackupStatus value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = NetAppVolumeBackupStatus.DeserializeNetAppVolumeBackupStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Get the status of the backup for a volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response GetStatus(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateGetStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - NetAppVolumeBackupStatus value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = NetAppVolumeBackupStatus.DeserializeNetAppVolumeBackupStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - internal HttpMessage CreateGetVolumeRestoreStatusRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -218,575 +127,5 @@ public Response GetVolumeRestoreStatus(string subscriptionI throw new RequestFailedException(message.Response); } } - - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/backups", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// List all backups for a volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateListRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - BackupsList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = BackupsList.DeserializeBackupsList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// List all backups for a volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateListRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - BackupsList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = BackupsList.DeserializeBackupsList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/backups/", false); - uri.AppendPath(backupName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Gets the specified backup of the volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the backup. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - NetAppBackupData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = NetAppBackupData.DeserializeNetAppBackupData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((NetAppBackupData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Gets the specified backup of the volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the backup. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - NetAppBackupData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = NetAppBackupData.DeserializeNetAppBackupData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((NetAppBackupData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppBackupData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/backups/", false); - uri.AppendPath(backupName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Create a backup for the volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the backup. - /// Backup object supplied in the body of the operation. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public async Task CreateAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppBackupData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, data); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 201: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Create a backup for the volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the backup. - /// Backup object supplied in the body of the operation. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public Response Create(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppBackupData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, data); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 201: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupPatch patch) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Patch; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/backups/", false); - uri.AppendPath(backupName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(patch); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Patch a backup for the volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the backup. - /// Backup object supplied in the body of the operation. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); - Argument.AssertNotNull(patch, nameof(patch)); - - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, patch); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Patch a backup for the volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the backup. - /// Backup object supplied in the body of the operation. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); - Argument.AssertNotNull(patch, nameof(patch)); - - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, patch); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/backups/", false); - uri.AppendPath(backupName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - _userAgent.Apply(message); - return message; - } - - /// Delete a backup of the volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the backup. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); - - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Delete a backup of the volume. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the backup. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); - - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal HttpMessage CreateRestoreFilesRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupBackupRestoreFilesContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/backups/", false); - uri.AppendPath(backupName, true); - uri.AppendPath("/restoreFiles", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// Restore the specified files from the specified backup to the active filesystem. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the backup. - /// Restore payload supplied in the body of the operation. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public async Task RestoreFilesAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupBackupRestoreFilesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateRestoreFilesRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Restore the specified files from the specified backup to the active filesystem. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the backup. - /// Restore payload supplied in the body of the operation. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public Response RestoreFiles(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, NetAppVolumeBackupBackupRestoreFilesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(backupName, nameof(backupName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateRestoreFilesRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, backupName, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsRestOperations.cs index e85f084752c32..5f07327b4fdbd 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsRestOperations.cs @@ -33,7 +33,7 @@ public NetAppResourceQuotaLimitsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRestOperations.cs index b19042e0df76f..bfd6b0daf13da 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRestOperations.cs @@ -33,7 +33,7 @@ public NetAppResourceRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -344,5 +344,155 @@ public Response QueryRegionInfo(string subscriptionId, AzureLo throw new RequestFailedException(message.Response); } } + + internal HttpMessage CreateQueryNetworkSiblingSetRequest(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/queryNetworkSiblingSet", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Get details of the specified network sibling set. + /// The ID of the target subscription. + /// The name of Azure region. + /// Network sibling set to query. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> QueryNetworkSiblingSetAsync(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateQueryNetworkSiblingSetRequest(subscriptionId, location, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NetworkSiblingSet value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = NetworkSiblingSet.DeserializeNetworkSiblingSet(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get details of the specified network sibling set. + /// The ID of the target subscription. + /// The name of Azure region. + /// Network sibling set to query. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response QueryNetworkSiblingSet(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateQueryNetworkSiblingSetRequest(subscriptionId, location, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NetworkSiblingSet value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = NetworkSiblingSet.DeserializeNetworkSiblingSet(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateNetworkSiblingSetRequest(string subscriptionId, AzureLocation location, UpdateNetworkSiblingSetContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/updateNetworkSiblingSet", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Update the network features of the specified network sibling set. + /// The ID of the target subscription. + /// The name of Azure region. + /// Update for the specified network sibling set. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task UpdateNetworkSiblingSetAsync(string subscriptionId, AzureLocation location, UpdateNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateUpdateNetworkSiblingSetRequest(subscriptionId, location, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update the network features of the specified network sibling set. + /// The ID of the target subscription. + /// The name of Azure region. + /// Update for the specified network sibling set. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response UpdateNetworkSiblingSet(string subscriptionId, AzureLocation location, UpdateNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateUpdateNetworkSiblingSetRequest(subscriptionId, location, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/PoolsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/PoolsRestOperations.cs index c8fa65008ad19..d7cfbfd0e4423 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/PoolsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/PoolsRestOperations.cs @@ -33,7 +33,7 @@ public PoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotPoliciesRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotPoliciesRestOperations.cs index 31ce65e112a5b..bd74f7c4d8845 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotPoliciesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotPoliciesRestOperations.cs @@ -33,7 +33,7 @@ public SnapshotPoliciesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotsRestOperations.cs index 04b740ef5b3d2..f5f3289aee06d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotsRestOperations.cs @@ -33,7 +33,7 @@ public SnapshotsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SubvolumesRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SubvolumesRestOperations.cs index d9e6857f387b9..226bf984b3a58 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SubvolumesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SubvolumesRestOperations.cs @@ -33,7 +33,7 @@ public SubvolumesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeGroupsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeGroupsRestOperations.cs index 35f7fa97e6c2b..585f6ae9bb883 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeGroupsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeGroupsRestOperations.cs @@ -33,7 +33,7 @@ public VolumeGroupsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeQuotaRulesRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeQuotaRulesRestOperations.cs index 5e00eef847677..6b6ef30be06e1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeQuotaRulesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeQuotaRulesRestOperations.cs @@ -33,7 +33,7 @@ public VolumeQuotaRulesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumesRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumesRestOperations.cs index eee2712f9fe0e..4935a9b01e970 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumesRestOperations.cs @@ -33,7 +33,7 @@ public VolumesRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -485,6 +485,89 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal HttpMessage CreatePopulateAvailabilityZoneRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/populateAvailabilityZone", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// This operation will populate availability zone information for a volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task PopulateAvailabilityZoneAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreatePopulateAvailabilityZoneRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// This operation will populate availability zone information for a volume. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response PopulateAvailabilityZone(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreatePopulateAvailabilityZoneRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateRevertRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeRevertContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs index 19f6d4b40d390..7d81b67d53ba4 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs @@ -39,7 +39,7 @@ public SnapshotPolicyData(AzureLocation location) : base(location) /// Schedule for monthly snapshots. /// The property to decide policy is enabled or not. /// Azure lifecycle management. - internal SnapshotPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, SnapshotPolicyHourlySchedule hourlySchedule, SnapshotPolicyDailySchedule dailySchedule, SnapshotPolicyWeeklySchedule weeklySchedule, SnapshotPolicyMonthlySchedule monthlySchedule, bool? isEnabled, string provisioningState) : base(id, name, resourceType, systemData, tags, location) + internal SnapshotPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, SnapshotPolicyHourlySchedule hourlySchedule, SnapshotPolicyDailySchedule dailySchedule, SnapshotPolicyWeeklySchedule weeklySchedule, SnapshotPolicyMonthlySchedule monthlySchedule, bool? isEnabled, string provisioningState) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; HourlySchedule = hourlySchedule; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/autorest.md b/sdk/netapp/Azure.ResourceManager.NetApp/src/autorest.md index ba965fbf11693..4ce10123409da 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/autorest.md +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: NetApp namespace: Azure.ResourceManager.NetApp -require: https://github.com/Azure/azure-rest-api-specs/blob/f14f1d17370ed1d56f06d8933f434832b3f0a618/specification/netapp/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/c78b5d8bd3aff2d82a5f034d9164b1a9ac030e09/specification/netapp/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs new file mode 100644 index 0000000000000..03151c496a7a8 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.NetApp.Models; +using Azure.ResourceManager.NetApp.Tests.Helpers; +using Azure.ResourceManager.Resources; +using NUnit.Framework; + +namespace Azure.ResourceManager.NetApp.Tests +{ + public class NetAppResource_NetworkSiblingSetTests: NetAppTestBase + { + private NetAppAccountCollection _netAppAccountCollection { get => _resourceGroup.GetNetAppAccounts(); } + private readonly string _pool1Name = "pool1"; + //public static new AzureLocation DefaultLocation = AzureLocation.WestUS2; + public static new AzureLocation DefaultLocation = AzureLocation.EastUS2; + public static new AzureLocation DefaultLocationString = DefaultLocation; + internal NetAppVolumeResource _volumeResource; + + public NetAppResource_NetworkSiblingSetTests(bool isAsync) : base(isAsync) + { + } + + [SetUp] + public async Task SetUp() + { + _resourceGroup = await CreateResourceGroupAsync(location: DefaultLocation); + string accountName = await CreateValidAccountNameAsync(_accountNamePrefix, _resourceGroup, DefaultLocation); + _netAppAccount = (await _netAppAccountCollection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, GetDefaultNetAppAccountParameters(location: DefaultLocation))).Value; + + CapacityPoolData capactiyPoolData = new(DefaultLocation, _poolSize.Value, NetAppFileServiceLevel.Premium); + capactiyPoolData.Tags.InitializeFrom(DefaultTags); + _capacityPool = (await _capacityPoolCollection.CreateOrUpdateAsync(WaitUntil.Completed, _pool1Name, capactiyPoolData)).Value; + _volumeCollection = _capacityPool.GetNetAppVolumes(); + var volumeName = Recording.GenerateAssetName("volumeName-"); + await CreateVirtualNetwork(location: DefaultLocation); + _volumeResource = await CreateVolume(DefaultLocation, NetAppFileServiceLevel.Premium, _defaultUsageThreshold, volumeName, subnetId: DefaultSubnetId); + } + + [TearDown] + public async Task ClearVolumes() + { + //remove all volumes under current capcityPool, remove pool and netAppAccount + if (_resourceGroup != null) + { + _ = await _capacityPoolCollection.ExistsAsync(_capacityPool.Id.Name); + CapacityPoolCollection poolCollection = _netAppAccount.GetCapacityPools(); + List poolList = await poolCollection.GetAllAsync().ToEnumerableAsync(); + foreach (CapacityPoolResource pool in poolList) + { + NetAppVolumeCollection volumeCollection = pool.GetNetAppVolumes(); + List volumeList = await volumeCollection.GetAllAsync().ToEnumerableAsync(); + foreach (NetAppVolumeResource volume in volumeList) + { + await volume.DeleteAsync(WaitUntil.Completed); + } + await LiveDelay(30000); + await pool.DeleteAsync(WaitUntil.Completed); + } + await LiveDelay(40000); + //remove + //await _capacityPool.DeleteAsync(WaitUntil.Completed); + //await LiveDelay(40000); + await _netAppAccount.DeleteAsync(WaitUntil.Completed); + } + _resourceGroup = null; + } + + [RecordedTest] + public async Task QueryNetworkSiblingSet() + { + QueryNetworkSiblingSetContent queryNetworkSiblingSetContent = new QueryNetworkSiblingSetContent(_volumeResource.Data.NetworkSiblingSetId.ToString(), DefaultSubnetId); + Response networkSiblingSet = await DefaultSubscription.QueryNetworkSiblingSetNetAppResourceAsync(DefaultLocation, queryNetworkSiblingSetContent); + Assert.IsNotNull(networkSiblingSet); + Assert.IsNotNull(networkSiblingSet.Value.NetworkSiblingSetId); + Assert.IsNotNull(networkSiblingSet.Value.SubnetId); + } + + [RecordedTest] + public async Task UpdateNetworkSiblingSet() + { + QueryNetworkSiblingSetContent queryNetworkSiblingSetContent = new QueryNetworkSiblingSetContent(_volumeResource.Data.NetworkSiblingSetId.ToString(), DefaultSubnetId); + Response networkSiblingSet = await DefaultSubscription.QueryNetworkSiblingSetNetAppResourceAsync(DefaultLocation, queryNetworkSiblingSetContent); + + Assert.AreEqual(NetAppNetworkFeature.Basic, _volumeResource.Data.NetworkFeatures); + UpdateNetworkSiblingSetContent updateNetworkSiblingSetContent = new UpdateNetworkSiblingSetContent(networkSiblingSet.Value.NetworkSiblingSetId, networkSiblingSet.Value.SubnetId, networkSiblingSet.Value.NetworkSiblingSetStateId, NetAppNetworkFeature.Standard); + ArmOperation networkSiblingSetLRO = await DefaultSubscription.UpdateNetworkSiblingSetNetAppResourceAsync(WaitUntil.Completed, DefaultLocation, updateNetworkSiblingSetContent); + NetworkSiblingSet networkSiblingSetResult = networkSiblingSetLRO.Value; + + NetAppVolumeResource volumeResource2 = await _volumeCollection.GetAsync(_volumeResource.Id.Name); + + Assert.AreEqual(NetAppNetworkFeature.Standard, volumeResource2.Data.NetworkFeatures); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ResourceAvailabilityTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_Tests.cs similarity index 78% rename from sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ResourceAvailabilityTests.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_Tests.cs index 1ae5796333796..57e097d9f8c2e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ResourceAvailabilityTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_Tests.cs @@ -13,9 +13,9 @@ namespace Azure.ResourceManager.NetApp.Tests { - public class ResourceAvailabilityTests: NetAppTestBase + public class NetAppResource_Tests: NetAppTestBase { - public ResourceAvailabilityTests(bool isAsync) : base(isAsync) + public NetAppResource_Tests(bool isAsync) : base(isAsync) { } @@ -49,5 +49,14 @@ public async Task ListQuotaLimits() List qutoaItemlist = await quotaLimitsResponse.ToListAsync(); Assert.IsNotEmpty(qutoaItemlist); } + + [RecordedTest] + public async Task QueryRegionInfoTest() + { + Response regionInfo = await DefaultSubscription.QueryRegionInfoNetAppResourceAsync(DefaultLocation); + Assert.IsNotNull(regionInfo); + Assert.IsNotNull(regionInfo.Value.StorageToNetworkProximity); + Assert.IsNotNull(regionInfo.Value.AvailabilityZoneMappings); + } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/RegionInfoTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/RegionInfoTests.cs deleted file mode 100644 index efd6ada19f9b4..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/RegionInfoTests.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Azure.Core.TestFramework; -using Azure.ResourceManager.NetApp.Models; -using Azure.ResourceManager.NetApp.Tests.Helpers; -using Azure.ResourceManager.Resources; -using NUnit.Framework; - -namespace Azure.ResourceManager.NetApp.Tests -{ - public class RegionInfoTests: NetAppTestBase - { - public RegionInfoTests(bool isAsync) : base(isAsync) - { - } - - [SetUp] - public async Task SetUp() - { - _resourceGroup = await CreateResourceGroupAsync(); - } - - //[Ignore("Ignore for now due to manifest issue, re-enable when manifest is fixed")] - [RecordedTest] - public async Task QueryRegionInfoTest() - { - Response regionInfo = await DefaultSubscription.QueryRegionInfoNetAppResourceAsync(DefaultLocation); - Assert.IsNotNull(regionInfo); - Assert.IsNotNull(regionInfo.Value.StorageToNetworkProximity); - Assert.IsNotNull(regionInfo.Value.AvailabilityZoneMappings); - } - } -} From 4dd0caa675b0a05e189b3b4fc6cecaec0610a784 Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Thu, 21 Sep 2023 12:24:13 +0000 Subject: [PATCH 02/13] SystemData --- .../src/Custom/ArmNetAppModelFactory.cs | 4 +- .../src/Custom/Models/NetAppBackupData .cs | 2 +- .../Models/NetAppBackupData.Serialization.cs | 4 +- ...VolumePatchDataProtection.Serialization.cs | 2 +- ...VolumePatchDataProtection.Serialization.cs | 16 ++++ .../Models/SystemData.Serialization.cs | 80 +++++++++++++++++++ .../src/Generated/Models/SystemData.cs | 50 ++++++++++++ 7 files changed, 152 insertions(+), 6 deletions(-) create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.Serialization.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.Serialization.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.cs diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs index ea3b22325d94b..df90eec263513 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs @@ -46,7 +46,7 @@ public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy /// Volume name. /// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups. /// A new instance for mocking. - public static NetAppBackupData NetAppBackupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation location = default, string backupId = null, DateTimeOffset? createdOn = null, string provisioningState = null, long? size = null, string label = null, NetAppBackupType? backupType = null, string failureReason = null, string volumeName = null, bool? useExistingSnapshot = null) + public static NetAppBackupData NetAppBackupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = null, AzureLocation location = default, string backupId = null, DateTimeOffset? createdOn = null, string provisioningState = null, long? size = null, string label = null, NetAppBackupType? backupType = null, string failureReason = null, string volumeName = null, bool? useExistingSnapshot = null) { return new NetAppBackupData(id, name, resourceType, systemData, location, backupId, createdOn, provisioningState, size, label, backupType, failureReason, volumeName, useExistingSnapshot); } @@ -185,7 +185,7 @@ public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier /// Specifies whether volume is a Large Volume or Regular Volume. /// Id of the snapshot or backup that the volume is restored from. /// A new instance for mocking. - public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, IEnumerable zones = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) + public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, IEnumerable zones = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) { tags ??= new Dictionary(); zones ??= new List(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData .cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData .cs index 43ea5a6dd5715..089709db02e15 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData .cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData .cs @@ -40,7 +40,7 @@ public NetAppBackupData(AzureLocation location) /// Failure reason. /// Volume name. /// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups. - internal NetAppBackupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation location, string backupId, DateTimeOffset? createdOn, string provisioningState, long? size, string label, NetAppBackupType? backupType, string failureReason, string volumeName, bool? useExistingSnapshot) : base(id, name, resourceType, systemData) + internal NetAppBackupData(ResourceIdentifier id, string name, ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, AzureLocation location, string backupId, DateTimeOffset? createdOn, string provisioningState, long? size, string label, NetAppBackupType? backupType, string failureReason, string volumeName, bool? useExistingSnapshot) : base(id, name, resourceType, systemData) { Location = location; BackupId = backupId; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData.Serialization.cs index 8c0cc4885cca2..94e4746975398 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppBackupData.Serialization.cs @@ -44,7 +44,7 @@ internal static NetAppBackupData DeserializeNetAppBackupData(JsonElement element ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional backupId = default; Optional creationDate = default; Optional provisioningState = default; @@ -82,7 +82,7 @@ internal static NetAppBackupData DeserializeNetAppBackupData(JsonElement element { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.Serialization.cs index d88ba936e95cd..e0730948cee59 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.NetApp.Models { public partial class NetAppVolumePatchDataProtection : IUtf8JsonSerializable { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + void global::Azure.Core.IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); if (Optional.IsDefined(Backup)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.Serialization.cs new file mode 100644 index 0000000000000..0e7698cc1c6e6 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.Serialization.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + public partial class NetAppVolumePatchDataProtection : IUtf8JsonSerializable + { + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.Serialization.cs new file mode 100644 index 0000000000000..2dd7c06644441 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.Serialization.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + internal partial class SystemData + { + internal static SystemData DeserializeSystemData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional createdBy = default; + Optional createdByType = default; + Optional createdAt = default; + Optional lastModifiedBy = default; + Optional lastModifiedByType = default; + Optional lastModifiedAt = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("createdBy"u8)) + { + createdBy = property.Value.GetString(); + continue; + } + if (property.NameEquals("createdByType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + createdByType = new CreatedByType(property.Value.GetString()); + continue; + } + if (property.NameEquals("createdAt"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + createdAt = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("lastModifiedBy"u8)) + { + lastModifiedBy = property.Value.GetString(); + continue; + } + if (property.NameEquals("lastModifiedByType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + lastModifiedByType = new CreatedByType(property.Value.GetString()); + continue; + } + if (property.NameEquals("lastModifiedAt"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + lastModifiedAt = property.Value.GetDateTimeOffset("O"); + continue; + } + } + return new SystemData(createdBy.Value, Optional.ToNullable(createdByType), Optional.ToNullable(createdAt), lastModifiedBy.Value, Optional.ToNullable(lastModifiedByType), Optional.ToNullable(lastModifiedAt)); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.cs new file mode 100644 index 0000000000000..e593136fe13ea --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// Metadata pertaining to creation and last modification of the resource. + internal partial class SystemData + { + /// Initializes a new instance of SystemData. + internal SystemData() + { + } + + /// Initializes a new instance of SystemData. + /// The identity that created the resource. + /// The type of identity that created the resource. + /// The timestamp of resource creation (UTC). + /// The identity that last modified the resource. + /// The type of identity that last modified the resource. + /// The timestamp of resource last modification (UTC). + internal SystemData(string createdBy, CreatedByType? createdByType, DateTimeOffset? createdOn, string lastModifiedBy, CreatedByType? lastModifiedByType, DateTimeOffset? lastModifiedOn) + { + CreatedBy = createdBy; + CreatedByType = createdByType; + CreatedOn = createdOn; + LastModifiedBy = lastModifiedBy; + LastModifiedByType = lastModifiedByType; + LastModifiedOn = lastModifiedOn; + } + + /// The identity that created the resource. + public string CreatedBy { get; } + /// The type of identity that created the resource. + public CreatedByType? CreatedByType { get; } + /// The timestamp of resource creation (UTC). + public DateTimeOffset? CreatedOn { get; } + /// The identity that last modified the resource. + public string LastModifiedBy { get; } + /// The type of identity that last modified the resource. + public CreatedByType? LastModifiedByType { get; } + /// The timestamp of resource last modification (UTC). + public DateTimeOffset? LastModifiedOn { get; } + } +} From b08e6cf7756276920df1eac9e0a07524ffce7bb5 Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Thu, 21 Sep 2023 13:00:45 +0000 Subject: [PATCH 03/13] Sync + systemdata --- .../src/Generated/ArmNetAppModelFactory.cs | 24 +++--- .../src/Generated/CapacityPoolData.cs | 2 +- .../Models/CapacityPoolData.Serialization.cs | 4 +- .../src/Generated/Models/CreatedByType.cs | 57 ------------- .../Models/NetAppAccountData.Serialization.cs | 4 +- .../NetAppBackupPolicyData.Serialization.cs | 4 +- ...tAppSubscriptionQuotaItem.Serialization.cs | 4 +- .../Models/NetAppSubscriptionQuotaItem.cs | 2 +- .../NetAppSubvolumeMetadata.Serialization.cs | 4 +- .../Models/NetAppSubvolumeMetadata.cs | 2 +- .../Models/NetAppVolumeData.Serialization.cs | 4 +- .../NetAppVolumeGroupData.Serialization.cs | 4 +- .../NetAppVolumeGroupResult.Serialization.cs | 4 +- .../Models/NetAppVolumeGroupResult.cs | 2 +- ...NetAppVolumeQuotaRuleData.Serialization.cs | 4 +- .../SnapshotPolicyData.Serialization.cs | 4 +- .../Models/SystemData.Serialization.cs | 80 ------------------- .../src/Generated/Models/SystemData.cs | 50 ------------ .../src/Generated/NetAppAccountData.cs | 2 +- .../src/Generated/NetAppBackupPolicyData.cs | 2 +- .../src/Generated/NetAppVolumeData.cs | 2 +- .../src/Generated/NetAppVolumeGroupData.cs | 2 +- .../Generated/NetAppVolumeQuotaRuleData.cs | 2 +- .../src/Generated/SnapshotPolicyData.cs | 2 +- 24 files changed, 42 insertions(+), 229 deletions(-) delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CreatedByType.cs delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.Serialization.cs delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.cs diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs index 6a64f0cb66efb..f1fa216df1832 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs @@ -37,7 +37,7 @@ public static NetAppCheckAvailabilityResult NetAppCheckAvailabilityResult(bool? /// The current quota value. /// The default quota value. /// A new instance for mocking. - public static NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, int? current = null, int? @default = null) + public static NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, int? current = null, int? @default = null) { return new NetAppSubscriptionQuotaItem(id, name, resourceType, systemData, current, @default); } @@ -102,7 +102,7 @@ public static NicInfo NicInfo(string ipAddress = null, IEnumerable Encryption settings. /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. /// A new instance for mocking. - public static NetAppAccountData NetAppAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ManagedServiceIdentity identity = null, string provisioningState = null, IEnumerable activeDirectories = null, NetAppAccountEncryption encryption = null, bool? disableShowmount = null) + public static NetAppAccountData NetAppAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ManagedServiceIdentity identity = null, string provisioningState = null, IEnumerable activeDirectories = null, NetAppAccountEncryption encryption = null, bool? disableShowmount = null) { tags ??= new Dictionary(); activeDirectories ??= new List(); @@ -183,7 +183,7 @@ public static NetAppEncryptionIdentity NetAppEncryptionIdentity(string principal /// If enabled (true) the pool can contain cool Access enabled volumes. /// 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. /// A new instance for mocking. - public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, Guid? poolId = null, long size = default, NetAppFileServiceLevel serviceLevel = default, string provisioningState = null, float? totalThroughputMibps = null, float? utilizedThroughputMibps = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, CapacityPoolEncryptionType? encryptionType = null) + public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, Guid? poolId = null, long size = default, NetAppFileServiceLevel serviceLevel = default, string provisioningState = null, float? totalThroughputMibps = null, float? utilizedThroughputMibps = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, CapacityPoolEncryptionType? encryptionType = null) { tags ??= new Dictionary(); @@ -259,7 +259,7 @@ public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, st /// Specifies whether volume is a Large Volume or Regular Volume. /// Id of the snapshot or backup that the volume is restored from. /// A new instance for mocking. - public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, IEnumerable zones = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) + public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, IEnumerable zones = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) { tags ??= new Dictionary(); zones ??= new List(); @@ -347,7 +347,7 @@ public static NetAppVolumeReplication NetAppVolumeReplication(NetAppEndpointType /// The creation date of the snapshot. /// Azure lifecycle management. /// A new instance for mocking. - public static NetAppVolumeSnapshotData NetAppVolumeSnapshotData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, AzureLocation location = default, string snapshotId = null, DateTimeOffset? created = null, string provisioningState = null) + public static NetAppVolumeSnapshotData NetAppVolumeSnapshotData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation location = default, string snapshotId = null, DateTimeOffset? created = null, string provisioningState = null) { return new NetAppVolumeSnapshotData(id, name, resourceType, systemData, location, snapshotId, created, provisioningState); } @@ -367,7 +367,7 @@ public static NetAppVolumeSnapshotData NetAppVolumeSnapshotData(ResourceIdentifi /// The property to decide policy is enabled or not. /// Azure lifecycle management. /// A new instance for mocking. - public static SnapshotPolicyData SnapshotPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, SnapshotPolicyHourlySchedule hourlySchedule = null, SnapshotPolicyDailySchedule dailySchedule = null, SnapshotPolicyWeeklySchedule weeklySchedule = null, SnapshotPolicyMonthlySchedule monthlySchedule = null, bool? isEnabled = null, string provisioningState = null) + public static SnapshotPolicyData SnapshotPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, SnapshotPolicyHourlySchedule hourlySchedule = null, SnapshotPolicyDailySchedule dailySchedule = null, SnapshotPolicyWeeklySchedule weeklySchedule = null, SnapshotPolicyMonthlySchedule monthlySchedule = null, bool? isEnabled = null, string provisioningState = null) { tags ??= new Dictionary(); @@ -404,7 +404,7 @@ public static NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = null, Ne /// The property to decide policy is enabled or not. /// A list of volumes assigned to this policy. /// A new instance for mocking. - public static NetAppBackupPolicyData NetAppBackupPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = null, int? weeklyBackupsToKeep = null, int? monthlyBackupsToKeep = null, int? volumesAssigned = null, bool? isEnabled = null, IEnumerable volumeBackups = null) + public static NetAppBackupPolicyData NetAppBackupPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = null, int? weeklyBackupsToKeep = null, int? monthlyBackupsToKeep = null, int? volumesAssigned = null, bool? isEnabled = null, IEnumerable volumeBackups = null) { tags ??= new Dictionary(); volumeBackups ??= new List(); @@ -434,7 +434,7 @@ public static NetAppVolumeBackupDetail NetAppVolumeBackupDetail(string volumeNam /// Type of quota. /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. /// A new instance for mocking. - public static NetAppVolumeQuotaRuleData NetAppVolumeQuotaRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NetAppProvisioningState? provisioningState = null, long? quotaSizeInKiBs = null, NetAppVolumeQuotaType? quotaType = null, string quotaTarget = null) + public static NetAppVolumeQuotaRuleData NetAppVolumeQuotaRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NetAppProvisioningState? provisioningState = null, long? quotaSizeInKiBs = null, NetAppVolumeQuotaType? quotaType = null, string quotaTarget = null) { tags ??= new Dictionary(); @@ -450,7 +450,7 @@ public static NetAppVolumeQuotaRuleData NetAppVolumeQuotaRuleData(ResourceIdenti /// Azure lifecycle management. /// Volume group details. /// A new instance for mocking. - public static NetAppVolumeGroupResult NetAppVolumeGroupResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null) + public static NetAppVolumeGroupResult NetAppVolumeGroupResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null) { return new NetAppVolumeGroupResult(id, name, resourceType, systemData, location, provisioningState, groupMetaData); } @@ -480,7 +480,7 @@ public static NetAppVolumeGroupMetadata NetAppVolumeGroupMetadata(string groupDe /// Volume group details. /// List of volumes from group. /// A new instance for mocking. - public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null, IEnumerable volumes = null) + public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null, IEnumerable volumes = null) { volumes ??= new List(); @@ -576,7 +576,7 @@ public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier /// parent path to the subvolume. /// Azure lifecycle management. /// A new instance for mocking. - public static NetAppSubvolumeInfoData NetAppSubvolumeInfoData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, string path = null, long? size = null, string parentPath = null, string provisioningState = null) + public static NetAppSubvolumeInfoData NetAppSubvolumeInfoData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string path = null, long? size = null, string parentPath = null, string provisioningState = null) { return new NetAppSubvolumeInfoData(id, name, resourceType, systemData, path, size, parentPath, provisioningState); } @@ -597,7 +597,7 @@ public static NetAppSubvolumeInfoData NetAppSubvolumeInfoData(ResourceIdentifier /// Most recent change time and date. /// Azure lifecycle management. /// A new instance for mocking. - public static NetAppSubvolumeMetadata NetAppSubvolumeMetadata(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, ResourceManager.Models.SystemData systemData = null, string path = null, string parentPath = null, long? size = null, long? bytesUsed = null, string permissions = null, DateTimeOffset? createdOn = null, DateTimeOffset? accessedOn = null, DateTimeOffset? modifiedOn = null, DateTimeOffset? changedOn = null, string provisioningState = null) + public static NetAppSubvolumeMetadata NetAppSubvolumeMetadata(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string path = null, string parentPath = null, long? size = null, long? bytesUsed = null, string permissions = null, DateTimeOffset? createdOn = null, DateTimeOffset? accessedOn = null, DateTimeOffset? modifiedOn = null, DateTimeOffset? changedOn = null, string provisioningState = null) { return new NetAppSubvolumeMetadata(id, name, resourceType, systemData, path, parentPath, size, bytesUsed, permissions, createdOn, accessedOn, modifiedOn, changedOn, provisioningState); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs index f15e02a1c8602..7c16a6ee6575d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs @@ -47,7 +47,7 @@ public CapacityPoolData(AzureLocation location, long size, NetAppFileServiceLeve /// The qos type of the pool. /// If enabled (true) the pool can contain cool Access enabled volumes. /// 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. - internal CapacityPoolData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, Guid? poolId, long size, NetAppFileServiceLevel serviceLevel, string provisioningState, float? totalThroughputMibps, float? utilizedThroughputMibps, CapacityPoolQosType? qosType, bool? isCoolAccessEnabled, CapacityPoolEncryptionType? encryptionType) : base(id, name, resourceType, systemData, tags, location) + internal CapacityPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, Guid? poolId, long size, NetAppFileServiceLevel serviceLevel, string provisioningState, float? totalThroughputMibps, float? utilizedThroughputMibps, CapacityPoolQosType? qosType, bool? isCoolAccessEnabled, CapacityPoolEncryptionType? encryptionType) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; PoolId = poolId; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolData.Serialization.cs index 4941fccf995a0..75b316cdabff7 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolData.Serialization.cs @@ -77,7 +77,7 @@ internal static CapacityPoolData DeserializeCapacityPoolData(JsonElement element ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional poolId = default; long size = default; NetAppFileServiceLevel serviceLevel = default; @@ -138,7 +138,7 @@ internal static CapacityPoolData DeserializeCapacityPoolData(JsonElement element { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CreatedByType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CreatedByType.cs deleted file mode 100644 index ffbf25ac27431..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CreatedByType.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// The type of identity that created the resource. - internal readonly partial struct CreatedByType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public CreatedByType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string UserValue = "User"; - private const string ApplicationValue = "Application"; - private const string ManagedIdentityValue = "ManagedIdentity"; - private const string KeyValue = "Key"; - - /// User. - public static CreatedByType User { get; } = new CreatedByType(UserValue); - /// Application. - public static CreatedByType Application { get; } = new CreatedByType(ApplicationValue); - /// ManagedIdentity. - public static CreatedByType ManagedIdentity { get; } = new CreatedByType(ManagedIdentityValue); - /// Key. - public static CreatedByType Key { get; } = new CreatedByType(KeyValue); - /// Determines if two values are the same. - public static bool operator ==(CreatedByType left, CreatedByType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(CreatedByType left, CreatedByType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator CreatedByType(string value) => new CreatedByType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is CreatedByType other && Equals(other); - /// - public bool Equals(CreatedByType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountData.Serialization.cs index d996c7e316849..439fe15e63376 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountData.Serialization.cs @@ -72,7 +72,7 @@ internal static NetAppAccountData DeserializeNetAppAccountData(JsonElement eleme ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional provisioningState = default; Optional> activeDirectories = default; Optional encryption = default; @@ -138,7 +138,7 @@ internal static NetAppAccountData DeserializeNetAppAccountData(JsonElement eleme { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyData.Serialization.cs index 249fe85af00be..b0f000bdce157 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyData.Serialization.cs @@ -70,7 +70,7 @@ internal static NetAppBackupPolicyData DeserializeNetAppBackupPolicyData(JsonEle ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional backupPolicyId = default; Optional provisioningState = default; Optional dailyBackupsToKeep = default; @@ -130,7 +130,7 @@ internal static NetAppBackupPolicyData DeserializeNetAppBackupPolicyData(JsonEle { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.Serialization.cs index d24fee87712f9..0da406c805ff4 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.Serialization.cs @@ -31,7 +31,7 @@ internal static NetAppSubscriptionQuotaItem DeserializeNetAppSubscriptionQuotaIt ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional current = default; Optional @default = default; foreach (var property in element.EnumerateObject()) @@ -57,7 +57,7 @@ internal static NetAppSubscriptionQuotaItem DeserializeNetAppSubscriptionQuotaIt { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs index 8d1fdab678e6b..47e4c141efa3c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs @@ -25,7 +25,7 @@ public NetAppSubscriptionQuotaItem() /// The systemData. /// The current quota value. /// The default quota value. - internal NetAppSubscriptionQuotaItem(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, int? current, int? @default) : base(id, name, resourceType, systemData) + internal NetAppSubscriptionQuotaItem(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, int? current, int? @default) : base(id, name, resourceType, systemData) { Current = current; Default = @default; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.Serialization.cs index db3bb319daa63..ae0cad3947e05 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.Serialization.cs @@ -23,7 +23,7 @@ internal static NetAppSubvolumeMetadata DeserializeNetAppSubvolumeMetadata(JsonE ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional path = default; Optional parentPath = default; Optional size = default; @@ -57,7 +57,7 @@ internal static NetAppSubvolumeMetadata DeserializeNetAppSubvolumeMetadata(JsonE { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs index 9f8ed84f43025..51fbdfdb6174d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs @@ -34,7 +34,7 @@ internal NetAppSubvolumeMetadata() /// Most recent modification time and date. /// Most recent change time and date. /// Azure lifecycle management. - internal NetAppSubvolumeMetadata(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, string path, string parentPath, long? size, long? bytesUsed, string permissions, DateTimeOffset? createdOn, DateTimeOffset? accessedOn, DateTimeOffset? modifiedOn, DateTimeOffset? changedOn, string provisioningState) : base(id, name, resourceType, systemData) + internal NetAppSubvolumeMetadata(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string path, string parentPath, long? size, long? bytesUsed, string permissions, DateTimeOffset? createdOn, DateTimeOffset? accessedOn, DateTimeOffset? modifiedOn, DateTimeOffset? changedOn, string provisioningState) : base(id, name, resourceType, systemData) { Path = path; ParentPath = parentPath; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeData.Serialization.cs index 80f2bb939bb8a..0624202bd4049 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeData.Serialization.cs @@ -288,7 +288,7 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional fileSystemId = default; string creationToken = default; Optional serviceLevel = default; @@ -408,7 +408,7 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupData.Serialization.cs index 94cf132ff6205..7e3c823598322 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupData.Serialization.cs @@ -54,7 +54,7 @@ internal static NetAppVolumeGroupData DeserializeNetAppVolumeGroupData(JsonEleme ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional provisioningState = default; Optional groupMetaData = default; Optional> volumes = default; @@ -90,7 +90,7 @@ internal static NetAppVolumeGroupData DeserializeNetAppVolumeGroupData(JsonEleme { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.Serialization.cs index 95c9a8294306a..461108fff3924 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.Serialization.cs @@ -23,7 +23,7 @@ internal static NetAppVolumeGroupResult DeserializeNetAppVolumeGroupResult(JsonE ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional provisioningState = default; Optional groupMetaData = default; foreach (var property in element.EnumerateObject()) @@ -58,7 +58,7 @@ internal static NetAppVolumeGroupResult DeserializeNetAppVolumeGroupResult(JsonE { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs index 52b81f2b65d40..ada6399db1001 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs @@ -26,7 +26,7 @@ internal NetAppVolumeGroupResult() /// Resource location. /// Azure lifecycle management. /// Volume group details. - internal NetAppVolumeGroupResult(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, AzureLocation? location, string provisioningState, NetAppVolumeGroupMetadata groupMetaData) : base(id, name, resourceType, systemData) + internal NetAppVolumeGroupResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, string provisioningState, NetAppVolumeGroupMetadata groupMetaData) : base(id, name, resourceType, systemData) { Location = location; ProvisioningState = provisioningState; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRuleData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRuleData.Serialization.cs index 225bccd502912..091c7925359cd 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRuleData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRuleData.Serialization.cs @@ -63,7 +63,7 @@ internal static NetAppVolumeQuotaRuleData DeserializeNetAppVolumeQuotaRuleData(J ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional provisioningState = default; Optional quotaSizeInKiBs = default; Optional quotaType = default; @@ -110,7 +110,7 @@ internal static NetAppVolumeQuotaRuleData DeserializeNetAppVolumeQuotaRuleData(J { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyData.Serialization.cs index 6cf594ea8a021..e54fa4ee88b1e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyData.Serialization.cs @@ -75,7 +75,7 @@ internal static SnapshotPolicyData DeserializeSnapshotPolicyData(JsonElement ele ResourceIdentifier id = default; string name = default; ResourceType type = default; - Optional systemData = default; + Optional systemData = default; Optional hourlySchedule = default; Optional dailySchedule = default; Optional weeklySchedule = default; @@ -133,7 +133,7 @@ internal static SnapshotPolicyData DeserializeSnapshotPolicyData(JsonElement ele { continue; } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } if (property.NameEquals("properties"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.Serialization.cs deleted file mode 100644 index 2dd7c06644441..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.Serialization.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - internal partial class SystemData - { - internal static SystemData DeserializeSystemData(JsonElement element) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - Optional createdBy = default; - Optional createdByType = default; - Optional createdAt = default; - Optional lastModifiedBy = default; - Optional lastModifiedByType = default; - Optional lastModifiedAt = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("createdBy"u8)) - { - createdBy = property.Value.GetString(); - continue; - } - if (property.NameEquals("createdByType"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - createdByType = new CreatedByType(property.Value.GetString()); - continue; - } - if (property.NameEquals("createdAt"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - createdAt = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("lastModifiedBy"u8)) - { - lastModifiedBy = property.Value.GetString(); - continue; - } - if (property.NameEquals("lastModifiedByType"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - lastModifiedByType = new CreatedByType(property.Value.GetString()); - continue; - } - if (property.NameEquals("lastModifiedAt"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - lastModifiedAt = property.Value.GetDateTimeOffset("O"); - continue; - } - } - return new SystemData(createdBy.Value, Optional.ToNullable(createdByType), Optional.ToNullable(createdAt), lastModifiedBy.Value, Optional.ToNullable(lastModifiedByType), Optional.ToNullable(lastModifiedAt)); - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.cs deleted file mode 100644 index e593136fe13ea..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SystemData.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Metadata pertaining to creation and last modification of the resource. - internal partial class SystemData - { - /// Initializes a new instance of SystemData. - internal SystemData() - { - } - - /// Initializes a new instance of SystemData. - /// The identity that created the resource. - /// The type of identity that created the resource. - /// The timestamp of resource creation (UTC). - /// The identity that last modified the resource. - /// The type of identity that last modified the resource. - /// The timestamp of resource last modification (UTC). - internal SystemData(string createdBy, CreatedByType? createdByType, DateTimeOffset? createdOn, string lastModifiedBy, CreatedByType? lastModifiedByType, DateTimeOffset? lastModifiedOn) - { - CreatedBy = createdBy; - CreatedByType = createdByType; - CreatedOn = createdOn; - LastModifiedBy = lastModifiedBy; - LastModifiedByType = lastModifiedByType; - LastModifiedOn = lastModifiedOn; - } - - /// The identity that created the resource. - public string CreatedBy { get; } - /// The type of identity that created the resource. - public CreatedByType? CreatedByType { get; } - /// The timestamp of resource creation (UTC). - public DateTimeOffset? CreatedOn { get; } - /// The identity that last modified the resource. - public string LastModifiedBy { get; } - /// The type of identity that last modified the resource. - public CreatedByType? LastModifiedByType { get; } - /// The timestamp of resource last modification (UTC). - public DateTimeOffset? LastModifiedOn { get; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs index 34c4d00136444..ccf651d44ad3d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs @@ -39,7 +39,7 @@ public NetAppAccountData(AzureLocation location) : base(location) /// Active Directories. /// Encryption settings. /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. - internal NetAppAccountData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ManagedServiceIdentity identity, string provisioningState, IList activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount) : base(id, name, resourceType, systemData, tags, location) + internal NetAppAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ManagedServiceIdentity identity, string provisioningState, IList activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; Identity = identity; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs index 7949b285eb4ad..a0da65294b9c0 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs @@ -42,7 +42,7 @@ public NetAppBackupPolicyData(AzureLocation location) : base(location) /// Volumes using current backup policy. /// The property to decide policy is enabled or not. /// A list of volumes assigned to this policy. - internal NetAppBackupPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ResourceIdentifier backupPolicyId, string provisioningState, int? dailyBackupsToKeep, int? weeklyBackupsToKeep, int? monthlyBackupsToKeep, int? volumesAssigned, bool? isEnabled, IReadOnlyList volumeBackups) : base(id, name, resourceType, systemData, tags, location) + internal NetAppBackupPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ResourceIdentifier backupPolicyId, string provisioningState, int? dailyBackupsToKeep, int? weeklyBackupsToKeep, int? monthlyBackupsToKeep, int? volumesAssigned, bool? isEnabled, IReadOnlyList volumeBackups) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; BackupPolicyId = backupPolicyId; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs index 0b54ec9a403d8..bbd888e51e917 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs @@ -109,7 +109,7 @@ public NetAppVolumeData(AzureLocation location, string creationToken, long usage /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. /// Specifies whether volume is a Large Volume or Regular Volume. /// Id of the snapshot or backup that the volume is restored from. - internal NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, IList zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, VolumePropertiesExportPolicy exportPolicy, IList protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IReadOnlyList mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IReadOnlyList dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IList placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) : base(id, name, resourceType, systemData, tags, location) + internal NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, IList zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, VolumePropertiesExportPolicy exportPolicy, IList protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IReadOnlyList mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IReadOnlyList dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IList placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; Zones = zones; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs index 3ad19186a9029..fdcc4a76f6663 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs @@ -33,7 +33,7 @@ public NetAppVolumeGroupData() /// Azure lifecycle management. /// Volume group details. /// List of volumes from group. - internal NetAppVolumeGroupData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, AzureLocation? location, string provisioningState, NetAppVolumeGroupMetadata groupMetaData, IList volumes) : base(id, name, resourceType, systemData) + internal NetAppVolumeGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, string provisioningState, NetAppVolumeGroupMetadata groupMetaData, IList volumes) : base(id, name, resourceType, systemData) { Location = location; ProvisioningState = provisioningState; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs index 8acff689c7d17..779db2da04733 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs @@ -35,7 +35,7 @@ public NetAppVolumeQuotaRuleData(AzureLocation location) : base(location) /// Size of quota. /// Type of quota. /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. - internal NetAppVolumeQuotaRuleData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, NetAppProvisioningState? provisioningState, long? quotaSizeInKiBs, NetAppVolumeQuotaType? quotaType, string quotaTarget) : base(id, name, resourceType, systemData, tags, location) + internal NetAppVolumeQuotaRuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, NetAppProvisioningState? provisioningState, long? quotaSizeInKiBs, NetAppVolumeQuotaType? quotaType, string quotaTarget) : base(id, name, resourceType, systemData, tags, location) { ProvisioningState = provisioningState; QuotaSizeInKiBs = quotaSizeInKiBs; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs index 7d81b67d53ba4..19f6d4b40d390 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs @@ -39,7 +39,7 @@ public SnapshotPolicyData(AzureLocation location) : base(location) /// Schedule for monthly snapshots. /// The property to decide policy is enabled or not. /// Azure lifecycle management. - internal SnapshotPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, ResourceManager.Models.SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, SnapshotPolicyHourlySchedule hourlySchedule, SnapshotPolicyDailySchedule dailySchedule, SnapshotPolicyWeeklySchedule weeklySchedule, SnapshotPolicyMonthlySchedule monthlySchedule, bool? isEnabled, string provisioningState) : base(id, name, resourceType, systemData, tags, location) + internal SnapshotPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, SnapshotPolicyHourlySchedule hourlySchedule, SnapshotPolicyDailySchedule dailySchedule, SnapshotPolicyWeeklySchedule weeklySchedule, SnapshotPolicyMonthlySchedule monthlySchedule, bool? isEnabled, string provisioningState) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; HourlySchedule = hourlySchedule; From c0da2d470a3ef861f587946a5e43b6c50d722e63 Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Thu, 21 Sep 2023 14:05:00 +0000 Subject: [PATCH 04/13] update assets --- sdk/netapp/Azure.ResourceManager.NetApp/assets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json index 9f1fedb8c83ee..a6f2351f0fc7f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json +++ b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/netapp/Azure.ResourceManager.NetApp", - "Tag": "net/netapp/Azure.ResourceManager.NetApp_3538fc7009" + "Tag": "net/netapp/Azure.ResourceManager.NetApp_c21345e78c" } From e3e3c6a5b21cb4a4e95a5b6da77fa9dff44c6be8 Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Thu, 21 Sep 2023 15:03:27 +0000 Subject: [PATCH 05/13] update assets --- sdk/netapp/Azure.ResourceManager.NetApp/assets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json index a6f2351f0fc7f..06b7fe24a30c9 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json +++ b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/netapp/Azure.ResourceManager.NetApp", - "Tag": "net/netapp/Azure.ResourceManager.NetApp_c21345e78c" + "Tag": "net/netapp/Azure.ResourceManager.NetApp_f71d3a32bc" } From dd09e482dd6de4a430ae6a547f298aa4b8587097 Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Fri, 22 Sep 2023 10:50:47 +0000 Subject: [PATCH 06/13] s2ync --- .../Samples/Sample_CapacityPoolCollection.cs | 2 +- .../Sample_NetAppAccountBackupCollection.cs | 166 -------------- .../Samples/Sample_NetAppAccountCollection.cs | 2 +- .../Sample_NetAppBackupPolicyCollection.cs | 2 +- .../Sample_NetAppSubvolumeInfoCollection.cs | 2 +- .../Sample_NetAppVolumeBackupCollection.cs | 216 ------------------ .../Samples/Sample_NetAppVolumeCollection.cs | 2 +- .../Sample_NetAppVolumeGroupCollection.cs | 86 +++++++ .../Sample_NetAppVolumeQuotaRuleCollection.cs | 2 +- .../Sample_NetAppVolumeSnapshotCollection.cs | 2 +- .../Sample_SnapshotPolicyCollection.cs | 2 +- 11 files changed, 94 insertions(+), 390 deletions(-) delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupCollection.cs delete mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupCollection.cs diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs index ccafa291ebc1f..3787f4e4be353 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs @@ -126,7 +126,7 @@ public async Task Exists_PoolsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_PoolsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Get.json // this example is just showing the usage of "Pools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupCollection.cs deleted file mode 100644 index f8afe25c92ab8..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupCollection.cs +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.NetApp; - -namespace Azure.ResourceManager.NetApp.Samples -{ - public partial class Sample_NetAppAccountBackupCollection - { - // AccountBackups_List - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_AccountBackupsList() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Account_List.json - // this example is just showing the usage of "AccountBackups_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppAccountResource created on azure - // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); - NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); - - // get the collection of this NetAppAccountBackupResource - NetAppAccountBackupCollection collection = netAppAccount.GetNetAppAccountBackups(); - - // invoke the operation and iterate over the result - await foreach (NetAppAccountBackupResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // AccountBackups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_AccountBackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Account_Get.json - // this example is just showing the usage of "AccountBackups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppAccountResource created on azure - // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); - NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); - - // get the collection of this NetAppAccountBackupResource - NetAppAccountBackupCollection collection = netAppAccount.GetNetAppAccountBackups(); - - // invoke the operation - string backupName = "backup1"; - NetAppAccountBackupResource result = await collection.GetAsync(backupName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // AccountBackups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_AccountBackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Account_Get.json - // this example is just showing the usage of "AccountBackups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppAccountResource created on azure - // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); - NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); - - // get the collection of this NetAppAccountBackupResource - NetAppAccountBackupCollection collection = netAppAccount.GetNetAppAccountBackups(); - - // invoke the operation - string backupName = "backup1"; - bool result = await collection.ExistsAsync(backupName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // AccountBackups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetIfExists_AccountBackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Account_Get.json - // this example is just showing the usage of "AccountBackups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppAccountResource created on azure - // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); - NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); - - // get the collection of this NetAppAccountBackupResource - NetAppAccountBackupCollection collection = netAppAccount.GetNetAppAccountBackups(); - - // invoke the operation - string backupName = "backup1"; - NullableResponse response = await collection.GetIfExistsAsync(backupName); - NetAppAccountBackupResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine($"Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountCollection.cs index a96dcc17b374a..9aaf1684fddc4 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountCollection.cs @@ -124,7 +124,7 @@ public async Task Exists_AccountsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_AccountsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Get.json // this example is just showing the usage of "Accounts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs index 20fc5f4c60630..f73af475ae48d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs @@ -125,7 +125,7 @@ public async Task Exists_BackupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_BackupsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/BackupPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Get.json // this example is just showing the usage of "BackupPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs index 0c3fe05412696..f15a024bdf6fd 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs @@ -131,7 +131,7 @@ public async Task Exists_SubvolumesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_SubvolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Subvolumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Get.json // this example is just showing the usage of "Subvolumes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupCollection.cs deleted file mode 100644 index a48778f92b484..0000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupCollection.cs +++ /dev/null @@ -1,216 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.NetApp; - -namespace Azure.ResourceManager.NetApp.Samples -{ - public partial class Sample_NetAppVolumeBackupCollection - { - // Backups_List - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_BackupsList() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_List.json - // this example is just showing the usage of "Backups_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppVolumeBackupResource - NetAppVolumeBackupCollection collection = netAppVolume.GetNetAppVolumeBackups(); - - // invoke the operation and iterate over the result - await foreach (NetAppVolumeBackupResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Backups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_BackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Get.json - // this example is just showing the usage of "Backups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppVolumeBackupResource - NetAppVolumeBackupCollection collection = netAppVolume.GetNetAppVolumeBackups(); - - // invoke the operation - string backupName = "backup1"; - NetAppVolumeBackupResource result = await collection.GetAsync(backupName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Backups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_BackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Get.json - // this example is just showing the usage of "Backups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppVolumeBackupResource - NetAppVolumeBackupCollection collection = netAppVolume.GetNetAppVolumeBackups(); - - // invoke the operation - string backupName = "backup1"; - bool result = await collection.ExistsAsync(backupName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Backups_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetIfExists_BackupsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Get.json - // this example is just showing the usage of "Backups_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppVolumeBackupResource - NetAppVolumeBackupCollection collection = netAppVolume.GetNetAppVolumeBackups(); - - // invoke the operation - string backupName = "backup1"; - NullableResponse response = await collection.GetIfExistsAsync(backupName); - NetAppVolumeBackupResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine($"Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - - // Backups_Create - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_BackupsCreate() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Create.json - // this example is just showing the usage of "Backups_Create" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppVolumeBackupResource - NetAppVolumeBackupCollection collection = netAppVolume.GetNetAppVolumeBackups(); - - // invoke the operation - string backupName = "backup1"; - NetAppBackupData data = new NetAppBackupData(new AzureLocation("eastus")) - { - Label = "myLabel", - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, backupName, data); - NetAppVolumeBackupResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBackupData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs index a5bc486a3b7f2..985ccd6451a84 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs @@ -129,7 +129,7 @@ public async Task Exists_VolumesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Get.json // this example is just showing the usage of "Volumes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs index fae87c9fd5234..c870e7ea74071 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs @@ -84,6 +84,49 @@ public async Task Exists_VolumeGroupsGetOracle() Console.WriteLine($"Succeeded: {result}"); } + // VolumeGroups_Get_Oracle + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_VolumeGroupsGetOracle() + { + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_Oracle.json + // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetAppAccountResource created on azure + // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + string resourceGroupName = "myRG"; + string accountName = "account1"; + ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); + NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); + + // get the collection of this NetAppVolumeGroupResource + NetAppVolumeGroupCollection collection = netAppAccount.GetNetAppVolumeGroups(); + + // invoke the operation + string volumeGroupName = "group1"; + NullableResponse response = await collection.GetIfExistsAsync(volumeGroupName); + NetAppVolumeGroupResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetAppVolumeGroupData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + // VolumeGroups_Get_SapHana [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] @@ -150,6 +193,49 @@ public async Task Exists_VolumeGroupsGetSapHana() Console.WriteLine($"Succeeded: {result}"); } + // VolumeGroups_Get_SapHana + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_VolumeGroupsGetSapHana() + { + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_SapHana.json + // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this NetAppAccountResource created on azure + // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + string resourceGroupName = "myRG"; + string accountName = "account1"; + ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); + NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); + + // get the collection of this NetAppVolumeGroupResource + NetAppVolumeGroupCollection collection = netAppAccount.GetNetAppVolumeGroups(); + + // invoke the operation + string volumeGroupName = "group1"; + NullableResponse response = await collection.GetIfExistsAsync(volumeGroupName); + NetAppVolumeGroupResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetAppVolumeGroupData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + // VolumeGroups_Create_Oracle [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs index c87c06756f4a6..5aff2a5401c98 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs @@ -132,7 +132,7 @@ public async Task Exists_VolumeQuotaRulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_VolumeQuotaRulesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeQuotaRules_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Get.json // this example is just showing the usage of "VolumeQuotaRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs index f3d7816c4164e..aa6eacf38b74e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs @@ -131,7 +131,7 @@ public async Task Exists_SnapshotsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_SnapshotsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Snapshots_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Get.json // this example is just showing the usage of "Snapshots_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyCollection.cs index ff5f0010e9562..cccbfd914b4ea 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_SnapshotPolicyCollection.cs @@ -126,7 +126,7 @@ public async Task Exists_SnapshotPoliciesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_SnapshotPoliciesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Get.json // this example is just showing the usage of "SnapshotPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line From cd24c055a1da508939c9b3eda3f902918c23903e Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Wed, 11 Oct 2023 10:01:44 +0000 Subject: [PATCH 07/13] EB.Never --- sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md | 4 ++-- .../src/Custom/ArmNetAppModelFactory.cs | 5 +++++ .../src/Custom/Extensions/NetAppExtensions.cs | 4 ++++ .../src/Custom/Models/BackupsList.cs | 3 +-- .../src/Custom/Models/NetAppVolumeBackupConfiguration.cs | 1 + .../src/Custom/Models/NetAppVolumeBackupPatch.cs | 2 ++ .../src/Custom/Models/NetAppVolumePatch.cs | 2 ++ .../src/Custom/Models/NetAppVolumePatchDataProtection.cs | 2 ++ .../tests/ResourceTests/NetAppAccountTests.cs | 5 +++-- .../ResourceTests/NetAppResource_NetworkSiblingSetTests.cs | 6 +----- sdk/netapp/test-resources.json | 6 ++++++ 11 files changed, 29 insertions(+), 11 deletions(-) create mode 100644 sdk/netapp/test-resources.json diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md b/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md index 933844520cf5e..bbedde8619cb0 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md +++ b/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md @@ -1,7 +1,7 @@ # Release History -## 1.4.0-beta.1 (Unreleased) -- Updated to support ANF api-version 2022-09-01 +## 1.4.0-beta.1 (2023-10-15) +- Updated to support ANF api-version 2023-05-01 ### Features Added - Added `QueryNetworkSiblingSetNetAppResource` and `UpdateNetworkSiblingSetNetAppResource` to allow clients to query and update the Networking features for a Networking siblingset related to a ANF Volume - Added `CoolAccessRetrievalPolicy` to `NetAppVolumePatch` and `NetAppVolumeData`, coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs index df90eec263513..9adb8e97ca53e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs @@ -25,6 +25,7 @@ public static partial class ArmNetAppModelFactory /// Displays the last transfer type. /// Displays the total bytes transferred. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = null, NetAppRelationshipStatus? relationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? lastTransferSize = null, string lastTransferType = null, long? totalTransferBytes = null) { return new NetAppVolumeBackupStatus(isHealthy, relationshipStatus, mirrorState, unhealthyReason, errorMessage, lastTransferSize, lastTransferType, totalTransferBytes); @@ -46,6 +47,8 @@ public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy /// Volume name. /// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetAppBackupData NetAppBackupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = null, AzureLocation location = default, string backupId = null, DateTimeOffset? createdOn = null, string provisioningState = null, long? size = null, string label = null, NetAppBackupType? backupType = null, string failureReason = null, string volumeName = null, bool? useExistingSnapshot = null) { return new NetAppBackupData(id, name, resourceType, systemData, location, backupId, createdOn, provisioningState, size, label, backupType, failureReason, volumeName, useExistingSnapshot); @@ -110,6 +113,7 @@ public static NetAppBackupData NetAppBackupData(ResourceIdentifier id = null, st /// Specifies whether volume is a Large Volume or Regular Volume. /// Id of the snapshot or backup that the volume is restored from. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, IDictionary tags = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) { tags ??= new Dictionary(); @@ -185,6 +189,7 @@ public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier /// Specifies whether volume is a Large Volume or Regular Volume. /// Id of the snapshot or backup that the volume is restored from. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, IEnumerable zones = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, string unixPermissions = null, int? cloneProgress = null, NetAppFileAccessLog? fileAccessLogs = null, NetAppAvsDataStore? avsDataStore = null, IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, long? maximumNumberOfFiles = null, string volumeGroupName = null, ResourceIdentifier capacityPoolResourceId = null, ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = null, IEnumerable placementRules = null, EnableNetAppSubvolume? enableSubvolumes = null, string provisionedAvailabilityZone = null, bool? isLargeVolume = null, ResourceIdentifier originatingResourceId = null) { tags ??= new Dictionary(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Extensions/NetAppExtensions.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Extensions/NetAppExtensions.cs index 17415253349a5..c079cea4ed9ba 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Extensions/NetAppExtensions.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Extensions/NetAppExtensions.cs @@ -4,6 +4,7 @@ #nullable disable using System; +using System.ComponentModel; using System.Threading; using System.Threading.Tasks; using Azure; @@ -25,6 +26,7 @@ public static partial class NetAppExtensions /// The instance the method will execute against. /// The resource ID of the resource to get. /// Returns a object. + [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppAccountBackupResource GetNetAppAccountBackupResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => @@ -44,6 +46,8 @@ public static NetAppAccountBackupResource GetNetAppAccountBackupResource(this Ar /// The instance the method will execute against. /// The resource ID of the resource to get. /// Returns a object. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetAppVolumeBackupResource GetNetAppVolumeBackupResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/BackupsList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/BackupsList.cs index 58de3348961d2..e5e56b152191d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/BackupsList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/BackupsList.cs @@ -28,8 +28,7 @@ internal BackupsList(IReadOnlyList value) Value = value; } - /// A list of Backups. - [EditorBrowsable(EditorBrowsableState.Never)] + /// A list of Backups. public IReadOnlyList Value { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupConfiguration.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupConfiguration.cs index 2ef05a63f5fca..c435247eadc0b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupConfiguration.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupConfiguration.cs @@ -43,6 +43,7 @@ internal NetAppVolumeBackupConfiguration(ResourceIdentifier backupPolicyId, bool } /// Backup Policy Resource ID. + [EditorBrowsable(EditorBrowsableState.Never)] public ResourceIdentifier BackupPolicyId { get; set; } /// Policy Enforced. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupPatch.cs index 6a99c148b4396..08bb86844a686 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupPatch.cs @@ -5,11 +5,13 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using Azure.Core; namespace Azure.ResourceManager.NetApp.Models { /// Backup patch. + [EditorBrowsable(EditorBrowsableState.Never)] public partial class NetAppVolumeBackupPatch { /// Initializes a new instance of NetAppVolumeBackupPatch. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatch.cs index 093d623ee0407..4b00db2b01d8e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatch.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. #nullable disable +using System.ComponentModel; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.NetApp.Models @@ -9,6 +10,7 @@ namespace Azure.ResourceManager.NetApp.Models public partial class NetAppVolumePatch : TrackedResourceData { /// DataProtection type volumes include an object containing details of the replication. + [EditorBrowsable(EditorBrowsableState.Never)] public NetAppVolumePatchDataProtection DataProtection { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.cs index de334e2ba933b..220e6a2b03581 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumePatchDataProtection.cs @@ -3,6 +3,7 @@ #nullable disable +using System.ComponentModel; using Azure.Core; namespace Azure.ResourceManager.NetApp.Models @@ -11,6 +12,7 @@ namespace Azure.ResourceManager.NetApp.Models public partial class NetAppVolumePatchDataProtection { /// Backup Properties. + [EditorBrowsable(EditorBrowsableState.Never)] public NetAppVolumeBackupConfiguration Backup { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs index 806466c68c6b1..cedf8da0e5cf6 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs @@ -21,6 +21,7 @@ namespace Azure.ResourceManager.NetApp.Tests public class NetAppAccountTests: NetAppTestBase { private const string namePrefix = "testNetAppNetSDKmgmt"; + public static new AzureLocation DefaultLocation = " eastus2euap"; public NetAppAccountTests(bool isAsync) : base(isAsync) { @@ -141,8 +142,8 @@ public async Task UpdateNetAppAccount() _resourceGroup = await CreateResourceGroupAsync(); string accountName = await CreateValidAccountNameAsync(_accountNamePrefix, _resourceGroup, DefaultLocation); NetAppAccountCollection netAppAccountCollection = _resourceGroup.GetNetAppAccounts(); - NetAppAccountResource account1 = (await netAppAccountCollection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, GetDefaultNetAppAccountParameters())).Value; - VerifyNetAppAccountProperties(account1, true); + NetAppAccountResource account1 = (await netAppAccountCollection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, GetDefaultNetAppAccountParameters(location:DefaultLocation))).Value; + VerifyNetAppAccountProperties(account1, true, location:DefaultLocation); //update diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs index 03151c496a7a8..40118ffea8d94 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs @@ -17,8 +17,7 @@ namespace Azure.ResourceManager.NetApp.Tests public class NetAppResource_NetworkSiblingSetTests: NetAppTestBase { private NetAppAccountCollection _netAppAccountCollection { get => _resourceGroup.GetNetAppAccounts(); } - private readonly string _pool1Name = "pool1"; - //public static new AzureLocation DefaultLocation = AzureLocation.WestUS2; + private readonly string _pool1Name = "pool1"; public static new AzureLocation DefaultLocation = AzureLocation.EastUS2; public static new AzureLocation DefaultLocationString = DefaultLocation; internal NetAppVolumeResource _volumeResource; @@ -64,9 +63,6 @@ public async Task ClearVolumes() await pool.DeleteAsync(WaitUntil.Completed); } await LiveDelay(40000); - //remove - //await _capacityPool.DeleteAsync(WaitUntil.Completed); - //await LiveDelay(40000); await _netAppAccount.DeleteAsync(WaitUntil.Completed); } _resourceGroup = null; diff --git a/sdk/netapp/test-resources.json b/sdk/netapp/test-resources.json new file mode 100644 index 0000000000000..a837d5a0f2b84 --- /dev/null +++ b/sdk/netapp/test-resources.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [ + ] +} From 505fcc795ca716e10ee8a1866d8573404d357a97 Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Wed, 11 Oct 2023 10:51:45 +0000 Subject: [PATCH 08/13] EB.Never missing using ?? --- .../src/Custom/ArmNetAppModelFactory.cs | 1 + .../ResourceTests/NetAppResource_NetworkSiblingSetTests.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs index 9adb8e97ca53e..02ecb3602d1e2 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs @@ -9,6 +9,7 @@ using Azure.ResourceManager.NetApp.Models; using System.Collections.Generic; using System.Linq; +using System.ComponentModel; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs index 40118ffea8d94..44a159d5ce305 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppResource_NetworkSiblingSetTests.cs @@ -17,7 +17,7 @@ namespace Azure.ResourceManager.NetApp.Tests public class NetAppResource_NetworkSiblingSetTests: NetAppTestBase { private NetAppAccountCollection _netAppAccountCollection { get => _resourceGroup.GetNetAppAccounts(); } - private readonly string _pool1Name = "pool1"; + private readonly string _pool1Name = "pool1"; public static new AzureLocation DefaultLocation = AzureLocation.EastUS2; public static new AzureLocation DefaultLocationString = DefaultLocation; internal NetAppVolumeResource _volumeResource; From d8a8143a72cb14c71eac708a36baee73a5d0591d Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Wed, 11 Oct 2023 11:02:25 +0000 Subject: [PATCH 09/13] export api --- .../api/Azure.ResourceManager.NetApp.netstandard2.0.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.netstandard2.0.cs b/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.netstandard2.0.cs index 770918f5bedeb..1675aa53336b3 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.netstandard2.0.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.netstandard2.0.cs @@ -232,6 +232,7 @@ public static partial class NetAppExtensions public static Azure.ResourceManager.NetApp.CapacityPoolResource GetCapacityPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetNetAppAccount(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetNetAppAccountAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.NetAppAccountBackupResource GetNetAppAccountBackupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.NetApp.NetAppAccountResource GetNetAppAccountResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.NetApp.NetAppAccountCollection GetNetAppAccounts(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } @@ -243,6 +244,7 @@ public static partial class NetAppExtensions public static Azure.Pageable GetNetAppQuotaLimits(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetNetAppQuotaLimitsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.NetApp.NetAppSubvolumeInfoResource GetNetAppSubvolumeInfoResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.NetAppVolumeBackupResource GetNetAppVolumeBackupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeGroupResource GetNetAppVolumeGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeQuotaRuleResource GetNetAppVolumeQuotaRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -674,6 +676,7 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.Models.GetGroupIdListForLdapUserResult GetGroupIdListForLdapUserResult(System.Collections.Generic.IEnumerable groupIdsForLdapUser = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppAccountActiveDirectory NetAppAccountActiveDirectory(string activeDirectoryId = null, string username = null, string password = null, string domain = null, string dns = null, Azure.ResourceManager.NetApp.Models.NetAppAccountActiveDirectoryStatus? status = default(Azure.ResourceManager.NetApp.Models.NetAppAccountActiveDirectoryStatus?), string statusDetails = null, string smbServerName = null, string organizationalUnit = null, string site = null, System.Collections.Generic.IEnumerable backupOperators = null, System.Collections.Generic.IEnumerable administrators = null, System.Net.IPAddress kdcIP = null, string adName = null, string serverRootCACertificate = null, bool? isAesEncryptionEnabled = default(bool?), bool? isLdapSigningEnabled = default(bool?), System.Collections.Generic.IEnumerable securityOperators = null, bool? isLdapOverTlsEnabled = default(bool?), bool? allowLocalNfsUsersWithLdap = default(bool?), bool? encryptDCConnections = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppLdapSearchScopeConfiguration ldapSearchScope = null, string preferredServersForLdapClient = null) { throw null; } public static Azure.ResourceManager.NetApp.NetAppAccountData NetAppAccountData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string provisioningState = null, System.Collections.Generic.IEnumerable activeDirectories = null, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption = null, bool? disableShowmount = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.NetAppBackupData NetAppBackupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string backupId = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string provisioningState = null, long? size = default(long?), string label = null, Azure.ResourceManager.NetApp.Models.NetAppBackupType? backupType = default(Azure.ResourceManager.NetApp.Models.NetAppBackupType?), string failureReason = null, string volumeName = null, bool? useExistingSnapshot = default(bool?)) { throw null; } public static Azure.ResourceManager.NetApp.NetAppBackupPolicyData NetAppBackupPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.Core.ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = default(int?), int? weeklyBackupsToKeep = default(int?), int? monthlyBackupsToKeep = default(int?), int? volumesAssigned = default(int?), bool? isEnabled = default(bool?), System.Collections.Generic.IEnumerable volumeBackups = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppCheckAvailabilityResult NetAppCheckAvailabilityResult(bool? isAvailable = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppNameUnavailableReason? reason = default(Azure.ResourceManager.NetApp.Models.NetAppNameUnavailableReason?), string message = null) { throw null; } @@ -686,13 +689,16 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.NetAppSubvolumeInfoData NetAppSubvolumeInfoData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string path = null, long? size = default(long?), string parentPath = null, string provisioningState = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppSubvolumeMetadata NetAppSubvolumeMetadata(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string path = null, string parentPath = null, long? size = default(long?), long? bytesUsed = default(long?), string permissions = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? accessedOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? changedOn = default(System.DateTimeOffset?), string provisioningState = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupDetail NetAppVolumeBackupDetail(string volumeName = null, int? backupsCount = default(int?), bool? isPolicyEnabled = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus = default(Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus?), Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string unhealthyReason = null, string errorMessage = null, long? lastTransferSize = default(long?), string lastTransferType = null, long? totalTransferBytes = default(long?)) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeData NetAppVolumeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable zones = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), System.Guid? networkSiblingSetId = default(System.Guid?), Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity?), System.Collections.Generic.IEnumerable mountTargets = null, string volumeType = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), string unixPermissions = null, int? cloneProgress = default(int?), Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs = default(Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog?), Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore = default(Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore?), System.Collections.Generic.IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = default(bool?), long? defaultUserQuotaInKiBs = default(long?), long? defaultGroupQuotaInKiBs = default(long?), long? maximumNumberOfFiles = default(long?), string volumeGroupName = null, Azure.Core.ResourceIdentifier capacityPoolResourceId = null, Azure.Core.ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = default(bool?), System.Collections.Generic.IEnumerable placementRules = null, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes = default(Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume?), string provisionedAvailabilityZone = null, bool? isLargeVolume = default(bool?), Azure.Core.ResourceIdentifier originatingResourceId = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.NetAppVolumeData NetAppVolumeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable zones = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), System.Guid? networkSiblingSetId = default(System.Guid?), Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity?), System.Collections.Generic.IEnumerable mountTargets = null, string volumeType = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), string unixPermissions = null, int? cloneProgress = default(int?), Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs = default(Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog?), Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore = default(Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore?), System.Collections.Generic.IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = default(bool?), long? defaultUserQuotaInKiBs = default(long?), long? defaultGroupQuotaInKiBs = default(long?), long? maximumNumberOfFiles = default(long?), string volumeGroupName = null, Azure.Core.ResourceIdentifier capacityPoolResourceId = null, Azure.Core.ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = default(bool?), System.Collections.Generic.IEnumerable placementRules = null, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes = default(Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume?), string provisionedAvailabilityZone = null, bool? isLargeVolume = default(bool?), Azure.Core.ResourceIdentifier originatingResourceId = null) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeGroupData NetAppVolumeGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string provisioningState = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupMetadata groupMetaData = null, System.Collections.Generic.IEnumerable volumes = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupMetadata NetAppVolumeGroupMetadata(string groupDescription = null, Azure.ResourceManager.NetApp.Models.NetAppApplicationType? applicationType = default(Azure.ResourceManager.NetApp.Models.NetAppApplicationType?), string applicationIdentifier = null, System.Collections.Generic.IEnumerable globalPlacementRules = null, string deploymentSpecId = null, long? volumesCount = default(long?)) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupResult NetAppVolumeGroupResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string provisioningState = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupMetadata groupMetaData = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), System.Collections.Generic.IDictionary tags = null, System.Collections.Generic.IEnumerable zones = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), System.Guid? networkSiblingSetId = default(System.Guid?), Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity?), System.Collections.Generic.IEnumerable mountTargets = null, string volumeType = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), string unixPermissions = null, int? cloneProgress = default(int?), Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs = default(Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog?), Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore = default(Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore?), System.Collections.Generic.IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = default(bool?), long? defaultUserQuotaInKiBs = default(long?), long? defaultGroupQuotaInKiBs = default(long?), long? maximumNumberOfFiles = default(long?), string volumeGroupName = null, Azure.Core.ResourceIdentifier capacityPoolResourceId = null, Azure.Core.ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = default(bool?), System.Collections.Generic.IEnumerable placementRules = null, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes = default(Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume?), string provisionedAvailabilityZone = null, bool? isLargeVolume = default(bool?), Azure.Core.ResourceIdentifier originatingResourceId = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), System.Collections.Generic.IDictionary tags = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), System.Guid? networkSiblingSetId = default(System.Guid?), Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity?), System.Collections.Generic.IEnumerable mountTargets = null, string volumeType = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection = null, bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), string unixPermissions = null, int? cloneProgress = default(int?), Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs = default(Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog?), Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore = default(Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore?), System.Collections.Generic.IEnumerable dataStoreResourceId = null, bool? isDefaultQuotaEnabled = default(bool?), long? defaultUserQuotaInKiBs = default(long?), long? defaultGroupQuotaInKiBs = default(long?), long? maximumNumberOfFiles = default(long?), string volumeGroupName = null, Azure.Core.ResourceIdentifier capacityPoolResourceId = null, Azure.Core.ResourceIdentifier proximityPlacementGroupId = null, string t2Network = null, string volumeSpecName = null, bool? isEncrypted = default(bool?), System.Collections.Generic.IEnumerable placementRules = null, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes = default(Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume?), string provisionedAvailabilityZone = null, bool? isLargeVolume = default(bool?), Azure.Core.ResourceIdentifier originatingResourceId = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeMountTarget NetAppVolumeMountTarget(System.Guid? mountTargetId = default(System.Guid?), System.Guid fileSystemId = default(System.Guid), System.Net.IPAddress ipAddress = null, string smbServerFqdn = null) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeQuotaRuleData NetAppVolumeQuotaRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.NetApp.Models.NetAppProvisioningState? provisioningState = default(Azure.ResourceManager.NetApp.Models.NetAppProvisioningState?), long? quotaSizeInKiBs = default(long?), Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaType? quotaType = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaType?), string quotaTarget = null) { throw null; } @@ -1330,6 +1336,7 @@ public partial class NetAppVolumeBackupConfiguration { [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public NetAppVolumeBackupConfiguration() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.Core.ResourceIdentifier BackupPolicyId { get { throw null; } set { } } public bool? IsBackupEnabled { get { throw null; } set { } } public bool? IsPolicyEnforced { get { throw null; } set { } } @@ -1343,6 +1350,7 @@ internal NetAppVolumeBackupDetail() { } public bool? IsPolicyEnabled { get { throw null; } } public string VolumeName { get { throw null; } } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class NetAppVolumeBackupPatch { public NetAppVolumeBackupPatch() { } @@ -1502,6 +1510,7 @@ public partial class NetAppVolumePatch : Azure.ResourceManager.Models.TrackedRes public NetAppVolumePatch(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? CoolAccessRetrievalPolicy { get { throw null; } set { } } public int? CoolnessPeriod { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ResourceManager.NetApp.Models.NetAppVolumePatchDataProtection DataProtection { get { throw null; } set { } } public long? DefaultGroupQuotaInKiBs { get { throw null; } set { } } public long? DefaultUserQuotaInKiBs { get { throw null; } set { } } @@ -1520,6 +1529,7 @@ public NetAppVolumePatch(Azure.Core.AzureLocation location) : base (default(Azur public partial class NetAppVolumePatchDataProtection { public NetAppVolumePatchDataProtection() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupConfiguration Backup { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SnapshotPolicyId { get { throw null; } set { } } } From 20d5eac489e7f97e1fe44a7ec4a2309a7548669e Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Wed, 11 Oct 2023 11:15:08 +0000 Subject: [PATCH 10/13] change changelog --- sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md b/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md index bbedde8619cb0..fb1f894d42f06 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md +++ b/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md @@ -7,11 +7,7 @@ - Added `CoolAccessRetrievalPolicy` to `NetAppVolumePatch` and `NetAppVolumeData`, coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. - Added `SmbNonBrowsable` to `NetAppVolumePatch`, enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume - Added `SmbAccessBasedEnumeration` to `NetAppVolumePatch`, Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume -### Breaking Changes - -### Bugs Fixed -### Other Changes ## 1.3.0 (2023-08-15) From 9c457d8b1d45b7a6cfa20b13a803a459e96bb24a Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Wed, 11 Oct 2023 13:49:45 +0000 Subject: [PATCH 11/13] assets --- sdk/netapp/Azure.ResourceManager.NetApp/assets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json index 06b7fe24a30c9..976f5f99cc8b8 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json +++ b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/netapp/Azure.ResourceManager.NetApp", - "Tag": "net/netapp/Azure.ResourceManager.NetApp_f71d3a32bc" + "Tag": "net/netapp/Azure.ResourceManager.NetApp_e6722f7ac0" } From b1ba8471ed0d1f29bb8469eed86e9fa3ea804e36 Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Wed, 11 Oct 2023 16:54:46 +0000 Subject: [PATCH 12/13] assets --- sdk/netapp/Azure.ResourceManager.NetApp/assets.json | 2 +- .../tests/ResourceTests/NetAppAccountTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json index 976f5f99cc8b8..ee91ffa86213e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json +++ b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/netapp/Azure.ResourceManager.NetApp", - "Tag": "net/netapp/Azure.ResourceManager.NetApp_e6722f7ac0" + "Tag": "net/netapp/Azure.ResourceManager.NetApp_b1a144264c" } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs index cedf8da0e5cf6..319c52ff46036 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs @@ -21,7 +21,7 @@ namespace Azure.ResourceManager.NetApp.Tests public class NetAppAccountTests: NetAppTestBase { private const string namePrefix = "testNetAppNetSDKmgmt"; - public static new AzureLocation DefaultLocation = " eastus2euap"; + public static new AzureLocation DefaultLocation = " eastus2"; public NetAppAccountTests(bool isAsync) : base(isAsync) { From 76a0ace2eef7fe6351089aed778dbc9ca68434b4 Mon Sep 17 00:00:00 2001 From: Audunn Baldvinsson Date: Wed, 11 Oct 2023 20:22:54 +0000 Subject: [PATCH 13/13] assets --- sdk/netapp/Azure.ResourceManager.NetApp/assets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json index ee91ffa86213e..8046c2bc76e17 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json +++ b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/netapp/Azure.ResourceManager.NetApp", - "Tag": "net/netapp/Azure.ResourceManager.NetApp_b1a144264c" + "Tag": "net/netapp/Azure.ResourceManager.NetApp_95ca8e249d" }