From ea7dc0d229a404ba85285ec63fe533a94650f051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Au=C3=B0unn?= Date: Mon, 14 Aug 2023 07:56:15 +0000 Subject: [PATCH] [NetAppFiles]Update to 2022-11-01 (#37433) --- .../Azure.ResourceManager.NetApp/CHANGELOG.md | 8 ++ ...e.ResourceManager.NetApp.netstandard2.0.cs | 28 +++++- .../Azure.ResourceManager.NetApp/assets.json | 2 +- .../Samples/Sample_CapacityPoolCollection.cs | 8 +- .../Samples/Sample_CapacityPoolResource.cs | 6 +- .../Sample_NetAppAccountBackupCollection.cs | 6 +- .../Sample_NetAppAccountBackupResource.cs | 4 +- .../Samples/Sample_NetAppAccountCollection.cs | 10 +- .../Samples/Sample_NetAppAccountResource.cs | 12 +-- .../Sample_NetAppBackupPolicyCollection.cs | 8 +- .../Sample_NetAppBackupPolicyResource.cs | 6 +- .../Sample_NetAppSubvolumeInfoCollection.cs | 8 +- .../Sample_NetAppSubvolumeInfoResource.cs | 8 +- .../Sample_NetAppVolumeBackupCollection.cs | 8 +- .../Sample_NetAppVolumeBackupResource.cs | 8 +- .../Samples/Sample_NetAppVolumeCollection.cs | 8 +- .../Sample_NetAppVolumeGroupCollection.cs | 6 +- .../Sample_NetAppVolumeGroupResource.cs | 6 +- .../Sample_NetAppVolumeQuotaRuleCollection.cs | 8 +- .../Sample_NetAppVolumeQuotaRuleResource.cs | 6 +- .../Samples/Sample_NetAppVolumeResource.cs | 71 ++++++++++---- .../Sample_NetAppVolumeSnapshotCollection.cs | 8 +- .../Sample_NetAppVolumeSnapshotResource.cs | 8 +- .../Sample_SnapshotPolicyCollection.cs | 8 +- .../Samples/Sample_SnapshotPolicyResource.cs | 8 +- .../Sample_SubscriptionResourceExtensions.cs | 12 +-- .../src/Generated/ArmNetAppModelFactory.cs | 26 ++++-- ...pIdListForLdapUserResultOperationSource.cs | 31 +++++++ ...pIdListForLdapUserContent.Serialization.cs | 23 +++++ .../GetGroupIdListForLdapUserContent.cs | 29 ++++++ ...upIdListForLdapUserResult.Serialization.cs | 43 +++++++++ .../Models/GetGroupIdListForLdapUserResult.cs | 32 +++++++ .../NetAppAccountPatch.Serialization.cs | 7 ++ .../Generated/Models/NetAppAccountPatch.cs | 2 + .../Models/NetAppVolumeData.Serialization.cs | 23 ++++- .../NetAppVolumeGroupVolume.Serialization.cs | 23 ++++- .../Models/NetAppVolumeGroupVolume.cs | 14 ++- .../Models/NetAppVolumePatch.Serialization.cs | 5 + .../src/Generated/Models/NetAppVolumePatch.cs | 2 + .../NetAppVolumeStorageToNetworkProximity.cs | 3 + .../Models/RegionStorageToNetworkProximity.cs | 12 +++ .../src/Generated/NetAppVolumeData.cs | 14 ++- .../src/Generated/NetAppVolumeResource.cs | 76 +++++++++++++++ .../AccountBackupsRestOperations.cs | 2 +- .../RestOperations/AccountsRestOperations.cs | 2 +- .../BackupPoliciesRestOperations.cs | 2 +- .../RestOperations/BackupsRestOperations.cs | 2 +- ...NetAppResourceQuotaLimitsRestOperations.cs | 2 +- .../NetAppResourceRestOperations.cs | 2 +- .../RestOperations/PoolsRestOperations.cs | 2 +- .../SnapshotPoliciesRestOperations.cs | 2 +- .../RestOperations/SnapshotsRestOperations.cs | 2 +- .../SubvolumesRestOperations.cs | 2 +- .../VolumeGroupsRestOperations.cs | 2 +- .../VolumeQuotaRulesRestOperations.cs | 2 +- .../RestOperations/VolumesRestOperations.cs | 93 ++++++++++++++++++- .../src/autorest.md | 8 +- .../tests/Helpers/NetAppTestBase.cs | 10 +- .../ResourceTests/ANFBackupPolicyTests.cs | 75 ++++++++++++--- .../tests/ResourceTests/ANFBackupTests.cs | 11 ++- .../ResourceTests/ANFBackupTests2022_05.cs | 2 +- .../tests/ResourceTests/NetAppAccountTests.cs | 4 +- .../tests/ResourceTests/RegionInfoTests.cs | 2 +- .../tests/ResourceTests/SnapshotTests.cs | 1 + .../tests/ResourceTests/VolumeTests.cs | 22 ++++- 65 files changed, 734 insertions(+), 162 deletions(-) create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/GetGroupIdListForLdapUserResultOperationSource.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.Serialization.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.Serialization.cs create mode 100644 sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md b/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md index a2798633fa781..d0df60be4e093 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md +++ b/sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md @@ -3,6 +3,14 @@ ## 1.2.0-beta.2 (Unreleased) ### Features Added +- Updated to support ANF api-version 2022-09-01 +- Added `GetGetGroupIdListForLdapUser` to `NetAppVolumeResource` and `NetAppVolumeGroupVolume` to get a list of group Ids for a specific LDAP User +- Added `ActualThroughputMibps` to `NetAppVolumeData` to show actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel +- Added `OriginatingResourceId` to `NetAppVolumeData`, the Id of the snapshot or backup that the volume is restored from. +- Added `Identity` to `NetAppAccountPatch` the identity of the resource +- Added `IsSnapshotDirectoryVisible` to `NetAppVolumePatch`, if enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots +- Added `AcrossT2Value` to `NetAppVolumeStorageToNetworkProximity`, standard AcrossT2 storage to network connectivity. +- Added `AcrossT2Value`, `T1AndAcrossT2Value`, `T2AndAcrossT2Value`, `T1AndT2AndAcrossT2Value` to `RegionStorageToNetworkProximity` enum ### Breaking Changes 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 de9b10d75213d..4829ad57dac33 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 @@ -326,6 +326,7 @@ protected NetAppVolumeCollection() { } public partial class NetAppVolumeData : Azure.ResourceManager.Models.TrackedResourceData { public NetAppVolumeData(Azure.Core.AzureLocation location, string creationToken, long usageThreshold, Azure.Core.ResourceIdentifier subnetId) : base (default(Azure.Core.AzureLocation)) { } + public float? ActualThroughputMibps { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? AvsDataStore { get { throw null; } set { } } public string BackupId { get { throw null; } set { } } public string BaremetalTenantId { get { throw null; } } @@ -359,6 +360,7 @@ public NetAppVolumeData(Azure.Core.AzureLocation location, string creationToken, public System.Collections.Generic.IReadOnlyList MountTargets { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? NetworkFeatures { get { throw null; } set { } } public System.Guid? NetworkSiblingSetId { get { throw null; } } + public Azure.Core.ResourceIdentifier OriginatingResourceId { get { throw null; } } public System.Collections.Generic.IList PlacementRules { get { throw null; } } public System.Collections.Generic.IList ProtocolTypes { get { throw null; } } public string ProvisionedAvailabilityZone { get { throw null; } } @@ -480,6 +482,8 @@ protected NetAppVolumeResource() { } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetBackupStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } 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; } @@ -615,6 +619,7 @@ public static partial class ArmNetAppModelFactory { public static Azure.ResourceManager.NetApp.Models.AvailabilityZoneMapping AvailabilityZoneMapping(string availabilityZone = null, bool? isAvailable = default(bool?)) { throw null; } public static Azure.ResourceManager.NetApp.CapacityPoolData CapacityPoolData(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.Guid? poolId = default(System.Guid?), long size = (long)0, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel), string provisioningState = null, float? totalThroughputMibps = default(float?), float? utilizedThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.CapacityPoolQosType? qosType = default(Azure.ResourceManager.NetApp.Models.CapacityPoolQosType?), bool? isCoolAccessEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.CapacityPoolEncryptionType? encryptionType = default(Azure.ResourceManager.NetApp.Models.CapacityPoolEncryptionType?)) { throw null; } + 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; } 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; } @@ -629,11 +634,11 @@ public static partial class ArmNetAppModelFactory 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?), 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?)) { 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.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?), 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?)) { 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; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeRelocationProperties NetAppVolumeRelocationProperties(bool? isRelocationRequested = default(bool?), bool? isReadyToBeFinalized = default(bool?)) { throw null; } @@ -709,6 +714,16 @@ public CapacityPoolPatch(Azure.Core.AzureLocation location) : base (default(Azur public static bool operator !=(Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume left, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume right) { throw null; } public override string ToString() { throw null; } } + public partial class GetGroupIdListForLdapUserContent + { + public GetGroupIdListForLdapUserContent(string username) { } + public string Username { get { throw null; } } + } + public partial class GetGroupIdListForLdapUserResult + { + internal GetGroupIdListForLdapUserResult() { } + public System.Collections.Generic.IReadOnlyList GroupIdsForLdapUser { get { throw null; } } + } public partial class NetAppAccountActiveDirectory { public NetAppAccountActiveDirectory() { } @@ -770,6 +785,7 @@ public NetAppAccountPatch(Azure.Core.AzureLocation location) : base (default(Azu public System.Collections.Generic.IList ActiveDirectories { get { throw null; } } public bool? DisableShowmount { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption Encryption { get { throw null; } set { } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -1328,6 +1344,7 @@ internal NetAppVolumeGroupResult() { } public partial class NetAppVolumeGroupVolume { public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Azure.Core.ResourceIdentifier subnetId) { } + public float? ActualThroughputMibps { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? AvsDataStore { get { throw null; } set { } } public string BackupId { get { throw null; } set { } } public string BaremetalTenantId { get { throw null; } } @@ -1362,6 +1379,7 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Azure. public string Name { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? NetworkFeatures { get { throw null; } set { } } public System.Guid? NetworkSiblingSetId { get { throw null; } } + public Azure.Core.ResourceIdentifier OriginatingResourceId { get { throw null; } } public System.Collections.Generic.IList PlacementRules { get { throw null; } } public System.Collections.Generic.IList ProtocolTypes { get { throw null; } } public string ProvisionedAvailabilityZone { get { throw null; } } @@ -1402,6 +1420,7 @@ public NetAppVolumePatch(Azure.Core.AzureLocation location) : base (default(Azur public System.Collections.Generic.IList ExportRules { get { throw null; } } public bool? IsCoolAccessEnabled { get { throw null; } set { } } 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 float? ThroughputMibps { get { throw null; } set { } } public string UnixPermissions { get { throw null; } set { } } @@ -1516,6 +1535,7 @@ public NetAppVolumeSnapshotRestoreFilesContent(System.Collections.Generic.IEnume private readonly object _dummy; private readonly int _dummyPrimitive; public NetAppVolumeStorageToNetworkProximity(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity AcrossT2 { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity Default { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity T1 { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity T2 { get { throw null; } } @@ -1535,10 +1555,14 @@ public NetAppVolumeSnapshotRestoreFilesContent(System.Collections.Generic.IEnume private readonly object _dummy; private readonly int _dummyPrimitive; public RegionStorageToNetworkProximity(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity AcrossT2 { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity Default { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity T1 { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity T1AndAcrossT2 { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity T1AndT2 { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity T1AndT2AndAcrossT2 { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity T2 { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity T2AndAcrossT2 { get { throw null; } } public bool Equals(Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json index 1a1ad1dc1b115..fe87c70d890b1 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_a3973f3a19" + "Tag": "net/netapp/Azure.ResourceManager.NetApp_3361636ec4" } 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 c0664077bf762..ae5e3a07b5067 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-09-01/examples/Pools_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Pools_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Pools_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Pools_CreateOrUpdate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 c0eb3ff36b310..bdb83c95f5222 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-09-01/examples/Pools_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Pools_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Pools_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 index 7b01970a69a26..296757f50d5b5 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetAppAccountBackupCollection [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-09-01/examples/Backups_Account_List.json + // 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 @@ -58,7 +58,7 @@ public async Task GetAll_AccountBackupsList() [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-09-01/examples/Backups_Account_Get.json + // 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 @@ -93,7 +93,7 @@ public async Task Get_AccountBackupsGet() [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-09-01/examples/Backups_Account_Get.json + // 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 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 index f6658dd70f441..b287249bcf068 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppAccountBackupResource.cs @@ -22,7 +22,7 @@ public partial class Sample_NetAppAccountBackupResource [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-09-01/examples/Backups_Account_Get.json + // 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 @@ -54,7 +54,7 @@ public async Task Get_AccountBackupsGet() [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-09-01/examples/Backups_Account_Delete.json + // 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 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 b9d29a8fd5884..65c69fc87b231 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-09-01/examples/Accounts_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Accounts_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Accounts_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Accounts_CreateOrUpdate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Accounts_CreateOrUpdateAD.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 d222ca1a9217d..6e39402ed05c1 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-09-01/examples/Accounts_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Accounts_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Accounts_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Accounts_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Accounts_RenewCredentials.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -180,7 +180,7 @@ public async Task RenewCredentials_AccountsRenewCredentials() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVolumeGroups_VolumeGroupsList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeGroups_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_List.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 a249e3c4afa94..6299a30008746 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-09-01/examples/BackupPolicies_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/BackupPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/BackupPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/BackupPolicies_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 3a09c4ed4933e..8ba568e8fab92 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-09-01/examples/BackupPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/BackupPolicies_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/BackupPolicies_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 5c44354573a2b..cab9b19e6e072 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-09-01/examples/Subvolumes_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Subvolumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Subvolumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Subvolumes_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 0d10f5976f4ee..1d71f6a708f0b 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-09-01/examples/Subvolumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Subvolumes_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Subvolumes_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Subvolumes_Metadata.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 index 0a5e244469332..9caa34ff4d0ac 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NetAppVolumeBackupCollection [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-09-01/examples/Backups_List.json + // 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 @@ -61,7 +61,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-09-01/examples/Backups_Get.json + // 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 @@ -98,7 +98,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-09-01/examples/Backups_Get.json + // 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 @@ -131,7 +131,7 @@ public async Task Exists_BackupsGet() [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-09-01/examples/Backups_Create.json + // 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 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 index 6a72785317e50..d958c3f20149e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeBackupResource.cs @@ -23,7 +23,7 @@ public partial class Sample_NetAppVolumeBackupResource [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-09-01/examples/Backups_Get.json + // 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 @@ -57,7 +57,7 @@ public async Task Get_BackupsGet() [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-09-01/examples/Backups_Update.json + // 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 @@ -93,7 +93,7 @@ public async Task Update_BackupsUpdate() [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-09-01/examples/Backups_Delete.json + // 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 @@ -123,7 +123,7 @@ public async Task Delete_BackupsDelete() [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-09-01/examples/Backups_SingleFileRestore.json + // 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 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 5077c076b11de..a328f368443d9 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-09-01/examples/Volumes_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Volumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Volumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Volumes_CreateOrUpdate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 23cdc0c425071..3af01817da5ee 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 @@ -23,7 +23,7 @@ public partial class Sample_NetAppVolumeGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VolumeGroupsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeGroups_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Get.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 @@ -58,7 +58,7 @@ public async Task Get_VolumeGroupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VolumeGroupsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeGroups_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Get.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 @@ -89,7 +89,7 @@ public async Task Exists_VolumeGroupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VolumeGroupsCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeGroups_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Create.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 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 1d9672138c8f2..9ddcdbd991971 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 @@ -23,7 +23,7 @@ public partial class Sample_NetAppVolumeGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VolumeGroupsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeGroups_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Get.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 @@ -55,7 +55,7 @@ public async Task Get_VolumeGroupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VolumeGroupsCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeGroups_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Create.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 @@ -127,7 +127,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-09-01/examples/VolumeGroups_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 0798d23e614a8..3267321ec6392 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-09-01/examples/VolumeQuotaRules_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/VolumeQuotaRules_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/VolumeQuotaRules_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/VolumeQuotaRules_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 7955ac4d59d10..3af085176db5a 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-09-01/examples/VolumeQuotaRules_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/VolumeQuotaRules_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/VolumeQuotaRules_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 d552314a0c27e..77d86d545d685 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-09-01/examples/Volumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Volumes_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Volumes_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -121,7 +121,7 @@ public async Task Delete_VolumesDelete() [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-09-01/examples/Volumes_Revert.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 +154,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-09-01/examples/Volumes_ResetCifsPassword.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 +183,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-09-01/examples/Volumes_BreakFileLocks.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -212,12 +212,43 @@ public async Task BreakFileLocks_VolumesBreakFileLocks() Console.WriteLine($"Succeeded"); } + // GetGroupIdListForUser + [NUnit.Framework.Test] + [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 + // 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 + 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 + GetGroupIdListForLdapUserContent content = new GetGroupIdListForLdapUserContent("user1"); + ArmOperation lro = await netAppVolume.GetGetGroupIdListForLdapUserAsync(WaitUntil.Completed, content); + GetGroupIdListForLdapUserResult result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + // Volumes_BreakReplication [NUnit.Framework.Test] [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-09-01/examples/Volumes_BreakReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -250,7 +281,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-09-01/examples/Volumes_ReestablishReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -283,7 +314,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-09-01/examples/Volumes_ReplicationStatus.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -312,7 +343,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-09-01/examples/Volumes_ListReplications.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -344,7 +375,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-09-01/examples/Volumes_ResyncReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -373,7 +404,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-09-01/examples/Volumes_DeleteReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -402,7 +433,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-09-01/examples/Volumes_AuthorizeReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -435,7 +466,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-09-01/examples/Volumes_ReInitializeReplication.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -464,7 +495,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-09-01/examples/Volumes_PoolChange.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -494,7 +525,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-09-01/examples/Volumes_Relocate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -524,7 +555,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-09-01/examples/Volumes_FinalizeRelocation.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -553,7 +584,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-09-01/examples/Volumes_RevertRelocation.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -582,7 +613,7 @@ public async Task RevertRelocation_VolumesRevertRelocation() [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-09-01/examples/Volumes_BackupStatus.json + // 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 @@ -611,7 +642,7 @@ public async Task GetBackupStatus_VolumesBackupStatus() [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-09-01/examples/Volumes_RestoreStatus.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 6c966fcf7112b..b3feb7cb0fb3e 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-09-01/examples/Snapshots_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Snapshots_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Snapshots_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Snapshots_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 7b0439af26913..b9ba21532a9da 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-09-01/examples/Snapshots_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Snapshots_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Snapshots_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/Snapshots_SingleFileRestore.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 13b7b81516be0..fbc6bfd325e0d 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-09-01/examples/SnapshotPolicies_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/SnapshotPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/SnapshotPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/SnapshotPolicies_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 5c601eb3b90a9..a1f44849d81bf 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-09-01/examples/SnapshotPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/SnapshotPolicies_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/SnapshotPolicies_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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-09-01/examples/SnapshotPolicies_ListVolumes.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 6fdb671838014..2afdd099fc06e 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 @@ -23,7 +23,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-09-01/examples/CheckNameAvailability.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 +50,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-09-01/examples/CheckFilePathAvailability.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 +77,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-09-01/examples/CheckQuotaAvailability.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 +104,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-09-01/examples/RegionInfo.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 @@ -130,7 +130,7 @@ public async Task QueryRegionInfoNetAppResource_RegionInfoQuery() [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-09-01/examples/QuotaLimits_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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 +159,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-09-01/examples/QuotaLimits_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/Generated/ArmNetAppModelFactory.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs index 45eaff9bd602c..dfd885d38d63e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs @@ -192,7 +192,7 @@ public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, st /// 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 (default to true). + /// 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. @@ -200,6 +200,7 @@ public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, st /// 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. @@ -224,8 +225,9 @@ public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, st /// 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, 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) + 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(); @@ -235,7 +237,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, 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); + 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); } /// Initializes a new instance of NetAppVolumeMountTarget. @@ -258,6 +260,16 @@ public static NetAppVolumeRelocationProperties NetAppVolumeRelocationProperties( return new NetAppVolumeRelocationProperties(isRelocationRequested, isReadyToBeFinalized); } + /// Initializes a new instance of GetGroupIdListForLdapUserResult. + /// Group Id list. + /// A new instance for mocking. + public static GetGroupIdListForLdapUserResult GetGroupIdListForLdapUserResult(IEnumerable groupIdsForLdapUser = null) + { + groupIdsForLdapUser ??= new List(); + + return new GetGroupIdListForLdapUserResult(groupIdsForLdapUser?.ToList()); + } + /// Initializes a new instance of NetAppVolumeReplicationStatus. /// Replication health check. /// Status of the mirror relationship. @@ -491,7 +503,7 @@ public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id /// 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 (default to true). + /// 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. @@ -499,6 +511,7 @@ public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id /// 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. @@ -523,8 +536,9 @@ public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id /// 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, 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) + 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(); @@ -533,7 +547,7 @@ public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier 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, 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); + 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); } /// Initializes a new instance of NetAppSubvolumeInfoData. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/GetGroupIdListForLdapUserResultOperationSource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/GetGroupIdListForLdapUserResultOperationSource.cs new file mode 100644 index 0000000000000..2c03f4c7ac178 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/GetGroupIdListForLdapUserResultOperationSource.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 GetGroupIdListForLdapUserResultOperationSource : IOperationSource + { + GetGroupIdListForLdapUserResult IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return GetGroupIdListForLdapUserResult.DeserializeGetGroupIdListForLdapUserResult(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return GetGroupIdListForLdapUserResult.DeserializeGetGroupIdListForLdapUserResult(document.RootElement); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.Serialization.cs new file mode 100644 index 0000000000000..19bf861329fd3 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.Serialization.cs @@ -0,0 +1,23 @@ +// 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 GetGroupIdListForLdapUserContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("username"u8); + writer.WriteStringValue(Username); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.cs new file mode 100644 index 0000000000000..ebe216aa8da6d --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// Get group Id list for LDAP User request. + public partial class GetGroupIdListForLdapUserContent + { + /// Initializes a new instance of GetGroupIdListForLdapUserContent. + /// username is required to fetch the group to which user is part of. + /// is null. + public GetGroupIdListForLdapUserContent(string username) + { + Argument.AssertNotNull(username, nameof(username)); + + Username = username; + } + + /// username is required to fetch the group to which user is part of. + public string Username { get; } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.Serialization.cs new file mode 100644 index 0000000000000..1e3456901ba10 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.Serialization.cs @@ -0,0 +1,43 @@ +// 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 GetGroupIdListForLdapUserResult + { + internal static GetGroupIdListForLdapUserResult DeserializeGetGroupIdListForLdapUserResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> groupIdsForLdapUser = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("groupIdsForLdapUser"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + groupIdsForLdapUser = array; + continue; + } + } + return new GetGroupIdListForLdapUserResult(Optional.ToList(groupIdsForLdapUser)); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs new file mode 100644 index 0000000000000..41b28b325df9c --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs @@ -0,0 +1,32 @@ +// 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 +{ + /// Group Id list for Ldap user. + public partial class GetGroupIdListForLdapUserResult + { + /// Initializes a new instance of GetGroupIdListForLdapUserResult. + internal GetGroupIdListForLdapUserResult() + { + GroupIdsForLdapUser = new ChangeTrackingList(); + } + + /// Initializes a new instance of GetGroupIdListForLdapUserResult. + /// Group Id list. + internal GetGroupIdListForLdapUserResult(IReadOnlyList groupIdsForLdapUser) + { + GroupIdsForLdapUser = groupIdsForLdapUser; + } + + /// Group Id list. + public IReadOnlyList GroupIdsForLdapUser { get; } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.Serialization.cs index c2568956b4893..f31e9d38ce995 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Models; namespace Azure.ResourceManager.NetApp.Models { @@ -15,6 +16,12 @@ public partial class NetAppAccountPatch : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); + } if (Optional.IsCollectionDefined(Tags)) { writer.WritePropertyName("tags"u8); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.cs index 084909e990fab..831b62080970b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.cs @@ -21,6 +21,8 @@ public NetAppAccountPatch(AzureLocation location) : base(location) ActiveDirectories = new ChangeTrackingList(); } + /// The identity used for the resource. + public ManagedServiceIdentity Identity { get; set; } /// Azure lifecycle management. public string ProvisioningState { get; } /// Active Directories. 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 361d988b3fa5a..70917e3a80f02 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 @@ -304,6 +304,7 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element Optional smbNonBrowsable = default; Optional smbContinuouslyAvailable = default; Optional throughputMibps = default; + Optional actualThroughputMibps = default; Optional encryptionKeySource = default; Optional keyVaultPrivateEndpointResourceId = default; Optional ldapEnabled = default; @@ -328,6 +329,7 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element Optional enableSubvolumes = default; Optional provisionedAvailabilityZone = default; Optional isLargeVolume = default; + Optional originatingResourceId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("etag"u8)) @@ -637,6 +639,15 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element throughputMibps = property0.Value.GetSingle(); continue; } + if (property0.NameEquals("actualThroughputMibps"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + actualThroughputMibps = property0.Value.GetSingle(); + continue; + } if (property0.NameEquals("encryptionKeySource"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -861,11 +872,21 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element isLargeVolume = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("originatingResourceId"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + originatingResourceId = null; + continue; + } + originatingResourceId = new ResourceIdentifier(property0.Value.GetString()); + continue; + } } 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(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)); + 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); } } } 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 8c01d7ea99b73..8cc47bd4beec4 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 @@ -290,6 +290,7 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE Optional smbNonBrowsable = default; Optional smbContinuouslyAvailable = default; Optional throughputMibps = default; + Optional actualThroughputMibps = default; Optional encryptionKeySource = default; Optional keyVaultPrivateEndpointResourceId = default; Optional ldapEnabled = default; @@ -314,6 +315,7 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE Optional enableSubvolumes = default; Optional provisionedAvailabilityZone = default; Optional isLargeVolume = default; + Optional originatingResourceId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -594,6 +596,15 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE throughputMibps = property0.Value.GetSingle(); continue; } + if (property0.NameEquals("actualThroughputMibps"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + actualThroughputMibps = property0.Value.GetSingle(); + continue; + } if (property0.NameEquals("encryptionKeySource"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -818,11 +829,21 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE isLargeVolume = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("originatingResourceId"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + originatingResourceId = null; + continue; + } + originatingResourceId = new ResourceIdentifier(property0.Value.GetString()); + continue; + } } 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(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)); + 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); } } } 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 8b8f03fcf6e47..04457cf159a83 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs @@ -58,7 +58,7 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Resour /// 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 (default to true). + /// 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. @@ -66,6 +66,7 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Resour /// 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. @@ -90,7 +91,8 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Resour /// 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. - 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, 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) + /// 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) { Id = id; Name = name; @@ -123,6 +125,7 @@ internal NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceTyp SmbNonBrowsable = smbNonBrowsable; IsSmbContinuouslyAvailable = isSmbContinuouslyAvailable; ThroughputMibps = throughputMibps; + ActualThroughputMibps = actualThroughputMibps; EncryptionKeySource = encryptionKeySource; KeyVaultPrivateEndpointResourceId = keyVaultPrivateEndpointResourceId; IsLdapEnabled = isLdapEnabled; @@ -147,6 +150,7 @@ internal NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceTyp EnableSubvolumes = enableSubvolumes; ProvisionedAvailabilityZone = provisionedAvailabilityZone; IsLargeVolume = isLargeVolume; + OriginatingResourceId = originatingResourceId; } /// Resource Id. @@ -206,7 +210,7 @@ public IList ExportRules public NetAppVolumeDataProtection DataProtection { get; set; } /// Restoring. public bool? IsRestoring { get; set; } - /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (default to true). + /// 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). public bool? IsSnapshotDirectoryVisible { get; set; } /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. public bool? IsKerberosEnabled { get; set; } @@ -222,6 +226,8 @@ public IList ExportRules public bool? IsSmbContinuouslyAvailable { get; set; } /// 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; } + /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. + public float? ActualThroughputMibps { get; } /// 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'. public NetAppEncryptionKeySource? EncryptionKeySource { get; set; } /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. @@ -270,5 +276,7 @@ public IList ExportRules public string ProvisionedAvailabilityZone { get; } /// Specifies whether volume is a Large Volume or Regular Volume. public bool? IsLargeVolume { get; set; } + /// Id of the snapshot or backup that the volume is restored from. + public ResourceIdentifier OriginatingResourceId { get; } } } 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 0abc3122960f0..1becfbaf51bde 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,6 +92,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("coolnessPeriod"u8); writer.WriteNumberValue(CoolnessPeriod.Value); } + if (Optional.IsDefined(IsSnapshotDirectoryVisible)) + { + writer.WritePropertyName("snapshotDirectoryVisible"u8); + writer.WriteBooleanValue(IsSnapshotDirectoryVisible.Value); + } 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 d22433d71429c..a6b1d188828e8 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.cs @@ -53,5 +53,7 @@ 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; } + /// 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; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeStorageToNetworkProximity.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeStorageToNetworkProximity.cs index b34010ebcba45..7544887c1887d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeStorageToNetworkProximity.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeStorageToNetworkProximity.cs @@ -25,6 +25,7 @@ public NetAppVolumeStorageToNetworkProximity(string value) private const string DefaultValue = "Default"; private const string T1Value = "T1"; private const string T2Value = "T2"; + private const string AcrossT2Value = "AcrossT2"; /// Basic storage to network connectivity. public static NetAppVolumeStorageToNetworkProximity Default { get; } = new NetAppVolumeStorageToNetworkProximity(DefaultValue); @@ -32,6 +33,8 @@ public NetAppVolumeStorageToNetworkProximity(string value) public static NetAppVolumeStorageToNetworkProximity T1 { get; } = new NetAppVolumeStorageToNetworkProximity(T1Value); /// Standard T2 storage to network connectivity. public static NetAppVolumeStorageToNetworkProximity T2 { get; } = new NetAppVolumeStorageToNetworkProximity(T2Value); + /// Standard AcrossT2 storage to network connectivity. + public static NetAppVolumeStorageToNetworkProximity AcrossT2 { get; } = new NetAppVolumeStorageToNetworkProximity(AcrossT2Value); /// Determines if two values are the same. public static bool operator ==(NetAppVolumeStorageToNetworkProximity left, NetAppVolumeStorageToNetworkProximity right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionStorageToNetworkProximity.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionStorageToNetworkProximity.cs index ddbfe001a9610..8f1e6414717d5 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionStorageToNetworkProximity.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionStorageToNetworkProximity.cs @@ -25,7 +25,11 @@ public RegionStorageToNetworkProximity(string value) private const string DefaultValue = "Default"; private const string T1Value = "T1"; private const string T2Value = "T2"; + private const string AcrossT2Value = "AcrossT2"; private const string T1AndT2Value = "T1AndT2"; + private const string T1AndAcrossT2Value = "T1AndAcrossT2"; + private const string T2AndAcrossT2Value = "T2AndAcrossT2"; + private const string T1AndT2AndAcrossT2Value = "T1AndT2AndAcrossT2"; /// Basic network connectivity. public static RegionStorageToNetworkProximity Default { get; } = new RegionStorageToNetworkProximity(DefaultValue); @@ -33,8 +37,16 @@ public RegionStorageToNetworkProximity(string value) public static RegionStorageToNetworkProximity T1 { get; } = new RegionStorageToNetworkProximity(T1Value); /// Standard T2 network connectivity. public static RegionStorageToNetworkProximity T2 { get; } = new RegionStorageToNetworkProximity(T2Value); + /// Standard AcrossT2 network connectivity. + public static RegionStorageToNetworkProximity AcrossT2 { get; } = new RegionStorageToNetworkProximity(AcrossT2Value); /// Standard T1 and T2 network connectivity. public static RegionStorageToNetworkProximity T1AndT2 { get; } = new RegionStorageToNetworkProximity(T1AndT2Value); + /// Standard T1 and AcrossT2 network connectivity. + public static RegionStorageToNetworkProximity T1AndAcrossT2 { get; } = new RegionStorageToNetworkProximity(T1AndAcrossT2Value); + /// Standard T2 and AcrossT2 network connectivity. + public static RegionStorageToNetworkProximity T2AndAcrossT2 { get; } = new RegionStorageToNetworkProximity(T2AndAcrossT2Value); + /// Standard T1, T2 and AcrossT2 network connectivity. + public static RegionStorageToNetworkProximity T1AndT2AndAcrossT2 { get; } = new RegionStorageToNetworkProximity(T1AndT2AndAcrossT2Value); /// Determines if two values are the same. public static bool operator ==(RegionStorageToNetworkProximity left, RegionStorageToNetworkProximity right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs index a7bab967163a5..a923ac90f5a05 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs @@ -69,7 +69,7 @@ public NetAppVolumeData(AzureLocation location, string creationToken, long usage /// 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 (default to true). + /// 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. @@ -77,6 +77,7 @@ public NetAppVolumeData(AzureLocation location, string creationToken, long usage /// 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. @@ -101,7 +102,8 @@ public NetAppVolumeData(AzureLocation location, string creationToken, long usage /// 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. - 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, 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) : base(id, name, resourceType, systemData, tags, location) + /// 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) { ETag = etag; Zones = zones; @@ -132,6 +134,7 @@ internal NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resou SmbNonBrowsable = smbNonBrowsable; IsSmbContinuouslyAvailable = isSmbContinuouslyAvailable; ThroughputMibps = throughputMibps; + ActualThroughputMibps = actualThroughputMibps; EncryptionKeySource = encryptionKeySource; KeyVaultPrivateEndpointResourceId = keyVaultPrivateEndpointResourceId; IsLdapEnabled = isLdapEnabled; @@ -156,6 +159,7 @@ internal NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resou EnableSubvolumes = enableSubvolumes; ProvisionedAvailabilityZone = provisionedAvailabilityZone; IsLargeVolume = isLargeVolume; + OriginatingResourceId = originatingResourceId; } /// A unique read-only string that changes whenever the resource is updated. @@ -211,7 +215,7 @@ public IList ExportRules public NetAppVolumeDataProtection DataProtection { get; set; } /// Restoring. public bool? IsRestoring { get; set; } - /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (default to true). + /// 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). public bool? IsSnapshotDirectoryVisible { get; set; } /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. public bool? IsKerberosEnabled { get; set; } @@ -227,6 +231,8 @@ public IList ExportRules public bool? IsSmbContinuouslyAvailable { get; set; } /// 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; } + /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. + public float? ActualThroughputMibps { get; } /// 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'. public NetAppEncryptionKeySource? EncryptionKeySource { get; set; } /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. @@ -275,5 +281,7 @@ public IList ExportRules public string ProvisionedAvailabilityZone { get; } /// Specifies whether volume is a Large Volume or Regular Volume. public bool? IsLargeVolume { get; set; } + /// Id of the snapshot or backup that the volume is restored from. + public ResourceIdentifier OriginatingResourceId { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs index 0ac208fe22dd6..d6b5b44f5d72c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs @@ -729,6 +729,82 @@ public virtual ArmOperation BreakFileLocks(WaitUntil waitUntil, NetAppVolumeBrea } } + /// + /// Returns the list of group Ids for a specific LDAP User + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser + /// + /// + /// Operation Id + /// Volumes_ListGetGroupIdListForLdapUser + /// + /// + /// + /// 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. + /// Returns group Id list for a specific LDAP user. + /// The cancellation token to use. + /// is null. + public virtual async Task> GetGetGroupIdListForLdapUserAsync(WaitUntil waitUntil, GetGroupIdListForLdapUserContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetGetGroupIdListForLdapUser"); + scope.Start(); + try + { + var response = await _netAppVolumeVolumesRestClient.ListGetGroupIdListForLdapUserAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(new GetGroupIdListForLdapUserResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateListGetGroupIdListForLdapUserRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Returns the list of group Ids for a specific LDAP User + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser + /// + /// + /// Operation Id + /// Volumes_ListGetGroupIdListForLdapUser + /// + /// + /// + /// 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. + /// Returns group Id list for a specific LDAP user. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation GetGetGroupIdListForLdapUser(WaitUntil waitUntil, GetGroupIdListForLdapUserContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetGetGroupIdListForLdapUser"); + scope.Start(); + try + { + var response = _netAppVolumeVolumesRestClient.ListGetGroupIdListForLdapUser(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new NetAppArmOperation(new GetGroupIdListForLdapUserResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateListGetGroupIdListForLdapUserRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Break the replication connection on the destination volume /// diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountBackupsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountBackupsRestOperations.cs index 24e1bb7fe9385..d2dae0a2e5d56 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountBackupsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountBackupsRestOperations.cs @@ -33,7 +33,7 @@ public AccountBackupsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 a46281abccba9..af5c67702efe9 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 44e4cfb17f981..559c83cc8e8f8 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 b51ae8f8f6088..82711e175f306 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs @@ -33,7 +33,7 @@ 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 784125a83a2cd..e85f084752c32 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 4b256b6731e17..b19042e0df76f 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 583e3d4a1e8e9..c8fa65008ad19 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 3bb3ef46b8f2b..31ce65e112a5b 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 5d17fb5aba0a8..04b740ef5b3d2 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 6713d8b7da285..d9e6857f387b9 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 f6931b027a598..35f7fa97e6c2b 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 33ddc5b39d4d3..5e00eef847677 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 c8812806df0ee..eee2712f9fe0e 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-09-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -748,6 +748,97 @@ public Response BreakFileLocks(string subscriptionId, string resourceGroupName, } } + internal HttpMessage CreateListGetGroupIdListForLdapUserRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, GetGroupIdListForLdapUserContent 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("/getGroupIdListForLdapUser", 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; + } + + /// Returns the list of group Ids for a specific LDAP User. + /// 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. + /// Returns group Id list for a specific LDAP user. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task ListGetGroupIdListForLdapUserAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, GetGroupIdListForLdapUserContent 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.AssertNotNull(content, nameof(content)); + + using var message = CreateListGetGroupIdListForLdapUserRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, 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); + } + } + + /// Returns the list of group Ids for a specific LDAP User. + /// 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. + /// Returns group Id list for a specific LDAP user. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response ListGetGroupIdListForLdapUser(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, GetGroupIdListForLdapUserContent 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.AssertNotNull(content, nameof(content)); + + using var message = CreateListGetGroupIdListForLdapUserRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateBreakReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakReplicationContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/autorest.md b/sdk/netapp/Azure.ResourceManager.NetApp/src/autorest.md index 340d7f8011b14..c5a79a00970fe 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/7dcd41cd28d46eb256bac034760a7e2f0a036238/specification/netapp/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/f14f1d17370ed1d56f06d8933f434832b3f0a618/specification/netapp/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true @@ -127,7 +127,9 @@ rename-mapping: Volume.properties.smbContinuouslyAvailable: IsSmbContinuouslyAvailable Volume.properties.ldapEnabled: IsLdapEnabled Volume.properties.encrypted: IsEncrypted - Volume.properties.dataStoreResourceId: -|arm-id + Volume.properties.dataStoreResourceId: -|arm-id + Volume.properties.originatingResourceId: -|arm-id + VolumePatch.properties.snapshotDirectoryVisible: IsSnapshotDirectoryVisible VolumeGroupVolumeProperties.properties.proximityPlacementGroup: ProximityPlacementGroupId|arm-id VolumeGroupVolumeProperties.properties.coolAccess: IsCoolAccessEnabled VolumeGroupVolumeProperties.properties.snapshotDirectoryVisible: IsSnapshotDirectoryVisible @@ -136,6 +138,7 @@ rename-mapping: VolumeGroupVolumeProperties.properties.smbContinuouslyAvailable: IsSmbContinuouslyAvailable VolumeGroupVolumeProperties.properties.ldapEnabled: IsLdapEnabled VolumeGroupVolumeProperties.properties.encrypted: IsEncrypted + VolumeGroupVolumeProperties.properties.originatingResourceId: -|arm-id VolumeGroupVolumeProperties.id: -|arm-id VolumeGroupVolumeProperties.type: ResourceType|resource-type VolumeGroupVolumeProperties: NetAppVolumeGroupVolume @@ -221,6 +224,7 @@ rename-mapping: BackupRestoreFiles: NetAppVolumeBackupBackupRestoreFilesContent VolumeRelocationProperties: NetAppVolumeRelocationProperties FileAccessLogs: NetAppFileAccessLog + GetGroupIdListForLdapUserResponse: GetGroupIdListForLdapUserResult list-exception: - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Helpers/NetAppTestBase.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Helpers/NetAppTestBase.cs index 1d9e863cc2831..6914ddeaa7b69 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Helpers/NetAppTestBase.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Helpers/NetAppTestBase.cs @@ -175,10 +175,9 @@ public static void VerifyNetAppAccountProperties(NetAppAccountResource account, Assert.AreEqual(location, account.Data.Location.ToString()); Assert.NotNull(account.Data.Tags); - Assert.AreEqual(DefaultTags.Count, account.Data.Tags.Count); - foreach (var tag in account.Data.Tags) + foreach (var tag in DefaultTags) { - Assert.AreEqual(DefaultTags[tag.Key], tag.Value); + Assert.AreEqual(account.Data.Tags[tag.Key], tag.Value); } } } @@ -227,10 +226,9 @@ public static void VerifyCapacityPoolProperties(CapacityPoolResource pool, bool Assert.AreEqual(DefaultLocation, pool.Data.Location); Assert.NotNull(pool.Data.Tags); - Assert.AreEqual(DefaultTags.Count, pool.Data.Tags.Count); - foreach (var tag in pool.Data.Tags) + foreach (var tag in DefaultTags) { - Assert.AreEqual(DefaultTags[tag.Key], tag.Value); + Assert.AreEqual(pool.Data.Tags[tag.Key], tag.Value); } Assert.AreEqual(NetAppFileServiceLevel.Premium, pool.Data.ServiceLevel); Assert.AreEqual(_poolSize, pool.Data.Size); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupPolicyTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupPolicyTests.cs index a11121e0fb029..afb939d2ede5d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupPolicyTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupPolicyTests.cs @@ -10,11 +10,17 @@ using Azure.ResourceManager.NetApp.Tests.Helpers; using FluentAssertions; using NUnit.Framework; +using Polly.Contrib.WaitAndRetry; +using Polly; +using Azure.Core; namespace Azure.ResourceManager.NetApp.Tests { public class ANFBackupPolicyTests : NetAppTestBase { + private NetAppAccountCollection _netAppAccountCollection { get => _resourceGroup.GetNetAppAccounts(); } + //public static new AzureLocation DefaultLocation = AzureLocation.EastUS2; + public static new AzureLocation DefaultLocationString = DefaultLocation; internal NetAppBackupPolicyCollection _backupPolicyCollection { get => _netAppAccount.GetNetAppBackupPolicies(); } internal readonly NetAppBackupPolicyData _backupPolicy = new NetAppBackupPolicyData(DefaultLocation) @@ -32,10 +38,9 @@ public ANFBackupPolicyTests(bool isAsync) : base(isAsync) [SetUp] public async Task SetUp() { - _resourceGroup = await CreateResourceGroupAsync(); + _resourceGroup = await CreateResourceGroupAsync(location: DefaultLocation); string accountName = await CreateValidAccountNameAsync(_accountNamePrefix, _resourceGroup, DefaultLocation); - NetAppAccountCollection netAppAccountCollection = _resourceGroup.GetNetAppAccounts(); - _netAppAccount = (await netAppAccountCollection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, GetDefaultNetAppAccountParameters())).Value; + _netAppAccount = (await _netAppAccountCollection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, GetDefaultNetAppAccountParameters(location: DefaultLocation))).Value; } [TearDown] @@ -57,7 +62,7 @@ public async Task ClearBackupPolicies() _resourceGroup = null; } - [Ignore("Permission issue, disable this case temporary")] + //[Ignore("Permission issue, disable this case temporary")] [RecordedTest] public async Task CreateDeleteBackupPolicy() { @@ -90,7 +95,6 @@ public async Task CreateDeleteBackupPolicy() Assert.AreEqual(404, exception.Status); } - [Ignore("Permission issue, disable this case temporary")] [RecordedTest] public async Task ListBackupPolicies() { @@ -129,7 +133,6 @@ public async Task ListBackupPolicies() Assert.IsFalse(await _backupPolicyCollection.ExistsAsync(backupPolicyName + "1")); } - [Ignore("Permission issue, disable this case temporary")] [RecordedTest] public async Task UpdateBackupPolicy() { @@ -140,7 +143,7 @@ public async Task UpdateBackupPolicy() //Update with patch NetAppBackupPolicyPatch backupPolicyPatch = new(DefaultLocation); - backupPolicyPatch.DailyBackupsToKeep = 1; + backupPolicyPatch.DailyBackupsToKeep = 2; NetAppBackupPolicyResource backupPolicyPatchedResource = (await backupPolicyResource1.UpdateAsync(WaitUntil.Completed, backupPolicyPatch)).Value; NetAppBackupPolicyResource backupPolicyPatchedResource2 = await _backupPolicyCollection.GetAsync(backupPolicyName); Assert.AreEqual(backupPolicyName, backupPolicyPatchedResource2.Id.Name); @@ -150,10 +153,11 @@ public async Task UpdateBackupPolicy() Assert.AreEqual(_backupPolicy.IsEnabled, backupPolicyPatchedResource2.Data.IsEnabled); } - [Ignore("Permission issue, disable this case temporary")] [RecordedTest] + [Ignore("Ignore for now due to service side issue, re-enable when service side issue is fixed")] public async Task CreateVolumeWithBackupPolicy() { + Console.WriteLine($"{DateTime.Now.ToLongTimeString()} CreateVolumeWithBackupPolicyTest "); //create CapacityPool var backupPolicyName = Recording.GenerateAssetName("backupPolicy-"); NetAppBackupPolicyResource backupPolicyResource1 = await CreateBackupPolicy(DefaultLocation, backupPolicyName); @@ -162,12 +166,12 @@ public async Task CreateVolumeWithBackupPolicy() //create capacity pool _capacityPool = await CreateCapacityPool(DefaultLocation, NetAppFileServiceLevel.Premium, _poolSize); _volumeCollection = _capacityPool.GetNetAppVolumes(); - //Create volume var volumeName = Recording.GenerateAssetName("volumeName-"); NetAppVolumeBackupConfiguration backupPolicyProperties = new() { BackupPolicyId = backupPolicyResource1.Id, IsPolicyEnforced = false, IsBackupEnabled = true }; NetAppVolumeDataProtection dataProtectionProperties = new() { Backup = backupPolicyProperties}; - await CreateVirtualNetwork(); + //create vnet for volume + await CreateVirtualNetwork(location: DefaultLocation); NetAppVolumeResource volumeResource1 = await CreateVolume(DefaultLocation, NetAppFileServiceLevel.Premium, _defaultUsageThreshold, volumeName, subnetId:DefaultSubnetId, dataProtection: dataProtectionProperties); //Validate if created properly @@ -177,8 +181,15 @@ public async Task CreateVolumeWithBackupPolicy() Assert.IsNull(backupVolumeResource.Data.DataProtection.Replication); Assert.AreEqual(backupPolicyProperties.BackupPolicyId, backupVolumeResource.Data.DataProtection.Backup.BackupPolicyId); - await volumeResource1.DeleteAsync(WaitUntil.Completed); + //Disable backupPolicy to avoid server side issue + backupPolicyProperties = new() { BackupPolicyId = null, IsPolicyEnforced = false, IsBackupEnabled = false }; + NetAppVolumePatch parameters = new(DefaultLocation); + NetAppVolumePatchDataProtection patchDataProtection = new() { Backup = backupPolicyProperties }; + parameters.DataProtection = patchDataProtection; + volumeResource1 = (await volumeResource1.UpdateAsync(WaitUntil.Completed, parameters)).Value; await LiveDelay(40000); + await volumeResource1.DeleteAsync(WaitUntil.Completed); + await WaitForVolumeDeleted(_volumeCollection, volumeResource1); await _capacityPool.DeleteAsync(WaitUntil.Completed); } @@ -187,5 +198,47 @@ protected async Task CreateBackupPolicy(string locat NetAppBackupPolicyResource backupPolicyResource = (await _backupPolicyCollection.CreateOrUpdateAsync(WaitUntil.Completed, name, _backupPolicy)).Value; return backupPolicyResource; } + + private async Task WaitForVolumeDeleted(NetAppVolumeCollection volumeCollection, NetAppVolumeResource volumeResource = null) + { + Console.WriteLine($"{DateTime.Now.ToLongTimeString()} Wait for volume deletion {volumeResource.Id.Name}"); + var maxDelay = TimeSpan.FromSeconds(120); + int count = 0; + if (Environment.GetEnvironmentVariable("AZURE_TEST_MODE") == "Playback") + { + maxDelay = TimeSpan.FromMilliseconds(500); + } + + IEnumerable delay = Backoff.DecorrelatedJitterBackoffV2(medianFirstRetryDelay: TimeSpan.FromSeconds(5), retryCount: 500) + .Select(s => TimeSpan.FromTicks(Math.Min(s.Ticks, maxDelay.Ticks))); // use jitter strategy in the retry algorithm to prevent retries bunching into further spikes of load, with ceiling on delays (for larger retrycount) + + Polly.Retry.AsyncRetryPolicy retryPolicy = Policy + .HandleResult(false) // retry if delegate executed asynchronously returns false + .WaitAndRetryAsync(delay); + + try + { + await retryPolicy.ExecuteAsync(async () => + { + count++; + bool exists = await volumeCollection.ExistsAsync(volumeResource.Id.Name); + Console.WriteLine($"{DateTime.Now.ToLongTimeString()} Check if volume {volumeResource.Id.Name} exists {exists} "); + if (exists) + { + return true; + } + else + { + //retry + return false; + } + }); + } + catch (Exception ex) + { + Console.WriteLine($"Final Throw {ex.Message}"); + throw; + } + } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupTests.cs index 24562c5bb2f3e..8cd057f6d32c8 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupTests.cs @@ -21,7 +21,7 @@ public class ANFBackupTests: 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.EastUS; + public static new AzureLocation DefaultLocation = AzureLocation.EastUS2; public static new AzureLocation DefaultLocationString = DefaultLocation; internal NetAppAccountBackupCollection _accountBackupCollection; internal NetAppVolumeBackupCollection _volumeBackupCollection; @@ -113,7 +113,7 @@ public async Task ClearVolumes() _resourceGroup = null; } - //[Ignore("Ignore for now due to service side issue, re-enable when service side issue is fixed")] + [Ignore("Ignore for now due to service side issue, re-enable when service side issue is fixed")] [RecordedTest] public async Task CreateDeleteBackup() { @@ -201,6 +201,7 @@ public async Task CreateDeleteBackup() Assert.AreEqual(404, exception.Status); } + [Ignore("Ignore for now due to service side issue, re-enable when service side issue is fixed")] [RecordedTest] public async Task UpdateBackup() { @@ -255,6 +256,7 @@ public async Task UpdateBackup() //Assert.AreEqual(backupPatch.Label, backupResource4.Data.Label); } + [Ignore("Ignore for now due to service side issue, re-enable when service side issue is fixed")] [RecordedTest] public async Task ListBackups() { @@ -318,6 +320,7 @@ public async Task ListBackups() backup2Resource3.Should().BeEquivalentTo(backup2Resource2); } + [Ignore("Ignore for now due to service side issue, re-enable when service side issue is fixed")] [RecordedTest] public async Task ListAccountBackups() { @@ -386,7 +389,7 @@ public async Task ListAccountBackups() accountBackup2Resource3.Should().BeEquivalentTo(accountBackup2Resource2); } - //[Ignore("Ignore for now due to service side issue, re-enable when service side issue is fixed")] + [Ignore("Ignore for now due to service side issue, re-enable when service side issue is fixed")] [RecordedTest] public async Task GetBackupStatus() { @@ -437,7 +440,7 @@ public async Task GetBackupStatus() Assert.AreEqual(NetAppMirrorState.Mirrored, backupStatus.MirrorState); } - //[Ignore("Ignore for now due to service side issue, re-enable when service side issue is fixed")] + [Ignore("Ignore for now due to service side issue, re-enable when service side issue is fixed")] [RecordedTest] public async Task CreateVolumeFromBackupCheckRestoreStatus() { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupTests2022_05.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupTests2022_05.cs index 3cefeb6098772..2368d7ae41d3f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupTests2022_05.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBackupTests2022_05.cs @@ -118,7 +118,7 @@ public async Task ClearVolumes() _resourceGroup = null; } - [Ignore("Permission issue, disable this case temporary")] + [Ignore("Ignore for now due to service side issue, re-enable when service side issue is fixed")] [RecordedTest] public async Task CreateVolumWithBackupConfigWithVaultIdShouldWorkUsing2022_05_01() { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs index 992874cbd39d0..806466c68c6b1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs @@ -47,6 +47,7 @@ public async Task NetAppAccountGetOperations() { ArmRestApiCollection operationCollection = DefaultSubscription.GetArmRestApis("Microsoft.NetApp"); List apiList = await operationCollection.GetAllAsync().ToEnumerableAsync(); + await LiveDelay(200); Assert.IsTrue(apiList.Count() > 1); } @@ -193,8 +194,9 @@ public async Task GetAllNetAppAccountsByResourceGroup() VerifyNetAppAccountProperties(account4, true); } + [Ignore("ARM issue with nextLink ignore temporarly")] [RecordedTest] - public async Task GetAllNetAppAccountsBySubscriptionResourceGroup() + public async Task GetAllNetAppAccountsBySubscription() { //create 2 resource groups and 2 NetApp accounts _resourceGroup = await CreateResourceGroupAsync(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/RegionInfoTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/RegionInfoTests.cs index f7df7c133ceb0..efd6ada19f9b4 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/RegionInfoTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/RegionInfoTests.cs @@ -25,7 +25,7 @@ public async Task SetUp() _resourceGroup = await CreateResourceGroupAsync(); } - [Ignore("Ignore for now due to manifest issue, re-enable when manifest is fixed")] + //[Ignore("Ignore for now due to manifest issue, re-enable when manifest is fixed")] [RecordedTest] public async Task QueryRegionInfoTest() { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/SnapshotTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/SnapshotTests.cs index 027c09fd4c160..9dcead9e49c19 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/SnapshotTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/SnapshotTests.cs @@ -177,6 +177,7 @@ public async Task CreateVolumeFromSnapshot() Assert.AreEqual(404, exception.Status); Assert.IsTrue(await _snapshotCollection.ExistsAsync(snapshotName)); Assert.IsFalse(await _snapshotCollection.ExistsAsync(snapshotName + "1")); + await LiveDelay(10000); } [RecordedTest] diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/VolumeTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/VolumeTests.cs index 62ccb5729f93d..96a1176be2a66 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/VolumeTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/VolumeTests.cs @@ -140,6 +140,7 @@ public async Task UpdateVolume() var keyValue = new KeyValuePair("Tag2", "value2"); parameters.Tags.InitializeFrom(DefaultTags); parameters.Tags.Add(keyValue); + parameters.IsSnapshotDirectoryVisible = false; volumeResource1 = (await volumeResource1.UpdateAsync(WaitUntil.Completed, parameters)).Value; volumeResource1.Data.Tags.Should().Contain(keyValue); @@ -148,7 +149,7 @@ public async Task UpdateVolume() volumeResource3.Data.Tags.Should().Contain(keyValue); KeyValuePair keyValuePair = new("key1", DefaultTags["key1"]); volumeResource3.Data.Tags.Should().Contain(keyValuePair); - + Assert.IsFalse(volumeResource3.Data.IsSnapshotDirectoryVisible); //usageThreshold should not change Assert.AreEqual(volumeResource3.Data.UsageThreshold, volumeResource3.Data.UsageThreshold); } @@ -573,6 +574,25 @@ public async Task BreakFileLocksVolumeNoFiles() await volumeResource1.BreakFileLocksAsync(WaitUntil.Completed, parameters); } + [RecordedTest] + public async Task GetGetGroupIdListForLdapUserNonLDAPVolumeShouldReturnError() + { + //create volume + string volumeName = Recording.GenerateAssetName("volumeName-"); + await CreateVirtualNetwork(); + NetAppVolumeResource volumeResource1 = await CreateVolume(DefaultLocation, NetAppFileServiceLevel.Premium, _defaultUsageThreshold, volumeName: volumeName); + VerifyVolumeProperties(volumeResource1, true); + volumeResource1.Should().BeEquivalentTo((await volumeResource1.GetAsync()).Value); + //validate if created successfully + NetAppVolumeResource volumeResource2 = await _volumeCollection.GetAsync(volumeResource1.Data.Name.Split('/').Last()); + VerifyVolumeProperties(volumeResource2, true); + + //Call break file locks + GetGroupIdListForLdapUserContent parameters = new("fakeUser"); + RequestFailedException exception = Assert.ThrowsAsync(async () => { await volumeResource1.GetGetGroupIdListForLdapUserAsync(WaitUntil.Completed, parameters); }); + Assert.AreEqual(400, exception.Status); + } + private async Task WaitForReplicationStatus(NetAppVolumeResource volumeResource, NetAppMirrorState mirrorState) { var maxDelay = TimeSpan.FromSeconds(240);