diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.net8.0.cs b/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.net8.0.cs index b3d78a540a1d..cf5d48e6d500 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.net8.0.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.net8.0.cs @@ -27,6 +27,7 @@ public partial class CapacityPoolData : Azure.ResourceManager.Models.TrackedReso { public CapacityPoolData(Azure.Core.AzureLocation location, long size, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel serviceLevel) { } public float? CustomThroughputMibps { get { throw null; } set { } } + public int? CustomThroughputMibpsInt { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.CapacityPoolEncryptionType? EncryptionType { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } } public bool? IsCoolAccessEnabled { get { throw null; } set { } } @@ -126,7 +127,6 @@ public NetAppAccountData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption Encryption { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.LdapConfiguration LdapConfiguration { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.MultiAdStatus? MultiAdStatus { get { throw null; } } public string NfsV4IdDomain { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } @@ -387,60 +387,6 @@ protected NetAppBackupVaultResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppBackupVaultPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppBackupVaultPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class NetAppBucketCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected NetAppBucketCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string bucketName, Azure.ResourceManager.NetApp.NetAppBucketData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string bucketName, Azure.ResourceManager.NetApp.NetAppBucketData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class NetAppBucketData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketData() { } - public Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser FileSystemUser { get { throw null; } set { } } - public string Path { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketPermission? Permissions { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketServerProperties Server { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus? Status { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.NetAppBucketData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.NetAppBucketData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppBucketResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected NetAppBucketResource() { } - public virtual Azure.ResourceManager.NetApp.NetAppBucketData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GenerateCredentials(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialsExpiry body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GenerateCredentialsAsync(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialsExpiry body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.NetApp.NetAppBucketData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.NetAppBucketData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppBucketPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppBucketPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public static partial class NetAppExtensions { public static Azure.Response CheckNetAppFilePathAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.NetApp.Models.NetAppFilePathAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -461,7 +407,6 @@ public static partial class NetAppExtensions public static Azure.ResourceManager.NetApp.NetAppBackupPolicyResource GetNetAppBackupPolicyResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.NetApp.NetAppBackupVaultBackupResource GetNetAppBackupVaultBackupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.NetApp.NetAppBackupVaultResource GetNetAppBackupVaultResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.NetApp.NetAppBucketResource GetNetAppBucketResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetNetAppQuotaLimit(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string quotaLimitName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetNetAppQuotaLimitAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string quotaLimitName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetNetAppQuotaLimits(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -641,8 +586,6 @@ public NetAppVolumeData(Azure.Core.AzureLocation location, string creationToken, public bool? IsSmbEncryptionEnabled { get { throw null; } set { } } public bool? IsSnapshotDirectoryVisible { get { throw null; } set { } } public Azure.Core.ResourceIdentifier KeyVaultPrivateEndpointResourceId { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage? Language { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.LdapServerType? LdapServerType { get { throw null; } set { } } public long? MaximumNumberOfFiles { get { throw null; } } public System.Collections.Generic.IReadOnlyList MountTargets { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? NetworkFeatures { get { throw null; } set { } } @@ -811,9 +754,6 @@ protected NetAppVolumeResource() { } 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 GetLatestStatusBackup(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetLatestStatusBackupAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetNetAppBucket(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetNetAppBucketAsync(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.NetApp.NetAppBucketCollection GetNetAppBuckets() { 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; } @@ -829,10 +769,12 @@ protected NetAppVolumeResource() { } public virtual Azure.Response GetNetAppVolumeSnapshot(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetNetAppVolumeSnapshotAsync(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.NetApp.NetAppVolumeSnapshotCollection GetNetAppVolumeSnapshots() { throw null; } - public virtual Azure.ResourceManager.ArmOperation GetQuotaReport(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetQuotaReportAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetReplications(Azure.ResourceManager.NetApp.Models.ListReplicationsContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Pageable GetReplications(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetReplicationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetReplicationsAsync(Azure.ResourceManager.NetApp.Models.ListReplicationsContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.AsyncPageable GetReplicationsAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.Response GetReplicationStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetReplicationStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetRestoreStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1045,7 +987,6 @@ protected MockableNetAppArmClient() { } public virtual Azure.ResourceManager.NetApp.NetAppBackupPolicyResource GetNetAppBackupPolicyResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.NetApp.NetAppBackupVaultBackupResource GetNetAppBackupVaultBackupResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.NetApp.NetAppBackupVaultResource GetNetAppBackupVaultResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.NetApp.NetAppBucketResource GetNetAppBucketResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.NetApp.NetAppSubvolumeInfoResource GetNetAppSubvolumeInfoResource(Azure.Core.ResourceIdentifier id) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.NetApp.NetAppVolumeBackupResource GetNetAppVolumeBackupResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -1119,23 +1060,21 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.Models.AvailabilityZoneMapping AvailabilityZoneMapping(string availabilityZone = null, bool? isAvailable = default(bool?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.CapacityPoolData CapacityPoolData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, System.Guid? poolId, long size, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel serviceLevel, string provisioningState, float? totalThroughputMibps, float? utilizedThroughputMibps, Azure.ResourceManager.NetApp.Models.CapacityPoolQosType? qosType, bool? isCoolAccessEnabled, Azure.ResourceManager.NetApp.Models.CapacityPoolEncryptionType? encryptionType) { 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?), int? customThroughputMibpsInt = default(int?), 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.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?), float? customThroughputMibps = 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; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.CapacityPoolPatch CapacityPoolPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, long? size, Azure.ResourceManager.NetApp.Models.CapacityPoolQosType? qosType, bool? isCoolAccessEnabled) { throw null; } + public static Azure.ResourceManager.NetApp.Models.CapacityPoolPatch CapacityPoolPatch(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), long? size = default(long?), Azure.ResourceManager.NetApp.Models.CapacityPoolQosType? qosType = default(Azure.ResourceManager.NetApp.Models.CapacityPoolQosType?), bool? isCoolAccessEnabled = default(bool?), int? customThroughputMibpsInt = default(int?)) { throw null; } public static Azure.ResourceManager.NetApp.Models.CapacityPoolPatch CapacityPoolPatch(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), long? size = default(long?), Azure.ResourceManager.NetApp.Models.CapacityPoolQosType? qosType = default(Azure.ResourceManager.NetApp.Models.CapacityPoolQosType?), bool? isCoolAccessEnabled = default(bool?), float? customThroughputMibps = default(float?)) { throw null; } public static Azure.ResourceManager.NetApp.Models.ClusterPeerCommandResult ClusterPeerCommandResult(string peerAcceptCommand = null) { 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; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.NetAppAccountData NetAppAccountData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string provisioningState, System.Collections.Generic.IEnumerable activeDirectories, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption, bool? disableShowmount) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NetApp.NetAppAccountData NetAppAccountData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string provisioningState, System.Collections.Generic.IEnumerable activeDirectories, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption, bool? disableShowmount, string nfsV4IdDomain, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus) { 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?), string nfsV4IdDomain = null, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus = default(Azure.ResourceManager.NetApp.Models.MultiAdStatus?), Azure.ResourceManager.NetApp.Models.LdapConfiguration ldapConfiguration = 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?), string nfsV4IdDomain = null, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus = default(Azure.ResourceManager.NetApp.Models.MultiAdStatus?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppAccountPatch NetAppAccountPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string provisioningState, System.Collections.Generic.IEnumerable activeDirectories, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption, bool? disableShowmount) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NetApp.Models.NetAppAccountPatch NetAppAccountPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string provisioningState, System.Collections.Generic.IEnumerable activeDirectories, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption, bool? disableShowmount, string nfsV4IdDomain, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppAccountPatch NetAppAccountPatch(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.Models.ManagedServiceIdentity identity = null, string provisioningState = null, System.Collections.Generic.IEnumerable activeDirectories = null, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption = null, bool? disableShowmount = default(bool?), string nfsV4IdDomain = null, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus = default(Azure.ResourceManager.NetApp.Models.MultiAdStatus?), Azure.ResourceManager.NetApp.Models.LdapConfiguration ldapConfiguration = null) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppAccountPatch NetAppAccountPatch(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.Models.ManagedServiceIdentity identity = null, string provisioningState = null, System.Collections.Generic.IEnumerable activeDirectories = null, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption = null, bool? disableShowmount = default(bool?), string nfsV4IdDomain = null, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus = default(Azure.ResourceManager.NetApp.Models.MultiAdStatus?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.NetAppBackupData NetAppBackupData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.Core.AzureLocation location, string backupId = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string provisioningState = null, long? size = default(long?), string label = null, Azure.ResourceManager.NetApp.Models.NetAppBackupType? backupType = default(Azure.ResourceManager.NetApp.Models.NetAppBackupType?), string failureReason = null, string volumeName = null, bool? useExistingSnapshot = default(bool?)) { throw null; } public static Azure.ResourceManager.NetApp.NetAppBackupData NetAppBackupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string backupId = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? snapshotCreationOn = default(System.DateTimeOffset?), System.DateTimeOffset? completionOn = 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, Azure.Core.ResourceIdentifier volumeResourceId = null, bool? useExistingSnapshot = default(bool?), string snapshotName = null, Azure.Core.ResourceIdentifier backupPolicyArmResourceId = null, bool? isLargeVolume = default(bool?)) { throw null; } @@ -1146,10 +1085,6 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.NetAppBackupPolicyData NetAppBackupPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.Core.ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = default(int?), int? weeklyBackupsToKeep = default(int?), int? monthlyBackupsToKeep = default(int?), int? volumesAssigned = default(int?), bool? isEnabled = default(bool?), System.Collections.Generic.IEnumerable volumeBackups = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppBackupPolicyPatch NetAppBackupPolicyPatch(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.Core.ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = default(int?), int? weeklyBackupsToKeep = default(int?), int? monthlyBackupsToKeep = default(int?), int? volumesAssigned = default(int?), bool? isEnabled = default(bool?), System.Collections.Generic.IEnumerable volumeBackups = null) { throw null; } public static Azure.ResourceManager.NetApp.NetAppBackupVaultData NetAppBackupVaultData(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), string provisioningState = null) { throw null; } - public static Azure.ResourceManager.NetApp.NetAppBucketData NetAppBucketData(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, Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser fileSystemUser = null, Azure.ResourceManager.NetApp.Models.NetAppProvisioningState? provisioningState = default(Azure.ResourceManager.NetApp.Models.NetAppProvisioningState?), Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus? status = default(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus?), Azure.ResourceManager.NetApp.Models.NetAppBucketServerProperties server = null, Azure.ResourceManager.NetApp.Models.NetAppBucketPermission? permissions = default(Azure.ResourceManager.NetApp.Models.NetAppBucketPermission?)) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketGenerateCredentials NetAppBucketGenerateCredentials(string accessKey = null, string secretKey = null, System.DateTimeOffset? keyPairExpiry = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketPatch NetAppBucketPatch(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, Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser fileSystemUser = null, Azure.ResourceManager.NetApp.Models.NetAppProvisioningState? provisioningState = default(Azure.ResourceManager.NetApp.Models.NetAppProvisioningState?), Azure.ResourceManager.NetApp.Models.NetAppBucketServerPatchProperties server = null, Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission? permissions = default(Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission?)) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketServerProperties NetAppBucketServerProperties(string fqdn = null, string certificateCommonName = null, System.DateTimeOffset? certificateExpiryOn = default(System.DateTimeOffset?), string ipAddress = null, string certificateObject = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppChangeKeyVault NetAppChangeKeyVault(System.Uri keyVaultUri = null, string keyName = null, Azure.Core.ResourceIdentifier keyVaultResourceId = null, System.Collections.Generic.IEnumerable keyVaultPrivateEndpoints = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppCheckAvailabilityResult NetAppCheckAvailabilityResult(bool? isAvailable = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppNameUnavailableReason? reason = default(Azure.ResourceManager.NetApp.Models.NetAppNameUnavailableReason?), string message = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppDestinationReplication NetAppDestinationReplication(Azure.Core.ResourceIdentifier resourceId = null, Azure.ResourceManager.NetApp.Models.NetAppReplicationType? replicationType = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationType?), string region = null, string zone = null) { throw null; } @@ -1163,12 +1098,11 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.Models.NetAppRegionInfo NetAppRegionInfo(Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity? storageToNetworkProximity = default(Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity?), System.Collections.Generic.IEnumerable availabilityZoneMappings = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppReplicationObject NetAppReplicationObject(string replicationId, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType, Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule, Azure.Core.ResourceIdentifier remoteVolumeResourceId, Azure.ResourceManager.NetApp.Models.RemotePath remotePath, string remoteVolumeRegion) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NetApp.Models.NetAppReplicationObject NetAppReplicationObject(string replicationId, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType, Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule, Azure.Core.ResourceIdentifier remoteVolumeResourceId, Azure.ResourceManager.NetApp.Models.RemotePath remotePath, string remoteVolumeRegion, System.Collections.Generic.IEnumerable destinationReplications) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppReplicationObject NetAppReplicationObject(string replicationId = null, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType = default(Azure.ResourceManager.NetApp.Models.NetAppEndpointType?), Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule?), Azure.Core.ResourceIdentifier remoteVolumeResourceId = null, Azure.ResourceManager.NetApp.Models.RemotePath remotePath = null, string remoteVolumeRegion = null, System.Collections.Generic.IEnumerable destinationReplications = null, Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus? externalReplicationSetupStatus = default(Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus?), string externalReplicationSetupInfo = null, Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus = default(Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus?)) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppReplicationObject NetAppReplicationObject(string replicationId = null, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType = default(Azure.ResourceManager.NetApp.Models.NetAppEndpointType?), Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule?), Azure.Core.ResourceIdentifier remoteVolumeResourceId = null, Azure.ResourceManager.NetApp.Models.RemotePath remotePath = null, string remoteVolumeRegion = null, System.Collections.Generic.IEnumerable destinationReplications = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppReplicationObject NetAppReplicationObject(string replicationId, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType, Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule, Azure.Core.ResourceIdentifier remoteVolumeResourceId, string remoteVolumeRegion) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus = default(Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus?), Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string unhealthyReason = null, string errorMessage = null, long? totalTransferBytes = default(long?)) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus? volumeRestoreRelationshipStatus = default(Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus?), Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string unhealthyReason = null, string errorMessage = null, long? totalTransferBytes = default(long?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, int? current, int? @default) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, int? current = default(int?), int? @default = default(int?), int? usage = default(int?)) { throw null; } @@ -1183,9 +1117,8 @@ public static partial class ArmNetAppModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy, Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus, Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? lastTransferSize, string lastTransferType, long? totalTransferBytes) { 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?), long? transferProgressBytes = 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?), Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures = 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, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = default(Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit?), 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?), Azure.ResourceManager.NetApp.Models.LdapServerType? ldapServerType = default(Azure.ResourceManager.NetApp.Models.LdapServerType?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy?), 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, long? inheritedSizeInBytes = default(long?), Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage? language = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage?)) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NetApp.NetAppVolumeData NetAppVolumeData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, System.Collections.Generic.IEnumerable zones, System.Guid? fileSystemId, string creationToken, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long usageThreshold, System.Collections.Generic.IEnumerable exportRules, System.Collections.Generic.IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, Azure.Core.ResourceIdentifier subnetId, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures, System.Guid? networkSiblingSetId, Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, System.Collections.Generic.IEnumerable mountTargets, string volumeType, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration, Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource, Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs, Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore, System.Collections.Generic.IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, Azure.Core.ResourceIdentifier capacityPoolResourceId, Azure.Core.ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, System.Collections.Generic.IEnumerable placementRules, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, Azure.Core.ResourceIdentifier originatingResourceId, long? inheritedSizeInBytes) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus? volumeBackupRelationshipStatus = default(Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus?), 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?), long? transferProgressBytes = 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?), Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures = 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, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = default(Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit?), bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy?), 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, long? inheritedSizeInBytes = default(long?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.NetAppVolumeData NetAppVolumeData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, System.Collections.Generic.IEnumerable zones, System.Guid? fileSystemId, string creationToken, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long usageThreshold, System.Collections.Generic.IEnumerable exportRules, System.Collections.Generic.IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, Azure.Core.ResourceIdentifier subnetId, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures, System.Guid? networkSiblingSetId, Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, System.Collections.Generic.IEnumerable mountTargets, string volumeType, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration, Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource, Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs, Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore, System.Collections.Generic.IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, Azure.Core.ResourceIdentifier capacityPoolResourceId, Azure.Core.ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, System.Collections.Generic.IEnumerable placementRules, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, Azure.Core.ResourceIdentifier originatingResourceId) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1199,9 +1132,7 @@ public static partial class ArmNetAppModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupMetadata NetAppVolumeGroupMetadata(string groupDescription, Azure.ResourceManager.NetApp.Models.NetAppApplicationType? applicationType, string applicationIdentifier, System.Collections.Generic.IEnumerable globalPlacementRules, string deploymentSpecId, long? volumesCount) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupResult NetAppVolumeGroupResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string provisioningState = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupMetadata groupMetaData = null) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), System.Collections.Generic.IDictionary tags = null, System.Collections.Generic.IEnumerable zones = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures = 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, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = default(Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit?), 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?), Azure.ResourceManager.NetApp.Models.LdapServerType? ldapServerType = default(Azure.ResourceManager.NetApp.Models.LdapServerType?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy?), 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, long? inheritedSizeInBytes = default(long?), Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage? language = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage?)) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType? resourceType, System.Collections.Generic.IDictionary tags, System.Collections.Generic.IEnumerable zones, System.Guid? fileSystemId, string creationToken, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long usageThreshold, System.Collections.Generic.IEnumerable exportRules, System.Collections.Generic.IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, Azure.Core.ResourceIdentifier subnetId, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures, System.Guid? networkSiblingSetId, Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, System.Collections.Generic.IEnumerable mountTargets, string volumeType, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration, Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource, Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs, Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore, System.Collections.Generic.IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, Azure.Core.ResourceIdentifier capacityPoolResourceId, Azure.Core.ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, System.Collections.Generic.IEnumerable placementRules, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, Azure.Core.ResourceIdentifier originatingResourceId, long? inheritedSizeInBytes) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), System.Collections.Generic.IDictionary tags = null, System.Collections.Generic.IEnumerable zones = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures = 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, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = default(Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit?), bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy?), 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, long? inheritedSizeInBytes = default(long?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType? resourceType, System.Collections.Generic.IDictionary tags, System.Collections.Generic.IEnumerable zones, System.Guid? fileSystemId, string creationToken, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long usageThreshold, System.Collections.Generic.IEnumerable exportRules, System.Collections.Generic.IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, Azure.Core.ResourceIdentifier subnetId, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures, System.Guid? networkSiblingSetId, Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, System.Collections.Generic.IEnumerable mountTargets, string volumeType, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration, Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource, Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs, Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore, System.Collections.Generic.IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, Azure.Core.ResourceIdentifier capacityPoolResourceId, Azure.Core.ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, System.Collections.Generic.IEnumerable placementRules, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, Azure.Core.ResourceIdentifier originatingResourceId) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1216,14 +1147,14 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.Models.NetAppVolumePatch NetAppVolumePatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long? usageThreshold, System.Collections.Generic.IEnumerable exportRules, System.Collections.Generic.IEnumerable protocolTypes, float? throughputMibps, Azure.ResourceManager.NetApp.Models.NetAppVolumePatchDataProtection dataProtection, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, string unixPermissions, bool? isCoolAccessEnabled, int? coolnessPeriod, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, bool? isSnapshotDirectoryVisible, Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration, Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumePatch NetAppVolumePatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long? usageThreshold, System.Collections.Generic.IEnumerable exportRules, float? throughputMibps, Azure.Core.ResourceIdentifier snapshotPolicyId = null, bool? isDefaultQuotaEnabled = default(bool?), long? defaultUserQuotaInKiBs = default(long?), long? defaultGroupQuotaInKiBs = default(long?), string unixPermissions = null, bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), bool? isSnapshotDirectoryVisible = 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?)) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReport NetAppVolumeQuotaReport(Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaType? quotaType = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaType?), string quotaTarget = null, long? quotaLimitUsedInKiBs = default(long?), long? quotaLimitTotalInKiBs = default(long?), float? percentageUsed = default(float?), bool? isDerivedQuota = default(bool?)) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReportListResult NetAppVolumeQuotaReportListResult(System.Collections.Generic.IEnumerable value = 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.NetAppVolumeQuotaRulePatch NetAppVolumeQuotaRulePatch(System.Collections.Generic.IDictionary tags = null, 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; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplication NetAppVolumeReplication(Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType, Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule, Azure.Core.ResourceIdentifier remoteVolumeResourceId, string remoteVolumeRegion) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplication NetAppVolumeReplication(string replicationId = null, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType = default(Azure.ResourceManager.NetApp.Models.NetAppEndpointType?), Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule?), Azure.Core.ResourceIdentifier remoteVolumeResourceId = null, string remoteVolumeRegion = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplication NetAppVolumeReplication(string replicationId, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType, Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule, Azure.Core.ResourceIdentifier remoteVolumeResourceId, string remoteVolumeRegion) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplication NetAppVolumeReplication(string replicationId = null, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType = default(Azure.ResourceManager.NetApp.Models.NetAppEndpointType?), Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule?), Azure.Core.ResourceIdentifier remoteVolumeResourceId = null, string remoteVolumeRegion = null, Azure.ResourceManager.NetApp.Models.ReplicationMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.ReplicationMirrorState?), System.DateTimeOffset? replicationCreationOn = default(System.DateTimeOffset?), System.DateTimeOffset? replicationDeletionOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplicationStatus NetAppVolumeReplicationStatus(bool? isHealthy, Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus, Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string totalProgress = null, string errorMessage = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplicationStatus NetAppVolumeReplicationStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.VolumeReplicationRelationshipStatus? volumeReplicationRelationshipStatus = default(Azure.ResourceManager.NetApp.Models.VolumeReplicationRelationshipStatus?), Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string totalProgress = null, string errorMessage = null) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeSnapshotData NetAppVolumeSnapshotData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string snapshotId = null, System.DateTimeOffset? created = default(System.DateTimeOffset?), string provisioningState = null) { throw null; } @@ -1279,6 +1210,7 @@ public partial class CapacityPoolPatch : Azure.ResourceManager.Models.TrackedRes { public CapacityPoolPatch(Azure.Core.AzureLocation location) { } public float? CustomThroughputMibps { get { throw null; } set { } } + public int? CustomThroughputMibpsInt { get { throw null; } set { } } public bool? IsCoolAccessEnabled { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.CapacityPoolQosType? QosType { get { throw null; } set { } } public long? Size { get { throw null; } set { } } @@ -1374,24 +1306,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ExternalReplicationSetupStatus : System.IEquatable + public readonly partial struct Exclude : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ExternalReplicationSetupStatus(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus ClusterPeerPending { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus ClusterPeerRequired { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus NoActionRequired { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus ReplicationCreateRequired { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus VServerPeerRequired { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus other) { throw null; } + public Exclude(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.Exclude Deleted { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.Exclude None { get { throw null; } } + public bool Equals(Azure.ResourceManager.NetApp.Models.Exclude other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus left, Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus left, Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.NetApp.Models.Exclude left, Azure.ResourceManager.NetApp.Models.Exclude right) { throw null; } + public static implicit operator Azure.ResourceManager.NetApp.Models.Exclude (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.NetApp.Models.Exclude left, Azure.ResourceManager.NetApp.Models.Exclude right) { throw null; } public override string ToString() { throw null; } } public partial class GetGroupIdListForLdapUserContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel @@ -1416,38 +1345,16 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class LdapConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class ListReplicationsContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public LdapConfiguration() { } - public string CertificateCNHost { get { throw null; } set { } } - public string Domain { get { throw null; } set { } } - public bool? LdapOverTls { get { throw null; } set { } } - public System.Collections.Generic.IList LdapServers { get { throw null; } } - public string ServerCACertificate { get { throw null; } set { } } + public ListReplicationsContent() { } + public Azure.ResourceManager.NetApp.Models.Exclude? Exclude { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.LdapConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.LdapConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct LdapServerType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public LdapServerType(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.LdapServerType ActiveDirectory { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.LdapServerType OpenLdap { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.LdapServerType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.LdapServerType left, Azure.ResourceManager.NetApp.Models.LdapServerType right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.LdapServerType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.LdapServerType left, Azure.ResourceManager.NetApp.Models.LdapServerType right) { throw null; } - public override string ToString() { throw null; } + Azure.ResourceManager.NetApp.Models.ListReplicationsContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NetApp.Models.ListReplicationsContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MultiAdStatus : System.IEquatable @@ -1541,7 +1448,6 @@ public NetAppAccountPatch(Azure.Core.AzureLocation location) { } 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 Azure.ResourceManager.NetApp.Models.LdapConfiguration LdapConfiguration { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.MultiAdStatus? MultiAdStatus { get { throw null; } } public string NfsV4IdDomain { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } @@ -1647,151 +1553,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class NetAppBucketCredentialsExpiry : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketCredentialsExpiry() { } - public int? KeyPairExpiryDays { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialsExpiry System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialsExpiry System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct NetAppBucketCredentialStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public NetAppBucketCredentialStatus(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus Active { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus CredentialsExpired { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus NoCredentialsSet { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus left, Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus left, Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus right) { throw null; } - public override string ToString() { throw null; } - } - public partial class NetAppBucketFileSystemUser : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketFileSystemUser() { } - public string CifsUserUsername { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketNfsUser NfsUser { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppBucketGenerateCredentials : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal NetAppBucketGenerateCredentials() { } - public string AccessKey { get { throw null; } } - public System.DateTimeOffset? KeyPairExpiry { get { throw null; } } - public string SecretKey { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketGenerateCredentials System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketGenerateCredentials System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppBucketNfsUser : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketNfsUser() { } - public long? GroupId { get { throw null; } set { } } - public long? UserId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketNfsUser System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketNfsUser System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppBucketPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketPatch() { } - public Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser FileSystemUser { get { throw null; } set { } } - public string Path { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission? Permissions { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketServerPatchProperties Server { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct NetAppBucketPatchPermission : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public NetAppBucketPatchPermission(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission ReadOnly { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission ReadWrite { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission left, Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission left, Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct NetAppBucketPermission : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public NetAppBucketPermission(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketPermission ReadOnly { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketPermission ReadWrite { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppBucketPermission other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.NetAppBucketPermission left, Azure.ResourceManager.NetApp.Models.NetAppBucketPermission right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.NetAppBucketPermission (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.NetAppBucketPermission left, Azure.ResourceManager.NetApp.Models.NetAppBucketPermission right) { throw null; } - public override string ToString() { throw null; } - } - public partial class NetAppBucketServerPatchProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketServerPatchProperties() { } - public string CertificateObject { get { throw null; } set { } } - public string Fqdn { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketServerPatchProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketServerPatchProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppBucketServerProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketServerProperties() { } - public string CertificateCommonName { get { throw null; } } - public System.DateTimeOffset? CertificateExpiryOn { get { throw null; } } - public string CertificateObject { get { throw null; } set { } } - public string Fqdn { get { throw null; } set { } } - public string IPAddress { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketServerProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketServerProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class NetAppChangeKeyVault : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NetAppChangeKeyVault(System.Uri keyVaultUri, string keyName, System.Collections.Generic.IEnumerable keyVaultPrivateEndpoints) { } @@ -2100,8 +1861,10 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer private readonly int _dummyPrimitive; public NetAppNameAvailabilityResourceType(string value) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccounts { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsBackupVaultsBackups { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPools { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesBackups { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots { get { throw null; } } public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -2184,8 +1947,10 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer private readonly int _dummyPrimitive; public NetAppQuotaAvailabilityResourceType(string value) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccounts { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsBackupVaultsBackups { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPools { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesBackups { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots { get { throw null; } } public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -2236,10 +2001,6 @@ public NetAppReplicationObject() { } public NetAppReplicationObject(Azure.Core.ResourceIdentifier remoteVolumeResourceId) { } public System.Collections.Generic.IReadOnlyList DestinationReplications { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppEndpointType? EndpointType { get { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] set { } } - public string ExternalReplicationSetupInfo { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus? ExternalReplicationSetupStatus { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppMirrorState? MirrorState { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? RelationshipStatus { get { throw null; } } public Azure.ResourceManager.NetApp.Models.RemotePath RemotePath { get { throw null; } set { } } public string RemoteVolumeRegion { get { throw null; } set { } } public Azure.Core.ResourceIdentifier RemoteVolumeResourceId { get { throw null; } set { } } @@ -2296,9 +2057,10 @@ internal NetAppRestoreStatus() { } public string ErrorMessage { get { throw null; } } public bool? IsHealthy { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppMirrorState? MirrorState { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? RelationshipStatus { get { throw null; } } + public virtual Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? RelationshipStatus { get { throw null; } } public long? TotalTransferBytes { get { throw null; } } public string UnhealthyReason { get { throw null; } } + public Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus? VolumeRestoreRelationshipStatus { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NetApp.Models.NetAppRestoreStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2475,10 +2237,11 @@ internal NetAppVolumeBackupStatus() { } public long? LastTransferSize { get { throw null; } } public string LastTransferType { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppMirrorState? MirrorState { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? RelationshipStatus { get { throw null; } } + public virtual Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? RelationshipStatus { get { throw null; } } public long? TotalTransferBytes { get { throw null; } } public long? TransferProgressBytes { get { throw null; } } public string UnhealthyReason { get { throw null; } } + public Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus? VolumeBackupRelationshipStatus { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2616,8 +2379,6 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Azure. public bool? IsSmbEncryptionEnabled { get { throw null; } set { } } public bool? IsSnapshotDirectoryVisible { get { throw null; } set { } } public Azure.Core.ResourceIdentifier KeyVaultPrivateEndpointResourceId { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage? Language { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.LdapServerType? LdapServerType { get { throw null; } set { } } public long? MaximumNumberOfFiles { get { throw null; } } public System.Collections.Generic.IReadOnlyList MountTargets { get { throw null; } } public string Name { get { throw null; } set { } } @@ -2653,91 +2414,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct NetAppVolumeLanguage : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public NetAppVolumeLanguage(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Ar { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ArUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage C { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Cs { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage CsUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage CUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Da { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage DaUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage De { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage DeUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage En { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage EnUs { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage EnUsUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage EnUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Es { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage EsUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Fi { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage FiUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Fr { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage FrUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage He { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage HeUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Hr { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage HrUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Hu { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage HuUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage It { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ItUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Ja { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJp932 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJp932Utf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJpPck { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJpPckUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJpPckV2 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJpPckV2Utf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaV1 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaV1Utf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Ko { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage KoUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Nl { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage NlUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage No { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage NoUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Pl { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage PlUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Pt { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage PtUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Ro { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage RoUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Ru { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage RuUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Sk { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage SkUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Sl { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage SlUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Sv { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage SvUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Tr { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage TrUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Utf8Mb4 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Zh { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhGbk { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhGbkUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhTw { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhTwBig5 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhTwBig5Utf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhTwUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhUtf8 { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage left, Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage left, Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage right) { throw null; } - public override string ToString() { throw null; } - } public partial class NetAppVolumeMountTarget : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal NetAppVolumeMountTarget() { } @@ -2816,33 +2492,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class NetAppVolumeQuotaReport : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal NetAppVolumeQuotaReport() { } - public bool? IsDerivedQuota { get { throw null; } } - public float? PercentageUsed { get { throw null; } } - public long? QuotaLimitTotalInKiBs { get { throw null; } } - public long? QuotaLimitUsedInKiBs { get { throw null; } } - public string QuotaTarget { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaType? QuotaType { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReport System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReport System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppVolumeQuotaReportListResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal NetAppVolumeQuotaReportListResult() { } - public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReportListResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReportListResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class NetAppVolumeQuotaRulePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NetAppVolumeQuotaRulePatch() { } @@ -2905,8 +2554,11 @@ public partial class NetAppVolumeReplication : System.ClientModel.Primitives.IJs { internal NetAppVolumeReplication() { } public Azure.ResourceManager.NetApp.Models.NetAppEndpointType? EndpointType { get { throw null; } } + public Azure.ResourceManager.NetApp.Models.ReplicationMirrorState? MirrorState { get { throw null; } } public string RemoteVolumeRegion { get { throw null; } } public Azure.Core.ResourceIdentifier RemoteVolumeResourceId { get { throw null; } } + public System.DateTimeOffset? ReplicationCreationOn { get { throw null; } } + public System.DateTimeOffset? ReplicationDeletionOn { get { throw null; } } public string ReplicationId { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? ReplicationSchedule { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3114,6 +2766,25 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ReplicationMirrorState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ReplicationMirrorState(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.ReplicationMirrorState Broken { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.ReplicationMirrorState Mirrored { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.ReplicationMirrorState Uninitialized { get { throw null; } } + public bool Equals(Azure.ResourceManager.NetApp.Models.ReplicationMirrorState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.NetApp.Models.ReplicationMirrorState left, Azure.ResourceManager.NetApp.Models.ReplicationMirrorState right) { throw null; } + public static implicit operator Azure.ResourceManager.NetApp.Models.ReplicationMirrorState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.NetApp.Models.ReplicationMirrorState left, Azure.ResourceManager.NetApp.Models.ReplicationMirrorState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct SmbAccessBasedEnumeration : System.IEquatable { private readonly object _dummy; @@ -3248,6 +2919,26 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct VolumeBackupRelationshipStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VolumeBackupRelationshipStatus(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus Failed { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus Idle { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus Transferring { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus Unknown { get { throw null; } } + public bool Equals(Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus left, Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus left, Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct VolumeReplicationRelationshipStatus : System.IEquatable { private readonly object _dummy; @@ -3265,4 +2956,24 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.NetApp.Models.VolumeReplicationRelationshipStatus left, Azure.ResourceManager.NetApp.Models.VolumeReplicationRelationshipStatus right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct VolumeRestoreRelationshipStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VolumeRestoreRelationshipStatus(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus Failed { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus Idle { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus Transferring { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus Unknown { get { throw null; } } + public bool Equals(Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus left, Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus left, Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus right) { throw null; } + public override string ToString() { throw null; } + } } 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 b3d78a540a1d..cf5d48e6d500 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 @@ -27,6 +27,7 @@ public partial class CapacityPoolData : Azure.ResourceManager.Models.TrackedReso { public CapacityPoolData(Azure.Core.AzureLocation location, long size, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel serviceLevel) { } public float? CustomThroughputMibps { get { throw null; } set { } } + public int? CustomThroughputMibpsInt { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.CapacityPoolEncryptionType? EncryptionType { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } } public bool? IsCoolAccessEnabled { get { throw null; } set { } } @@ -126,7 +127,6 @@ public NetAppAccountData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption Encryption { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.LdapConfiguration LdapConfiguration { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.MultiAdStatus? MultiAdStatus { get { throw null; } } public string NfsV4IdDomain { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } @@ -387,60 +387,6 @@ protected NetAppBackupVaultResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppBackupVaultPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppBackupVaultPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class NetAppBucketCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected NetAppBucketCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string bucketName, Azure.ResourceManager.NetApp.NetAppBucketData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string bucketName, Azure.ResourceManager.NetApp.NetAppBucketData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class NetAppBucketData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketData() { } - public Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser FileSystemUser { get { throw null; } set { } } - public string Path { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketPermission? Permissions { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketServerProperties Server { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus? Status { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.NetAppBucketData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.NetAppBucketData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppBucketResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected NetAppBucketResource() { } - public virtual Azure.ResourceManager.NetApp.NetAppBucketData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GenerateCredentials(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialsExpiry body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GenerateCredentialsAsync(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialsExpiry body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.NetApp.NetAppBucketData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.NetAppBucketData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppBucketPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppBucketPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public static partial class NetAppExtensions { public static Azure.Response CheckNetAppFilePathAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.NetApp.Models.NetAppFilePathAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -461,7 +407,6 @@ public static partial class NetAppExtensions public static Azure.ResourceManager.NetApp.NetAppBackupPolicyResource GetNetAppBackupPolicyResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.NetApp.NetAppBackupVaultBackupResource GetNetAppBackupVaultBackupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.NetApp.NetAppBackupVaultResource GetNetAppBackupVaultResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.NetApp.NetAppBucketResource GetNetAppBucketResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetNetAppQuotaLimit(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string quotaLimitName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetNetAppQuotaLimitAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string quotaLimitName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetNetAppQuotaLimits(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -641,8 +586,6 @@ public NetAppVolumeData(Azure.Core.AzureLocation location, string creationToken, public bool? IsSmbEncryptionEnabled { get { throw null; } set { } } public bool? IsSnapshotDirectoryVisible { get { throw null; } set { } } public Azure.Core.ResourceIdentifier KeyVaultPrivateEndpointResourceId { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage? Language { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.LdapServerType? LdapServerType { get { throw null; } set { } } public long? MaximumNumberOfFiles { get { throw null; } } public System.Collections.Generic.IReadOnlyList MountTargets { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? NetworkFeatures { get { throw null; } set { } } @@ -811,9 +754,6 @@ protected NetAppVolumeResource() { } 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 GetLatestStatusBackup(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetLatestStatusBackupAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetNetAppBucket(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetNetAppBucketAsync(string bucketName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.NetApp.NetAppBucketCollection GetNetAppBuckets() { 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; } @@ -829,10 +769,12 @@ protected NetAppVolumeResource() { } public virtual Azure.Response GetNetAppVolumeSnapshot(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetNetAppVolumeSnapshotAsync(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.NetApp.NetAppVolumeSnapshotCollection GetNetAppVolumeSnapshots() { throw null; } - public virtual Azure.ResourceManager.ArmOperation GetQuotaReport(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetQuotaReportAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetReplications(Azure.ResourceManager.NetApp.Models.ListReplicationsContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Pageable GetReplications(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetReplicationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetReplicationsAsync(Azure.ResourceManager.NetApp.Models.ListReplicationsContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.AsyncPageable GetReplicationsAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.Response GetReplicationStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetReplicationStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetRestoreStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1045,7 +987,6 @@ protected MockableNetAppArmClient() { } public virtual Azure.ResourceManager.NetApp.NetAppBackupPolicyResource GetNetAppBackupPolicyResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.NetApp.NetAppBackupVaultBackupResource GetNetAppBackupVaultBackupResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.NetApp.NetAppBackupVaultResource GetNetAppBackupVaultResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.NetApp.NetAppBucketResource GetNetAppBucketResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.NetApp.NetAppSubvolumeInfoResource GetNetAppSubvolumeInfoResource(Azure.Core.ResourceIdentifier id) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.NetApp.NetAppVolumeBackupResource GetNetAppVolumeBackupResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -1119,23 +1060,21 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.Models.AvailabilityZoneMapping AvailabilityZoneMapping(string availabilityZone = null, bool? isAvailable = default(bool?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.CapacityPoolData CapacityPoolData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, System.Guid? poolId, long size, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel serviceLevel, string provisioningState, float? totalThroughputMibps, float? utilizedThroughputMibps, Azure.ResourceManager.NetApp.Models.CapacityPoolQosType? qosType, bool? isCoolAccessEnabled, Azure.ResourceManager.NetApp.Models.CapacityPoolEncryptionType? encryptionType) { 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?), int? customThroughputMibpsInt = default(int?), 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.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?), float? customThroughputMibps = 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; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.CapacityPoolPatch CapacityPoolPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, long? size, Azure.ResourceManager.NetApp.Models.CapacityPoolQosType? qosType, bool? isCoolAccessEnabled) { throw null; } + public static Azure.ResourceManager.NetApp.Models.CapacityPoolPatch CapacityPoolPatch(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), long? size = default(long?), Azure.ResourceManager.NetApp.Models.CapacityPoolQosType? qosType = default(Azure.ResourceManager.NetApp.Models.CapacityPoolQosType?), bool? isCoolAccessEnabled = default(bool?), int? customThroughputMibpsInt = default(int?)) { throw null; } public static Azure.ResourceManager.NetApp.Models.CapacityPoolPatch CapacityPoolPatch(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), long? size = default(long?), Azure.ResourceManager.NetApp.Models.CapacityPoolQosType? qosType = default(Azure.ResourceManager.NetApp.Models.CapacityPoolQosType?), bool? isCoolAccessEnabled = default(bool?), float? customThroughputMibps = default(float?)) { throw null; } public static Azure.ResourceManager.NetApp.Models.ClusterPeerCommandResult ClusterPeerCommandResult(string peerAcceptCommand = null) { 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; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.NetAppAccountData NetAppAccountData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string provisioningState, System.Collections.Generic.IEnumerable activeDirectories, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption, bool? disableShowmount) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NetApp.NetAppAccountData NetAppAccountData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string provisioningState, System.Collections.Generic.IEnumerable activeDirectories, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption, bool? disableShowmount, string nfsV4IdDomain, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus) { 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?), string nfsV4IdDomain = null, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus = default(Azure.ResourceManager.NetApp.Models.MultiAdStatus?), Azure.ResourceManager.NetApp.Models.LdapConfiguration ldapConfiguration = 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?), string nfsV4IdDomain = null, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus = default(Azure.ResourceManager.NetApp.Models.MultiAdStatus?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppAccountPatch NetAppAccountPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string provisioningState, System.Collections.Generic.IEnumerable activeDirectories, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption, bool? disableShowmount) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NetApp.Models.NetAppAccountPatch NetAppAccountPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string provisioningState, System.Collections.Generic.IEnumerable activeDirectories, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption, bool? disableShowmount, string nfsV4IdDomain, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppAccountPatch NetAppAccountPatch(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.Models.ManagedServiceIdentity identity = null, string provisioningState = null, System.Collections.Generic.IEnumerable activeDirectories = null, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption = null, bool? disableShowmount = default(bool?), string nfsV4IdDomain = null, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus = default(Azure.ResourceManager.NetApp.Models.MultiAdStatus?), Azure.ResourceManager.NetApp.Models.LdapConfiguration ldapConfiguration = null) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppAccountPatch NetAppAccountPatch(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.Models.ManagedServiceIdentity identity = null, string provisioningState = null, System.Collections.Generic.IEnumerable activeDirectories = null, Azure.ResourceManager.NetApp.Models.NetAppAccountEncryption encryption = null, bool? disableShowmount = default(bool?), string nfsV4IdDomain = null, Azure.ResourceManager.NetApp.Models.MultiAdStatus? multiAdStatus = default(Azure.ResourceManager.NetApp.Models.MultiAdStatus?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.NetAppBackupData NetAppBackupData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.Core.AzureLocation location, string backupId = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string provisioningState = null, long? size = default(long?), string label = null, Azure.ResourceManager.NetApp.Models.NetAppBackupType? backupType = default(Azure.ResourceManager.NetApp.Models.NetAppBackupType?), string failureReason = null, string volumeName = null, bool? useExistingSnapshot = default(bool?)) { throw null; } public static Azure.ResourceManager.NetApp.NetAppBackupData NetAppBackupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string backupId = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? snapshotCreationOn = default(System.DateTimeOffset?), System.DateTimeOffset? completionOn = 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, Azure.Core.ResourceIdentifier volumeResourceId = null, bool? useExistingSnapshot = default(bool?), string snapshotName = null, Azure.Core.ResourceIdentifier backupPolicyArmResourceId = null, bool? isLargeVolume = default(bool?)) { throw null; } @@ -1146,10 +1085,6 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.NetAppBackupPolicyData NetAppBackupPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.Core.ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = default(int?), int? weeklyBackupsToKeep = default(int?), int? monthlyBackupsToKeep = default(int?), int? volumesAssigned = default(int?), bool? isEnabled = default(bool?), System.Collections.Generic.IEnumerable volumeBackups = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppBackupPolicyPatch NetAppBackupPolicyPatch(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.Core.ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = default(int?), int? weeklyBackupsToKeep = default(int?), int? monthlyBackupsToKeep = default(int?), int? volumesAssigned = default(int?), bool? isEnabled = default(bool?), System.Collections.Generic.IEnumerable volumeBackups = null) { throw null; } public static Azure.ResourceManager.NetApp.NetAppBackupVaultData NetAppBackupVaultData(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), string provisioningState = null) { throw null; } - public static Azure.ResourceManager.NetApp.NetAppBucketData NetAppBucketData(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, Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser fileSystemUser = null, Azure.ResourceManager.NetApp.Models.NetAppProvisioningState? provisioningState = default(Azure.ResourceManager.NetApp.Models.NetAppProvisioningState?), Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus? status = default(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus?), Azure.ResourceManager.NetApp.Models.NetAppBucketServerProperties server = null, Azure.ResourceManager.NetApp.Models.NetAppBucketPermission? permissions = default(Azure.ResourceManager.NetApp.Models.NetAppBucketPermission?)) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketGenerateCredentials NetAppBucketGenerateCredentials(string accessKey = null, string secretKey = null, System.DateTimeOffset? keyPairExpiry = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketPatch NetAppBucketPatch(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, Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser fileSystemUser = null, Azure.ResourceManager.NetApp.Models.NetAppProvisioningState? provisioningState = default(Azure.ResourceManager.NetApp.Models.NetAppProvisioningState?), Azure.ResourceManager.NetApp.Models.NetAppBucketServerPatchProperties server = null, Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission? permissions = default(Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission?)) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketServerProperties NetAppBucketServerProperties(string fqdn = null, string certificateCommonName = null, System.DateTimeOffset? certificateExpiryOn = default(System.DateTimeOffset?), string ipAddress = null, string certificateObject = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppChangeKeyVault NetAppChangeKeyVault(System.Uri keyVaultUri = null, string keyName = null, Azure.Core.ResourceIdentifier keyVaultResourceId = null, System.Collections.Generic.IEnumerable keyVaultPrivateEndpoints = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppCheckAvailabilityResult NetAppCheckAvailabilityResult(bool? isAvailable = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppNameUnavailableReason? reason = default(Azure.ResourceManager.NetApp.Models.NetAppNameUnavailableReason?), string message = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppDestinationReplication NetAppDestinationReplication(Azure.Core.ResourceIdentifier resourceId = null, Azure.ResourceManager.NetApp.Models.NetAppReplicationType? replicationType = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationType?), string region = null, string zone = null) { throw null; } @@ -1163,12 +1098,11 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.Models.NetAppRegionInfo NetAppRegionInfo(Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity? storageToNetworkProximity = default(Azure.ResourceManager.NetApp.Models.RegionStorageToNetworkProximity?), System.Collections.Generic.IEnumerable availabilityZoneMappings = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppReplicationObject NetAppReplicationObject(string replicationId, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType, Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule, Azure.Core.ResourceIdentifier remoteVolumeResourceId, Azure.ResourceManager.NetApp.Models.RemotePath remotePath, string remoteVolumeRegion) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NetApp.Models.NetAppReplicationObject NetAppReplicationObject(string replicationId, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType, Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule, Azure.Core.ResourceIdentifier remoteVolumeResourceId, Azure.ResourceManager.NetApp.Models.RemotePath remotePath, string remoteVolumeRegion, System.Collections.Generic.IEnumerable destinationReplications) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppReplicationObject NetAppReplicationObject(string replicationId = null, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType = default(Azure.ResourceManager.NetApp.Models.NetAppEndpointType?), Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule?), Azure.Core.ResourceIdentifier remoteVolumeResourceId = null, Azure.ResourceManager.NetApp.Models.RemotePath remotePath = null, string remoteVolumeRegion = null, System.Collections.Generic.IEnumerable destinationReplications = null, Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus? externalReplicationSetupStatus = default(Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus?), string externalReplicationSetupInfo = null, Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus = default(Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus?)) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppReplicationObject NetAppReplicationObject(string replicationId = null, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType = default(Azure.ResourceManager.NetApp.Models.NetAppEndpointType?), Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule?), Azure.Core.ResourceIdentifier remoteVolumeResourceId = null, Azure.ResourceManager.NetApp.Models.RemotePath remotePath = null, string remoteVolumeRegion = null, System.Collections.Generic.IEnumerable destinationReplications = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppReplicationObject NetAppReplicationObject(string replicationId, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType, Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule, Azure.Core.ResourceIdentifier remoteVolumeResourceId, string remoteVolumeRegion) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus = default(Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus?), Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string unhealthyReason = null, string errorMessage = null, long? totalTransferBytes = default(long?)) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus? volumeRestoreRelationshipStatus = default(Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus?), Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string unhealthyReason = null, string errorMessage = null, long? totalTransferBytes = default(long?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, int? current, int? @default) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, int? current = default(int?), int? @default = default(int?), int? usage = default(int?)) { throw null; } @@ -1183,9 +1117,8 @@ public static partial class ArmNetAppModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy, Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus, Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? lastTransferSize, string lastTransferType, long? totalTransferBytes) { 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?), long? transferProgressBytes = 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?), Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures = 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, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = default(Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit?), 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?), Azure.ResourceManager.NetApp.Models.LdapServerType? ldapServerType = default(Azure.ResourceManager.NetApp.Models.LdapServerType?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy?), 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, long? inheritedSizeInBytes = default(long?), Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage? language = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage?)) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NetApp.NetAppVolumeData NetAppVolumeData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, System.Collections.Generic.IEnumerable zones, System.Guid? fileSystemId, string creationToken, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long usageThreshold, System.Collections.Generic.IEnumerable exportRules, System.Collections.Generic.IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, Azure.Core.ResourceIdentifier subnetId, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures, System.Guid? networkSiblingSetId, Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, System.Collections.Generic.IEnumerable mountTargets, string volumeType, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration, Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource, Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs, Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore, System.Collections.Generic.IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, Azure.Core.ResourceIdentifier capacityPoolResourceId, Azure.Core.ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, System.Collections.Generic.IEnumerable placementRules, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, Azure.Core.ResourceIdentifier originatingResourceId, long? inheritedSizeInBytes) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus? volumeBackupRelationshipStatus = default(Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus?), 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?), long? transferProgressBytes = 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?), Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures = 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, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = default(Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit?), bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy?), 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, long? inheritedSizeInBytes = default(long?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.NetAppVolumeData NetAppVolumeData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? etag, System.Collections.Generic.IEnumerable zones, System.Guid? fileSystemId, string creationToken, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long usageThreshold, System.Collections.Generic.IEnumerable exportRules, System.Collections.Generic.IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, Azure.Core.ResourceIdentifier subnetId, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures, System.Guid? networkSiblingSetId, Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, System.Collections.Generic.IEnumerable mountTargets, string volumeType, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration, Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource, Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs, Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore, System.Collections.Generic.IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, Azure.Core.ResourceIdentifier capacityPoolResourceId, Azure.Core.ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, System.Collections.Generic.IEnumerable placementRules, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, Azure.Core.ResourceIdentifier originatingResourceId) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1199,9 +1132,7 @@ public static partial class ArmNetAppModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupMetadata NetAppVolumeGroupMetadata(string groupDescription, Azure.ResourceManager.NetApp.Models.NetAppApplicationType? applicationType, string applicationIdentifier, System.Collections.Generic.IEnumerable globalPlacementRules, string deploymentSpecId, long? volumesCount) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupResult NetAppVolumeGroupResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string provisioningState = null, Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupMetadata groupMetaData = null) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), System.Collections.Generic.IDictionary tags = null, System.Collections.Generic.IEnumerable zones = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures = 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, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = default(Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit?), 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?), Azure.ResourceManager.NetApp.Models.LdapServerType? ldapServerType = default(Azure.ResourceManager.NetApp.Models.LdapServerType?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy?), 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, long? inheritedSizeInBytes = default(long?), Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage? language = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage?)) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType? resourceType, System.Collections.Generic.IDictionary tags, System.Collections.Generic.IEnumerable zones, System.Guid? fileSystemId, string creationToken, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long usageThreshold, System.Collections.Generic.IEnumerable exportRules, System.Collections.Generic.IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, Azure.Core.ResourceIdentifier subnetId, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures, System.Guid? networkSiblingSetId, Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, System.Collections.Generic.IEnumerable mountTargets, string volumeType, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration, Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource, Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs, Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore, System.Collections.Generic.IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, Azure.Core.ResourceIdentifier capacityPoolResourceId, Azure.Core.ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, System.Collections.Generic.IEnumerable placementRules, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, Azure.Core.ResourceIdentifier originatingResourceId, long? inheritedSizeInBytes) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), System.Collections.Generic.IDictionary tags = null, System.Collections.Generic.IEnumerable zones = null, System.Guid? fileSystemId = default(System.Guid?), string creationToken = null, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel = default(Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel?), long usageThreshold = (long)0, System.Collections.Generic.IEnumerable exportRules = null, System.Collections.Generic.IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = default(bool?), string backupId = null, string baremetalTenantId = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures = default(Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature?), Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures = 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, Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = default(Azure.ResourceManager.NetApp.Models.AcceptGrowCapacityPoolForShortTermCloneSplit?), bool? isRestoring = default(bool?), bool? isSnapshotDirectoryVisible = default(bool?), bool? isKerberosEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle?), bool? isSmbEncryptionEnabled = default(bool?), Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration = default(Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration?), Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable = default(Azure.ResourceManager.NetApp.Models.SmbNonBrowsable?), bool? isSmbContinuouslyAvailable = default(bool?), float? throughputMibps = default(float?), float? actualThroughputMibps = default(float?), Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource = default(Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource?), Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = default(bool?), bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy?), 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, long? inheritedSizeInBytes = default(long?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumeGroupVolume NetAppVolumeGroupVolume(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType? resourceType, System.Collections.Generic.IDictionary tags, System.Collections.Generic.IEnumerable zones, System.Guid? fileSystemId, string creationToken, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long usageThreshold, System.Collections.Generic.IEnumerable exportRules, System.Collections.Generic.IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, Azure.Core.ResourceIdentifier subnetId, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? networkFeatures, Azure.ResourceManager.NetApp.Models.NetAppNetworkFeature? effectiveNetworkFeatures, System.Guid? networkSiblingSetId, Azure.ResourceManager.NetApp.Models.NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, System.Collections.Generic.IEnumerable mountTargets, string volumeType, Azure.ResourceManager.NetApp.Models.NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, Azure.ResourceManager.NetApp.Models.NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration, Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, Azure.ResourceManager.NetApp.Models.NetAppEncryptionKeySource? encryptionKeySource, Azure.Core.ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, Azure.ResourceManager.NetApp.Models.CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, Azure.ResourceManager.NetApp.Models.NetAppFileAccessLog? fileAccessLogs, Azure.ResourceManager.NetApp.Models.NetAppAvsDataStore? avsDataStore, System.Collections.Generic.IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, Azure.Core.ResourceIdentifier capacityPoolResourceId, Azure.Core.ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, System.Collections.Generic.IEnumerable placementRules, Azure.ResourceManager.NetApp.Models.EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, Azure.Core.ResourceIdentifier originatingResourceId) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1216,14 +1147,14 @@ public static partial class ArmNetAppModelFactory public static Azure.ResourceManager.NetApp.Models.NetAppVolumePatch NetAppVolumePatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long? usageThreshold, System.Collections.Generic.IEnumerable exportRules, System.Collections.Generic.IEnumerable protocolTypes, float? throughputMibps, Azure.ResourceManager.NetApp.Models.NetAppVolumePatchDataProtection dataProtection, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, string unixPermissions, bool? isCoolAccessEnabled, int? coolnessPeriod, Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, bool? isSnapshotDirectoryVisible, Azure.ResourceManager.NetApp.Models.SmbAccessBasedEnumeration? smbAccessBasedEnumeration, Azure.ResourceManager.NetApp.Models.SmbNonBrowsable? smbNonBrowsable) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumePatch NetAppVolumePatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.NetApp.Models.NetAppFileServiceLevel? serviceLevel, long? usageThreshold, System.Collections.Generic.IEnumerable exportRules, float? throughputMibps, Azure.Core.ResourceIdentifier snapshotPolicyId = null, bool? isDefaultQuotaEnabled = default(bool?), long? defaultUserQuotaInKiBs = default(long?), long? defaultGroupQuotaInKiBs = default(long?), string unixPermissions = null, bool? isCoolAccessEnabled = default(bool?), int? coolnessPeriod = default(int?), Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default(Azure.ResourceManager.NetApp.Models.CoolAccessRetrievalPolicy?), bool? isSnapshotDirectoryVisible = 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?)) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReport NetAppVolumeQuotaReport(Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaType? quotaType = default(Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaType?), string quotaTarget = null, long? quotaLimitUsedInKiBs = default(long?), long? quotaLimitTotalInKiBs = default(long?), float? percentageUsed = default(float?), bool? isDerivedQuota = default(bool?)) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReportListResult NetAppVolumeQuotaReportListResult(System.Collections.Generic.IEnumerable value = 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.NetAppVolumeQuotaRulePatch NetAppVolumeQuotaRulePatch(System.Collections.Generic.IDictionary tags = null, 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; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplication NetAppVolumeReplication(Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType, Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule, Azure.Core.ResourceIdentifier remoteVolumeResourceId, string remoteVolumeRegion) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplication NetAppVolumeReplication(string replicationId = null, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType = default(Azure.ResourceManager.NetApp.Models.NetAppEndpointType?), Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule?), Azure.Core.ResourceIdentifier remoteVolumeResourceId = null, string remoteVolumeRegion = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplication NetAppVolumeReplication(string replicationId, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType, Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule, Azure.Core.ResourceIdentifier remoteVolumeResourceId, string remoteVolumeRegion) { throw null; } + public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplication NetAppVolumeReplication(string replicationId = null, Azure.ResourceManager.NetApp.Models.NetAppEndpointType? endpointType = default(Azure.ResourceManager.NetApp.Models.NetAppEndpointType?), Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? replicationSchedule = default(Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule?), Azure.Core.ResourceIdentifier remoteVolumeResourceId = null, string remoteVolumeRegion = null, Azure.ResourceManager.NetApp.Models.ReplicationMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.ReplicationMirrorState?), System.DateTimeOffset? replicationCreationOn = default(System.DateTimeOffset?), System.DateTimeOffset? replicationDeletionOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplicationStatus NetAppVolumeReplicationStatus(bool? isHealthy, Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? relationshipStatus, Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string totalProgress = null, string errorMessage = null) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppVolumeReplicationStatus NetAppVolumeReplicationStatus(bool? isHealthy = default(bool?), Azure.ResourceManager.NetApp.Models.VolumeReplicationRelationshipStatus? volumeReplicationRelationshipStatus = default(Azure.ResourceManager.NetApp.Models.VolumeReplicationRelationshipStatus?), Azure.ResourceManager.NetApp.Models.NetAppMirrorState? mirrorState = default(Azure.ResourceManager.NetApp.Models.NetAppMirrorState?), string totalProgress = null, string errorMessage = null) { throw null; } public static Azure.ResourceManager.NetApp.NetAppVolumeSnapshotData NetAppVolumeSnapshotData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string snapshotId = null, System.DateTimeOffset? created = default(System.DateTimeOffset?), string provisioningState = null) { throw null; } @@ -1279,6 +1210,7 @@ public partial class CapacityPoolPatch : Azure.ResourceManager.Models.TrackedRes { public CapacityPoolPatch(Azure.Core.AzureLocation location) { } public float? CustomThroughputMibps { get { throw null; } set { } } + public int? CustomThroughputMibpsInt { get { throw null; } set { } } public bool? IsCoolAccessEnabled { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.CapacityPoolQosType? QosType { get { throw null; } set { } } public long? Size { get { throw null; } set { } } @@ -1374,24 +1306,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ExternalReplicationSetupStatus : System.IEquatable + public readonly partial struct Exclude : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ExternalReplicationSetupStatus(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus ClusterPeerPending { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus ClusterPeerRequired { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus NoActionRequired { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus ReplicationCreateRequired { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus VServerPeerRequired { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus other) { throw null; } + public Exclude(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.Exclude Deleted { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.Exclude None { get { throw null; } } + public bool Equals(Azure.ResourceManager.NetApp.Models.Exclude other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus left, Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus left, Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.NetApp.Models.Exclude left, Azure.ResourceManager.NetApp.Models.Exclude right) { throw null; } + public static implicit operator Azure.ResourceManager.NetApp.Models.Exclude (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.NetApp.Models.Exclude left, Azure.ResourceManager.NetApp.Models.Exclude right) { throw null; } public override string ToString() { throw null; } } public partial class GetGroupIdListForLdapUserContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel @@ -1416,38 +1345,16 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class LdapConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class ListReplicationsContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public LdapConfiguration() { } - public string CertificateCNHost { get { throw null; } set { } } - public string Domain { get { throw null; } set { } } - public bool? LdapOverTls { get { throw null; } set { } } - public System.Collections.Generic.IList LdapServers { get { throw null; } } - public string ServerCACertificate { get { throw null; } set { } } + public ListReplicationsContent() { } + public Azure.ResourceManager.NetApp.Models.Exclude? Exclude { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.LdapConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.LdapConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct LdapServerType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public LdapServerType(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.LdapServerType ActiveDirectory { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.LdapServerType OpenLdap { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.LdapServerType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.LdapServerType left, Azure.ResourceManager.NetApp.Models.LdapServerType right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.LdapServerType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.LdapServerType left, Azure.ResourceManager.NetApp.Models.LdapServerType right) { throw null; } - public override string ToString() { throw null; } + Azure.ResourceManager.NetApp.Models.ListReplicationsContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NetApp.Models.ListReplicationsContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MultiAdStatus : System.IEquatable @@ -1541,7 +1448,6 @@ public NetAppAccountPatch(Azure.Core.AzureLocation location) { } 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 Azure.ResourceManager.NetApp.Models.LdapConfiguration LdapConfiguration { get { throw null; } set { } } public Azure.ResourceManager.NetApp.Models.MultiAdStatus? MultiAdStatus { get { throw null; } } public string NfsV4IdDomain { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } @@ -1647,151 +1553,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class NetAppBucketCredentialsExpiry : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketCredentialsExpiry() { } - public int? KeyPairExpiryDays { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialsExpiry System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialsExpiry System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct NetAppBucketCredentialStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public NetAppBucketCredentialStatus(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus Active { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus CredentialsExpired { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus NoCredentialsSet { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus left, Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus left, Azure.ResourceManager.NetApp.Models.NetAppBucketCredentialStatus right) { throw null; } - public override string ToString() { throw null; } - } - public partial class NetAppBucketFileSystemUser : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketFileSystemUser() { } - public string CifsUserUsername { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketNfsUser NfsUser { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppBucketGenerateCredentials : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal NetAppBucketGenerateCredentials() { } - public string AccessKey { get { throw null; } } - public System.DateTimeOffset? KeyPairExpiry { get { throw null; } } - public string SecretKey { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketGenerateCredentials System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketGenerateCredentials System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppBucketNfsUser : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketNfsUser() { } - public long? GroupId { get { throw null; } set { } } - public long? UserId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketNfsUser System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketNfsUser System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppBucketPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketPatch() { } - public Azure.ResourceManager.NetApp.Models.NetAppBucketFileSystemUser FileSystemUser { get { throw null; } set { } } - public string Path { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission? Permissions { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppBucketServerPatchProperties Server { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct NetAppBucketPatchPermission : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public NetAppBucketPatchPermission(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission ReadOnly { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission ReadWrite { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission left, Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission left, Azure.ResourceManager.NetApp.Models.NetAppBucketPatchPermission right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct NetAppBucketPermission : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public NetAppBucketPermission(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketPermission ReadOnly { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppBucketPermission ReadWrite { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppBucketPermission other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.NetAppBucketPermission left, Azure.ResourceManager.NetApp.Models.NetAppBucketPermission right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.NetAppBucketPermission (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.NetAppBucketPermission left, Azure.ResourceManager.NetApp.Models.NetAppBucketPermission right) { throw null; } - public override string ToString() { throw null; } - } - public partial class NetAppBucketServerPatchProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketServerPatchProperties() { } - public string CertificateObject { get { throw null; } set { } } - public string Fqdn { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketServerPatchProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketServerPatchProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppBucketServerProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NetAppBucketServerProperties() { } - public string CertificateCommonName { get { throw null; } } - public System.DateTimeOffset? CertificateExpiryOn { get { throw null; } } - public string CertificateObject { get { throw null; } set { } } - public string Fqdn { get { throw null; } set { } } - public string IPAddress { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketServerProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppBucketServerProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class NetAppChangeKeyVault : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NetAppChangeKeyVault(System.Uri keyVaultUri, string keyName, System.Collections.Generic.IEnumerable keyVaultPrivateEndpoints) { } @@ -2100,8 +1861,10 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer private readonly int _dummyPrimitive; public NetAppNameAvailabilityResourceType(string value) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccounts { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsBackupVaultsBackups { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPools { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesBackups { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots { get { throw null; } } public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityResourceType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -2184,8 +1947,10 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer private readonly int _dummyPrimitive; public NetAppQuotaAvailabilityResourceType(string value) { throw null; } public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccounts { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsBackupVaultsBackups { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPools { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesBackups { get { throw null; } } public static Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots { get { throw null; } } public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppQuotaAvailabilityResourceType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -2236,10 +2001,6 @@ public NetAppReplicationObject() { } public NetAppReplicationObject(Azure.Core.ResourceIdentifier remoteVolumeResourceId) { } public System.Collections.Generic.IReadOnlyList DestinationReplications { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppEndpointType? EndpointType { get { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] set { } } - public string ExternalReplicationSetupInfo { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.ExternalReplicationSetupStatus? ExternalReplicationSetupStatus { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppMirrorState? MirrorState { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? RelationshipStatus { get { throw null; } } public Azure.ResourceManager.NetApp.Models.RemotePath RemotePath { get { throw null; } set { } } public string RemoteVolumeRegion { get { throw null; } set { } } public Azure.Core.ResourceIdentifier RemoteVolumeResourceId { get { throw null; } set { } } @@ -2296,9 +2057,10 @@ internal NetAppRestoreStatus() { } public string ErrorMessage { get { throw null; } } public bool? IsHealthy { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppMirrorState? MirrorState { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? RelationshipStatus { get { throw null; } } + public virtual Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? RelationshipStatus { get { throw null; } } public long? TotalTransferBytes { get { throw null; } } public string UnhealthyReason { get { throw null; } } + public Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus? VolumeRestoreRelationshipStatus { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NetApp.Models.NetAppRestoreStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2475,10 +2237,11 @@ internal NetAppVolumeBackupStatus() { } public long? LastTransferSize { get { throw null; } } public string LastTransferType { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppMirrorState? MirrorState { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? RelationshipStatus { get { throw null; } } + public virtual Azure.ResourceManager.NetApp.Models.NetAppRelationshipStatus? RelationshipStatus { get { throw null; } } public long? TotalTransferBytes { get { throw null; } } public long? TransferProgressBytes { get { throw null; } } public string UnhealthyReason { get { throw null; } } + public Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus? VolumeBackupRelationshipStatus { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2616,8 +2379,6 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Azure. public bool? IsSmbEncryptionEnabled { get { throw null; } set { } } public bool? IsSnapshotDirectoryVisible { get { throw null; } set { } } public Azure.Core.ResourceIdentifier KeyVaultPrivateEndpointResourceId { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage? Language { get { throw null; } set { } } - public Azure.ResourceManager.NetApp.Models.LdapServerType? LdapServerType { get { throw null; } set { } } public long? MaximumNumberOfFiles { get { throw null; } } public System.Collections.Generic.IReadOnlyList MountTargets { get { throw null; } } public string Name { get { throw null; } set { } } @@ -2653,91 +2414,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct NetAppVolumeLanguage : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public NetAppVolumeLanguage(string value) { throw null; } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Ar { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ArUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage C { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Cs { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage CsUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage CUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Da { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage DaUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage De { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage DeUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage En { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage EnUs { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage EnUsUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage EnUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Es { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage EsUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Fi { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage FiUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Fr { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage FrUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage He { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage HeUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Hr { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage HrUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Hu { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage HuUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage It { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ItUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Ja { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJp932 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJp932Utf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJpPck { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJpPckUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJpPckV2 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaJpPckV2Utf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaV1 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage JaV1Utf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Ko { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage KoUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Nl { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage NlUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage No { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage NoUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Pl { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage PlUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Pt { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage PtUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Ro { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage RoUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Ru { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage RuUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Sk { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage SkUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Sl { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage SlUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Sv { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage SvUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Tr { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage TrUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Utf8Mb4 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage Zh { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhGbk { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhGbkUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhTw { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhTwBig5 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhTwBig5Utf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhTwUtf8 { get { throw null; } } - public static Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage ZhUtf8 { get { throw null; } } - public bool Equals(Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage left, Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage right) { throw null; } - public static implicit operator Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage left, Azure.ResourceManager.NetApp.Models.NetAppVolumeLanguage right) { throw null; } - public override string ToString() { throw null; } - } public partial class NetAppVolumeMountTarget : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal NetAppVolumeMountTarget() { } @@ -2816,33 +2492,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class NetAppVolumeQuotaReport : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal NetAppVolumeQuotaReport() { } - public bool? IsDerivedQuota { get { throw null; } } - public float? PercentageUsed { get { throw null; } } - public long? QuotaLimitTotalInKiBs { get { throw null; } } - public long? QuotaLimitUsedInKiBs { get { throw null; } } - public string QuotaTarget { get { throw null; } } - public Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaType? QuotaType { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReport System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReport System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NetAppVolumeQuotaReportListResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal NetAppVolumeQuotaReportListResult() { } - public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReportListResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NetApp.Models.NetAppVolumeQuotaReportListResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class NetAppVolumeQuotaRulePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NetAppVolumeQuotaRulePatch() { } @@ -2905,8 +2554,11 @@ public partial class NetAppVolumeReplication : System.ClientModel.Primitives.IJs { internal NetAppVolumeReplication() { } public Azure.ResourceManager.NetApp.Models.NetAppEndpointType? EndpointType { get { throw null; } } + public Azure.ResourceManager.NetApp.Models.ReplicationMirrorState? MirrorState { get { throw null; } } public string RemoteVolumeRegion { get { throw null; } } public Azure.Core.ResourceIdentifier RemoteVolumeResourceId { get { throw null; } } + public System.DateTimeOffset? ReplicationCreationOn { get { throw null; } } + public System.DateTimeOffset? ReplicationDeletionOn { get { throw null; } } public string ReplicationId { get { throw null; } } public Azure.ResourceManager.NetApp.Models.NetAppReplicationSchedule? ReplicationSchedule { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3114,6 +2766,25 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ReplicationMirrorState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ReplicationMirrorState(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.ReplicationMirrorState Broken { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.ReplicationMirrorState Mirrored { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.ReplicationMirrorState Uninitialized { get { throw null; } } + public bool Equals(Azure.ResourceManager.NetApp.Models.ReplicationMirrorState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.NetApp.Models.ReplicationMirrorState left, Azure.ResourceManager.NetApp.Models.ReplicationMirrorState right) { throw null; } + public static implicit operator Azure.ResourceManager.NetApp.Models.ReplicationMirrorState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.NetApp.Models.ReplicationMirrorState left, Azure.ResourceManager.NetApp.Models.ReplicationMirrorState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct SmbAccessBasedEnumeration : System.IEquatable { private readonly object _dummy; @@ -3248,6 +2919,26 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct VolumeBackupRelationshipStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VolumeBackupRelationshipStatus(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus Failed { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus Idle { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus Transferring { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus Unknown { get { throw null; } } + public bool Equals(Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus left, Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus left, Azure.ResourceManager.NetApp.Models.VolumeBackupRelationshipStatus right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct VolumeReplicationRelationshipStatus : System.IEquatable { private readonly object _dummy; @@ -3265,4 +2956,24 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.NetApp.Models.VolumeReplicationRelationshipStatus left, Azure.ResourceManager.NetApp.Models.VolumeReplicationRelationshipStatus right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct VolumeRestoreRelationshipStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VolumeRestoreRelationshipStatus(string value) { throw null; } + public static Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus Failed { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus Idle { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus Transferring { get { throw null; } } + public static Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus Unknown { get { throw null; } } + public bool Equals(Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus left, Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus left, Azure.ResourceManager.NetApp.Models.VolumeRestoreRelationshipStatus right) { throw null; } + public override string ToString() { throw null; } + } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/assets.json b/sdk/netapp/Azure.ResourceManager.NetApp/assets.json index 2d92ffafd5a5..9e9e0a5e86b4 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_f4f184ecbe" + "Tag": "net/netapp/Azure.ResourceManager.NetApp_09461a0154" } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs index 46f2aef4f109..a06e24400f8f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs @@ -217,5 +217,138 @@ public static NetAppVolumeReplicationStatus NetAppVolumeReplicationStatus(bool? totalProgress, errorMessage); } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// A unique read-only string that changes whenever the resource is updated. + /// UUID v4 used to identify the Pool. + /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). + /// The service level of the file system. + /// Azure lifecycle management. + /// Total throughput of pool in MiB/s. + /// Utilized throughput of pool in MiB/s. + /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. + /// The qos type of the pool. + /// If enabled (true) the pool can contain cool Access enabled volumes. + /// Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool. + /// A new instance for mocking. + public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, Guid? poolId = null, long size = default, NetAppFileServiceLevel serviceLevel = default, string provisioningState = null, float? totalThroughputMibps = null, float? utilizedThroughputMibps = null, float? customThroughputMibps = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, CapacityPoolEncryptionType? encryptionType = null) + { + tags ??= new Dictionary(); + + return ArmNetAppModelFactory.CapacityPoolData( + id, + name, + resourceType, + systemData, + tags, + location, + etag, + poolId, + size, + serviceLevel, + provisioningState, + totalThroughputMibps, + utilizedThroughputMibps, + customThroughputMibpsInt: customThroughputMibps.HasValue ? (int?)Convert.ToInt32(customThroughputMibps.Value) : null, + qosType, + isCoolAccessEnabled, + encryptionType); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). + /// The qos type of the pool. + /// If enabled (true) the pool can contain cool Access enabled volumes. + /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. + /// A new instance for mocking. + public static CapacityPoolPatch CapacityPoolPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, long? size = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, float? customThroughputMibps = null) + { + tags ??= new Dictionary(); + + return CapacityPoolPatch( + id, + name, + resourceType, + systemData, + tags, + location, + size, + qosType, + isCoolAccessEnabled, + customThroughputMibpsInt: customThroughputMibps.HasValue ? (int?)Convert.ToInt32(customThroughputMibps.Value) : null); + } + + /// Initializes a new instance of . + /// Backup health status. + /// Status of the backup mirror relationship. + /// The mirror state property describes the current status of data replication for a backup. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. + /// Reason for the unhealthy backup relationship. + /// Displays error message if the backup is in an error state. + /// Displays the last transfer size. + /// Displays the last transfer type. + /// Displays the total bytes transferred. + /// Displays the total number of bytes transferred for the ongoing operation. + /// A new instance for mocking. + public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = null, NetAppRelationshipStatus? relationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? lastTransferSize = null, string lastTransferType = null, long? totalTransferBytes = null, long? transferProgressBytes = null) + { + VolumeBackupRelationshipStatus VolumeBackupRelationshipStatus = relationshipStatus.Value != null ? new VolumeBackupRelationshipStatus(relationshipStatus.ToString()) : null; + return ArmNetAppModelFactory.NetAppVolumeBackupStatus( + isHealthy, + VolumeBackupRelationshipStatus, + mirrorState, + unhealthyReason, + errorMessage, + lastTransferSize, + lastTransferType, + totalTransferBytes, + transferProgressBytes); + } + + /// Initializes a new instance of NetAppVolumeBackupStatus. + /// Backup health status. + /// Status of the backup mirror relationship. + /// The status of the backup. + /// Reason for the unhealthy backup relationship. + /// Displays error message if the backup is in an error state. + /// Displays the last transfer size. + /// Displays the last transfer type. + /// Displays the total bytes transferred. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy, NetAppRelationshipStatus? relationshipStatus, NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? lastTransferSize, string lastTransferType, long? totalTransferBytes) + { + return NetAppVolumeBackupStatus(isHealthy: isHealthy, relationshipStatus: relationshipStatus, mirrorState: mirrorState, unhealthyReason: unhealthyReason, errorMessage: errorMessage, lastTransferSize: lastTransferSize, lastTransferType: lastTransferType, totalTransferBytes: totalTransferBytes, transferProgressBytes: default); + } + + /// Initializes a new instance of . + /// Restore health status. + /// Status of the restore SnapMirror relationship. + /// The mirror state property describes the current status of data replication for a restore. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. + /// Reason for the unhealthy restore relationship. + /// Displays error message if the restore is in an error state. + /// Displays the total bytes transferred. + /// A new instance for mocking. + public static NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = null, NetAppRelationshipStatus? relationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? totalTransferBytes = null) + { + return ArmNetAppModelFactory.NetAppRestoreStatus( + isHealthy, + relationshipStatus, + mirrorState, + unhealthyReason, + errorMessage, + totalTransferBytes); + } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/CapacityPoolData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/CapacityPoolData.cs new file mode 100644 index 000000000000..27ea7bace5c1 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/CapacityPoolData.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.NetApp.Models; + +namespace Azure.ResourceManager.NetApp +{ + /// + /// A class representing the CapacityPool data model. + /// Capacity pool resource + /// + public partial class CapacityPoolData : TrackedResourceData + { + /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. + public float? CustomThroughputMibps + { + get + { + return CustomThroughputMibpsInt.HasValue ? (float?)CustomThroughputMibpsInt.Value : null; + } + set + { + CustomThroughputMibpsInt = value.HasValue ? (int)value.Value : null; + } + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/CapacityPoolPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/CapacityPoolPatch.cs new file mode 100644 index 000000000000..13054ff8d1c6 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/CapacityPoolPatch.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// Capacity pool patch resource. + public partial class CapacityPoolPatch : TrackedResourceData + { + /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. + public float? CustomThroughputMibps + { + get + { + return CustomThroughputMibpsInt.HasValue ? (float?)CustomThroughputMibpsInt.Value : null; + } + set + { + CustomThroughputMibpsInt = value.HasValue ? (int)value.Value : null; + } + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupStatus.cs index f578818fefbc..a814ffa0dbe5 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupStatus.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppVolumeBackupStatus.cs @@ -1,93 +1,23 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -//#nullable disable +#nullable disable -//using System.Collections.Generic; -//using System; -//using System.ComponentModel; +using System.Collections.Generic; +using System; +using System.ComponentModel; -//namespace Azure.ResourceManager.NetApp.Models -//{ -// /// Backup status. -// [EditorBrowsable(EditorBrowsableState.Never)] -// public partial class NetAppVolumeBackupStatus -// { -// /// -// /// Keeps track of any properties unknown to the library. -// /// -// /// To assign an object to the value of this property use . -// /// -// /// -// /// To assign an already formatted json string to this property use . -// /// -// /// -// /// Examples: -// /// -// /// -// /// BinaryData.FromObjectAsJson("foo") -// /// Creates a payload of "foo". -// /// -// /// -// /// BinaryData.FromString("\"foo\"") -// /// Creates a payload of "foo". -// /// -// /// -// /// BinaryData.FromObjectAsJson(new { key = "value" }) -// /// Creates a payload of { "key": "value" }. -// /// -// /// -// /// BinaryData.FromString("{\"key\": \"value\"}") -// /// Creates a payload of { "key": "value" }. -// /// -// /// -// /// -// /// -// private IDictionary _serializedAdditionalRawData; - -// /// Initializes a new instance of . -// internal NetAppVolumeBackupStatus() -// { -// } - -// /// Initializes a new instance of . -// /// Backup health status. -// /// Status of the backup mirror relationship. -// /// The status of the backup. -// /// Reason for the unhealthy backup relationship. -// /// Displays error message if the backup is in an error state. -// /// Displays the last transfer size. -// /// Displays the last transfer type. -// /// Displays the total bytes transferred. -// /// Keeps track of any properties unknown to the library. -// internal NetAppVolumeBackupStatus(bool? isHealthy, NetAppRelationshipStatus? relationshipStatus, NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? lastTransferSize, string lastTransferType, long? totalTransferBytes, IDictionary serializedAdditionalRawData) -// { -// IsHealthy = isHealthy; -// RelationshipStatus = relationshipStatus; -// MirrorState = mirrorState; -// UnhealthyReason = unhealthyReason; -// ErrorMessage = errorMessage; -// LastTransferSize = lastTransferSize; -// LastTransferType = lastTransferType; -// TotalTransferBytes = totalTransferBytes; -// _serializedAdditionalRawData = serializedAdditionalRawData; -// } - -// /// Backup health status. -// public bool? IsHealthy { get; } -// /// Status of the backup mirror relationship. -// public NetAppRelationshipStatus? RelationshipStatus { get; } -// /// The status of the backup. -// public NetAppMirrorState? MirrorState { get; } -// /// Reason for the unhealthy backup relationship. -// public string UnhealthyReason { get; } -// /// Displays error message if the backup is in an error state. -// public string ErrorMessage { get; } -// /// Displays the last transfer size. -// public long? LastTransferSize { get; } -// /// Displays the last transfer type. -// public string LastTransferType { get; } -// /// Displays the total bytes transferred. -// public long? TotalTransferBytes { get; } -// } -//} +namespace Azure.ResourceManager.NetApp.Models +{ + /// Backup status. + public partial class NetAppVolumeBackupStatus + { + /// Gets or sets the relationship status. + public virtual NetAppRelationshipStatus? RelationshipStatus + { + get => VolumeBackupRelationshipStatus.HasValue + ? new NetAppRelationshipStatus(VolumeBackupRelationshipStatus.Value.ToString()) + : null; + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetappRestoreStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetappRestoreStatus.cs new file mode 100644 index 000000000000..862898cc703b --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetappRestoreStatus.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// Restore status. + public partial class NetAppRestoreStatus + { + /// Gets or sets the relationship status. + public virtual NetAppRelationshipStatus? RelationshipStatus + { + get => VolumeRestoreRelationshipStatus.HasValue + ? new NetAppRelationshipStatus(VolumeRestoreRelationshipStatus.Value.ToString()) + : null; + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeResource.cs index a7aaf3186001..7e6ea337a89a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/NetAppVolumeResource.cs @@ -229,5 +229,63 @@ public virtual Response GetRestoreStatus(CancellationToken throw; } } + + /// + /// List all replications for a specified volume + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listReplications + /// + /// + /// Operation Id + /// Volumes_ListReplications + /// + /// + /// Default Api Version + /// 2025-07-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetReplicationsAsync(CancellationToken cancellationToken) + { + return GetReplicationsAsync(content: null, cancellationToken); + } + + /// + /// List all replications for a specified volume + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listReplications + /// + /// + /// Operation Id + /// Volumes_ListReplications + /// + /// + /// Default Api Version + /// 2025-07-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetReplications(CancellationToken cancellationToken = default) + { + return GetReplications(content: null, cancellationToken); + } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs index 2658d7b7a4dd..71a5f671913a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/ArmNetAppModelFactory.cs @@ -18,51 +18,99 @@ namespace Azure.ResourceManager.NetApp.Models /// Model factory for models. public static partial class ArmNetAppModelFactory { + /// Initializes a new instance of . + /// + /// File path to verify. + /// Serialized Name: FilePathAvailabilityRequest.name + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: FilePathAvailabilityRequest.subnetId + /// + /// + /// The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone where volume is placed. + /// Serialized Name: FilePathAvailabilityRequest.availabilityZone + /// + /// A new instance for mocking. + public static NetAppFilePathAvailabilityContent NetAppFilePathAvailabilityContent(string name = null, ResourceIdentifier subnetId = null, string availabilityZone = null) + { + return new NetAppFilePathAvailabilityContent(name, subnetId, availabilityZone, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . - /// <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both. - /// <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. - /// If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name. + /// + /// <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both. + /// Serialized Name: CheckAvailabilityResponse.isAvailable + /// + /// + /// <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. + /// Serialized Name: CheckAvailabilityResponse.reason + /// + /// + /// If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name. + /// Serialized Name: CheckAvailabilityResponse.message + /// /// A new instance for mocking. public static NetAppCheckAvailabilityResult NetAppCheckAvailabilityResult(bool? isAvailable = null, NetAppNameUnavailableReason? reason = null, string message = null) { return new NetAppCheckAvailabilityResult(isAvailable, reason, message, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// File path to verify. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone where volume is placed. - /// A new instance for mocking. - public static NetAppFilePathAvailabilityContent NetAppFilePathAvailabilityContent(string name = null, ResourceIdentifier subnetId = null, string availabilityZone = null) + /// Initializes a new instance of . + /// + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// Serialized Name: NetworkSiblingSet.networkSiblingSetId + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + /// Serialized Name: NetworkSiblingSet.subnetId + /// + /// + /// Network sibling set state Id identifying the current state of the sibling set. + /// Serialized Name: NetworkSiblingSet.networkSiblingSetStateId + /// + /// + /// Network features available to the volume, or current state of update. + /// Serialized Name: NetworkSiblingSet.networkFeatures + /// + /// + /// Gets the status of the NetworkSiblingSet at the time the operation was called. + /// Serialized Name: NetworkSiblingSet.provisioningState + /// + /// + /// List of NIC information + /// Serialized Name: NetworkSiblingSet.nicInfoList + /// + /// A new instance for mocking. + public static NetworkSiblingSet NetworkSiblingSet(string networkSiblingSetId = null, ResourceIdentifier subnetId = null, string networkSiblingSetStateId = null, NetAppNetworkFeature? networkFeatures = null, NetworkSiblingSetProvisioningState? provisioningState = null, IEnumerable nicInfoList = null) { - return new NetAppFilePathAvailabilityContent(name, subnetId, availabilityZone, serializedAdditionalRawData: null); - } + nicInfoList ??= new List(); - /// Initializes a new instance of . - /// The id of the usage. - /// The name of the usage. - /// The current usage value for the subscription. - /// The limit of the usage. - /// The unit of the usage. - /// A new instance for mocking. - public static NetAppUsageResult NetAppUsageResult(string id = null, NetAppUsageName name = null, int? currentValue = null, int? limit = null, string unit = null) - { - return new NetAppUsageResult( - id, - name, - currentValue, - limit, - unit, + return new NetworkSiblingSet( + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures, + provisioningState, + nicInfoList?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The name of the usage. - /// The localized name of the usage. - /// A new instance for mocking. - public static NetAppUsageName NetAppUsageName(string value = null, string localizedValue = null) + /// Initializes a new instance of . + /// + /// ipAddress + /// Serialized Name: NicInfo.ipAddress + /// + /// + /// Volume resource Ids + /// Serialized Name: NicInfo.volumeResourceIds + /// + /// A new instance for mocking. + public static NicInfo NicInfo(string ipAddress = null, IEnumerable volumeResourceIds = null) { - return new NetAppUsageName(value, localizedValue, serializedAdditionalRawData: null); + volumeResourceIds ??= new List(); + + return new NicInfo(ipAddress, volumeResourceIds?.ToList(), serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -70,9 +118,18 @@ public static NetAppUsageName NetAppUsageName(string value = null, string locali /// The name. /// The resourceType. /// The systemData. - /// The current quota value. - /// The default quota value. - /// The usage quota value. + /// + /// The current quota value. + /// Serialized Name: QuotaItem.properties.current + /// + /// + /// The default quota value. + /// Serialized Name: QuotaItem.properties.default + /// + /// + /// The usage quota value. + /// Serialized Name: QuotaItem.properties.usage + /// /// A new instance for mocking. public static NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, int? current = null, int? @default = null, int? usage = null) { @@ -88,8 +145,14 @@ public static NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(ResourceId } /// Initializes a new instance of . - /// Provides storage to network proximity information in the region. - /// Provides logical availability zone mappings for the subscription for a region. + /// + /// Provides storage to network proximity information in the region. + /// Serialized Name: RegionInfo.storageToNetworkProximity + /// + /// + /// Provides logical availability zone mappings for the subscription for a region. + /// Serialized Name: RegionInfo.availabilityZoneMappings + /// /// A new instance for mocking. public static NetAppRegionInfo NetAppRegionInfo(RegionStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable availabilityZoneMappings = null) { @@ -103,8 +166,14 @@ public static NetAppRegionInfo NetAppRegionInfo(RegionStorageToNetworkProximity? /// The name. /// The resourceType. /// The systemData. - /// Provides storage to network proximity information in the region. - /// Provides logical availability zone mappings for the subscription for a region. + /// + /// Provides storage to network proximity information in the region. + /// Serialized Name: RegionInfoResource.properties.storageToNetworkProximity + /// + /// + /// Provides logical availability zone mappings for the subscription for a region. + /// Serialized Name: RegionInfoResource.properties.availabilityZoneMappings + /// /// A new instance for mocking. public static RegionInfoResourceData RegionInfoResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, RegionStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable availabilityZoneMappings = null) { @@ -120,37 +189,52 @@ public static RegionInfoResourceData RegionInfoResourceData(ResourceIdentifier i serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. - /// Network sibling set state Id identifying the current state of the sibling set. - /// Network features available to the volume, or current state of update. - /// Gets the status of the NetworkSiblingSet at the time the operation was called. - /// List of NIC information. - /// A new instance for mocking. - public static NetworkSiblingSet NetworkSiblingSet(string networkSiblingSetId = null, ResourceIdentifier subnetId = null, string networkSiblingSetStateId = null, NetAppNetworkFeature? networkFeatures = null, NetworkSiblingSetProvisioningState? provisioningState = null, IEnumerable nicInfoList = null) + /// Initializes a new instance of . + /// + /// The id of the usage. + /// Serialized Name: UsageResult.id + /// + /// + /// The name of the usage. + /// Serialized Name: UsageResult.name + /// + /// + /// The current usage value for the subscription. + /// Serialized Name: UsageResult.properties.currentValue + /// + /// + /// The limit of the usage. + /// Serialized Name: UsageResult.properties.limit + /// + /// + /// The unit of the usage. + /// Serialized Name: UsageResult.properties.unit + /// + /// A new instance for mocking. + public static NetAppUsageResult NetAppUsageResult(string id = null, NetAppUsageName name = null, int? currentValue = null, int? limit = null, string unit = null) { - nicInfoList ??= new List(); - - return new NetworkSiblingSet( - networkSiblingSetId, - subnetId, - networkSiblingSetStateId, - networkFeatures, - provisioningState, - nicInfoList?.ToList(), + return new NetAppUsageResult( + id, + name, + currentValue, + limit, + unit, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// ipAddress. - /// Volume resource Ids. - /// A new instance for mocking. - public static NicInfo NicInfo(string ipAddress = null, IEnumerable volumeResourceIds = null) + /// Initializes a new instance of . + /// + /// The name of the usage. + /// Serialized Name: UsageName.value + /// + /// + /// The localized name of the usage. + /// Serialized Name: UsageName.localizedValue + /// + /// A new instance for mocking. + public static NetAppUsageName NetAppUsageName(string value = null, string localizedValue = null) { - volumeResourceIds ??= new List(); - - return new NicInfo(ipAddress, volumeResourceIds?.ToList(), serializedAdditionalRawData: null); + return new NetAppUsageName(value, localizedValue, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -160,17 +244,40 @@ public static NicInfo NicInfo(string ipAddress = null, IEnumerable The systemData. /// The tags. /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// The identity used for the resource. - /// Azure lifecycle management. - /// Active Directories. - /// Encryption settings. - /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. - /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. - /// MultiAD Status for the account. - /// LDAP Configuration for the account. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: NetAppAccount.etag + /// + /// + /// The managed service identities assigned to this resource. + /// Serialized Name: NetAppAccount.identity + /// + /// + /// Azure lifecycle management + /// Serialized Name: NetAppAccount.properties.provisioningState + /// + /// + /// Active Directories + /// Serialized Name: NetAppAccount.properties.activeDirectories + /// + /// + /// Encryption settings + /// Serialized Name: NetAppAccount.properties.encryption + /// + /// + /// Shows the status of disableShowmount for all volumes under the subscription, null equals false + /// Serialized Name: NetAppAccount.properties.disableShowmount + /// + /// + /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. + /// Serialized Name: NetAppAccount.properties.nfsV4IDDomain + /// + /// + /// MultiAD Status for the account + /// Serialized Name: NetAppAccount.properties.multiAdStatus + /// /// A new instance for mocking. - public static NetAppAccountData NetAppAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ManagedServiceIdentity identity = null, string provisioningState = null, IEnumerable activeDirectories = null, NetAppAccountEncryption encryption = null, bool? disableShowmount = null, string nfsV4IdDomain = null, MultiAdStatus? multiAdStatus = null, LdapConfiguration ldapConfiguration = null) + public static NetAppAccountData NetAppAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ManagedServiceIdentity identity = null, string provisioningState = null, IEnumerable activeDirectories = null, NetAppAccountEncryption encryption = null, bool? disableShowmount = null, string nfsV4IdDomain = null, MultiAdStatus? multiAdStatus = null) { tags ??= new Dictionary(); activeDirectories ??= new List(); @@ -190,34 +297,102 @@ public static NetAppAccountData NetAppAccountData(ResourceIdentifier id = null, disableShowmount, nfsV4IdDomain, multiAdStatus, - ldapConfiguration, serializedAdditionalRawData: null); } /// Initializes a new instance of . - /// Id of the Active Directory. - /// A domain user account with permission to create machine accounts. - /// Plain text password of Active Directory domain administrator, value is masked in the response. - /// Name of the Active Directory domain. - /// Comma separated list of DNS server IP addresses (IPv4 only) for the Active Directory domain. - /// Status of the Active Directory. - /// Any details in regards to the Status of the Active Directory. - /// NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount volumes. - /// The Organizational Unit (OU) within the Windows Active Directory. - /// The Active Directory site the service will limit Domain Controller discovery to. - /// Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without domain specifier. - /// Users to be added to the Built-in Administrators active directory group. A list of unique usernames without domain specifier. - /// kdc server IP address for the active directory machine. This optional parameter is used only while creating kerberos volume. - /// Name of the active directory machine. This optional parameter is used only while creating kerberos volume. - /// When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter is used only for dual protocol with LDAP user-mapping volumes. - /// If enabled, AES encryption will be enabled for SMB communication. - /// Specifies whether or not the LDAP traffic needs to be signed. - /// Domain Users in the Active directory to be given SeSecurityPrivilege privilege (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier. - /// Specifies whether or not the LDAP traffic needs to be secured via TLS. - /// If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. - /// If enabled, Traffic between the SMB server to Domain Controller (DC) will be encrypted. - /// LDAP Search scope options. - /// Comma separated list of IPv4 addresses of preferred servers for LDAP client. At most two comma separated IPv4 addresses can be passed. + /// + /// Id of the Active Directory + /// Serialized Name: ActiveDirectory.activeDirectoryId + /// + /// + /// A domain user account with permission to create machine accounts + /// Serialized Name: ActiveDirectory.username + /// + /// + /// Plain text password of Active Directory domain administrator, value is masked in the response + /// Serialized Name: ActiveDirectory.password + /// + /// + /// Name of the Active Directory domain + /// Serialized Name: ActiveDirectory.domain + /// + /// + /// Comma separated list of DNS server IP addresses (IPv4 only) for the Active Directory domain + /// Serialized Name: ActiveDirectory.dns + /// + /// + /// Status of the Active Directory + /// Serialized Name: ActiveDirectory.status + /// + /// + /// Any details in regards to the Status of the Active Directory + /// Serialized Name: ActiveDirectory.statusDetails + /// + /// + /// NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount volumes + /// Serialized Name: ActiveDirectory.smbServerName + /// + /// + /// The Organizational Unit (OU) within the Windows Active Directory + /// Serialized Name: ActiveDirectory.organizationalUnit + /// + /// + /// The Active Directory site the service will limit Domain Controller discovery to + /// Serialized Name: ActiveDirectory.site + /// + /// + /// Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without domain specifier + /// Serialized Name: ActiveDirectory.backupOperators + /// + /// + /// Users to be added to the Built-in Administrators active directory group. A list of unique usernames without domain specifier + /// Serialized Name: ActiveDirectory.administrators + /// + /// + /// kdc server IP address for the active directory machine. This optional parameter is used only while creating kerberos volume. + /// Serialized Name: ActiveDirectory.kdcIP + /// + /// + /// Name of the active directory machine. This optional parameter is used only while creating kerberos volume + /// Serialized Name: ActiveDirectory.adName + /// + /// + /// When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter is used only for dual protocol with LDAP user-mapping volumes. + /// Serialized Name: ActiveDirectory.serverRootCACertificate + /// + /// + /// If enabled, AES encryption will be enabled for SMB communication. + /// Serialized Name: ActiveDirectory.aesEncryption + /// + /// + /// Specifies whether or not the LDAP traffic needs to be signed. + /// Serialized Name: ActiveDirectory.ldapSigning + /// + /// + /// Domain Users in the Active directory to be given SeSecurityPrivilege privilege (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier + /// Serialized Name: ActiveDirectory.securityOperators + /// + /// + /// Specifies whether or not the LDAP traffic needs to be secured via TLS. + /// Serialized Name: ActiveDirectory.ldapOverTLS + /// + /// + /// If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. + /// Serialized Name: ActiveDirectory.allowLocalNfsUsersWithLdap + /// + /// + /// If enabled, Traffic between the SMB server to Domain Controller (DC) will be encrypted. + /// Serialized Name: ActiveDirectory.encryptDCConnections + /// + /// + /// LDAP Search scope options + /// Serialized Name: ActiveDirectory.ldapSearchScope + /// + /// + /// Comma separated list of IPv4 addresses of preferred servers for LDAP client. At most two comma separated IPv4 addresses can be passed. + /// Serialized Name: ActiveDirectory.preferredServersForLdapClient + /// /// A new instance for mocking. public static NetAppAccountActiveDirectory NetAppAccountActiveDirectory(string activeDirectoryId = null, string username = null, string password = null, string domain = null, string dns = null, NetAppAccountActiveDirectoryStatus? status = null, string statusDetails = null, string smbServerName = null, string organizationalUnit = null, string site = null, IEnumerable backupOperators = null, IEnumerable administrators = null, IPAddress kdcIP = null, string adName = null, string serverRootCACertificate = null, bool? isAesEncryptionEnabled = null, bool? isLdapSigningEnabled = null, IEnumerable securityOperators = null, bool? isLdapOverTlsEnabled = null, bool? allowLocalNfsUsersWithLdap = null, bool? encryptDCConnections = null, NetAppLdapSearchScopeConfiguration ldapSearchScope = null, string preferredServersForLdapClient = null) { @@ -253,11 +428,26 @@ public static NetAppAccountActiveDirectory NetAppAccountActiveDirectory(string a } /// Initializes a new instance of . - /// UUID v4 used to identify the Azure Key Vault configuration. - /// The Uri of KeyVault. - /// The name of KeyVault key. - /// The resource ID of KeyVault. - /// Status of the KeyVault connection. + /// + /// UUID v4 used to identify the Azure Key Vault configuration + /// Serialized Name: KeyVaultProperties.keyVaultId + /// + /// + /// The Uri of KeyVault. + /// Serialized Name: KeyVaultProperties.keyVaultUri + /// + /// + /// The name of KeyVault key. + /// Serialized Name: KeyVaultProperties.keyName + /// + /// + /// The resource ID of KeyVault. + /// Serialized Name: KeyVaultProperties.keyVaultResourceId + /// + /// + /// Status of the KeyVault connection. + /// Serialized Name: KeyVaultProperties.status + /// /// A new instance for mocking. public static NetAppKeyVaultProperties NetAppKeyVaultProperties(string keyVaultId = null, Uri keyVaultUri = null, string keyName = null, ResourceIdentifier keyVaultArmResourceId = null, NetAppKeyVaultStatus? status = null) { @@ -271,9 +461,18 @@ public static NetAppKeyVaultProperties NetAppKeyVaultProperties(string keyVaultI } /// Initializes a new instance of . - /// The principal ID (object ID) of the identity used to authenticate with key vault. Read-only. - /// The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities. - /// ClientId of the multi-tenant AAD Application. Used to access cross-tenant KeyVaults. + /// + /// The principal ID (object ID) of the identity used to authenticate with key vault. Read-only. + /// Serialized Name: EncryptionIdentity.principalId + /// + /// + /// The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities. + /// Serialized Name: EncryptionIdentity.userAssignedIdentity + /// + /// + /// ClientId of the multi-tenant AAD Application. Used to access cross-tenant keyvaults. + /// Serialized Name: EncryptionIdentity.federatedClientId + /// /// A new instance for mocking. public static NetAppEncryptionIdentity NetAppEncryptionIdentity(string principalId = null, string userAssignedIdentity = null, string federatedClientId = null) { @@ -287,16 +486,36 @@ public static NetAppEncryptionIdentity NetAppEncryptionIdentity(string principal /// The systemData. /// The tags. /// The location. - /// The identity used for the resource. - /// Azure lifecycle management. - /// Active Directories. - /// Encryption settings. - /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. - /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. - /// MultiAD Status for the account. - /// LDAP Configuration for the account. + /// + /// The identity used for the resource. + /// Serialized Name: NetAppAccountPatch.identity + /// + /// + /// Azure lifecycle management + /// Serialized Name: NetAppAccountPatch.properties.provisioningState + /// + /// + /// Active Directories + /// Serialized Name: NetAppAccountPatch.properties.activeDirectories + /// + /// + /// Encryption settings + /// Serialized Name: NetAppAccountPatch.properties.encryption + /// + /// + /// Shows the status of disableShowmount for all volumes under the subscription, null equals false + /// Serialized Name: NetAppAccountPatch.properties.disableShowmount + /// + /// + /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. + /// Serialized Name: NetAppAccountPatch.properties.nfsV4IDDomain + /// + /// + /// MultiAD Status for the account + /// Serialized Name: NetAppAccountPatch.properties.multiAdStatus + /// /// A new instance for mocking. - public static NetAppAccountPatch NetAppAccountPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string provisioningState = null, IEnumerable activeDirectories = null, NetAppAccountEncryption encryption = null, bool? disableShowmount = null, string nfsV4IdDomain = null, MultiAdStatus? multiAdStatus = null, LdapConfiguration ldapConfiguration = null) + public static NetAppAccountPatch NetAppAccountPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string provisioningState = null, IEnumerable activeDirectories = null, NetAppAccountEncryption encryption = null, bool? disableShowmount = null, string nfsV4IdDomain = null, MultiAdStatus? multiAdStatus = null) { tags ??= new Dictionary(); activeDirectories ??= new List(); @@ -315,60 +534,59 @@ public static NetAppAccountPatch NetAppAccountPatch(ResourceIdentifier id = null disableShowmount, nfsV4IdDomain, multiAdStatus, - ldapConfiguration, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The URI of the key vault/managed HSM that should be used for encryption. - /// The name of the key that should be used for encryption. - /// Azure resource ID of the key vault/managed HSM that should be used for encryption. - /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. - /// A new instance for mocking. - public static NetAppKeyVaultStatusResult NetAppKeyVaultStatusResult(Uri keyVaultUri = null, string keyName = null, ResourceIdentifier keyVaultResourceId = null, IEnumerable keyVaultPrivateEndpoints = null) - { - keyVaultPrivateEndpoints ??= new List(); - - return new NetAppKeyVaultStatusResult(keyVaultUri, keyName, keyVaultResourceId, keyVaultPrivateEndpoints?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The URI of the key vault/managed HSM that should be used for encryption. - /// The name of the key that should be used for encryption. - /// Azure resource ID of the key vault/managed HSM that should be used for encryption. - /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. - /// A new instance for mocking. - public static NetAppChangeKeyVault NetAppChangeKeyVault(Uri keyVaultUri = null, string keyName = null, ResourceIdentifier keyVaultResourceId = null, IEnumerable keyVaultPrivateEndpoints = null) - { - keyVaultPrivateEndpoints ??= new List(); - - return new NetAppChangeKeyVault(keyVaultUri, keyName, keyVaultResourceId, keyVaultPrivateEndpoints?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// UUID v4 used to identify the Pool. - /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). - /// The service level of the file system. - /// Azure lifecycle management. - /// Total throughput of pool in MiB/s. - /// Utilized throughput of pool in MiB/s. - /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. - /// The qos type of the pool. - /// If enabled (true) the pool can contain cool Access enabled volumes. - /// Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool. - /// A new instance for mocking. - public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, Guid? poolId = null, long size = default, NetAppFileServiceLevel serviceLevel = default, string provisioningState = null, float? totalThroughputMibps = null, float? utilizedThroughputMibps = null, float? customThroughputMibps = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, CapacityPoolEncryptionType? encryptionType = null) + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: BackupPolicy.etag + /// + /// + /// Backup Policy GUID ID + /// Serialized Name: BackupPolicy.properties.backupPolicyId + /// + /// + /// Azure lifecycle management + /// Serialized Name: BackupPolicy.properties.provisioningState + /// + /// + /// Daily backups count to keep + /// Serialized Name: BackupPolicy.properties.dailyBackupsToKeep + /// + /// + /// Weekly backups count to keep + /// Serialized Name: BackupPolicy.properties.weeklyBackupsToKeep + /// + /// + /// Monthly backups count to keep + /// Serialized Name: BackupPolicy.properties.monthlyBackupsToKeep + /// + /// + /// Volumes using current backup policy + /// Serialized Name: BackupPolicy.properties.volumesAssigned + /// + /// + /// The property to decide policy is enabled or not + /// Serialized Name: BackupPolicy.properties.enabled + /// + /// + /// A list of volumes assigned to this policy + /// Serialized Name: BackupPolicy.properties.volumeBackups + /// + /// A new instance for mocking. + public static NetAppBackupPolicyData NetAppBackupPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = null, int? weeklyBackupsToKeep = null, int? monthlyBackupsToKeep = null, int? volumesAssigned = null, bool? isEnabled = null, IEnumerable volumeBackups = null) { tags ??= new Dictionary(); + volumeBackups ??= new List(); - return new CapacityPoolData( + return new NetAppBackupPolicyData( id, name, resourceType, @@ -376,468 +594,294 @@ public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, st tags, location, etag, - poolId, - size, - serviceLevel, + backupPolicyId, provisioningState, - totalThroughputMibps, - utilizedThroughputMibps, - customThroughputMibps, - qosType, - isCoolAccessEnabled, - encryptionType, + dailyBackupsToKeep, + weeklyBackupsToKeep, + monthlyBackupsToKeep, + volumesAssigned, + isEnabled, + volumeBackups?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// + /// Volume name + /// Serialized Name: VolumeBackups.volumeName + /// + /// + /// ResourceId used to identify the Volume + /// Serialized Name: VolumeBackups.volumeResourceId + /// + /// + /// Total count of backups for volume + /// Serialized Name: VolumeBackups.backupsCount + /// + /// + /// Policy enabled + /// Serialized Name: VolumeBackups.policyEnabled + /// + /// A new instance for mocking. + public static NetAppVolumeBackupDetail NetAppVolumeBackupDetail(string volumeName = null, ResourceIdentifier volumeResourceId = null, int? backupsCount = null, bool? isPolicyEnabled = null) + { + return new NetAppVolumeBackupDetail(volumeName, volumeResourceId, backupsCount, isPolicyEnabled, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). - /// The qos type of the pool. - /// If enabled (true) the pool can contain cool Access enabled volumes. - /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. - /// A new instance for mocking. - public static CapacityPoolPatch CapacityPoolPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, long? size = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, float? customThroughputMibps = null) + /// + /// Backup Policy GUID ID + /// Serialized Name: BackupPolicyPatch.properties.backupPolicyId + /// + /// + /// Azure lifecycle management + /// Serialized Name: BackupPolicyPatch.properties.provisioningState + /// + /// + /// Daily backups count to keep + /// Serialized Name: BackupPolicyPatch.properties.dailyBackupsToKeep + /// + /// + /// Weekly backups count to keep + /// Serialized Name: BackupPolicyPatch.properties.weeklyBackupsToKeep + /// + /// + /// Monthly backups count to keep + /// Serialized Name: BackupPolicyPatch.properties.monthlyBackupsToKeep + /// + /// + /// Volumes using current backup policy + /// Serialized Name: BackupPolicyPatch.properties.volumesAssigned + /// + /// + /// The property to decide policy is enabled or not + /// Serialized Name: BackupPolicyPatch.properties.enabled + /// + /// + /// A list of volumes assigned to this policy + /// Serialized Name: BackupPolicyPatch.properties.volumeBackups + /// + /// A new instance for mocking. + public static NetAppBackupPolicyPatch NetAppBackupPolicyPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = null, int? weeklyBackupsToKeep = null, int? monthlyBackupsToKeep = null, int? volumesAssigned = null, bool? isEnabled = null, IEnumerable volumeBackups = null) { tags ??= new Dictionary(); + volumeBackups ??= new List(); - return new CapacityPoolPatch( + return new NetAppBackupPolicyPatch( id, name, resourceType, systemData, tags, location, - size, - qosType, - isCoolAccessEnabled, - customThroughputMibps, + backupPolicyId, + provisioningState, + dailyBackupsToKeep, + weeklyBackupsToKeep, + monthlyBackupsToKeep, + volumesAssigned, + isEnabled, + volumeBackups?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// Availability Zone. - /// Unique FileSystem Identifier. - /// A unique file path for the volume. Used when creating mount targets. - /// The service level of the file system. - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. - /// Set of export policy rules. - /// Set of protocol types, default NFSv3, CIFS for SMB protocol. - /// Azure lifecycle management. - /// Resource identifier used to identify the Snapshot. - /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false. - /// Resource identifier used to identify the Backup. - /// Unique Baremetal Tenant Identifier. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// The original value of the network features type available to the volume at the time it was created. - /// The effective value of the network features type available to the volume, or current effective state of update. - /// Network Sibling Set ID for the the group of volumes sharing networking resources. - /// Provides storage to network proximity information for the volume. - /// List of mount targets. - /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone. - /// DataProtection type volumes include an object containing details of the replication. - /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. - /// Restoring. - /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (defaults to true). - /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. - /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. - /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables continuously available share property for smb volume. Only applicable for SMB volume. - /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. - /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. - /// Source of key used to encrypt data in volume. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'. - /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - /// Specifies whether LDAP is enabled or not for a given NFS volume. - /// Specifies the type of LDAP server for a given NFS volume. - /// Specifies whether Cool Access(tiering) is enabled for the volume. - /// Specifies the number of days after which data that is not accessed by clients will be tiered. - /// - /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: - /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. - /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. - /// Never - No client-driven data is pulled from cool tier to standard storage. + /// + /// Azure lifecycle management + /// Serialized Name: BackupVault.properties.provisioningState /// - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. - /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain as its last saved value only. - /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. - /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. - /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - /// Data store resource unique identifier. - /// Specifies if default quota is enabled for the volume. - /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . - /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. - /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. - /// Volume Group Name. - /// Pool Resource Id used in case of creating a volume through volume group. - /// Proximity placement group associated with the volume. - /// T2 network information. - /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log. - /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. - /// Application specific placement rules for the particular volume. - /// Flag indicating whether subvolume operations are enabled on the volume. - /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. - /// Specifies whether volume is a Large Volume or Regular Volume. - /// Id of the snapshot or backup that the volume is restored from. - /// Space shared by short term clone volume with parent volume in bytes. - /// Language supported for volume. - /// 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, NetAppNetworkFeature? effectiveNetworkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = 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, LdapServerType? ldapServerType = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, CoolAccessTieringPolicy? coolAccessTieringPolicy = 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, long? inheritedSizeInBytes = null, NetAppVolumeLanguage? language = null) + /// A new instance for mocking. + public static NetAppBackupVaultData NetAppBackupVaultData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string provisioningState = null) { tags ??= new Dictionary(); - zones ??= new List(); - exportRules ??= new List(); - protocolTypes ??= new List(); - mountTargets ??= new List(); - dataStoreResourceId ??= new List(); - placementRules ??= new List(); - return new NetAppVolumeData( + return new NetAppBackupVaultData( id, name, resourceType, systemData, tags, location, - etag, - zones?.ToList(), - fileSystemId, - creationToken, - serviceLevel, - usageThreshold, - exportRules != null ? new VolumePropertiesExportPolicy(exportRules?.ToList(), serializedAdditionalRawData: null) : null, - protocolTypes?.ToList(), provisioningState, - snapshotId, - deleteBaseSnapshot, - backupId, - baremetalTenantId, - subnetId, - networkFeatures, - effectiveNetworkFeatures, - networkSiblingSetId, - storageToNetworkProximity, - mountTargets?.ToList(), - volumeType, - dataProtection, - acceptGrowCapacityPoolForShortTermCloneSplit, - isRestoring, - isSnapshotDirectoryVisible, - isKerberosEnabled, - securityStyle, - isSmbEncryptionEnabled, - smbAccessBasedEnumeration, - smbNonBrowsable, - isSmbContinuouslyAvailable, - throughputMibps, - actualThroughputMibps, - encryptionKeySource, - keyVaultPrivateEndpointResourceId, - isLdapEnabled, - ldapServerType, - isCoolAccessEnabled, - coolnessPeriod, - coolAccessRetrievalPolicy, - coolAccessTieringPolicy, - unixPermissions, - cloneProgress, - fileAccessLogs, - avsDataStore, - dataStoreResourceId?.ToList(), - isDefaultQuotaEnabled, - defaultUserQuotaInKiBs, - defaultGroupQuotaInKiBs, - maximumNumberOfFiles, - volumeGroupName, - capacityPoolResourceId, - proximityPlacementGroupId, - t2Network, - volumeSpecName, - isEncrypted, - placementRules?.ToList(), - enableSubvolumes, - provisionedAvailabilityZone, - isLargeVolume, - originatingResourceId, - inheritedSizeInBytes, - language, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// UUID v4 used to identify the MountTarget. - /// UUID v4 used to identify the MountTarget. - /// The mount target's IPv4 address. - /// The SMB server's Fully Qualified Domain Name, FQDN. - /// A new instance for mocking. - public static NetAppVolumeMountTarget NetAppVolumeMountTarget(Guid? mountTargetId = null, Guid fileSystemId = default, IPAddress ipAddress = null, string smbServerFqdn = null) - { - return new NetAppVolumeMountTarget(mountTargetId, fileSystemId, ipAddress, smbServerFqdn, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Id. - /// Indicates whether the local volume is the source or destination for the Volume Replication. - /// Schedule. - /// The resource ID of the remote volume. Required for cross region and cross zone replication. - /// The full path to a volume that is to be migrated into ANF. Required for Migration volumes. - /// The remote region for the other end of the Volume Replication. - /// A list of destination replications. - /// Property that only applies to external replications. Provides a machine-readable value for the status of the external replication setup. - /// Contains human-readable instructions on what the next step is to finish the external replication setup. - /// The mirror state property describes the current status of data replication for a replication. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. - /// The status of the Volume Replication. - /// A new instance for mocking. - public static NetAppReplicationObject NetAppReplicationObject(string replicationId = null, NetAppEndpointType? endpointType = null, NetAppReplicationSchedule? replicationSchedule = null, ResourceIdentifier remoteVolumeResourceId = null, RemotePath remotePath = null, string remoteVolumeRegion = null, IEnumerable destinationReplications = null, ExternalReplicationSetupStatus? externalReplicationSetupStatus = null, string externalReplicationSetupInfo = null, NetAppMirrorState? mirrorState = null, NetAppRelationshipStatus? relationshipStatus = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// UUID v4 used to identify the Backup + /// Serialized Name: Backup.properties.backupId + /// + /// + /// The creation date of the backup + /// Serialized Name: Backup.properties.creationDate + /// + /// + /// The snapshot creation date of the backup + /// Serialized Name: Backup.properties.snapshotCreationDate + /// + /// + /// The completion date of the backup + /// Serialized Name: Backup.properties.completionDate + /// + /// + /// Azure lifecycle management + /// Serialized Name: Backup.properties.provisioningState + /// + /// + /// Size of backup in bytes + /// Serialized Name: Backup.properties.size + /// + /// + /// Label for backup + /// Serialized Name: Backup.properties.label + /// + /// + /// Type of backup Manual or Scheduled + /// Serialized Name: Backup.properties.backupType + /// + /// + /// Failure reason + /// Serialized Name: Backup.properties.failureReason + /// + /// + /// ResourceId used to identify the Volume + /// Serialized Name: Backup.properties.volumeResourceId + /// + /// + /// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups + /// Serialized Name: Backup.properties.useExistingSnapshot + /// + /// + /// The name of the snapshot + /// Serialized Name: Backup.properties.snapshotName + /// + /// + /// ResourceId used to identify the backup policy + /// Serialized Name: Backup.properties.backupPolicyResourceId + /// + /// + /// Specifies if the backup is for a large volume. + /// Serialized Name: Backup.properties.isLargeVolume + /// + /// A new instance for mocking. + public static NetAppBackupData NetAppBackupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string backupId = null, DateTimeOffset? createdOn = null, DateTimeOffset? snapshotCreationOn = null, DateTimeOffset? completionOn = null, string provisioningState = null, long? size = null, string label = null, NetAppBackupType? backupType = null, string failureReason = null, ResourceIdentifier volumeResourceId = null, bool? useExistingSnapshot = null, string snapshotName = null, ResourceIdentifier backupPolicyArmResourceId = null, bool? isLargeVolume = null) { - destinationReplications ??= new List(); - - return new NetAppReplicationObject( - replicationId, - endpointType, - replicationSchedule, - remoteVolumeResourceId, - remotePath, - remoteVolumeRegion, - destinationReplications?.ToList(), - externalReplicationSetupStatus, - externalReplicationSetupInfo, - mirrorState, - relationshipStatus, + return new NetAppBackupData( + id, + name, + resourceType, + systemData, + backupId, + createdOn, + snapshotCreationOn, + completionOn, + provisioningState, + size, + label, + backupType, + failureReason, + volumeResourceId, + useExistingSnapshot, + snapshotName, + backupPolicyArmResourceId, + isLargeVolume, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The resource ID of the remote volume. - /// Indicates whether the replication is cross zone or cross region. - /// The remote region for the destination volume. - /// The remote zone for the destination volume. - /// A new instance for mocking. - public static NetAppDestinationReplication NetAppDestinationReplication(ResourceIdentifier resourceId = null, NetAppReplicationType? replicationType = null, string region = null, string zone = null) + /// Initializes a new instance of . + /// + /// List of files to be restored + /// Serialized Name: BackupRestoreFiles.fileList + /// + /// + /// Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default + /// Serialized Name: BackupRestoreFiles.restoreFilePath + /// + /// + /// Resource Id of the destination volume on which the files need to be restored + /// Serialized Name: BackupRestoreFiles.destinationVolumeId + /// + /// A new instance for mocking. + public static NetAppVolumeBackupBackupRestoreFilesContent NetAppVolumeBackupBackupRestoreFilesContent(IEnumerable fileList = null, string restoreFilePath = null, ResourceIdentifier destinationVolumeId = null) { - return new NetAppDestinationReplication(resourceId, replicationType, region, zone, serializedAdditionalRawData: null); - } + fileList ??= new List(); - /// Initializes a new instance of . - /// Has relocation been requested for this volume. - /// Has relocation finished and is ready to be cleaned up. - /// A new instance for mocking. - public static NetAppVolumeRelocationProperties NetAppVolumeRelocationProperties(bool? isRelocationRequested = null, bool? isReadyToBeFinalized = null) - { - return new NetAppVolumeRelocationProperties(isRelocationRequested, isReadyToBeFinalized, serializedAdditionalRawData: null); + return new NetAppVolumeBackupBackupRestoreFilesContent(fileList?.ToList(), restoreFilePath, destinationVolumeId, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// The service level of the file system. - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. - /// Set of export policy rules. - /// Set of protocol types, default NFSv3, CIFS for SMB protocol. - /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. - /// DataProtection type volumes include an object containing details of the replication. - /// Specifies if default quota is enabled for the volume. - /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . - /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. - /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. - /// Specifies whether Cool Access(tiering) is enabled for the volume. - /// Specifies the number of days after which data that is not accessed by clients will be tiered. - /// - /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: - /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. - /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. - /// Never - No client-driven data is pulled from cool tier to standard storage. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: CapacityPool.etag /// - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. - /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots. - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// A new instance for mocking. - public static NetAppVolumePatch NetAppVolumePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NetAppFileServiceLevel? serviceLevel = null, long? usageThreshold = null, IEnumerable exportRules = null, IEnumerable protocolTypes = null, float? throughputMibps = null, NetAppVolumePatchDataProtection dataProtection = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, string unixPermissions = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, CoolAccessTieringPolicy? coolAccessTieringPolicy = null, bool? isSnapshotDirectoryVisible = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null) - { - tags ??= new Dictionary(); - exportRules ??= new List(); - protocolTypes ??= new List(); - - return new NetAppVolumePatch( - id, - name, - resourceType, - systemData, - tags, - location, - serviceLevel, - usageThreshold, - exportRules != null ? new VolumePatchPropertiesExportPolicy(exportRules?.ToList(), serializedAdditionalRawData: null) : null, - protocolTypes?.ToList(), - throughputMibps, - dataProtection, - isDefaultQuotaEnabled, - defaultUserQuotaInKiBs, - defaultGroupQuotaInKiBs, - unixPermissions, - isCoolAccessEnabled, - coolnessPeriod, - coolAccessRetrievalPolicy, - coolAccessTieringPolicy, - isSnapshotDirectoryVisible, - smbAccessBasedEnumeration, - smbNonBrowsable, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Group Id list. - /// A new instance for mocking. - public static GetGroupIdListForLdapUserResult GetGroupIdListForLdapUserResult(IEnumerable groupIdsForLdapUser = null) - { - groupIdsForLdapUser ??= new List(); - - return new GetGroupIdListForLdapUserResult(groupIdsForLdapUser?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// List of volume quota report records. - /// A new instance for mocking. - public static NetAppVolumeQuotaReportListResult NetAppVolumeQuotaReportListResult(IEnumerable value = null) - { - value ??= new List(); - - return new NetAppVolumeQuotaReportListResult(value?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Type of quota. - /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. - /// Specifies the current usage in kibibytes for the user/group quota. - /// Specifies the total size limit in kibibytes for the user/group quota. - /// Percentage of used size compared to total size. - /// Flag to indicate whether the quota is derived from default quota. - /// A new instance for mocking. - public static NetAppVolumeQuotaReport NetAppVolumeQuotaReport(NetAppVolumeQuotaType? quotaType = null, string quotaTarget = null, long? quotaLimitUsedInKiBs = null, long? quotaLimitTotalInKiBs = null, float? percentageUsed = null, bool? isDerivedQuota = null) - { - return new NetAppVolumeQuotaReport( - quotaType, - quotaTarget, - quotaLimitUsedInKiBs, - quotaLimitTotalInKiBs, - percentageUsed, - isDerivedQuota, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Replication health check. - /// Status of the mirror relationship. - /// The mirror state property describes the current status of data replication for a replication. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. - /// The progress of the replication. - /// Displays error message if the replication is in an error state. - /// A new instance for mocking. - public static NetAppVolumeReplicationStatus NetAppVolumeReplicationStatus(bool? isHealthy = null, VolumeReplicationRelationshipStatus? volumeReplicationRelationshipStatus = null, NetAppMirrorState? mirrorState = null, string totalProgress = null, string errorMessage = null) - { - return new NetAppVolumeReplicationStatus( - isHealthy, - volumeReplicationRelationshipStatus, - mirrorState, - totalProgress, - errorMessage, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// UUID v4 used to identify the replication. - /// Indicates whether the local volume is the source or destination for the Volume Replication. - /// Schedule. - /// The resource ID of the remote volume. - /// The remote region for the other end of the Volume Replication. - /// A new instance for mocking. - public static NetAppVolumeReplication NetAppVolumeReplication(string replicationId = null, NetAppEndpointType? endpointType = null, NetAppReplicationSchedule? replicationSchedule = null, ResourceIdentifier remoteVolumeResourceId = null, string remoteVolumeRegion = null) - { - return new NetAppVolumeReplication( - replicationId, - endpointType, - replicationSchedule, - remoteVolumeResourceId, - remoteVolumeRegion, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// A command that needs to be run on the external ONTAP to accept cluster peering. Will only be present if <code>clusterPeeringStatus</code> is <code>pending</code>. - /// A new instance for mocking. - public static ClusterPeerCommandResult ClusterPeerCommandResult(string peerAcceptCommand = null) - { - return new ClusterPeerCommandResult(peerAcceptCommand, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// A command that needs to be run on the external ONTAP to accept svm peering. Will only be present if <code>svmPeeringStatus</code> is <code>pending</code>. - /// A new instance for mocking. - public static SvmPeerCommandResult SvmPeerCommandResult(string svmPeeringCommand = null) - { - return new SvmPeerCommandResult(svmPeeringCommand, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Resource location. - /// UUID v4 used to identify the Snapshot. - /// The creation date of the snapshot. - /// Azure lifecycle management. - /// A new instance for mocking. - public static NetAppVolumeSnapshotData NetAppVolumeSnapshotData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation location = default, string snapshotId = null, DateTimeOffset? created = null, string provisioningState = null) - { - return new NetAppVolumeSnapshotData( - id, - name, - resourceType, - systemData, - location, - snapshotId, - created, - provisioningState, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// Schedule for hourly snapshots. - /// Schedule for daily snapshots. - /// Schedule for weekly snapshots. - /// Schedule for monthly snapshots. - /// The property to decide policy is enabled or not. - /// Azure lifecycle management. - /// A new instance for mocking. - public static SnapshotPolicyData SnapshotPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, SnapshotPolicyHourlySchedule hourlySchedule = null, SnapshotPolicyDailySchedule dailySchedule = null, SnapshotPolicyWeeklySchedule weeklySchedule = null, SnapshotPolicyMonthlySchedule monthlySchedule = null, bool? isEnabled = null, string provisioningState = null) + /// + /// UUID v4 used to identify the Pool + /// Serialized Name: CapacityPool.properties.poolId + /// + /// + /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). + /// Serialized Name: CapacityPool.properties.size + /// + /// + /// The service level of the file system + /// Serialized Name: CapacityPool.properties.serviceLevel + /// + /// + /// Azure lifecycle management + /// Serialized Name: CapacityPool.properties.provisioningState + /// + /// + /// Total throughput of pool in MiB/s + /// Serialized Name: CapacityPool.properties.totalThroughputMibps + /// + /// + /// Utilized throughput of pool in MiB/s + /// Serialized Name: CapacityPool.properties.utilizedThroughputMibps + /// + /// + /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level + /// Serialized Name: CapacityPool.properties.customThroughputMibps + /// + /// + /// The qos type of the pool + /// Serialized Name: CapacityPool.properties.qosType + /// + /// + /// If enabled (true) the pool can contain cool Access enabled volumes. + /// Serialized Name: CapacityPool.properties.coolAccess + /// + /// + /// Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool. + /// Serialized Name: CapacityPool.properties.encryptionType + /// + /// A new instance for mocking. + public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, Guid? poolId = null, long size = default, NetAppFileServiceLevel serviceLevel = default, string provisioningState = null, float? totalThroughputMibps = null, float? utilizedThroughputMibps = null, int? customThroughputMibpsInt = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, CapacityPoolEncryptionType? encryptionType = null) { tags ??= new Dictionary(); - return new SnapshotPolicyData( + return new CapacityPoolData( id, name, resourceType, @@ -845,72 +889,323 @@ public static SnapshotPolicyData SnapshotPolicyData(ResourceIdentifier id = null tags, location, etag, - hourlySchedule, - dailySchedule, - weeklySchedule, - monthlySchedule, - isEnabled, + poolId, + size, + serviceLevel, provisioningState, + totalThroughputMibps, + utilizedThroughputMibps, + customThroughputMibpsInt, + qosType, + isCoolAccessEnabled, + encryptionType, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// Schedule for hourly snapshots. - /// Schedule for daily snapshots. - /// Schedule for weekly snapshots. - /// Schedule for monthly snapshots. - /// The property to decide policy is enabled or not. - /// Azure lifecycle management. - /// A new instance for mocking. - public static SnapshotPolicyPatch SnapshotPolicyPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SnapshotPolicyHourlySchedule hourlySchedule = null, SnapshotPolicyDailySchedule dailySchedule = null, SnapshotPolicyWeeklySchedule weeklySchedule = null, SnapshotPolicyMonthlySchedule monthlySchedule = null, bool? isEnabled = null, string provisioningState = null) + /// + /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). + /// Serialized Name: CapacityPoolPatch.properties.size + /// + /// + /// The qos type of the pool + /// Serialized Name: CapacityPoolPatch.properties.qosType + /// + /// + /// If enabled (true) the pool can contain cool Access enabled volumes. + /// Serialized Name: CapacityPoolPatch.properties.coolAccess + /// + /// + /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level + /// Serialized Name: CapacityPoolPatch.properties.customThroughputMibps + /// + /// A new instance for mocking. + public static CapacityPoolPatch CapacityPoolPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, long? size = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, int? customThroughputMibpsInt = null) { tags ??= new Dictionary(); - return new SnapshotPolicyPatch( + return new CapacityPoolPatch( id, name, resourceType, systemData, tags, location, - hourlySchedule, - dailySchedule, - weeklySchedule, - monthlySchedule, - isEnabled, - provisioningState, + size, + qosType, + isCoolAccessEnabled, + customThroughputMibpsInt, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// Backup Policy GUID ID. - /// Azure lifecycle management. - /// Daily backups count to keep. - /// Weekly backups count to keep. - /// Monthly backups count to keep. - /// Volumes using current backup policy. - /// The property to decide policy is enabled or not. - /// A list of volumes assigned to this policy. - /// A new instance for mocking. - public static NetAppBackupPolicyData NetAppBackupPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = null, int? weeklyBackupsToKeep = null, int? monthlyBackupsToKeep = null, int? volumesAssigned = null, bool? isEnabled = null, IEnumerable volumeBackups = null) + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: Volume.etag + /// + /// + /// The availability zones. + /// Serialized Name: Volume.zones + /// + /// + /// Unique FileSystem Identifier. + /// Serialized Name: Volume.properties.fileSystemId + /// + /// + /// A unique file path for the volume. Used when creating mount targets + /// Serialized Name: Volume.properties.creationToken + /// + /// + /// The service level of the file system + /// Serialized Name: Volume.properties.serviceLevel + /// + /// + /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// Serialized Name: Volume.properties.usageThreshold + /// + /// + /// Set of export policy rules + /// Serialized Name: Volume.properties.exportPolicy + /// + /// + /// Set of protocol types, default NFSv3, CIFS for SMB protocol + /// Serialized Name: Volume.properties.protocolTypes + /// + /// + /// Azure lifecycle management + /// Serialized Name: Volume.properties.provisioningState + /// + /// + /// Resource identifier used to identify the Snapshot. + /// Serialized Name: Volume.properties.snapshotId + /// + /// + /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false + /// Serialized Name: Volume.properties.deleteBaseSnapshot + /// + /// + /// Resource identifier used to identify the Backup. + /// Serialized Name: Volume.properties.backupId + /// + /// + /// Unique Baremetal Tenant Identifier. + /// Serialized Name: Volume.properties.baremetalTenantId + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: Volume.properties.subnetId + /// + /// + /// The original value of the network features type available to the volume at the time it was created. + /// Serialized Name: Volume.properties.networkFeatures + /// + /// + /// The effective value of the network features type available to the volume, or current effective state of update. + /// Serialized Name: Volume.properties.effectiveNetworkFeatures + /// + /// + /// Network Sibling Set ID for the the group of volumes sharing networking resources. + /// Serialized Name: Volume.properties.networkSiblingSetId + /// + /// + /// Provides storage to network proximity information for the volume. + /// Serialized Name: Volume.properties.storageToNetworkProximity + /// + /// + /// List of mount targets + /// Serialized Name: Volume.properties.mountTargets + /// + /// + /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone + /// Serialized Name: Volume.properties.volumeType + /// + /// + /// DataProtection type volumes include an object containing details of the replication + /// Serialized Name: Volume.properties.dataProtection + /// + /// + /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. + /// Serialized Name: Volume.properties.acceptGrowCapacityPoolForShortTermCloneSplit + /// + /// + /// Restoring + /// Serialized Name: Volume.properties.isRestoring + /// + /// + /// 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). + /// Serialized Name: Volume.properties.snapshotDirectoryVisible + /// + /// + /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later + /// Serialized Name: Volume.properties.kerberosEnabled + /// + /// + /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol + /// Serialized Name: Volume.properties.securityStyle + /// + /// + /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later + /// Serialized Name: Volume.properties.smbEncryption + /// + /// + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: Volume.properties.smbAccessBasedEnumeration + /// + /// + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: Volume.properties.smbNonBrowsable + /// + /// + /// Enables continuously available share property for smb volume. Only applicable for SMB volume + /// Serialized Name: Volume.properties.smbContinuouslyAvailable + /// + /// + /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume + /// Serialized Name: Volume.properties.throughputMibps + /// + /// + /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel + /// Serialized Name: Volume.properties.actualThroughputMibps + /// + /// + /// 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' + /// Serialized Name: Volume.properties.encryptionKeySource + /// + /// + /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. + /// Serialized Name: Volume.properties.keyVaultPrivateEndpointResourceId + /// + /// + /// Specifies whether LDAP is enabled or not for a given NFS volume. + /// Serialized Name: Volume.properties.ldapEnabled + /// + /// + /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// Serialized Name: Volume.properties.coolAccess + /// + /// + /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// Serialized Name: Volume.properties.coolnessPeriod + /// + /// + /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Serialized Name: Volume.properties.coolAccessRetrievalPolicy + /// + /// + /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// Serialized Name: Volume.properties.coolAccessTieringPolicy + /// + /// + /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. + /// Serialized Name: Volume.properties.unixPermissions + /// + /// + /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. + /// Serialized Name: Volume.properties.cloneProgress + /// + /// + /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// Serialized Name: Volume.properties.fileAccessLogs + /// + /// + /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose + /// Serialized Name: Volume.properties.avsDataStore + /// + /// + /// Data store resource unique identifier + /// Serialized Name: Volume.properties.dataStoreResourceId + /// + /// + /// Specifies if default quota is enabled for the volume. + /// Serialized Name: Volume.properties.isDefaultQuotaEnabled + /// + /// + /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// Serialized Name: Volume.properties.defaultUserQuotaInKiBs + /// + /// + /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// Serialized Name: Volume.properties.defaultGroupQuotaInKiBs + /// + /// + /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. + /// Serialized Name: Volume.properties.maximumNumberOfFiles + /// + /// + /// Volume Group Name + /// Serialized Name: Volume.properties.volumeGroupName + /// + /// + /// Pool Resource Id used in case of creating a volume through volume group + /// Serialized Name: Volume.properties.capacityPoolResourceId + /// + /// + /// Proximity placement group associated with the volume + /// Serialized Name: Volume.properties.proximityPlacementGroup + /// + /// + /// T2 network information + /// Serialized Name: Volume.properties.t2Network + /// + /// + /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log + /// Serialized Name: Volume.properties.volumeSpecName + /// + /// + /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. + /// Serialized Name: Volume.properties.encrypted + /// + /// + /// Application specific placement rules for the particular volume + /// Serialized Name: Volume.properties.placementRules + /// + /// + /// Flag indicating whether subvolume operations are enabled on the volume + /// Serialized Name: Volume.properties.enableSubvolumes + /// + /// + /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + /// Serialized Name: Volume.properties.provisionedAvailabilityZone + /// + /// + /// Specifies whether volume is a Large Volume or Regular Volume. + /// Serialized Name: Volume.properties.isLargeVolume + /// + /// + /// Id of the snapshot or backup that the volume is restored from. + /// Serialized Name: Volume.properties.originatingResourceId + /// + /// + /// Space shared by short term clone volume with parent volume in bytes. + /// Serialized Name: Volume.properties.inheritedSizeInBytes + /// + /// 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, NetAppNetworkFeature? effectiveNetworkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, CoolAccessTieringPolicy? coolAccessTieringPolicy = 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, long? inheritedSizeInBytes = null) { tags ??= new Dictionary(); - volumeBackups ??= new List(); + zones ??= new List(); + exportRules ??= new List(); + protocolTypes ??= new List(); + mountTargets ??= new List(); + dataStoreResourceId ??= new List(); + placementRules ??= new List(); - return new NetAppBackupPolicyData( + return new NetAppVolumeData( id, name, resourceType, @@ -918,412 +1213,353 @@ public static NetAppBackupPolicyData NetAppBackupPolicyData(ResourceIdentifier i tags, location, etag, - backupPolicyId, + zones?.ToList(), + fileSystemId, + creationToken, + serviceLevel, + usageThreshold, + exportRules != null ? new VolumePropertiesExportPolicy(exportRules?.ToList(), serializedAdditionalRawData: null) : null, + protocolTypes?.ToList(), provisioningState, - dailyBackupsToKeep, - weeklyBackupsToKeep, - monthlyBackupsToKeep, - volumesAssigned, - isEnabled, - volumeBackups?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Volume name. - /// ResourceId used to identify the Volume. - /// Total count of backups for volume. - /// Policy enabled. - /// A new instance for mocking. - public static NetAppVolumeBackupDetail NetAppVolumeBackupDetail(string volumeName = null, ResourceIdentifier volumeResourceId = null, int? backupsCount = null, bool? isPolicyEnabled = null) - { - return new NetAppVolumeBackupDetail(volumeName, volumeResourceId, backupsCount, isPolicyEnabled, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Backup Policy GUID ID. - /// Azure lifecycle management. - /// Daily backups count to keep. - /// Weekly backups count to keep. - /// Monthly backups count to keep. - /// Volumes using current backup policy. - /// The property to decide policy is enabled or not. - /// A list of volumes assigned to this policy. - /// A new instance for mocking. - public static NetAppBackupPolicyPatch NetAppBackupPolicyPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ResourceIdentifier backupPolicyId = null, string provisioningState = null, int? dailyBackupsToKeep = null, int? weeklyBackupsToKeep = null, int? monthlyBackupsToKeep = null, int? volumesAssigned = null, bool? isEnabled = null, IEnumerable volumeBackups = null) - { - tags ??= new Dictionary(); - volumeBackups ??= new List(); - - return new NetAppBackupPolicyPatch( - id, - name, - resourceType, - systemData, - tags, - location, - backupPolicyId, - provisioningState, - dailyBackupsToKeep, - weeklyBackupsToKeep, - monthlyBackupsToKeep, - volumesAssigned, - isEnabled, - volumeBackups?.ToList(), + snapshotId, + deleteBaseSnapshot, + backupId, + baremetalTenantId, + subnetId, + networkFeatures, + effectiveNetworkFeatures, + networkSiblingSetId, + storageToNetworkProximity, + mountTargets?.ToList(), + volumeType, + dataProtection, + acceptGrowCapacityPoolForShortTermCloneSplit, + isRestoring, + isSnapshotDirectoryVisible, + isKerberosEnabled, + securityStyle, + isSmbEncryptionEnabled, + smbAccessBasedEnumeration, + smbNonBrowsable, + isSmbContinuouslyAvailable, + throughputMibps, + actualThroughputMibps, + encryptionKeySource, + keyVaultPrivateEndpointResourceId, + isLdapEnabled, + isCoolAccessEnabled, + coolnessPeriod, + coolAccessRetrievalPolicy, + coolAccessTieringPolicy, + unixPermissions, + cloneProgress, + fileAccessLogs, + avsDataStore, + dataStoreResourceId?.ToList(), + isDefaultQuotaEnabled, + defaultUserQuotaInKiBs, + defaultGroupQuotaInKiBs, + maximumNumberOfFiles, + volumeGroupName, + capacityPoolResourceId, + proximityPlacementGroupId, + t2Network, + volumeSpecName, + isEncrypted, + placementRules?.ToList(), + enableSubvolumes, + provisionedAvailabilityZone, + isLargeVolume, + originatingResourceId, + inheritedSizeInBytes, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Provisioning state of the resource. - /// Size of quota. - /// Type of quota. - /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. - /// A new instance for mocking. - public static NetAppVolumeQuotaRuleData NetAppVolumeQuotaRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NetAppProvisioningState? provisioningState = null, long? quotaSizeInKiBs = null, NetAppVolumeQuotaType? quotaType = null, string quotaTarget = null) + /// Initializes a new instance of . + /// + /// UUID v4 used to identify the MountTarget + /// Serialized Name: MountTargetProperties.mountTargetId + /// + /// + /// UUID v4 used to identify the MountTarget + /// Serialized Name: MountTargetProperties.fileSystemId + /// + /// + /// The mount target's IPv4 address + /// Serialized Name: MountTargetProperties.ipAddress + /// + /// + /// The SMB server's Fully Qualified Domain Name, FQDN + /// Serialized Name: MountTargetProperties.smbServerFqdn + /// + /// A new instance for mocking. + public static NetAppVolumeMountTarget NetAppVolumeMountTarget(Guid? mountTargetId = null, Guid fileSystemId = default, IPAddress ipAddress = null, string smbServerFqdn = null) { - tags ??= new Dictionary(); - - return new NetAppVolumeQuotaRuleData( - id, - name, - resourceType, - systemData, - tags, - location, - provisioningState, - quotaSizeInKiBs, - quotaType, - quotaTarget, - serializedAdditionalRawData: null); + return new NetAppVolumeMountTarget(mountTargetId, fileSystemId, ipAddress, smbServerFqdn, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Resource tags. - /// Provisioning state of the resource. - /// Size of quota. - /// Type of quota. - /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. - /// A new instance for mocking. - public static NetAppVolumeQuotaRulePatch NetAppVolumeQuotaRulePatch(IDictionary tags = null, NetAppProvisioningState? provisioningState = null, long? quotaSizeInKiBs = null, NetAppVolumeQuotaType? quotaType = null, string quotaTarget = null) + /// Initializes a new instance of . + /// + /// Id + /// Serialized Name: ReplicationObject.replicationId + /// + /// + /// Indicates whether the local volume is the source or destination for the Volume Replication + /// Serialized Name: ReplicationObject.endpointType + /// + /// + /// Schedule + /// Serialized Name: ReplicationObject.replicationSchedule + /// + /// + /// The resource ID of the remote volume. Required for cross region and cross zone replication + /// Serialized Name: ReplicationObject.remoteVolumeResourceId + /// + /// + /// The full path to a volume that is to be migrated into ANF. Required for Migration volumes + /// Serialized Name: ReplicationObject.remotePath + /// + /// + /// The remote region for the other end of the Volume Replication. + /// Serialized Name: ReplicationObject.remoteVolumeRegion + /// + /// + /// A list of destination replications + /// Serialized Name: ReplicationObject.destinationReplications + /// + /// A new instance for mocking. + public static NetAppReplicationObject NetAppReplicationObject(string replicationId = null, NetAppEndpointType? endpointType = null, NetAppReplicationSchedule? replicationSchedule = null, ResourceIdentifier remoteVolumeResourceId = null, RemotePath remotePath = null, string remoteVolumeRegion = null, IEnumerable destinationReplications = null) { - tags ??= new Dictionary(); + destinationReplications ??= new List(); - return new NetAppVolumeQuotaRulePatch( - tags, - provisioningState, - quotaSizeInKiBs, - quotaType, - quotaTarget, + return new NetAppReplicationObject( + replicationId, + endpointType, + replicationSchedule, + remoteVolumeResourceId, + remotePath, + remoteVolumeRegion, + destinationReplications?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Resource location. - /// Azure lifecycle management. - /// Volume group details. - /// A new instance for mocking. - public static NetAppVolumeGroupResult NetAppVolumeGroupResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null) + /// Initializes a new instance of . + /// + /// The resource ID of the remote volume + /// Serialized Name: DestinationReplication.resourceId + /// + /// + /// Indicates whether the replication is cross zone or cross region. + /// Serialized Name: DestinationReplication.replicationType + /// + /// + /// The remote region for the destination volume. + /// Serialized Name: DestinationReplication.region + /// + /// + /// The remote zone for the destination volume. + /// Serialized Name: DestinationReplication.zone + /// + /// A new instance for mocking. + public static NetAppDestinationReplication NetAppDestinationReplication(ResourceIdentifier resourceId = null, NetAppReplicationType? replicationType = null, string region = null, string zone = null) { - return new NetAppVolumeGroupResult( - id, - name, - resourceType, - systemData, - location, - provisioningState, - groupMetaData, - serializedAdditionalRawData: null); + return new NetAppDestinationReplication(resourceId, replicationType, region, zone, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Group Description. - /// Application Type. - /// Application specific identifier. - /// Application specific placement rules for the volume group. - /// Number of volumes in volume group. - /// A new instance for mocking. - public static NetAppVolumeGroupMetadata NetAppVolumeGroupMetadata(string groupDescription = null, NetAppApplicationType? applicationType = null, string applicationIdentifier = null, IEnumerable globalPlacementRules = null, long? volumesCount = null) + /// Initializes a new instance of . + /// + /// Has relocation been requested for this volume + /// Serialized Name: VolumeRelocationProperties.relocationRequested + /// + /// + /// Has relocation finished and is ready to be cleaned up + /// Serialized Name: VolumeRelocationProperties.readyToBeFinalized + /// + /// A new instance for mocking. + public static NetAppVolumeRelocationProperties NetAppVolumeRelocationProperties(bool? isRelocationRequested = null, bool? isReadyToBeFinalized = null) { - globalPlacementRules ??= new List(); - - return new NetAppVolumeGroupMetadata( - groupDescription, - applicationType, - applicationIdentifier, - globalPlacementRules?.ToList(), - volumesCount, - serializedAdditionalRawData: null); + return new NetAppVolumeRelocationProperties(isRelocationRequested, isReadyToBeFinalized, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Resource location. - /// Azure lifecycle management. - /// Volume group details. - /// List of volumes from group. - /// A new instance for mocking. - public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null, IEnumerable volumes = null) - { - volumes ??= new List(); - - return new NetAppVolumeGroupData( - id, - name, - resourceType, - systemData, - location, - provisioningState, - groupMetaData, - volumes?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Resource Id. - /// Resource name. - /// Resource type. - /// Resource tags. - /// Availability Zone. - /// Unique FileSystem Identifier. - /// A unique file path for the volume. Used when creating mount targets. - /// The service level of the file system. - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. - /// Set of export policy rules. - /// Set of protocol types, default NFSv3, CIFS for SMB protocol. - /// Azure lifecycle management. - /// Resource identifier used to identify the Snapshot. - /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false. - /// Resource identifier used to identify the Backup. - /// Unique Baremetal Tenant Identifier. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// The original value of the network features type available to the volume at the time it was created. - /// The effective value of the network features type available to the volume, or current effective state of update. - /// Network Sibling Set ID for the the group of volumes sharing networking resources. - /// Provides storage to network proximity information for the volume. - /// List of mount targets. - /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone. - /// DataProtection type volumes include an object containing details of the replication. - /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. - /// Restoring. - /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (defaults to true). - /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. - /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. - /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables continuously available share property for smb volume. Only applicable for SMB volume. - /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. - /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. - /// Source of key used to encrypt data in volume. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'. - /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - /// Specifies whether LDAP is enabled or not for a given NFS volume. - /// Specifies the type of LDAP server for a given NFS volume. - /// Specifies whether Cool Access(tiering) is enabled for the volume. - /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// The tags. + /// The location. + /// + /// The service level of the file system + /// Serialized Name: VolumePatch.properties.serviceLevel + /// + /// + /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// Serialized Name: VolumePatch.properties.usageThreshold + /// + /// + /// Set of export policy rules + /// Serialized Name: VolumePatch.properties.exportPolicy + /// + /// + /// Set of protocol types, default NFSv3, CIFS for SMB protocol + /// Serialized Name: VolumePatch.properties.protocolTypes + /// + /// + /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume + /// Serialized Name: VolumePatch.properties.throughputMibps + /// + /// + /// DataProtection type volumes include an object containing details of the replication + /// Serialized Name: VolumePatch.properties.dataProtection + /// + /// + /// Specifies if default quota is enabled for the volume. + /// Serialized Name: VolumePatch.properties.isDefaultQuotaEnabled + /// + /// + /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// Serialized Name: VolumePatch.properties.defaultUserQuotaInKiBs + /// + /// + /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// Serialized Name: VolumePatch.properties.defaultGroupQuotaInKiBs + /// + /// + /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. + /// Serialized Name: VolumePatch.properties.unixPermissions + /// + /// + /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// Serialized Name: VolumePatch.properties.coolAccess + /// + /// + /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// Serialized Name: VolumePatch.properties.coolnessPeriod + /// /// /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: - /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. - /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. - /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Serialized Name: VolumePatch.properties.coolAccessRetrievalPolicy /// - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. - /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain as its last saved value only. - /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. - /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. - /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - /// Data store resource unique identifier. - /// Specifies if default quota is enabled for the volume. - /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . - /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. - /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. - /// Volume Group Name. - /// Pool Resource Id used in case of creating a volume through volume group. - /// Proximity placement group associated with the volume. - /// T2 network information. - /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log. - /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. - /// Application specific placement rules for the particular volume. - /// Flag indicating whether subvolume operations are enabled on the volume. - /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. - /// Specifies whether volume is a Large Volume or Regular Volume. - /// Id of the snapshot or backup that the volume is restored from. - /// Space shared by short term clone volume with parent volume in bytes. - /// Language supported for volume. - /// A new instance for mocking. - public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, IDictionary tags = null, IEnumerable zones = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, NetAppNetworkFeature? effectiveNetworkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = 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, LdapServerType? ldapServerType = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, CoolAccessTieringPolicy? coolAccessTieringPolicy = 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, long? inheritedSizeInBytes = null, NetAppVolumeLanguage? language = null) + /// + /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// Serialized Name: VolumePatch.properties.coolAccessTieringPolicy + /// + /// + /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots. + /// Serialized Name: VolumePatch.properties.snapshotDirectoryVisible + /// + /// + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumePatch.properties.smbAccessBasedEnumeration + /// + /// + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumePatch.properties.smbNonBrowsable + /// + /// A new instance for mocking. + public static NetAppVolumePatch NetAppVolumePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NetAppFileServiceLevel? serviceLevel = null, long? usageThreshold = null, IEnumerable exportRules = null, IEnumerable protocolTypes = null, float? throughputMibps = null, NetAppVolumePatchDataProtection dataProtection = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, string unixPermissions = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, CoolAccessTieringPolicy? coolAccessTieringPolicy = null, bool? isSnapshotDirectoryVisible = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null) { tags ??= new Dictionary(); - zones ??= new List(); exportRules ??= new List(); protocolTypes ??= new List(); - mountTargets ??= new List(); - dataStoreResourceId ??= new List(); - placementRules ??= new List(); - return new NetAppVolumeGroupVolume( + return new NetAppVolumePatch( id, name, resourceType, + systemData, tags, - zones?.ToList(), - fileSystemId, - creationToken, + location, serviceLevel, usageThreshold, - exportRules != null ? new VolumePropertiesExportPolicy(exportRules?.ToList(), serializedAdditionalRawData: null) : null, + exportRules != null ? new VolumePatchPropertiesExportPolicy(exportRules?.ToList(), serializedAdditionalRawData: null) : null, protocolTypes?.ToList(), - provisioningState, - snapshotId, - deleteBaseSnapshot, - backupId, - baremetalTenantId, - subnetId, - networkFeatures, - effectiveNetworkFeatures, - networkSiblingSetId, - storageToNetworkProximity, - mountTargets?.ToList(), - volumeType, - dataProtection, - acceptGrowCapacityPoolForShortTermCloneSplit, - isRestoring, - isSnapshotDirectoryVisible, - isKerberosEnabled, - securityStyle, - isSmbEncryptionEnabled, - smbAccessBasedEnumeration, - smbNonBrowsable, - isSmbContinuouslyAvailable, throughputMibps, - actualThroughputMibps, - encryptionKeySource, - keyVaultPrivateEndpointResourceId, - isLdapEnabled, - ldapServerType, + dataProtection, + isDefaultQuotaEnabled, + defaultUserQuotaInKiBs, + defaultGroupQuotaInKiBs, + unixPermissions, isCoolAccessEnabled, coolnessPeriod, coolAccessRetrievalPolicy, coolAccessTieringPolicy, - unixPermissions, - cloneProgress, - fileAccessLogs, - avsDataStore, - dataStoreResourceId?.ToList(), - isDefaultQuotaEnabled, - defaultUserQuotaInKiBs, - defaultGroupQuotaInKiBs, - maximumNumberOfFiles, - volumeGroupName, - capacityPoolResourceId, - proximityPlacementGroupId, - t2Network, - volumeSpecName, - isEncrypted, - placementRules?.ToList(), - enableSubvolumes, - provisionedAvailabilityZone, - isLargeVolume, - originatingResourceId, - inheritedSizeInBytes, - language, + isSnapshotDirectoryVisible, + smbAccessBasedEnumeration, + smbNonBrowsable, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Path to the subvolume. - /// Truncate subvolume to the provided size in bytes. - /// parent path to the subvolume. - /// Azure lifecycle management. - /// A new instance for mocking. - public static NetAppSubvolumeInfoData NetAppSubvolumeInfoData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string path = null, long? size = null, string parentPath = null, string provisioningState = null) + /// Initializes a new instance of . + /// + /// A command that needs to be run on the external ONTAP to accept svm peering. Will only be present if <code>svmPeeringStatus</code> is <code>pending</code> + /// Serialized Name: SvmPeerCommandResponse.svmPeeringCommand + /// + /// A new instance for mocking. + public static SvmPeerCommandResult SvmPeerCommandResult(string svmPeeringCommand = null) { - return new NetAppSubvolumeInfoData( - id, - name, - resourceType, - systemData, - path, - size, - parentPath, - provisioningState, - serializedAdditionalRawData: null); + return new SvmPeerCommandResult(svmPeeringCommand, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Path to the subvolume. - /// Path to the parent subvolume. - /// Size of subvolume. - /// Bytes used. - /// Permissions of the subvolume. - /// Creation time and date. - /// Most recent access time and date. - /// Most recent modification time and date. - /// Most recent change time and date. - /// Azure lifecycle management. - /// A new instance for mocking. - public static NetAppSubvolumeMetadata NetAppSubvolumeMetadata(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string path = null, string parentPath = null, long? size = null, long? bytesUsed = null, string permissions = null, DateTimeOffset? createdOn = null, DateTimeOffset? accessedOn = null, DateTimeOffset? modifiedOn = null, DateTimeOffset? changedOn = null, string provisioningState = null) + /// Initializes a new instance of . + /// + /// Group Id list + /// Serialized Name: GetGroupIdListForLdapUserResponse.groupIdsForLdapUser + /// + /// A new instance for mocking. + public static GetGroupIdListForLdapUserResult GetGroupIdListForLdapUserResult(IEnumerable groupIdsForLdapUser = null) { - return new NetAppSubvolumeMetadata( - id, - name, - resourceType, - systemData, - path, - parentPath, - size, - bytesUsed, - permissions, - createdOn, - accessedOn, - modifiedOn, - changedOn, - provisioningState, - serializedAdditionalRawData: null); + groupIdsForLdapUser ??= new List(); + + return new GetGroupIdListForLdapUserResult(groupIdsForLdapUser?.ToList(), serializedAdditionalRawData: null); } /// Initializes a new instance of . - /// Backup health status. - /// Status of the backup mirror relationship. - /// The mirror state property describes the current status of data replication for a backup. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. - /// Reason for the unhealthy backup relationship. - /// Displays error message if the backup is in an error state. - /// Displays the last transfer size. - /// Displays the last transfer type. - /// Displays the total bytes transferred. - /// Displays the total number of bytes transferred for the ongoing operation. + /// + /// Backup health status + /// Serialized Name: BackupStatus.healthy + /// + /// + /// Status of the backup mirror relationship + /// Serialized Name: BackupStatus.relationshipStatus + /// + /// + /// The status of the backup + /// Serialized Name: BackupStatus.mirrorState + /// + /// + /// Reason for the unhealthy backup relationship + /// Serialized Name: BackupStatus.unhealthyReason + /// + /// + /// Displays error message if the backup is in an error state + /// Serialized Name: BackupStatus.errorMessage + /// + /// + /// Displays the last transfer size + /// Serialized Name: BackupStatus.lastTransferSize + /// + /// + /// Displays the last transfer type + /// Serialized Name: BackupStatus.lastTransferType + /// + /// + /// Displays the total bytes transferred + /// Serialized Name: BackupStatus.totalTransferBytes + /// + /// + /// Displays the total number of bytes transferred for the ongoing operation + /// Serialized Name: BackupStatus.transferProgressBytes + /// /// A new instance for mocking. - public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = null, NetAppRelationshipStatus? relationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? lastTransferSize = null, string lastTransferType = null, long? totalTransferBytes = null, long? transferProgressBytes = null) + public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = null, VolumeBackupRelationshipStatus? volumeBackupRelationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? lastTransferSize = null, string lastTransferType = null, long? totalTransferBytes = null, long? transferProgressBytes = null) { return new NetAppVolumeBackupStatus( isHealthy, - relationshipStatus, + volumeBackupRelationshipStatus, mirrorState, unhealthyReason, errorMessage, @@ -1335,18 +1571,36 @@ public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy } /// Initializes a new instance of . - /// Restore health status. - /// Status of the restore SnapMirror relationship. - /// The mirror state property describes the current status of data replication for a restore. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. - /// Reason for the unhealthy restore relationship. - /// Displays error message if the restore is in an error state. - /// Displays the total bytes transferred. + /// + /// Restore health status + /// Serialized Name: RestoreStatus.healthy + /// + /// + /// Status of the restore SnapMirror relationship + /// Serialized Name: RestoreStatus.relationshipStatus + /// + /// + /// The status of the restore + /// Serialized Name: RestoreStatus.mirrorState + /// + /// + /// Reason for the unhealthy restore relationship + /// Serialized Name: RestoreStatus.unhealthyReason + /// + /// + /// Displays error message if the restore is in an error state + /// Serialized Name: RestoreStatus.errorMessage + /// + /// + /// Displays the total bytes transferred + /// Serialized Name: RestoreStatus.totalTransferBytes + /// /// A new instance for mocking. - public static NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = null, NetAppRelationshipStatus? relationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? totalTransferBytes = null) + public static NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = null, VolumeRestoreRelationshipStatus? volumeRestoreRelationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? totalTransferBytes = null) { return new NetAppRestoreStatus( isHealthy, - relationshipStatus, + volumeRestoreRelationshipStatus, mirrorState, unhealthyReason, errorMessage, @@ -1354,64 +1608,265 @@ public static NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = null, Ne serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// + /// UUID v4 used to identify the replication. + /// Serialized Name: Replication.replicationId + /// + /// + /// Indicates whether the local volume is the source or destination for the Volume Replication + /// Serialized Name: Replication.endpointType + /// + /// + /// Schedule + /// Serialized Name: Replication.replicationSchedule + /// + /// + /// The resource ID of the remote volume. + /// Serialized Name: Replication.remoteVolumeResourceId + /// + /// + /// The remote region for the other end of the Volume Replication. + /// Serialized Name: Replication.remoteVolumeRegion + /// + /// + /// The status of the replication + /// Serialized Name: Replication.mirrorState + /// + /// + /// Replication creation time + /// Serialized Name: Replication.replicationCreationTime + /// + /// + /// Replication deletion time + /// Serialized Name: Replication.replicationDeletionTime + /// + /// A new instance for mocking. + public static NetAppVolumeReplication NetAppVolumeReplication(string replicationId = null, NetAppEndpointType? endpointType = null, NetAppReplicationSchedule? replicationSchedule = null, ResourceIdentifier remoteVolumeResourceId = null, string remoteVolumeRegion = null, ReplicationMirrorState? mirrorState = null, DateTimeOffset? replicationCreationOn = null, DateTimeOffset? replicationDeletionOn = null) + { + return new NetAppVolumeReplication( + replicationId, + endpointType, + replicationSchedule, + remoteVolumeResourceId, + remoteVolumeRegion, + mirrorState, + replicationCreationOn, + replicationDeletionOn, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// A command that needs to be run on the external ONTAP to accept cluster peering. Will only be present if <code>clusterPeeringStatus</code> is <code>pending</code> + /// Serialized Name: ClusterPeerCommandResponse.peerAcceptCommand + /// + /// A new instance for mocking. + public static ClusterPeerCommandResult ClusterPeerCommandResult(string peerAcceptCommand = null) + { + return new ClusterPeerCommandResult(peerAcceptCommand, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Replication health check + /// Serialized Name: ReplicationStatus.healthy + /// + /// + /// Status of the mirror relationship + /// Serialized Name: ReplicationStatus.relationshipStatus + /// + /// + /// The status of the replication + /// Serialized Name: ReplicationStatus.mirrorState + /// + /// + /// The progress of the replication + /// Serialized Name: ReplicationStatus.totalProgress + /// + /// + /// Displays error message if the replication is in an error state + /// Serialized Name: ReplicationStatus.errorMessage + /// + /// A new instance for mocking. + public static NetAppVolumeReplicationStatus NetAppVolumeReplicationStatus(bool? isHealthy = null, VolumeReplicationRelationshipStatus? volumeReplicationRelationshipStatus = null, NetAppMirrorState? mirrorState = null, string totalProgress = null, string errorMessage = null) + { + return new NetAppVolumeReplicationStatus( + isHealthy, + volumeReplicationRelationshipStatus, + mirrorState, + totalProgress, + errorMessage, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// UUID v4 used to identify the Backup. - /// The creation date of the backup. - /// The snapshot creation date of the backup. - /// The completion date of the backup. - /// Azure lifecycle management. - /// Size of backup in bytes. - /// Label for backup. - /// Type of backup Manual or Scheduled. - /// Failure reason. - /// ResourceId used to identify the Volume. - /// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups. - /// The name of the snapshot. - /// ResourceId used to identify the backup policy. - /// Specifies if the backup is for a large volume. - /// A new instance for mocking. - public static NetAppBackupData NetAppBackupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string backupId = null, DateTimeOffset? createdOn = null, DateTimeOffset? snapshotCreationOn = null, DateTimeOffset? completionOn = null, string provisioningState = null, long? size = null, string label = null, NetAppBackupType? backupType = null, string failureReason = null, ResourceIdentifier volumeResourceId = null, bool? useExistingSnapshot = null, string snapshotName = null, ResourceIdentifier backupPolicyArmResourceId = null, bool? isLargeVolume = null) + /// + /// Resource location + /// Serialized Name: Snapshot.location + /// + /// + /// UUID v4 used to identify the Snapshot + /// Serialized Name: Snapshot.properties.snapshotId + /// + /// + /// The creation date of the snapshot + /// Serialized Name: Snapshot.properties.created + /// + /// + /// Azure lifecycle management + /// Serialized Name: Snapshot.properties.provisioningState + /// + /// A new instance for mocking. + public static NetAppVolumeSnapshotData NetAppVolumeSnapshotData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation location = default, string snapshotId = null, DateTimeOffset? created = null, string provisioningState = null) { - return new NetAppBackupData( + return new NetAppVolumeSnapshotData( id, name, resourceType, systemData, - backupId, + location, + snapshotId, + created, + provisioningState, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// Path to the subvolume + /// Serialized Name: SubvolumeInfo.properties.path + /// + /// + /// Truncate subvolume to the provided size in bytes + /// Serialized Name: SubvolumeInfo.properties.size + /// + /// + /// parent path to the subvolume + /// Serialized Name: SubvolumeInfo.properties.parentPath + /// + /// + /// Azure lifecycle management + /// Serialized Name: SubvolumeInfo.properties.provisioningState + /// + /// A new instance for mocking. + public static NetAppSubvolumeInfoData NetAppSubvolumeInfoData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string path = null, long? size = null, string parentPath = null, string provisioningState = null) + { + return new NetAppSubvolumeInfoData( + id, + name, + resourceType, + systemData, + path, + size, + parentPath, + provisioningState, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// Path to the subvolume + /// Serialized Name: SubvolumeModel.properties.path + /// + /// + /// Path to the parent subvolume + /// Serialized Name: SubvolumeModel.properties.parentPath + /// + /// + /// Size of subvolume + /// Serialized Name: SubvolumeModel.properties.size + /// + /// + /// Bytes used + /// Serialized Name: SubvolumeModel.properties.bytesUsed + /// + /// + /// Permissions of the subvolume + /// Serialized Name: SubvolumeModel.properties.permissions + /// + /// + /// Creation time and date + /// Serialized Name: SubvolumeModel.properties.creationTimeStamp + /// + /// + /// Most recent access time and date + /// Serialized Name: SubvolumeModel.properties.accessedTimeStamp + /// + /// + /// Most recent modification time and date + /// Serialized Name: SubvolumeModel.properties.modifiedTimeStamp + /// + /// + /// Most recent change time and date + /// Serialized Name: SubvolumeModel.properties.changedTimeStamp + /// + /// + /// Azure lifecycle management + /// Serialized Name: SubvolumeModel.properties.provisioningState + /// + /// A new instance for mocking. + public static NetAppSubvolumeMetadata NetAppSubvolumeMetadata(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string path = null, string parentPath = null, long? size = null, long? bytesUsed = null, string permissions = null, DateTimeOffset? createdOn = null, DateTimeOffset? accessedOn = null, DateTimeOffset? modifiedOn = null, DateTimeOffset? changedOn = null, string provisioningState = null) + { + return new NetAppSubvolumeMetadata( + id, + name, + resourceType, + systemData, + path, + parentPath, + size, + bytesUsed, + permissions, createdOn, - snapshotCreationOn, - completionOn, + accessedOn, + modifiedOn, + changedOn, provisioningState, - size, - label, - backupType, - failureReason, - volumeResourceId, - useExistingSnapshot, - snapshotName, - backupPolicyArmResourceId, - isLargeVolume, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// Azure lifecycle management. - /// A new instance for mocking. - public static NetAppBackupVaultData NetAppBackupVaultData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string provisioningState = null) + /// + /// Gets the status of the VolumeQuotaRule at the time the operation was called. + /// Serialized Name: VolumeQuotaRule.properties.provisioningState + /// + /// + /// Size of quota + /// Serialized Name: VolumeQuotaRule.properties.quotaSizeInKiBs + /// + /// + /// Type of quota + /// Serialized Name: VolumeQuotaRule.properties.quotaType + /// + /// + /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid> + /// Serialized Name: VolumeQuotaRule.properties.quotaTarget + /// + /// A new instance for mocking. + public static NetAppVolumeQuotaRuleData NetAppVolumeQuotaRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NetAppProvisioningState? provisioningState = null, long? quotaSizeInKiBs = null, NetAppVolumeQuotaType? quotaType = null, string quotaTarget = null) { tags ??= new Dictionary(); - return new NetAppBackupVaultData( + return new NetAppVolumeQuotaRuleData( id, name, resourceType, @@ -1419,320 +1874,655 @@ public static NetAppBackupVaultData NetAppBackupVaultData(ResourceIdentifier id tags, location, provisioningState, + quotaSizeInKiBs, + quotaType, + quotaTarget, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// List of files to be restored. - /// Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default. - /// Resource Id of the destination volume on which the files need to be restored. - /// A new instance for mocking. - public static NetAppVolumeBackupBackupRestoreFilesContent NetAppVolumeBackupBackupRestoreFilesContent(IEnumerable fileList = null, string restoreFilePath = null, ResourceIdentifier destinationVolumeId = null) + /// Initializes a new instance of . + /// + /// Resource tags + /// Serialized Name: VolumeQuotaRulePatch.tags + /// + /// + /// Gets the status of the VolumeQuotaRule at the time the operation was called. + /// Serialized Name: VolumeQuotaRulePatch.properties.provisioningState + /// + /// + /// Size of quota + /// Serialized Name: VolumeQuotaRulePatch.properties.quotaSizeInKiBs + /// + /// + /// Type of quota + /// Serialized Name: VolumeQuotaRulePatch.properties.quotaType + /// + /// + /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid> + /// Serialized Name: VolumeQuotaRulePatch.properties.quotaTarget + /// + /// A new instance for mocking. + public static NetAppVolumeQuotaRulePatch NetAppVolumeQuotaRulePatch(IDictionary tags = null, NetAppProvisioningState? provisioningState = null, long? quotaSizeInKiBs = null, NetAppVolumeQuotaType? quotaType = null, string quotaTarget = null) { - fileList ??= new List(); - - return new NetAppVolumeBackupBackupRestoreFilesContent(fileList?.ToList(), restoreFilePath, destinationVolumeId, serializedAdditionalRawData: null); - } + tags ??= new Dictionary(); - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The volume path mounted inside the bucket. The default is the root path '/' if no value is provided when the bucket is created. - /// File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be supplied, but not both. - /// Provisioning state of the resource. - /// - /// The bucket credentials status. There states: - /// - /// "NoCredentialsSet": Access and Secret key pair have not been generated. - /// "CredentialsExpired": Access and Secret key pair have expired. - /// "Active": The certificate has been installed and credentials are unexpired. - /// - /// Properties of the server managing the lifecycle of volume buckets. - /// Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is ReadOnly if no value is provided during bucket creation. - /// A new instance for mocking. - public static NetAppBucketData NetAppBucketData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string path = null, NetAppBucketFileSystemUser fileSystemUser = null, NetAppProvisioningState? provisioningState = null, NetAppBucketCredentialStatus? status = null, NetAppBucketServerProperties server = null, NetAppBucketPermission? permissions = null) - { - return new NetAppBucketData( - id, - name, - resourceType, - systemData, - path, - fileSystemUser, + return new NetAppVolumeQuotaRulePatch( + tags, provisioningState, - status, - server, - permissions, + quotaSizeInKiBs, + quotaType, + quotaTarget, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The host part of the bucket URL, resolving to the bucket IP address and allowed by the server certificate. - /// Certificate Common Name taken from the certificate installed on the bucket server. - /// The bucket server's certificate expiry date. - /// The bucket server's IPv4 address. - /// A base64-encoded PEM file, which includes both the bucket server's certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only manner. - /// A new instance for mocking. - public static NetAppBucketServerProperties NetAppBucketServerProperties(string fqdn = null, string certificateCommonName = null, DateTimeOffset? certificateExpiryOn = null, string ipAddress = null, string certificateObject = null) - { - return new NetAppBucketServerProperties( - fqdn, - certificateCommonName, - certificateExpiryOn, - ipAddress, - certificateObject, - serializedAdditionalRawData: null); + /// Initializes a new instance of . + /// + /// The URI of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: ChangeKeyVault.keyVaultUri + /// + /// + /// The name of the key that should be used for encryption. + /// Serialized Name: ChangeKeyVault.keyName + /// + /// + /// Azure resource ID of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: ChangeKeyVault.keyVaultResourceId + /// + /// + /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// Serialized Name: ChangeKeyVault.keyVaultPrivateEndpoints + /// + /// A new instance for mocking. + public static NetAppChangeKeyVault NetAppChangeKeyVault(Uri keyVaultUri = null, string keyName = null, ResourceIdentifier keyVaultResourceId = null, IEnumerable keyVaultPrivateEndpoints = null) + { + keyVaultPrivateEndpoints ??= new List(); + + return new NetAppChangeKeyVault(keyVaultUri, keyName, keyVaultResourceId, keyVaultPrivateEndpoints?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// The URI of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyVaultUri + /// + /// + /// The name of the key that should be used for encryption. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyName + /// + /// + /// Azure resource ID of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyVaultResourceId + /// + /// + /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyVaultPrivateEndpoints + /// + /// A new instance for mocking. + public static NetAppKeyVaultStatusResult NetAppKeyVaultStatusResult(Uri keyVaultUri = null, string keyName = null, ResourceIdentifier keyVaultResourceId = null, IEnumerable keyVaultPrivateEndpoints = null) + { + keyVaultPrivateEndpoints ??= new List(); + + return new NetAppKeyVaultStatusResult(keyVaultUri, keyName, keyVaultResourceId, keyVaultPrivateEndpoints?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The volume path mounted inside the bucket. - /// File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be supplied, but not both. - /// Provisioning state of the resource. - /// Properties of the server managing the lifecycle of volume buckets. - /// Access permissions for the bucket. Either ReadOnly or ReadWrite. - /// A new instance for mocking. - public static NetAppBucketPatch NetAppBucketPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string path = null, NetAppBucketFileSystemUser fileSystemUser = null, NetAppProvisioningState? provisioningState = null, NetAppBucketServerPatchProperties server = null, NetAppBucketPatchPermission? permissions = null) - { - return new NetAppBucketPatch( + /// The tags. + /// The location. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: SnapshotPolicy.etag + /// + /// + /// Schedule for hourly snapshots + /// Serialized Name: SnapshotPolicy.properties.hourlySchedule + /// + /// + /// Schedule for daily snapshots + /// Serialized Name: SnapshotPolicy.properties.dailySchedule + /// + /// + /// Schedule for weekly snapshots + /// Serialized Name: SnapshotPolicy.properties.weeklySchedule + /// + /// + /// Schedule for monthly snapshots + /// Serialized Name: SnapshotPolicy.properties.monthlySchedule + /// + /// + /// The property to decide policy is enabled or not + /// Serialized Name: SnapshotPolicy.properties.enabled + /// + /// + /// Azure lifecycle management + /// Serialized Name: SnapshotPolicy.properties.provisioningState + /// + /// A new instance for mocking. + public static SnapshotPolicyData SnapshotPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, SnapshotPolicyHourlySchedule hourlySchedule = null, SnapshotPolicyDailySchedule dailySchedule = null, SnapshotPolicyWeeklySchedule weeklySchedule = null, SnapshotPolicyMonthlySchedule monthlySchedule = null, bool? isEnabled = null, string provisioningState = null) + { + tags ??= new Dictionary(); + + return new SnapshotPolicyData( id, name, resourceType, systemData, - path, - fileSystemUser, + tags, + location, + etag, + hourlySchedule, + dailySchedule, + weeklySchedule, + monthlySchedule, + isEnabled, provisioningState, - server, - permissions, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The Access Key that is required along with the Secret Key to access the bucket. - /// The Secret Key that is required along with the Access Key to access the bucket. - /// The bucket's Access and Secret key pair expiry date and time (in UTC). - /// A new instance for mocking. - public static NetAppBucketGenerateCredentials NetAppBucketGenerateCredentials(string accessKey = null, string secretKey = null, DateTimeOffset? keyPairExpiry = null) - { - return new NetAppBucketGenerateCredentials(accessKey, secretKey, keyPairExpiry, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// The identity used for the resource. - /// Azure lifecycle management. - /// Active Directories. - /// Encryption settings. - /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. - /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. - /// MultiAD Status for the account. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static NetAppAccountData NetAppAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ManagedServiceIdentity identity, string provisioningState, IEnumerable activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount, string nfsV4IdDomain, MultiAdStatus? multiAdStatus) + /// + /// Schedule for hourly snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.hourlySchedule + /// + /// + /// Schedule for daily snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.dailySchedule + /// + /// + /// Schedule for weekly snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.weeklySchedule + /// + /// + /// Schedule for monthly snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.monthlySchedule + /// + /// + /// The property to decide policy is enabled or not + /// Serialized Name: SnapshotPolicyPatch.properties.enabled + /// + /// + /// Azure lifecycle management + /// Serialized Name: SnapshotPolicyPatch.properties.provisioningState + /// + /// A new instance for mocking. + public static SnapshotPolicyPatch SnapshotPolicyPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SnapshotPolicyHourlySchedule hourlySchedule = null, SnapshotPolicyDailySchedule dailySchedule = null, SnapshotPolicyWeeklySchedule weeklySchedule = null, SnapshotPolicyMonthlySchedule monthlySchedule = null, bool? isEnabled = null, string provisioningState = null) { - return NetAppAccountData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, identity: identity, provisioningState: provisioningState, activeDirectories: activeDirectories, encryption: encryption, disableShowmount: disableShowmount, nfsV4IdDomain: nfsV4IdDomain, multiAdStatus: multiAdStatus, ldapConfiguration: default); + tags ??= new Dictionary(); + + return new SnapshotPolicyPatch( + id, + name, + resourceType, + systemData, + tags, + location, + hourlySchedule, + dailySchedule, + weeklySchedule, + monthlySchedule, + isEnabled, + provisioningState, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. - /// The identity used for the resource. - /// Azure lifecycle management. - /// Active Directories. - /// Encryption settings. - /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. - /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. - /// MultiAD Status for the account. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static NetAppAccountPatch NetAppAccountPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string provisioningState, IEnumerable activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount, string nfsV4IdDomain, MultiAdStatus? multiAdStatus) + /// + /// Resource location + /// Serialized Name: VolumeGroup.location + /// + /// + /// Azure lifecycle management + /// Serialized Name: VolumeGroup.properties.provisioningState + /// + /// + /// Volume group details + /// Serialized Name: VolumeGroup.properties.groupMetaData + /// + /// A new instance for mocking. + public static NetAppVolumeGroupResult NetAppVolumeGroupResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null) { - return NetAppAccountPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, identity: identity, provisioningState: provisioningState, activeDirectories: activeDirectories, encryption: encryption, disableShowmount: disableShowmount, nfsV4IdDomain: nfsV4IdDomain, multiAdStatus: multiAdStatus, ldapConfiguration: default); + return new NetAppVolumeGroupResult( + id, + name, + resourceType, + systemData, + location, + provisioningState, + groupMetaData, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// Availability Zone. - /// Unique FileSystem Identifier. - /// A unique file path for the volume. Used when creating mount targets. - /// The service level of the file system. - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. - /// Set of export policy rules. - /// Set of protocol types, default NFSv3, CIFS for SMB protocol. - /// Azure lifecycle management. - /// Resource identifier used to identify the Snapshot. - /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false. - /// Resource identifier used to identify the Backup. - /// Unique Baremetal Tenant Identifier. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// The original value of the network features type available to the volume at the time it was created. - /// The effective value of the network features type available to the volume, or current effective state of update. - /// Network Sibling Set ID for the the group of volumes sharing networking resources. - /// Provides storage to network proximity information for the volume. - /// List of mount targets. - /// 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. - /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. - /// Restoring. - /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (defaults to true). - /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. - /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. - /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables continuously available share property for smb volume. Only applicable for SMB volume. - /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. - /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. - /// Source of key used to encrypt data in volume. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'. - /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - /// Specifies whether LDAP is enabled or not for a given NFS volume. - /// Specifies whether Cool Access(tiering) is enabled for the volume. - /// Specifies the number of days after which data that is not accessed by clients will be tiered. - /// - /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: - /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. - /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. - /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Initializes a new instance of . + /// + /// Group Description + /// Serialized Name: VolumeGroupMetaData.groupDescription /// - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. - /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. - /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. - /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. - /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - /// Data store resource unique identifier. - /// Specifies if default quota is enabled for the volume. - /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . - /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. - /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. - /// Volume Group Name. - /// Pool Resource Id used in case of creating a volume through volume group. - /// Proximity placement group associated with the volume. - /// T2 network information. - /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log. - /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. - /// Application specific placement rules for the particular volume. - /// Flag indicating whether subvolume operations are enabled on the volume. - /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. - /// Specifies whether volume is a Large Volume or Regular Volume. - /// Id of the snapshot or backup that the volume is restored from. - /// Space shared by short term clone volume with parent volume in bytes. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, IEnumerable zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, IEnumerable exportRules, IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, NetAppNetworkFeature? effectiveNetworkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IEnumerable mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IEnumerable placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId, long? inheritedSizeInBytes) + /// + /// Application Type + /// Serialized Name: VolumeGroupMetaData.applicationType + /// + /// + /// Application specific identifier + /// Serialized Name: VolumeGroupMetaData.applicationIdentifier + /// + /// + /// Application specific placement rules for the volume group + /// Serialized Name: VolumeGroupMetaData.globalPlacementRules + /// + /// + /// Number of volumes in volume group + /// Serialized Name: VolumeGroupMetaData.volumesCount + /// + /// A new instance for mocking. + public static NetAppVolumeGroupMetadata NetAppVolumeGroupMetadata(string groupDescription = null, NetAppApplicationType? applicationType = null, string applicationIdentifier = null, IEnumerable globalPlacementRules = null, long? volumesCount = null) { - return NetAppVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: effectiveNetworkFeatures, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: acceptGrowCapacityPoolForShortTermCloneSplit, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, ldapServerType: default, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: coolAccessTieringPolicy, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: inheritedSizeInBytes, language: default); + globalPlacementRules ??= new List(); + + return new NetAppVolumeGroupMetadata( + groupDescription, + applicationType, + applicationIdentifier, + globalPlacementRules?.ToList(), + volumesCount, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Id. - /// Indicates whether the local volume is the source or destination for the Volume Replication. - /// Schedule. - /// The resource ID of the remote volume. Required for cross region and cross zone replication. - /// The full path to a volume that is to be migrated into ANF. Required for Migration volumes. - /// The remote region for the other end of the Volume Replication. - /// A list of destination replications. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static NetAppReplicationObject NetAppReplicationObject(string replicationId, NetAppEndpointType? endpointType, NetAppReplicationSchedule? replicationSchedule, ResourceIdentifier remoteVolumeResourceId, RemotePath remotePath, string remoteVolumeRegion, IEnumerable destinationReplications) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// Resource location + /// Serialized Name: VolumeGroupDetails.location + /// + /// + /// Azure lifecycle management + /// Serialized Name: VolumeGroupDetails.properties.provisioningState + /// + /// + /// Volume group details + /// Serialized Name: VolumeGroupDetails.properties.groupMetaData + /// + /// + /// List of volumes from group + /// Serialized Name: VolumeGroupDetails.properties.volumes + /// + /// A new instance for mocking. + public static NetAppVolumeGroupData NetAppVolumeGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, string provisioningState = null, NetAppVolumeGroupMetadata groupMetaData = null, IEnumerable volumes = null) { - return NetAppReplicationObject(replicationId: replicationId, endpointType: endpointType, replicationSchedule: replicationSchedule, remoteVolumeResourceId: remoteVolumeResourceId, remotePath: remotePath, remoteVolumeRegion: remoteVolumeRegion, destinationReplications: destinationReplications, externalReplicationSetupStatus: default, externalReplicationSetupInfo: default, mirrorState: default, relationshipStatus: default); + volumes ??= new List(); + + return new NetAppVolumeGroupData( + id, + name, + resourceType, + systemData, + location, + provisioningState, + groupMetaData, + volumes?.ToList(), + serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Resource Id. - /// Resource name. - /// Resource type. - /// Resource tags. - /// Availability Zone. - /// Unique FileSystem Identifier. - /// A unique file path for the volume. Used when creating mount targets. - /// The service level of the file system. - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. - /// Set of export policy rules. - /// Set of protocol types, default NFSv3, CIFS for SMB protocol. - /// Azure lifecycle management. - /// Resource identifier used to identify the Snapshot. - /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false. - /// Resource identifier used to identify the Backup. - /// Unique Baremetal Tenant Identifier. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// The original value of the network features type available to the volume at the time it was created. - /// The effective value of the network features type available to the volume, or current effective state of update. - /// Network Sibling Set ID for the the group of volumes sharing networking resources. - /// Provides storage to network proximity information for the volume. - /// List of mount targets. - /// 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. - /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. - /// Restoring. - /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (defaults to true). - /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. - /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. - /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables continuously available share property for smb volume. Only applicable for SMB volume. - /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. - /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. - /// Source of key used to encrypt data in volume. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'. - /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - /// Specifies whether LDAP is enabled or not for a given NFS volume. - /// Specifies whether Cool Access(tiering) is enabled for the volume. - /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// Initializes a new instance of . + /// + /// Resource Id + /// Serialized Name: VolumeGroupVolumeProperties.id + /// + /// + /// Resource name + /// Serialized Name: VolumeGroupVolumeProperties.name + /// + /// + /// Resource type + /// Serialized Name: VolumeGroupVolumeProperties.type + /// + /// + /// Resource tags + /// Serialized Name: VolumeGroupVolumeProperties.tags + /// + /// + /// Availability Zone + /// Serialized Name: VolumeGroupVolumeProperties.zones + /// + /// + /// Unique FileSystem Identifier. + /// Serialized Name: VolumeGroupVolumeProperties.properties.fileSystemId + /// + /// + /// A unique file path for the volume. Used when creating mount targets + /// Serialized Name: VolumeGroupVolumeProperties.properties.creationToken + /// + /// + /// The service level of the file system + /// Serialized Name: VolumeGroupVolumeProperties.properties.serviceLevel + /// + /// + /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// Serialized Name: VolumeGroupVolumeProperties.properties.usageThreshold + /// + /// + /// Set of export policy rules + /// Serialized Name: VolumeGroupVolumeProperties.properties.exportPolicy + /// + /// + /// Set of protocol types, default NFSv3, CIFS for SMB protocol + /// Serialized Name: VolumeGroupVolumeProperties.properties.protocolTypes + /// + /// + /// Azure lifecycle management + /// Serialized Name: VolumeGroupVolumeProperties.properties.provisioningState + /// + /// + /// Resource identifier used to identify the Snapshot. + /// Serialized Name: VolumeGroupVolumeProperties.properties.snapshotId + /// + /// + /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false + /// Serialized Name: VolumeGroupVolumeProperties.properties.deleteBaseSnapshot + /// + /// + /// Resource identifier used to identify the Backup. + /// Serialized Name: VolumeGroupVolumeProperties.properties.backupId + /// + /// + /// Unique Baremetal Tenant Identifier. + /// Serialized Name: VolumeGroupVolumeProperties.properties.baremetalTenantId + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: VolumeGroupVolumeProperties.properties.subnetId + /// + /// + /// The original value of the network features type available to the volume at the time it was created. + /// Serialized Name: VolumeGroupVolumeProperties.properties.networkFeatures + /// + /// + /// The effective value of the network features type available to the volume, or current effective state of update. + /// Serialized Name: VolumeGroupVolumeProperties.properties.effectiveNetworkFeatures + /// + /// + /// Network Sibling Set ID for the the group of volumes sharing networking resources. + /// Serialized Name: VolumeGroupVolumeProperties.properties.networkSiblingSetId + /// + /// + /// Provides storage to network proximity information for the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.storageToNetworkProximity + /// + /// + /// List of mount targets + /// Serialized Name: VolumeGroupVolumeProperties.properties.mountTargets + /// + /// + /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone + /// Serialized Name: VolumeGroupVolumeProperties.properties.volumeType + /// + /// + /// DataProtection type volumes include an object containing details of the replication + /// Serialized Name: VolumeGroupVolumeProperties.properties.dataProtection + /// + /// + /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. + /// Serialized Name: VolumeGroupVolumeProperties.properties.acceptGrowCapacityPoolForShortTermCloneSplit + /// + /// + /// Restoring + /// Serialized Name: VolumeGroupVolumeProperties.properties.isRestoring + /// + /// + /// 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). + /// Serialized Name: VolumeGroupVolumeProperties.properties.snapshotDirectoryVisible + /// + /// + /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later + /// Serialized Name: VolumeGroupVolumeProperties.properties.kerberosEnabled + /// + /// + /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol + /// Serialized Name: VolumeGroupVolumeProperties.properties.securityStyle + /// + /// + /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbEncryption + /// + /// + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbAccessBasedEnumeration + /// + /// + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbNonBrowsable + /// + /// + /// Enables continuously available share property for smb volume. Only applicable for SMB volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbContinuouslyAvailable + /// + /// + /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.throughputMibps + /// + /// + /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel + /// Serialized Name: VolumeGroupVolumeProperties.properties.actualThroughputMibps + /// + /// + /// 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' + /// Serialized Name: VolumeGroupVolumeProperties.properties.encryptionKeySource + /// + /// + /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. + /// Serialized Name: VolumeGroupVolumeProperties.properties.keyVaultPrivateEndpointResourceId + /// + /// + /// Specifies whether LDAP is enabled or not for a given NFS volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.ldapEnabled + /// + /// + /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolAccess + /// + /// + /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolnessPeriod + /// /// /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolAccessRetrievalPolicy /// - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. - /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. - /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. - /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. - /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - /// Data store resource unique identifier. - /// Specifies if default quota is enabled for the volume. - /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . - /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. - /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. - /// Volume Group Name. - /// Pool Resource Id used in case of creating a volume through volume group. - /// Proximity placement group associated with the volume. - /// T2 network information. - /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log. - /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. - /// Application specific placement rules for the particular volume. - /// Flag indicating whether subvolume operations are enabled on the volume. - /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. - /// Specifies whether volume is a Large Volume or Regular Volume. - /// Id of the snapshot or backup that the volume is restored from. - /// Space shared by short term clone volume with parent volume in bytes. - /// A new instance for mocking. + /// + /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolAccessTieringPolicy + /// + /// + /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. + /// Serialized Name: VolumeGroupVolumeProperties.properties.unixPermissions + /// + /// + /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. + /// Serialized Name: VolumeGroupVolumeProperties.properties.cloneProgress + /// + /// + /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.fileAccessLogs + /// + /// + /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose + /// Serialized Name: VolumeGroupVolumeProperties.properties.avsDataStore + /// + /// + /// Data store resource unique identifier + /// Serialized Name: VolumeGroupVolumeProperties.properties.dataStoreResourceId + /// + /// + /// Specifies if default quota is enabled for the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.isDefaultQuotaEnabled + /// + /// + /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// Serialized Name: VolumeGroupVolumeProperties.properties.defaultUserQuotaInKiBs + /// + /// + /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// Serialized Name: VolumeGroupVolumeProperties.properties.defaultGroupQuotaInKiBs + /// + /// + /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. + /// Serialized Name: VolumeGroupVolumeProperties.properties.maximumNumberOfFiles + /// + /// + /// Volume Group Name + /// Serialized Name: VolumeGroupVolumeProperties.properties.volumeGroupName + /// + /// + /// Pool Resource Id used in case of creating a volume through volume group + /// Serialized Name: VolumeGroupVolumeProperties.properties.capacityPoolResourceId + /// + /// + /// Proximity placement group associated with the volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.proximityPlacementGroup + /// + /// + /// T2 network information + /// Serialized Name: VolumeGroupVolumeProperties.properties.t2Network + /// + /// + /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log + /// Serialized Name: VolumeGroupVolumeProperties.properties.volumeSpecName + /// + /// + /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. + /// Serialized Name: VolumeGroupVolumeProperties.properties.encrypted + /// + /// + /// Application specific placement rules for the particular volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.placementRules + /// + /// + /// Flag indicating whether subvolume operations are enabled on the volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.enableSubvolumes + /// + /// + /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + /// Serialized Name: VolumeGroupVolumeProperties.properties.provisionedAvailabilityZone + /// + /// + /// Specifies whether volume is a Large Volume or Regular Volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.isLargeVolume + /// + /// + /// Id of the snapshot or backup that the volume is restored from. + /// Serialized Name: VolumeGroupVolumeProperties.properties.originatingResourceId + /// + /// + /// Space shared by short term clone volume with parent volume in bytes. + /// Serialized Name: VolumeGroupVolumeProperties.properties.inheritedSizeInBytes + /// + /// A new instance for mocking. + public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, IDictionary tags = null, IEnumerable zones = null, Guid? fileSystemId = null, string creationToken = null, NetAppFileServiceLevel? serviceLevel = null, long usageThreshold = default, IEnumerable exportRules = null, IEnumerable protocolTypes = null, string provisioningState = null, string snapshotId = null, bool? deleteBaseSnapshot = null, string backupId = null, string baremetalTenantId = null, ResourceIdentifier subnetId = null, NetAppNetworkFeature? networkFeatures = null, NetAppNetworkFeature? effectiveNetworkFeatures = null, Guid? networkSiblingSetId = null, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity = null, IEnumerable mountTargets = null, string volumeType = null, NetAppVolumeDataProtection dataProtection = null, AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit = null, bool? isRestoring = null, bool? isSnapshotDirectoryVisible = null, bool? isKerberosEnabled = null, NetAppVolumeSecurityStyle? securityStyle = null, bool? isSmbEncryptionEnabled = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null, bool? isSmbContinuouslyAvailable = null, float? throughputMibps = null, float? actualThroughputMibps = null, NetAppEncryptionKeySource? encryptionKeySource = null, ResourceIdentifier keyVaultPrivateEndpointResourceId = null, bool? isLdapEnabled = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, CoolAccessTieringPolicy? coolAccessTieringPolicy = 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, long? inheritedSizeInBytes = null) + { + tags ??= new Dictionary(); + zones ??= new List(); + exportRules ??= new List(); + protocolTypes ??= new List(); + mountTargets ??= new List(); + dataStoreResourceId ??= new List(); + placementRules ??= new List(); + + return new NetAppVolumeGroupVolume( + id, + name, + resourceType, + tags, + zones?.ToList(), + fileSystemId, + creationToken, + serviceLevel, + usageThreshold, + exportRules != null ? new VolumePropertiesExportPolicy(exportRules?.ToList(), serializedAdditionalRawData: null) : null, + protocolTypes?.ToList(), + provisioningState, + snapshotId, + deleteBaseSnapshot, + backupId, + baremetalTenantId, + subnetId, + networkFeatures, + effectiveNetworkFeatures, + networkSiblingSetId, + storageToNetworkProximity, + mountTargets?.ToList(), + volumeType, + dataProtection, + acceptGrowCapacityPoolForShortTermCloneSplit, + isRestoring, + isSnapshotDirectoryVisible, + isKerberosEnabled, + securityStyle, + isSmbEncryptionEnabled, + smbAccessBasedEnumeration, + smbNonBrowsable, + isSmbContinuouslyAvailable, + throughputMibps, + actualThroughputMibps, + encryptionKeySource, + keyVaultPrivateEndpointResourceId, + isLdapEnabled, + isCoolAccessEnabled, + coolnessPeriod, + coolAccessRetrievalPolicy, + coolAccessTieringPolicy, + unixPermissions, + cloneProgress, + fileAccessLogs, + avsDataStore, + dataStoreResourceId?.ToList(), + isDefaultQuotaEnabled, + defaultUserQuotaInKiBs, + defaultGroupQuotaInKiBs, + maximumNumberOfFiles, + volumeGroupName, + capacityPoolResourceId, + proximityPlacementGroupId, + t2Network, + volumeSpecName, + isEncrypted, + placementRules?.ToList(), + enableSubvolumes, + provisionedAvailabilityZone, + isLargeVolume, + originatingResourceId, + inheritedSizeInBytes, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// UUID v4 used to identify the replication. + /// Indicates whether the local volume is the source or destination for the Volume Replication. + /// Schedule. + /// The resource ID of the remote volume. + /// The remote region for the other end of the Volume Replication. + /// A new instance for mocking. [EditorBrowsable(EditorBrowsableState.Never)] - public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary tags, IEnumerable zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, IEnumerable exportRules, IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, NetAppNetworkFeature? effectiveNetworkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IEnumerable mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IEnumerable placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId, long? inheritedSizeInBytes) + public static NetAppVolumeReplication NetAppVolumeReplication(string replicationId, NetAppEndpointType? endpointType, NetAppReplicationSchedule? replicationSchedule, ResourceIdentifier remoteVolumeResourceId, string remoteVolumeRegion) { - return NetAppVolumeGroupVolume(id: id, name: name, resourceType: resourceType, tags: tags, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: effectiveNetworkFeatures, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: acceptGrowCapacityPoolForShortTermCloneSplit, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, ldapServerType: default, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: coolAccessTieringPolicy, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: inheritedSizeInBytes, language: default); + return NetAppVolumeReplication(replicationId: replicationId, endpointType: endpointType, replicationSchedule: replicationSchedule, remoteVolumeResourceId: remoteVolumeResourceId, remoteVolumeRegion: remoteVolumeRegion, mirrorState: default, replicationCreationOn: default, replicationDeletionOn: default); } /// Initializes a new instance of . @@ -1756,7 +2546,7 @@ public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier [EditorBrowsable(EditorBrowsableState.Never)] public static CapacityPoolData CapacityPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, Guid? poolId, long size, NetAppFileServiceLevel serviceLevel, string provisioningState, float? totalThroughputMibps, float? utilizedThroughputMibps, CapacityPoolQosType? qosType, bool? isCoolAccessEnabled, CapacityPoolEncryptionType? encryptionType) { - return CapacityPoolData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, poolId: poolId, size: size, serviceLevel: serviceLevel, provisioningState: provisioningState, totalThroughputMibps: totalThroughputMibps, utilizedThroughputMibps: utilizedThroughputMibps, customThroughputMibps: default, qosType: qosType, isCoolAccessEnabled: isCoolAccessEnabled, encryptionType: encryptionType); + return CapacityPoolData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, poolId: poolId, size: size, serviceLevel: serviceLevel, provisioningState: provisioningState, totalThroughputMibps: totalThroughputMibps, utilizedThroughputMibps: utilizedThroughputMibps, customThroughputMibpsInt: default, qosType: qosType, isCoolAccessEnabled: isCoolAccessEnabled, encryptionType: encryptionType); } /// Initializes a new instance of . @@ -1773,7 +2563,7 @@ public static CapacityPoolData CapacityPoolData(ResourceIdentifier id, string na [EditorBrowsable(EditorBrowsableState.Never)] public static CapacityPoolPatch CapacityPoolPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, long? size, CapacityPoolQosType? qosType, bool? isCoolAccessEnabled) { - return CapacityPoolPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, size: size, qosType: qosType, isCoolAccessEnabled: isCoolAccessEnabled, customThroughputMibps: default); + return CapacityPoolPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, size: size, qosType: qosType, isCoolAccessEnabled: isCoolAccessEnabled, customThroughputMibpsInt: default); } /// Initializes a new instance of . @@ -1850,7 +2640,7 @@ public static CapacityPoolPatch CapacityPoolPatch(ResourceIdentifier id, string [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, IEnumerable zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, IEnumerable exportRules, IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, NetAppNetworkFeature? effectiveNetworkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IEnumerable mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IEnumerable placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) { - return NetAppVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: effectiveNetworkFeatures, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, ldapServerType: default, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: coolAccessTieringPolicy, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default, language: default); + return NetAppVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: effectiveNetworkFeatures, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: coolAccessTieringPolicy, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default); } /// Initializes a new instance of . @@ -1924,7 +2714,7 @@ public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id, string na [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary tags, IEnumerable zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, IEnumerable exportRules, IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, NetAppNetworkFeature? effectiveNetworkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IEnumerable mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, CoolAccessTieringPolicy? coolAccessTieringPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IEnumerable placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) { - return NetAppVolumeGroupVolume(id: id, name: name, resourceType: resourceType, tags: tags, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: effectiveNetworkFeatures, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, ldapServerType: default, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: coolAccessTieringPolicy, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default, language: default); + return NetAppVolumeGroupVolume(id: id, name: name, resourceType: resourceType, tags: tags, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: effectiveNetworkFeatures, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: coolAccessTieringPolicy, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default); } /// Initializes a new instance of . @@ -1944,7 +2734,7 @@ public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppAccountData NetAppAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ManagedServiceIdentity identity, string provisioningState, IEnumerable activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount) { - return NetAppAccountData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, identity: identity, provisioningState: provisioningState, activeDirectories: activeDirectories, encryption: encryption, disableShowmount: disableShowmount, nfsV4IdDomain: default, multiAdStatus: default, ldapConfiguration: default); + return NetAppAccountData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, identity: identity, provisioningState: provisioningState, activeDirectories: activeDirectories, encryption: encryption, disableShowmount: disableShowmount, nfsV4IdDomain: default, multiAdStatus: default); } /// Initializes a new instance of . @@ -1973,7 +2763,7 @@ public static NetAppEncryptionIdentity NetAppEncryptionIdentity(string principal [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppAccountPatch NetAppAccountPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string provisioningState, IEnumerable activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount) { - return NetAppAccountPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, identity: identity, provisioningState: provisioningState, activeDirectories: activeDirectories, encryption: encryption, disableShowmount: disableShowmount, nfsV4IdDomain: default, multiAdStatus: default, ldapConfiguration: default); + return NetAppAccountPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, identity: identity, provisioningState: provisioningState, activeDirectories: activeDirectories, encryption: encryption, disableShowmount: disableShowmount, nfsV4IdDomain: default, multiAdStatus: default); } /// Initializes a new instance of . @@ -1987,7 +2777,7 @@ public static NetAppAccountPatch NetAppAccountPatch(ResourceIdentifier id, strin [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppReplicationObject NetAppReplicationObject(string replicationId, NetAppEndpointType? endpointType, NetAppReplicationSchedule? replicationSchedule, ResourceIdentifier remoteVolumeResourceId, RemotePath remotePath, string remoteVolumeRegion) { - return NetAppReplicationObject(replicationId: replicationId, endpointType: endpointType, replicationSchedule: replicationSchedule, remoteVolumeResourceId: remoteVolumeResourceId, remotePath: remotePath, remoteVolumeRegion: remoteVolumeRegion, destinationReplications: default, externalReplicationSetupStatus: default, externalReplicationSetupInfo: default, mirrorState: default, relationshipStatus: default); + return NetAppReplicationObject(replicationId: replicationId, endpointType: endpointType, replicationSchedule: replicationSchedule, remoteVolumeResourceId: remoteVolumeResourceId, remotePath: remotePath, remoteVolumeRegion: remoteVolumeRegion, destinationReplications: default); } /// Initializes a new instance of . @@ -2013,22 +2803,6 @@ public static NetAppBackupData NetAppBackupData(ResourceIdentifier id, string na return NetAppBackupData(id: id, name: name, resourceType: resourceType, systemData: systemData, backupId: backupId, createdOn: createdOn, snapshotCreationOn: default, completionOn: default, provisioningState: provisioningState, size: size, label: label, backupType: backupType, failureReason: failureReason, volumeResourceId: volumeResourceId, useExistingSnapshot: useExistingSnapshot, snapshotName: snapshotName, backupPolicyArmResourceId: backupPolicyArmResourceId, isLargeVolume: default); } - /// Initializes a new instance of NetAppVolumeBackupStatus. - /// Backup health status. - /// Status of the backup mirror relationship. - /// The status of the backup. - /// Reason for the unhealthy backup relationship. - /// Displays error message if the backup is in an error state. - /// Displays the last transfer size. - /// Displays the last transfer type. - /// Displays the total bytes transferred. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy, NetAppRelationshipStatus? relationshipStatus, NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? lastTransferSize, string lastTransferType, long? totalTransferBytes) - { - return NetAppVolumeBackupStatus(isHealthy: isHealthy, relationshipStatus: relationshipStatus, mirrorState: mirrorState, unhealthyReason: unhealthyReason, errorMessage: errorMessage, lastTransferSize: lastTransferSize, lastTransferType: lastTransferType, totalTransferBytes: totalTransferBytes, transferProgressBytes: default); - } - /// Initializes a new instance of NetAppVolumeGroupVolume. /// Resource Id. /// Resource name. @@ -2091,7 +2865,7 @@ public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy, [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary tags, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, IEnumerable exportRules, IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IEnumerable 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, IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IEnumerable placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) { - return NetAppVolumeGroupVolume(id: id, name: name, resourceType: resourceType, tags: tags, zones: default, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: default, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, ldapServerType: default, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: default, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default, language: default); + return NetAppVolumeGroupVolume(id: id, name: name, resourceType: resourceType, tags: tags, zones: default, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: default, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: default, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default); } /// Initializes a new instance of . @@ -2163,7 +2937,7 @@ public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary tags, IEnumerable zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, IEnumerable exportRules, IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IEnumerable mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IEnumerable placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) { - return NetAppVolumeGroupVolume(id: id, name: name, resourceType: resourceType, tags: tags, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: default, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, ldapServerType: default, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default, language: default); + return NetAppVolumeGroupVolume(id: id, name: name, resourceType: resourceType, tags: tags, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: default, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default); } /// Initializes a new instance of NetAppVolumeData. @@ -2232,7 +3006,7 @@ public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, IEnumerable zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, IEnumerable exportRules, IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IEnumerable 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, IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IEnumerable placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) { - return NetAppVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: default, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, ldapServerType: default, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: default, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default, language: default); + return NetAppVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: default, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: default, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default); } /// Initializes a new instance of . @@ -2307,7 +3081,7 @@ public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id, string na [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, IEnumerable zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, IEnumerable exportRules, IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IEnumerable mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IEnumerable placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) { - return NetAppVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: default, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, ldapServerType: default, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default, language: default); + return NetAppVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: default, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default); } /// Initializes a new instance of . @@ -2383,7 +3157,7 @@ public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id, string na [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeData NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, IEnumerable zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, IEnumerable exportRules, IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, NetAppNetworkFeature? effectiveNetworkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IEnumerable mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IEnumerable placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) { - return NetAppVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: effectiveNetworkFeatures, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, ldapServerType: default, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default, language: default); + return NetAppVolumeData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, etag: etag, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: effectiveNetworkFeatures, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default); } /// Initializes a new instance of . @@ -2491,7 +3265,7 @@ public static NetAppVolumePatch NetAppVolumePatch(ResourceIdentifier id, string [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary tags, IEnumerable zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, IEnumerable exportRules, IEnumerable protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, NetAppNetworkFeature? effectiveNetworkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IEnumerable mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, string unixPermissions, int? cloneProgress, NetAppFileAccessLog? fileAccessLogs, NetAppAvsDataStore? avsDataStore, IEnumerable dataStoreResourceId, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, long? maximumNumberOfFiles, string volumeGroupName, ResourceIdentifier capacityPoolResourceId, ResourceIdentifier proximityPlacementGroupId, string t2Network, string volumeSpecName, bool? isEncrypted, IEnumerable placementRules, EnableNetAppSubvolume? enableSubvolumes, string provisionedAvailabilityZone, bool? isLargeVolume, ResourceIdentifier originatingResourceId) { - return NetAppVolumeGroupVolume(id: id, name: name, resourceType: resourceType, tags: tags, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: effectiveNetworkFeatures, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, ldapServerType: default, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default, language: default); + return NetAppVolumeGroupVolume(id: id, name: name, resourceType: resourceType, tags: tags, zones: zones, fileSystemId: fileSystemId, creationToken: creationToken, serviceLevel: serviceLevel, usageThreshold: usageThreshold, exportRules: exportRules, protocolTypes: protocolTypes, provisioningState: provisioningState, snapshotId: snapshotId, deleteBaseSnapshot: deleteBaseSnapshot, backupId: backupId, baremetalTenantId: baremetalTenantId, subnetId: subnetId, networkFeatures: networkFeatures, effectiveNetworkFeatures: effectiveNetworkFeatures, networkSiblingSetId: networkSiblingSetId, storageToNetworkProximity: storageToNetworkProximity, mountTargets: mountTargets, volumeType: volumeType, dataProtection: dataProtection, acceptGrowCapacityPoolForShortTermCloneSplit: default, isRestoring: isRestoring, isSnapshotDirectoryVisible: isSnapshotDirectoryVisible, isKerberosEnabled: isKerberosEnabled, securityStyle: securityStyle, isSmbEncryptionEnabled: isSmbEncryptionEnabled, smbAccessBasedEnumeration: smbAccessBasedEnumeration, smbNonBrowsable: smbNonBrowsable, isSmbContinuouslyAvailable: isSmbContinuouslyAvailable, throughputMibps: throughputMibps, actualThroughputMibps: actualThroughputMibps, encryptionKeySource: encryptionKeySource, keyVaultPrivateEndpointResourceId: keyVaultPrivateEndpointResourceId, isLdapEnabled: isLdapEnabled, isCoolAccessEnabled: isCoolAccessEnabled, coolnessPeriod: coolnessPeriod, coolAccessRetrievalPolicy: coolAccessRetrievalPolicy, coolAccessTieringPolicy: default, unixPermissions: unixPermissions, cloneProgress: cloneProgress, fileAccessLogs: fileAccessLogs, avsDataStore: avsDataStore, dataStoreResourceId: dataStoreResourceId, isDefaultQuotaEnabled: isDefaultQuotaEnabled, defaultUserQuotaInKiBs: defaultUserQuotaInKiBs, defaultGroupQuotaInKiBs: defaultGroupQuotaInKiBs, maximumNumberOfFiles: maximumNumberOfFiles, volumeGroupName: volumeGroupName, capacityPoolResourceId: capacityPoolResourceId, proximityPlacementGroupId: proximityPlacementGroupId, t2Network: t2Network, volumeSpecName: volumeSpecName, isEncrypted: isEncrypted, placementRules: placementRules, enableSubvolumes: enableSubvolumes, provisionedAvailabilityZone: provisionedAvailabilityZone, isLargeVolume: isLargeVolume, originatingResourceId: originatingResourceId, inheritedSizeInBytes: default); } /// Initializes a new instance of . @@ -2504,7 +3278,7 @@ public static NetAppVolumeGroupVolume NetAppVolumeGroupVolume(ResourceIdentifier [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppReplicationObject NetAppReplicationObject(string replicationId, NetAppEndpointType? endpointType, NetAppReplicationSchedule? replicationSchedule, ResourceIdentifier remoteVolumeResourceId, string remoteVolumeRegion) { - return NetAppReplicationObject(replicationId: replicationId, endpointType: endpointType, replicationSchedule: replicationSchedule, remoteVolumeResourceId: remoteVolumeResourceId, remotePath: default, remoteVolumeRegion: remoteVolumeRegion, destinationReplications: default, externalReplicationSetupStatus: default, externalReplicationSetupInfo: default, mirrorState: default, relationshipStatus: default); + return NetAppReplicationObject(replicationId: replicationId, endpointType: endpointType, replicationSchedule: replicationSchedule, remoteVolumeResourceId: remoteVolumeResourceId, remotePath: default, remoteVolumeRegion: remoteVolumeRegion, destinationReplications: default); } /// Initializes a new instance of . @@ -2516,7 +3290,7 @@ public static NetAppReplicationObject NetAppReplicationObject(string replication [EditorBrowsable(EditorBrowsableState.Never)] public static NetAppVolumeReplication NetAppVolumeReplication(NetAppEndpointType? endpointType, NetAppReplicationSchedule? replicationSchedule, ResourceIdentifier remoteVolumeResourceId, string remoteVolumeRegion) { - return NetAppVolumeReplication(replicationId: default, endpointType: endpointType, replicationSchedule: replicationSchedule, remoteVolumeResourceId: remoteVolumeResourceId, remoteVolumeRegion: remoteVolumeRegion); + return NetAppVolumeReplication(replicationId: default, endpointType: endpointType, replicationSchedule: replicationSchedule, remoteVolumeResourceId: remoteVolumeResourceId, remoteVolumeRegion: remoteVolumeRegion, mirrorState: default, replicationCreationOn: default, replicationDeletionOn: default); } /// Initializes a new instance of . diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolCollection.cs index 764bf1745e6b..96d2360425fc 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string poolNa /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string poolName, CancellationT /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string poolName, Cancellat /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string poolName, CancellationToken cancella /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.Serialization.cs index 6cae01899e7c..fffd808cbabb 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.Serialization.cs @@ -69,12 +69,12 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("utilizedThroughputMibps"u8); writer.WriteNumberValue(UtilizedThroughputMibps.Value); } - if (Optional.IsDefined(CustomThroughputMibps)) + if (Optional.IsDefined(CustomThroughputMibpsInt)) { - if (CustomThroughputMibps != null) + if (CustomThroughputMibpsInt != null) { writer.WritePropertyName("customThroughputMibps"u8); - writer.WriteNumberValue(CustomThroughputMibps.Value); + writer.WriteNumberValue(CustomThroughputMibpsInt.Value); } else { @@ -139,7 +139,7 @@ internal static CapacityPoolData DeserializeCapacityPoolData(JsonElement element string provisioningState = default; float? totalThroughputMibps = default; float? utilizedThroughputMibps = default; - float? customThroughputMibps = default; + int? customThroughputMibps = default; CapacityPoolQosType? qosType = default; bool? coolAccess = default; CapacityPoolEncryptionType? encryptionType = default; @@ -257,7 +257,7 @@ internal static CapacityPoolData DeserializeCapacityPoolData(JsonElement element customThroughputMibps = null; continue; } - customThroughputMibps = property0.Value.GetSingle(); + customThroughputMibps = property0.Value.GetInt32(); continue; } if (property0.NameEquals("qosType"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs index a635751ec4cb..41b0f8d9cecc 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the CapacityPool data model. /// Capacity pool resource + /// Serialized Name: CapacityPool /// public partial class CapacityPoolData : TrackedResourceData { @@ -53,8 +54,14 @@ public partial class CapacityPoolData : TrackedResourceData /// Initializes a new instance of . /// The location. - /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). - /// The service level of the file system. + /// + /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). + /// Serialized Name: CapacityPool.properties.size + /// + /// + /// The service level of the file system + /// Serialized Name: CapacityPool.properties.serviceLevel + /// public CapacityPoolData(AzureLocation location, long size, NetAppFileServiceLevel serviceLevel) : base(location) { Size = size; @@ -68,19 +75,52 @@ public CapacityPoolData(AzureLocation location, long size, NetAppFileServiceLeve /// The systemData. /// The tags. /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// UUID v4 used to identify the Pool. - /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). - /// The service level of the file system. - /// Azure lifecycle management. - /// Total throughput of pool in MiB/s. - /// Utilized throughput of pool in MiB/s. - /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. - /// The qos type of the pool. - /// If enabled (true) the pool can contain cool Access enabled volumes. - /// Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: CapacityPool.etag + /// + /// + /// UUID v4 used to identify the Pool + /// Serialized Name: CapacityPool.properties.poolId + /// + /// + /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). + /// Serialized Name: CapacityPool.properties.size + /// + /// + /// The service level of the file system + /// Serialized Name: CapacityPool.properties.serviceLevel + /// + /// + /// Azure lifecycle management + /// Serialized Name: CapacityPool.properties.provisioningState + /// + /// + /// Total throughput of pool in MiB/s + /// Serialized Name: CapacityPool.properties.totalThroughputMibps + /// + /// + /// Utilized throughput of pool in MiB/s + /// Serialized Name: CapacityPool.properties.utilizedThroughputMibps + /// + /// + /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level + /// Serialized Name: CapacityPool.properties.customThroughputMibps + /// + /// + /// The qos type of the pool + /// Serialized Name: CapacityPool.properties.qosType + /// + /// + /// If enabled (true) the pool can contain cool Access enabled volumes. + /// Serialized Name: CapacityPool.properties.coolAccess + /// + /// + /// Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool. + /// Serialized Name: CapacityPool.properties.encryptionType + /// /// Keeps track of any properties unknown to the library. - internal CapacityPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, Guid? poolId, long size, NetAppFileServiceLevel serviceLevel, string provisioningState, float? totalThroughputMibps, float? utilizedThroughputMibps, float? customThroughputMibps, CapacityPoolQosType? qosType, bool? isCoolAccessEnabled, CapacityPoolEncryptionType? encryptionType, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal CapacityPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, Guid? poolId, long size, NetAppFileServiceLevel serviceLevel, string provisioningState, float? totalThroughputMibps, float? utilizedThroughputMibps, int? customThroughputMibpsInt, CapacityPoolQosType? qosType, bool? isCoolAccessEnabled, CapacityPoolEncryptionType? encryptionType, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; PoolId = poolId; @@ -89,7 +129,7 @@ internal CapacityPoolData(ResourceIdentifier id, string name, ResourceType resou ProvisioningState = provisioningState; TotalThroughputMibps = totalThroughputMibps; UtilizedThroughputMibps = utilizedThroughputMibps; - CustomThroughputMibps = customThroughputMibps; + CustomThroughputMibpsInt = customThroughputMibpsInt; QosType = qosType; IsCoolAccessEnabled = isCoolAccessEnabled; EncryptionType = encryptionType; @@ -101,27 +141,60 @@ internal CapacityPoolData() { } - /// A unique read-only string that changes whenever the resource is updated. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: CapacityPool.etag + /// public ETag? ETag { get; } - /// UUID v4 used to identify the Pool. + /// + /// UUID v4 used to identify the Pool + /// Serialized Name: CapacityPool.properties.poolId + /// public Guid? PoolId { get; } - /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). + /// + /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). + /// Serialized Name: CapacityPool.properties.size + /// public long Size { get; set; } - /// The service level of the file system. + /// + /// The service level of the file system + /// Serialized Name: CapacityPool.properties.serviceLevel + /// public NetAppFileServiceLevel ServiceLevel { get; set; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: CapacityPool.properties.provisioningState + /// public string ProvisioningState { get; } - /// Total throughput of pool in MiB/s. + /// + /// Total throughput of pool in MiB/s + /// Serialized Name: CapacityPool.properties.totalThroughputMibps + /// public float? TotalThroughputMibps { get; } - /// Utilized throughput of pool in MiB/s. + /// + /// Utilized throughput of pool in MiB/s + /// Serialized Name: CapacityPool.properties.utilizedThroughputMibps + /// public float? UtilizedThroughputMibps { get; } - /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. - public float? CustomThroughputMibps { get; set; } - /// The qos type of the pool. + /// + /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level + /// Serialized Name: CapacityPool.properties.customThroughputMibps + /// + public int? CustomThroughputMibpsInt { get; set; } + /// + /// The qos type of the pool + /// Serialized Name: CapacityPool.properties.qosType + /// public CapacityPoolQosType? QosType { get; set; } - /// If enabled (true) the pool can contain cool Access enabled volumes. + /// + /// If enabled (true) the pool can contain cool Access enabled volumes. + /// Serialized Name: CapacityPool.properties.coolAccess + /// public bool? IsCoolAccessEnabled { get; set; } - /// Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool. + /// + /// Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool. + /// Serialized Name: CapacityPool.properties.encryptionType + /// public CapacityPoolEncryptionType? EncryptionType { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolResource.cs index 1aad32052ac8..0cc6e7c11b21 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/CapacityPoolResource.cs @@ -110,7 +110,7 @@ public virtual NetAppVolumeCollection GetNetAppVolumes() /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetNetAppVolumeAsync(s /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetNetAppVolume(string volumeName, /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -382,7 +382,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -428,7 +428,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Ca /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -490,7 +490,7 @@ public virtual async Task> AddTagAsync(string key /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -552,7 +552,7 @@ public virtual Response AddTag(string key, string value, C /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -609,7 +609,7 @@ public virtual async Task> SetTagsAsync(IDictiona /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -666,7 +666,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -726,7 +726,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppArmClient.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppArmClient.cs index 3ff808da3bc2..292a56ef2655 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppArmClient.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppArmClient.cs @@ -59,87 +59,75 @@ public virtual NetAppAccountResource GetNetAppAccountResource(ResourceIdentifier } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual CapacityPoolResource GetCapacityPoolResource(ResourceIdentifier id) - { - CapacityPoolResource.ValidateResourceId(id); - return new CapacityPoolResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual NetAppVolumeResource GetNetAppVolumeResource(ResourceIdentifier id) + /// Returns a object. + public virtual NetAppBackupPolicyResource GetNetAppBackupPolicyResource(ResourceIdentifier id) { - NetAppVolumeResource.ValidateResourceId(id); - return new NetAppVolumeResource(Client, id); + NetAppBackupPolicyResource.ValidateResourceId(id); + return new NetAppBackupPolicyResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual NetAppVolumeSnapshotResource GetNetAppVolumeSnapshotResource(ResourceIdentifier id) + /// Returns a object. + public virtual NetAppBackupVaultResource GetNetAppBackupVaultResource(ResourceIdentifier id) { - NetAppVolumeSnapshotResource.ValidateResourceId(id); - return new NetAppVolumeSnapshotResource(Client, id); + NetAppBackupVaultResource.ValidateResourceId(id); + return new NetAppBackupVaultResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual SnapshotPolicyResource GetSnapshotPolicyResource(ResourceIdentifier id) + /// Returns a object. + public virtual NetAppBackupVaultBackupResource GetNetAppBackupVaultBackupResource(ResourceIdentifier id) { - SnapshotPolicyResource.ValidateResourceId(id); - return new SnapshotPolicyResource(Client, id); + NetAppBackupVaultBackupResource.ValidateResourceId(id); + return new NetAppBackupVaultBackupResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual NetAppBackupPolicyResource GetNetAppBackupPolicyResource(ResourceIdentifier id) + /// Returns a object. + public virtual CapacityPoolResource GetCapacityPoolResource(ResourceIdentifier id) { - NetAppBackupPolicyResource.ValidateResourceId(id); - return new NetAppBackupPolicyResource(Client, id); + CapacityPoolResource.ValidateResourceId(id); + return new CapacityPoolResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual NetAppVolumeQuotaRuleResource GetNetAppVolumeQuotaRuleResource(ResourceIdentifier id) + /// Returns a object. + public virtual NetAppVolumeResource GetNetAppVolumeResource(ResourceIdentifier id) { - NetAppVolumeQuotaRuleResource.ValidateResourceId(id); - return new NetAppVolumeQuotaRuleResource(Client, id); + NetAppVolumeResource.ValidateResourceId(id); + return new NetAppVolumeResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual NetAppVolumeGroupResource GetNetAppVolumeGroupResource(ResourceIdentifier id) + /// Returns a object. + public virtual NetAppVolumeSnapshotResource GetNetAppVolumeSnapshotResource(ResourceIdentifier id) { - NetAppVolumeGroupResource.ValidateResourceId(id); - return new NetAppVolumeGroupResource(Client, id); + NetAppVolumeSnapshotResource.ValidateResourceId(id); + return new NetAppVolumeSnapshotResource(Client, id); } /// @@ -155,39 +143,39 @@ public virtual NetAppSubvolumeInfoResource GetNetAppSubvolumeInfoResource(Resour } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual NetAppBackupVaultBackupResource GetNetAppBackupVaultBackupResource(ResourceIdentifier id) + /// Returns a object. + public virtual NetAppVolumeQuotaRuleResource GetNetAppVolumeQuotaRuleResource(ResourceIdentifier id) { - NetAppBackupVaultBackupResource.ValidateResourceId(id); - return new NetAppBackupVaultBackupResource(Client, id); + NetAppVolumeQuotaRuleResource.ValidateResourceId(id); + return new NetAppVolumeQuotaRuleResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual NetAppBackupVaultResource GetNetAppBackupVaultResource(ResourceIdentifier id) + /// Returns a object. + public virtual SnapshotPolicyResource GetSnapshotPolicyResource(ResourceIdentifier id) { - NetAppBackupVaultResource.ValidateResourceId(id); - return new NetAppBackupVaultResource(Client, id); + SnapshotPolicyResource.ValidateResourceId(id); + return new SnapshotPolicyResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual NetAppBucketResource GetNetAppBucketResource(ResourceIdentifier id) + /// Returns a object. + public virtual NetAppVolumeGroupResource GetNetAppVolumeGroupResource(ResourceIdentifier id) { - NetAppBucketResource.ValidateResourceId(id); - return new NetAppBucketResource(Client, id); + NetAppVolumeGroupResource.ValidateResourceId(id); + return new NetAppVolumeGroupResource(Client, id); } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppResourceGroupResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppResourceGroupResource.cs index 48d0b04fe774..b575a8800046 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppResourceGroupResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual NetAppAccountCollection GetNetAppAccounts() /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetNetAppAccountAsync /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppSubscriptionResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppSubscriptionResource.cs index 9b3991658036..f03a024ac18f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppSubscriptionResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/MockableNetAppSubscriptionResource.cs @@ -20,10 +20,10 @@ public partial class MockableNetAppSubscriptionResource : ArmResource { private ClientDiagnostics _netAppResourceClientDiagnostics; private NetAppResourceRestOperations _netAppResourceRestClient; - private ClientDiagnostics _netAppResourceUsagesClientDiagnostics; - private NetAppResourceUsagesRestOperations _netAppResourceUsagesRestClient; private ClientDiagnostics _netAppResourceQuotaLimitsClientDiagnostics; private NetAppResourceQuotaLimitsRestOperations _netAppResourceQuotaLimitsRestClient; + private ClientDiagnostics _netAppResourceUsagesClientDiagnostics; + private NetAppResourceUsagesRestOperations _netAppResourceUsagesRestClient; private ClientDiagnostics _netAppAccountAccountsClientDiagnostics; private AccountsRestOperations _netAppAccountAccountsRestClient; @@ -41,10 +41,10 @@ internal MockableNetAppSubscriptionResource(ArmClient client, ResourceIdentifier private ClientDiagnostics NetAppResourceClientDiagnostics => _netAppResourceClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NetApp", ProviderConstants.DefaultProviderNamespace, Diagnostics); private NetAppResourceRestOperations NetAppResourceRestClient => _netAppResourceRestClient ??= new NetAppResourceRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics NetAppResourceUsagesClientDiagnostics => _netAppResourceUsagesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NetApp", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private NetAppResourceUsagesRestOperations NetAppResourceUsagesRestClient => _netAppResourceUsagesRestClient ??= new NetAppResourceUsagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics NetAppResourceQuotaLimitsClientDiagnostics => _netAppResourceQuotaLimitsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NetApp", ProviderConstants.DefaultProviderNamespace, Diagnostics); private NetAppResourceQuotaLimitsRestOperations NetAppResourceQuotaLimitsRestClient => _netAppResourceQuotaLimitsRestClient ??= new NetAppResourceQuotaLimitsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private ClientDiagnostics NetAppResourceUsagesClientDiagnostics => _netAppResourceUsagesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NetApp", ProviderConstants.DefaultProviderNamespace, Diagnostics); + private NetAppResourceUsagesRestOperations NetAppResourceUsagesRestClient => _netAppResourceUsagesRestClient ??= new NetAppResourceUsagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics NetAppAccountAccountsClientDiagnostics => _netAppAccountAccountsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NetApp", NetAppAccountResource.ResourceType.Namespace, Diagnostics); private AccountsRestOperations NetAppAccountAccountsRestClient => _netAppAccountAccountsRestClient ??= new AccountsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(NetAppAccountResource.ResourceType)); @@ -75,7 +75,7 @@ public virtual RegionInfoResourceCollection GetRegionInfoResources(AzureLocation /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -104,7 +104,7 @@ public virtual async Task> GetRegionInfoResourceAsy /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -121,35 +121,35 @@ public virtual Response GetRegionInfoResource(AzureLocation } /// - /// Check if a resource name is available. + /// Check if a file path is available. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability /// /// /// Operation Id - /// NetAppResource_CheckNameAvailability + /// NetAppResource_CheckFilePathAvailability /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// Name availability request. + /// The request body. /// The cancellation token to use. /// is null. - public virtual async Task> CheckNetAppNameAvailabilityAsync(AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) + public virtual async Task> CheckNetAppFilePathAvailabilityAsync(AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.CheckNetAppNameAvailability"); + using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.CheckNetAppFilePathAvailability"); scope.Start(); try { - var response = await NetAppResourceRestClient.CheckNameAvailabilityAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); + var response = await NetAppResourceRestClient.CheckFilePathAvailabilityAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -160,35 +160,35 @@ public virtual async Task> CheckNetAppNa } /// - /// Check if a resource name is available. + /// Check if a file path is available. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability /// /// /// Operation Id - /// NetAppResource_CheckNameAvailability + /// NetAppResource_CheckFilePathAvailability /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// Name availability request. + /// The request body. /// The cancellation token to use. /// is null. - public virtual Response CheckNetAppNameAvailability(AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) + public virtual Response CheckNetAppFilePathAvailability(AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.CheckNetAppNameAvailability"); + using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.CheckNetAppFilePathAvailability"); scope.Start(); try { - var response = NetAppResourceRestClient.CheckNameAvailability(Id.SubscriptionId, location, content, cancellationToken); + var response = NetAppResourceRestClient.CheckFilePathAvailability(Id.SubscriptionId, location, content, cancellationToken); return response; } catch (Exception e) @@ -199,35 +199,35 @@ public virtual Response CheckNetAppNameAvailabili } /// - /// Check if a file path is available. + /// Check if a resource name is available. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability /// /// /// Operation Id - /// NetAppResource_CheckFilePathAvailability + /// NetAppResource_CheckNameAvailability /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// File path availability request. + /// The request body. /// The cancellation token to use. /// is null. - public virtual async Task> CheckNetAppFilePathAvailabilityAsync(AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) + public virtual async Task> CheckNetAppNameAvailabilityAsync(AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.CheckNetAppFilePathAvailability"); + using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.CheckNetAppNameAvailability"); scope.Start(); try { - var response = await NetAppResourceRestClient.CheckFilePathAvailabilityAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); + var response = await NetAppResourceRestClient.CheckNameAvailabilityAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -238,35 +238,35 @@ public virtual async Task> CheckNetAppFi } /// - /// Check if a file path is available. + /// Check if a resource name is available. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability /// /// /// Operation Id - /// NetAppResource_CheckFilePathAvailability + /// NetAppResource_CheckNameAvailability /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// File path availability request. + /// The request body. /// The cancellation token to use. /// is null. - public virtual Response CheckNetAppFilePathAvailability(AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) + public virtual Response CheckNetAppNameAvailability(AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.CheckNetAppFilePathAvailability"); + using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.CheckNetAppNameAvailability"); scope.Start(); try { - var response = NetAppResourceRestClient.CheckFilePathAvailability(Id.SubscriptionId, location, content, cancellationToken); + var response = NetAppResourceRestClient.CheckNameAvailability(Id.SubscriptionId, location, content, cancellationToken); return response; } catch (Exception e) @@ -289,12 +289,12 @@ public virtual Response CheckNetAppFilePathAvaila /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// Quota availability request. + /// The request body. /// The cancellation token to use. /// is null. public virtual async Task> CheckNetAppQuotaAvailabilityAsync(AzureLocation location, NetAppQuotaAvailabilityContent content, CancellationToken cancellationToken = default) @@ -328,12 +328,12 @@ public virtual async Task> CheckNetAppQu /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// Quota availability request. + /// The request body. /// The cancellation token to use. /// is null. public virtual Response CheckNetAppQuotaAvailability(AzureLocation location, NetAppQuotaAvailabilityContent content, CancellationToken cancellationToken = default) @@ -355,31 +355,35 @@ public virtual Response CheckNetAppQuotaAvailabil } /// - /// Provides storage to network proximity and logical zone mapping information. + /// Get details of the specified network sibling set. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet /// /// /// Operation Id - /// NetAppResource_QueryRegionInfo + /// NetAppResource_QueryNetworkSiblingSet /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. + /// The request body. /// The cancellation token to use. - public virtual async Task> QueryRegionInfoNetAppResourceAsync(AzureLocation location, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> QueryNetworkSiblingSetNetAppResourceAsync(AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) { - using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.QueryRegionInfoNetAppResource"); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.QueryNetworkSiblingSetNetAppResource"); scope.Start(); try { - var response = await NetAppResourceRestClient.QueryRegionInfoAsync(Id.SubscriptionId, location, cancellationToken).ConfigureAwait(false); + var response = await NetAppResourceRestClient.QueryNetworkSiblingSetAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -390,31 +394,35 @@ public virtual async Task> QueryRegionInfoNetAppResou } /// - /// Provides storage to network proximity and logical zone mapping information. + /// Get details of the specified network sibling set. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet /// /// /// Operation Id - /// NetAppResource_QueryRegionInfo + /// NetAppResource_QueryNetworkSiblingSet /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. + /// The request body. /// The cancellation token to use. - public virtual Response QueryRegionInfoNetAppResource(AzureLocation location, CancellationToken cancellationToken = default) + /// is null. + public virtual Response QueryNetworkSiblingSetNetAppResource(AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) { - using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.QueryRegionInfoNetAppResource"); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.QueryNetworkSiblingSetNetAppResource"); scope.Start(); try { - var response = NetAppResourceRestClient.QueryRegionInfo(Id.SubscriptionId, location, cancellationToken); + var response = NetAppResourceRestClient.QueryNetworkSiblingSet(Id.SubscriptionId, location, content, cancellationToken); return response; } catch (Exception e) @@ -425,35 +433,31 @@ public virtual Response QueryRegionInfoNetAppResource(AzureLoc } /// - /// Get details of the specified network sibling set. + /// Provides storage to network proximity and logical zone mapping information. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo /// /// /// Operation Id - /// NetAppResource_QueryNetworkSiblingSet + /// NetAppResource_QueryRegionInfo /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// Network sibling set to query. /// The cancellation token to use. - /// is null. - public virtual async Task> QueryNetworkSiblingSetNetAppResourceAsync(AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + public virtual async Task> QueryRegionInfoNetAppResourceAsync(AzureLocation location, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.QueryNetworkSiblingSetNetAppResource"); + using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.QueryRegionInfoNetAppResource"); scope.Start(); try { - var response = await NetAppResourceRestClient.QueryNetworkSiblingSetAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); + var response = await NetAppResourceRestClient.QueryRegionInfoAsync(Id.SubscriptionId, location, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -464,35 +468,31 @@ public virtual async Task> QueryNetworkSiblingSetNet } /// - /// Get details of the specified network sibling set. + /// Provides storage to network proximity and logical zone mapping information. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo /// /// /// Operation Id - /// NetAppResource_QueryNetworkSiblingSet + /// NetAppResource_QueryRegionInfo /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// Network sibling set to query. /// The cancellation token to use. - /// is null. - public virtual Response QueryNetworkSiblingSetNetAppResource(AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + public virtual Response QueryRegionInfoNetAppResource(AzureLocation location, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.QueryNetworkSiblingSetNetAppResource"); + using var scope = NetAppResourceClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.QueryRegionInfoNetAppResource"); scope.Start(); try { - var response = NetAppResourceRestClient.QueryNetworkSiblingSet(Id.SubscriptionId, location, content, cancellationToken); + var response = NetAppResourceRestClient.QueryRegionInfo(Id.SubscriptionId, location, cancellationToken); return response; } catch (Exception e) @@ -515,13 +515,13 @@ public virtual Response QueryNetworkSiblingSetNetAppResource( /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The name of the Azure region. - /// Update for the specified network sibling set. + /// The request body. /// The cancellation token to use. /// is null. public virtual async Task> UpdateNetworkSiblingSetNetAppResourceAsync(WaitUntil waitUntil, AzureLocation location, UpdateNetworkSiblingSetContent content, CancellationToken cancellationToken = default) @@ -558,13 +558,13 @@ public virtual async Task> UpdateNetworkSiblingS /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The name of the Azure region. - /// Update for the specified network sibling set. + /// The request body. /// The cancellation token to use. /// is null. public virtual ArmOperation UpdateNetworkSiblingSetNetAppResource(WaitUntil waitUntil, AzureLocation location, UpdateNetworkSiblingSetContent content, CancellationToken cancellationToken = default) @@ -589,90 +589,90 @@ public virtual ArmOperation UpdateNetworkSiblingSetNetAppReso } /// - /// Get current subscription usages + /// Get the default and current limits for quotas /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits /// /// /// Operation Id - /// NetAppResourceUsages_List + /// NetAppResourceQuotaLimits_List /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetAppResourceUsagesAsync(AzureLocation location, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetNetAppQuotaLimitsAsync(AzureLocation location, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetAppResourceUsagesRestClient.CreateListRequest(Id.SubscriptionId, location); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetAppResourceUsagesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, location); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => NetAppUsageResult.DeserializeNetAppUsageResult(e), NetAppResourceUsagesClientDiagnostics, Pipeline, "MockableNetAppSubscriptionResource.GetNetAppResourceUsages", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetAppResourceQuotaLimitsRestClient.CreateListRequest(Id.SubscriptionId, location); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetAppResourceQuotaLimitsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, location); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => NetAppSubscriptionQuotaItem.DeserializeNetAppSubscriptionQuotaItem(e), NetAppResourceQuotaLimitsClientDiagnostics, Pipeline, "MockableNetAppSubscriptionResource.GetNetAppQuotaLimits", "value", "nextLink", cancellationToken); } /// - /// Get current subscription usages + /// Get the default and current limits for quotas /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits /// /// /// Operation Id - /// NetAppResourceUsages_List + /// NetAppResourceQuotaLimits_List /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetAppResourceUsages(AzureLocation location, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetNetAppQuotaLimits(AzureLocation location, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetAppResourceUsagesRestClient.CreateListRequest(Id.SubscriptionId, location); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetAppResourceUsagesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, location); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => NetAppUsageResult.DeserializeNetAppUsageResult(e), NetAppResourceUsagesClientDiagnostics, Pipeline, "MockableNetAppSubscriptionResource.GetNetAppResourceUsages", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetAppResourceQuotaLimitsRestClient.CreateListRequest(Id.SubscriptionId, location); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetAppResourceQuotaLimitsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, location); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => NetAppSubscriptionQuotaItem.DeserializeNetAppSubscriptionQuotaItem(e), NetAppResourceQuotaLimitsClientDiagnostics, Pipeline, "MockableNetAppSubscriptionResource.GetNetAppQuotaLimits", "value", "nextLink", cancellationToken); } /// - /// Get current subscription usage of the specific type + /// Get the default and current quota limit /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType} + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName} /// /// /// Operation Id - /// NetAppResourceUsages_Get + /// NetAppResourceQuotaLimits_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// The type of usage. + /// The name of the Quota Limit. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetNetAppResourceUsageAsync(AzureLocation location, string usageType, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetNetAppQuotaLimitAsync(AzureLocation location, string quotaLimitName, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(usageType, nameof(usageType)); + Argument.AssertNotNullOrEmpty(quotaLimitName, nameof(quotaLimitName)); - using var scope = NetAppResourceUsagesClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.GetNetAppResourceUsage"); + using var scope = NetAppResourceQuotaLimitsClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.GetNetAppQuotaLimit"); scope.Start(); try { - var response = await NetAppResourceUsagesRestClient.GetAsync(Id.SubscriptionId, location, usageType, cancellationToken).ConfigureAwait(false); + var response = await NetAppResourceQuotaLimitsRestClient.GetAsync(Id.SubscriptionId, location, quotaLimitName, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -683,36 +683,36 @@ public virtual async Task> GetNetAppResourceUsageAsy } /// - /// Get current subscription usage of the specific type + /// Get the default and current quota limit /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType} + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName} /// /// /// Operation Id - /// NetAppResourceUsages_Get + /// NetAppResourceQuotaLimits_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// The type of usage. + /// The name of the Quota Limit. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response GetNetAppResourceUsage(AzureLocation location, string usageType, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response GetNetAppQuotaLimit(AzureLocation location, string quotaLimitName, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(usageType, nameof(usageType)); + Argument.AssertNotNullOrEmpty(quotaLimitName, nameof(quotaLimitName)); - using var scope = NetAppResourceUsagesClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.GetNetAppResourceUsage"); + using var scope = NetAppResourceQuotaLimitsClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.GetNetAppQuotaLimit"); scope.Start(); try { - var response = NetAppResourceUsagesRestClient.Get(Id.SubscriptionId, location, usageType, cancellationToken); + var response = NetAppResourceQuotaLimitsRestClient.Get(Id.SubscriptionId, location, quotaLimitName, cancellationToken); return response; } catch (Exception e) @@ -723,90 +723,90 @@ public virtual Response GetNetAppResourceUsage(AzureLocation } /// - /// Get the default and current limits for quotas + /// Get current subscription usages /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages /// /// /// Operation Id - /// NetAppResourceQuotaLimits_List + /// NetAppResourceUsages_List /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetNetAppQuotaLimitsAsync(AzureLocation location, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetNetAppResourceUsagesAsync(AzureLocation location, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetAppResourceQuotaLimitsRestClient.CreateListRequest(Id.SubscriptionId, location); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetAppResourceQuotaLimitsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, location); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => NetAppSubscriptionQuotaItem.DeserializeNetAppSubscriptionQuotaItem(e), NetAppResourceQuotaLimitsClientDiagnostics, Pipeline, "MockableNetAppSubscriptionResource.GetNetAppQuotaLimits", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetAppResourceUsagesRestClient.CreateListRequest(Id.SubscriptionId, location); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetAppResourceUsagesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, location); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => NetAppUsageResult.DeserializeNetAppUsageResult(e), NetAppResourceUsagesClientDiagnostics, Pipeline, "MockableNetAppSubscriptionResource.GetNetAppResourceUsages", "value", "nextLink", cancellationToken); } /// - /// Get the default and current limits for quotas + /// Get current subscription usages /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages /// /// /// Operation Id - /// NetAppResourceQuotaLimits_List + /// NetAppResourceUsages_List /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetNetAppQuotaLimits(AzureLocation location, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetNetAppResourceUsages(AzureLocation location, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => NetAppResourceQuotaLimitsRestClient.CreateListRequest(Id.SubscriptionId, location); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetAppResourceQuotaLimitsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, location); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => NetAppSubscriptionQuotaItem.DeserializeNetAppSubscriptionQuotaItem(e), NetAppResourceQuotaLimitsClientDiagnostics, Pipeline, "MockableNetAppSubscriptionResource.GetNetAppQuotaLimits", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => NetAppResourceUsagesRestClient.CreateListRequest(Id.SubscriptionId, location); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NetAppResourceUsagesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, location); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => NetAppUsageResult.DeserializeNetAppUsageResult(e), NetAppResourceUsagesClientDiagnostics, Pipeline, "MockableNetAppSubscriptionResource.GetNetAppResourceUsages", "value", "nextLink", cancellationToken); } /// - /// Get the default and current subscription quota limit + /// Get current subscription usage of the specific type /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName} + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType} /// /// /// Operation Id - /// NetAppResourceQuotaLimits_Get + /// NetAppResourceUsages_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// The name of the Quota Limit. + /// The type of usage. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetNetAppQuotaLimitAsync(AzureLocation location, string quotaLimitName, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetNetAppResourceUsageAsync(AzureLocation location, string usageType, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(quotaLimitName, nameof(quotaLimitName)); + Argument.AssertNotNullOrEmpty(usageType, nameof(usageType)); - using var scope = NetAppResourceQuotaLimitsClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.GetNetAppQuotaLimit"); + using var scope = NetAppResourceUsagesClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.GetNetAppResourceUsage"); scope.Start(); try { - var response = await NetAppResourceQuotaLimitsRestClient.GetAsync(Id.SubscriptionId, location, quotaLimitName, cancellationToken).ConfigureAwait(false); + var response = await NetAppResourceUsagesRestClient.GetAsync(Id.SubscriptionId, location, usageType, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -817,36 +817,36 @@ public virtual async Task> GetNetAppQuotaL } /// - /// Get the default and current subscription quota limit + /// Get current subscription usage of the specific type /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName} + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType} /// /// /// Operation Id - /// NetAppResourceQuotaLimits_Get + /// NetAppResourceUsages_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// The name of the Azure region. - /// The name of the Quota Limit. + /// The type of usage. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response GetNetAppQuotaLimit(AzureLocation location, string quotaLimitName, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response GetNetAppResourceUsage(AzureLocation location, string usageType, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(quotaLimitName, nameof(quotaLimitName)); + Argument.AssertNotNullOrEmpty(usageType, nameof(usageType)); - using var scope = NetAppResourceQuotaLimitsClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.GetNetAppQuotaLimit"); + using var scope = NetAppResourceUsagesClientDiagnostics.CreateScope("MockableNetAppSubscriptionResource.GetNetAppResourceUsage"); scope.Start(); try { - var response = NetAppResourceQuotaLimitsRestClient.Get(Id.SubscriptionId, location, quotaLimitName, cancellationToken); + var response = NetAppResourceUsagesRestClient.Get(Id.SubscriptionId, location, usageType, cancellationToken); return response; } catch (Exception e) @@ -869,7 +869,7 @@ public virtual Response GetNetAppQuotaLimit(AzureLo /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -899,7 +899,7 @@ public virtual AsyncPageable GetNetAppAccountsAsync(Cance /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/NetAppExtensions.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/NetAppExtensions.cs index aa99d7597af8..96e9d4447427 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/NetAppExtensions.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Extensions/NetAppExtensions.cs @@ -72,136 +72,117 @@ public static NetAppAccountResource GetNetAppAccountResource(this ArmClient clie } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static CapacityPoolResource GetCapacityPoolResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableNetAppArmClient(client).GetCapacityPoolResource(id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetAppVolumeResource GetNetAppVolumeResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NetAppBackupPolicyResource GetNetAppBackupPolicyResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetAppArmClient(client).GetNetAppVolumeResource(id); + return GetMockableNetAppArmClient(client).GetNetAppBackupPolicyResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetAppVolumeSnapshotResource GetNetAppVolumeSnapshotResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NetAppBackupVaultResource GetNetAppBackupVaultResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetAppArmClient(client).GetNetAppVolumeSnapshotResource(id); + return GetMockableNetAppArmClient(client).GetNetAppBackupVaultResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SnapshotPolicyResource GetSnapshotPolicyResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NetAppBackupVaultBackupResource GetNetAppBackupVaultBackupResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetAppArmClient(client).GetSnapshotPolicyResource(id); + return GetMockableNetAppArmClient(client).GetNetAppBackupVaultBackupResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetAppBackupPolicyResource GetNetAppBackupPolicyResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static CapacityPoolResource GetCapacityPoolResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetAppArmClient(client).GetNetAppBackupPolicyResource(id); + return GetMockableNetAppArmClient(client).GetCapacityPoolResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetAppVolumeQuotaRuleResource GetNetAppVolumeQuotaRuleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NetAppVolumeResource GetNetAppVolumeResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetAppArmClient(client).GetNetAppVolumeQuotaRuleResource(id); + return GetMockableNetAppArmClient(client).GetNetAppVolumeResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetAppVolumeGroupResource GetNetAppVolumeGroupResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NetAppVolumeSnapshotResource GetNetAppVolumeSnapshotResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetAppArmClient(client).GetNetAppVolumeGroupResource(id); + return GetMockableNetAppArmClient(client).GetNetAppVolumeSnapshotResource(id); } /// @@ -224,60 +205,60 @@ public static NetAppSubvolumeInfoResource GetNetAppSubvolumeInfoResource(this Ar } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetAppBackupVaultBackupResource GetNetAppBackupVaultBackupResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NetAppVolumeQuotaRuleResource GetNetAppVolumeQuotaRuleResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetAppArmClient(client).GetNetAppBackupVaultBackupResource(id); + return GetMockableNetAppArmClient(client).GetNetAppVolumeQuotaRuleResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetAppBackupVaultResource GetNetAppBackupVaultResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SnapshotPolicyResource GetSnapshotPolicyResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetAppArmClient(client).GetNetAppBackupVaultResource(id); + return GetMockableNetAppArmClient(client).GetSnapshotPolicyResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetAppBucketResource GetNetAppBucketResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NetAppVolumeGroupResource GetNetAppVolumeGroupResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetAppArmClient(client).GetNetAppBucketResource(id); + return GetMockableNetAppArmClient(client).GetNetAppVolumeGroupResource(id); } /// @@ -310,7 +291,7 @@ public static NetAppAccountCollection GetNetAppAccounts(this ResourceGroupResour /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -348,7 +329,7 @@ public static async Task> GetNetAppAccountAsync( /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -404,7 +385,7 @@ public static RegionInfoResourceCollection GetRegionInfoResources(this Subscript /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -441,7 +422,7 @@ public static async Task> GetRegionInfoResourceAsyn /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -466,135 +447,135 @@ public static Response GetRegionInfoResource(this Subscripti } /// - /// Check if a resource name is available. + /// Check if a file path is available. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability /// /// /// Operation Id - /// NetAppResource_CheckNameAvailability + /// NetAppResource_CheckFilePathAvailability /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. - /// Name availability request. + /// The request body. /// The cancellation token to use. /// or is null. - public static async Task> CheckNetAppNameAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) + public static async Task> CheckNetAppFilePathAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return await GetMockableNetAppSubscriptionResource(subscriptionResource).CheckNetAppNameAvailabilityAsync(location, content, cancellationToken).ConfigureAwait(false); + return await GetMockableNetAppSubscriptionResource(subscriptionResource).CheckNetAppFilePathAvailabilityAsync(location, content, cancellationToken).ConfigureAwait(false); } /// - /// Check if a resource name is available. + /// Check if a file path is available. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability /// /// /// Operation Id - /// NetAppResource_CheckNameAvailability + /// NetAppResource_CheckFilePathAvailability /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. - /// Name availability request. + /// The request body. /// The cancellation token to use. /// or is null. - public static Response CheckNetAppNameAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) + public static Response CheckNetAppFilePathAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetAppSubscriptionResource(subscriptionResource).CheckNetAppNameAvailability(location, content, cancellationToken); + return GetMockableNetAppSubscriptionResource(subscriptionResource).CheckNetAppFilePathAvailability(location, content, cancellationToken); } /// - /// Check if a file path is available. + /// Check if a resource name is available. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability /// /// /// Operation Id - /// NetAppResource_CheckFilePathAvailability + /// NetAppResource_CheckNameAvailability /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. - /// File path availability request. + /// The request body. /// The cancellation token to use. /// or is null. - public static async Task> CheckNetAppFilePathAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) + public static async Task> CheckNetAppNameAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return await GetMockableNetAppSubscriptionResource(subscriptionResource).CheckNetAppFilePathAvailabilityAsync(location, content, cancellationToken).ConfigureAwait(false); + return await GetMockableNetAppSubscriptionResource(subscriptionResource).CheckNetAppNameAvailabilityAsync(location, content, cancellationToken).ConfigureAwait(false); } /// - /// Check if a file path is available. + /// Check if a resource name is available. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability /// /// /// Operation Id - /// NetAppResource_CheckFilePathAvailability + /// NetAppResource_CheckNameAvailability /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. - /// File path availability request. + /// The request body. /// The cancellation token to use. /// or is null. - public static Response CheckNetAppFilePathAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) + public static Response CheckNetAppNameAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetAppSubscriptionResource(subscriptionResource).CheckNetAppFilePathAvailability(location, content, cancellationToken); + return GetMockableNetAppSubscriptionResource(subscriptionResource).CheckNetAppNameAvailability(location, content, cancellationToken); } /// @@ -610,7 +591,7 @@ public static Response CheckNetAppFilePathAvailab /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// @@ -620,7 +601,7 @@ public static Response CheckNetAppFilePathAvailab /// /// The instance the method will execute against. /// The name of the Azure region. - /// Quota availability request. + /// The request body. /// The cancellation token to use. /// or is null. public static async Task> CheckNetAppQuotaAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, NetAppQuotaAvailabilityContent content, CancellationToken cancellationToken = default) @@ -643,7 +624,7 @@ public static async Task> CheckNetAppQuo /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// @@ -653,7 +634,7 @@ public static async Task> CheckNetAppQuo /// /// The instance the method will execute against. /// The name of the Azure region. - /// Quota availability request. + /// The request body. /// The cancellation token to use. /// or is null. public static Response CheckNetAppQuotaAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, NetAppQuotaAvailabilityContent content, CancellationToken cancellationToken = default) @@ -664,133 +645,133 @@ public static Response CheckNetAppQuotaAvailabili } /// - /// Provides storage to network proximity and logical zone mapping information. + /// Get details of the specified network sibling set. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet /// /// /// Operation Id - /// NetAppResource_QueryRegionInfo + /// NetAppResource_QueryNetworkSiblingSet /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. + /// The request body. /// The cancellation token to use. - /// is null. - public static async Task> QueryRegionInfoNetAppResourceAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + /// or is null. + public static async Task> QueryNetworkSiblingSetNetAppResourceAsync(this SubscriptionResource subscriptionResource, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return await GetMockableNetAppSubscriptionResource(subscriptionResource).QueryRegionInfoNetAppResourceAsync(location, cancellationToken).ConfigureAwait(false); + return await GetMockableNetAppSubscriptionResource(subscriptionResource).QueryNetworkSiblingSetNetAppResourceAsync(location, content, cancellationToken).ConfigureAwait(false); } /// - /// Provides storage to network proximity and logical zone mapping information. + /// Get details of the specified network sibling set. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet /// /// /// Operation Id - /// NetAppResource_QueryRegionInfo + /// NetAppResource_QueryNetworkSiblingSet /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. + /// The request body. /// The cancellation token to use. - /// is null. - public static Response QueryRegionInfoNetAppResource(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + /// or is null. + public static Response QueryNetworkSiblingSetNetAppResource(this SubscriptionResource subscriptionResource, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetAppSubscriptionResource(subscriptionResource).QueryRegionInfoNetAppResource(location, cancellationToken); + return GetMockableNetAppSubscriptionResource(subscriptionResource).QueryNetworkSiblingSetNetAppResource(location, content, cancellationToken); } /// - /// Get details of the specified network sibling set. + /// Provides storage to network proximity and logical zone mapping information. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo /// /// /// Operation Id - /// NetAppResource_QueryNetworkSiblingSet + /// NetAppResource_QueryRegionInfo /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. - /// Network sibling set to query. /// The cancellation token to use. - /// or is null. - public static async Task> QueryNetworkSiblingSetNetAppResourceAsync(this SubscriptionResource subscriptionResource, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + /// is null. + public static async Task> QueryRegionInfoNetAppResourceAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return await GetMockableNetAppSubscriptionResource(subscriptionResource).QueryNetworkSiblingSetNetAppResourceAsync(location, content, cancellationToken).ConfigureAwait(false); + return await GetMockableNetAppSubscriptionResource(subscriptionResource).QueryRegionInfoNetAppResourceAsync(location, cancellationToken).ConfigureAwait(false); } /// - /// Get details of the specified network sibling set. + /// Provides storage to network proximity and logical zone mapping information. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo /// /// /// Operation Id - /// NetAppResource_QueryNetworkSiblingSet + /// NetAppResource_QueryRegionInfo /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. - /// Network sibling set to query. /// The cancellation token to use. - /// or is null. - public static Response QueryNetworkSiblingSetNetAppResource(this SubscriptionResource subscriptionResource, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + /// is null. + public static Response QueryRegionInfoNetAppResource(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetAppSubscriptionResource(subscriptionResource).QueryNetworkSiblingSetNetAppResource(location, content, cancellationToken); + return GetMockableNetAppSubscriptionResource(subscriptionResource).QueryRegionInfoNetAppResource(location, cancellationToken); } /// @@ -806,7 +787,7 @@ public static Response QueryNetworkSiblingSetNetAppResource(t /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// @@ -817,7 +798,7 @@ public static Response QueryNetworkSiblingSetNetAppResource(t /// The instance the method will execute against. /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The name of the Azure region. - /// Update for the specified network sibling set. + /// The request body. /// The cancellation token to use. /// or is null. public static async Task> UpdateNetworkSiblingSetNetAppResourceAsync(this SubscriptionResource subscriptionResource, WaitUntil waitUntil, AzureLocation location, UpdateNetworkSiblingSetContent content, CancellationToken cancellationToken = default) @@ -840,7 +821,7 @@ public static async Task> UpdateNetworkSiblingSe /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// @@ -851,7 +832,7 @@ public static async Task> UpdateNetworkSiblingSe /// The instance the method will execute against. /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The name of the Azure region. - /// Update for the specified network sibling set. + /// The request body. /// The cancellation token to use. /// or is null. public static ArmOperation UpdateNetworkSiblingSetNetAppResource(this SubscriptionResource subscriptionResource, WaitUntil waitUntil, AzureLocation location, UpdateNetworkSiblingSetContent content, CancellationToken cancellationToken = default) @@ -862,271 +843,271 @@ public static ArmOperation UpdateNetworkSiblingSetNetAppResou } /// - /// Get current subscription usages + /// Get the default and current limits for quotas /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits /// /// /// Operation Id - /// NetAppResourceUsages_List + /// NetAppResourceQuotaLimits_List /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. /// The cancellation token to use. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetAppResourceUsagesAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetNetAppQuotaLimitsAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppResourceUsagesAsync(location, cancellationToken); + return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppQuotaLimitsAsync(location, cancellationToken); } /// - /// Get current subscription usages + /// Get the default and current limits for quotas /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits /// /// /// Operation Id - /// NetAppResourceUsages_List + /// NetAppResourceQuotaLimits_List /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. /// The cancellation token to use. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetAppResourceUsages(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetNetAppQuotaLimits(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppResourceUsages(location, cancellationToken); + return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppQuotaLimits(location, cancellationToken); } /// - /// Get current subscription usage of the specific type + /// Get the default and current quota limit /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType} + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName} /// /// /// Operation Id - /// NetAppResourceUsages_Get + /// NetAppResourceQuotaLimits_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. - /// The type of usage. + /// The name of the Quota Limit. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task> GetNetAppResourceUsageAsync(this SubscriptionResource subscriptionResource, AzureLocation location, string usageType, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// or is null. + public static async Task> GetNetAppQuotaLimitAsync(this SubscriptionResource subscriptionResource, AzureLocation location, string quotaLimitName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return await GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppResourceUsageAsync(location, usageType, cancellationToken).ConfigureAwait(false); + return await GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppQuotaLimitAsync(location, quotaLimitName, cancellationToken).ConfigureAwait(false); } /// - /// Get current subscription usage of the specific type + /// Get the default and current quota limit /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType} + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName} /// /// /// Operation Id - /// NetAppResourceUsages_Get + /// NetAppResourceQuotaLimits_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. - /// The type of usage. + /// The name of the Quota Limit. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static Response GetNetAppResourceUsage(this SubscriptionResource subscriptionResource, AzureLocation location, string usageType, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// or is null. + public static Response GetNetAppQuotaLimit(this SubscriptionResource subscriptionResource, AzureLocation location, string quotaLimitName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppResourceUsage(location, usageType, cancellationToken); + return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppQuotaLimit(location, quotaLimitName, cancellationToken); } /// - /// Get the default and current limits for quotas + /// Get current subscription usages /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages /// /// /// Operation Id - /// NetAppResourceQuotaLimits_List + /// NetAppResourceUsages_List /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. /// The cancellation token to use. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetNetAppQuotaLimitsAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetNetAppResourceUsagesAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppQuotaLimitsAsync(location, cancellationToken); + return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppResourceUsagesAsync(location, cancellationToken); } /// - /// Get the default and current limits for quotas + /// Get current subscription usages /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages /// /// /// Operation Id - /// NetAppResourceQuotaLimits_List + /// NetAppResourceUsages_List /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. /// The cancellation token to use. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetNetAppQuotaLimits(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetNetAppResourceUsages(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppQuotaLimits(location, cancellationToken); + return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppResourceUsages(location, cancellationToken); } /// - /// Get the default and current subscription quota limit + /// Get current subscription usage of the specific type /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName} + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType} /// /// /// Operation Id - /// NetAppResourceQuotaLimits_Get + /// NetAppResourceUsages_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. - /// The name of the Quota Limit. + /// The type of usage. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task> GetNetAppQuotaLimitAsync(this SubscriptionResource subscriptionResource, AzureLocation location, string quotaLimitName, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// or is null. + public static async Task> GetNetAppResourceUsageAsync(this SubscriptionResource subscriptionResource, AzureLocation location, string usageType, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return await GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppQuotaLimitAsync(location, quotaLimitName, cancellationToken).ConfigureAwait(false); + return await GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppResourceUsageAsync(location, usageType, cancellationToken).ConfigureAwait(false); } /// - /// Get the default and current subscription quota limit + /// Get current subscription usage of the specific type /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName} + /// /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType} /// /// /// Operation Id - /// NetAppResourceQuotaLimits_Get + /// NetAppResourceUsages_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the Azure region. - /// The name of the Quota Limit. + /// The type of usage. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static Response GetNetAppQuotaLimit(this SubscriptionResource subscriptionResource, AzureLocation location, string quotaLimitName, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// or is null. + public static Response GetNetAppResourceUsage(this SubscriptionResource subscriptionResource, AzureLocation location, string usageType, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppQuotaLimit(location, quotaLimitName, cancellationToken); + return GetMockableNetAppSubscriptionResource(subscriptionResource).GetNetAppResourceUsage(location, usageType, cancellationToken); } /// @@ -1142,7 +1123,7 @@ public static Response GetNetAppQuotaLimit(this Sub /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1178,7 +1159,7 @@ public static AsyncPageable GetNetAppAccountsAsync(this S /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppBucketOperationSource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppBucketOperationSource.cs deleted file mode 100644 index dc2bfb052210..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppBucketOperationSource.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp -{ - internal class NetAppBucketOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal NetAppBucketOperationSource(ArmClient client) - { - _client = client; - } - - NetAppBucketResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerNetAppContext.Default); - return new NetAppBucketResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerNetAppContext.Default); - return await Task.FromResult(new NetAppBucketResource(_client, data)).ConfigureAwait(false); - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppVolumeQuotaReportListResultOperationSource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppVolumeQuotaReportListResultOperationSource.cs deleted file mode 100644 index c17d1f7a91f5..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppVolumeQuotaReportListResultOperationSource.cs +++ /dev/null @@ -1,30 +0,0 @@ -// 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.Core; -using Azure.ResourceManager.NetApp.Models; - -namespace Azure.ResourceManager.NetApp -{ - internal class NetAppVolumeQuotaReportListResultOperationSource : IOperationSource - { - NetAppVolumeQuotaReportListResult IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - return NetAppVolumeQuotaReportListResult.DeserializeNetAppVolumeQuotaReportListResult(document.RootElement); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - return NetAppVolumeQuotaReportListResult.DeserializeNetAppVolumeQuotaReportListResult(document.RootElement); - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AcceptGrowCapacityPoolForShortTermCloneSplit.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AcceptGrowCapacityPoolForShortTermCloneSplit.cs index d7f6e1e6a2c6..a88f98a8c120 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AcceptGrowCapacityPoolForShortTermCloneSplit.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AcceptGrowCapacityPoolForShortTermCloneSplit.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. + /// + /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. + /// Serialized Name: AcceptGrowCapacityPoolForShortTermCloneSplit + /// public readonly partial struct AcceptGrowCapacityPoolForShortTermCloneSplit : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public AcceptGrowCapacityPoolForShortTermCloneSplit(string value) private const string AcceptedValue = "Accepted"; private const string DeclinedValue = "Declined"; - /// Auto grow capacity pool for short term clone split is accepted. + /// + /// Auto grow capacity pool for short term clone split is accepted. + /// Serialized Name: AcceptGrowCapacityPoolForShortTermCloneSplit.Accepted + /// public static AcceptGrowCapacityPoolForShortTermCloneSplit Accepted { get; } = new AcceptGrowCapacityPoolForShortTermCloneSplit(AcceptedValue); - /// Auto grow capacity pool for short term clone split is declined. Short term clone volume creation will not be allowed, to create short term clone volume accept auto grow capacity pool. + /// + /// Auto grow capacity pool for short term clone split is declined. Short term clone volume creation will not be allowed, to create short term clone volume accept auto grow capacity pool. + /// Serialized Name: AcceptGrowCapacityPoolForShortTermCloneSplit.Declined + /// public static AcceptGrowCapacityPoolForShortTermCloneSplit Declined { get; } = new AcceptGrowCapacityPoolForShortTermCloneSplit(DeclinedValue); /// Determines if two values are the same. public static bool operator ==(AcceptGrowCapacityPoolForShortTermCloneSplit left, AcceptGrowCapacityPoolForShortTermCloneSplit right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AvailabilityZoneMapping.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AvailabilityZoneMapping.cs index ccbcda8030cb..630228dfd742 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AvailabilityZoneMapping.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AvailabilityZoneMapping.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// The AvailabilityZoneMapping. + /// + /// The AvailabilityZoneMapping. + /// Serialized Name: RegionInfoAvailabilityZoneMappingsItem + /// public partial class AvailabilityZoneMapping { /// @@ -51,8 +54,14 @@ public AvailabilityZoneMapping() } /// Initializes a new instance of . - /// Logical availability zone. - /// Available availability zone. + /// + /// Logical availability zone. + /// Serialized Name: RegionInfoAvailabilityZoneMappingsItem.availabilityZone + /// + /// + /// Available availability zone + /// Serialized Name: RegionInfoAvailabilityZoneMappingsItem.isAvailable + /// /// Keeps track of any properties unknown to the library. internal AvailabilityZoneMapping(string availabilityZone, bool? isAvailable, IDictionary serializedAdditionalRawData) { @@ -61,9 +70,15 @@ internal AvailabilityZoneMapping(string availabilityZone, bool? isAvailable, IDi _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Logical availability zone. + /// + /// Logical availability zone. + /// Serialized Name: RegionInfoAvailabilityZoneMappingsItem.availabilityZone + /// public string AvailabilityZone { get; set; } - /// Available availability zone. + /// + /// Available availability zone + /// Serialized Name: RegionInfoAvailabilityZoneMappingsItem.isAvailable + /// public bool? IsAvailable { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AzureResourceManagerNetAppContext.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AzureResourceManagerNetAppContext.cs index 70582be85988..572c3046b277 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AzureResourceManagerNetAppContext.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/AzureResourceManagerNetAppContext.cs @@ -24,12 +24,11 @@ namespace Azure.ResourceManager.NetApp [ModelReaderWriterBuildable(typeof(CapacityPoolList))] [ModelReaderWriterBuildable(typeof(CapacityPoolPatch))] [ModelReaderWriterBuildable(typeof(CapacityPoolResource))] - [ModelReaderWriterBuildable(typeof(CifsUser))] [ModelReaderWriterBuildable(typeof(ClusterPeerCommandResult))] [ModelReaderWriterBuildable(typeof(GetGroupIdListForLdapUserContent))] [ModelReaderWriterBuildable(typeof(GetGroupIdListForLdapUserResult))] - [ModelReaderWriterBuildable(typeof(LdapConfiguration))] [ModelReaderWriterBuildable(typeof(ListReplications))] + [ModelReaderWriterBuildable(typeof(ListReplicationsContent))] [ModelReaderWriterBuildable(typeof(ManagedServiceIdentity))] [ModelReaderWriterBuildable(typeof(NetAppAccountActiveDirectory))] [ModelReaderWriterBuildable(typeof(NetAppAccountData))] @@ -46,16 +45,6 @@ namespace Azure.ResourceManager.NetApp [ModelReaderWriterBuildable(typeof(NetAppBackupVaultData))] [ModelReaderWriterBuildable(typeof(NetAppBackupVaultPatch))] [ModelReaderWriterBuildable(typeof(NetAppBackupVaultResource))] - [ModelReaderWriterBuildable(typeof(NetAppBucketCredentialsExpiry))] - [ModelReaderWriterBuildable(typeof(NetAppBucketData))] - [ModelReaderWriterBuildable(typeof(NetAppBucketFileSystemUser))] - [ModelReaderWriterBuildable(typeof(NetAppBucketGenerateCredentials))] - [ModelReaderWriterBuildable(typeof(NetAppBucketList))] - [ModelReaderWriterBuildable(typeof(NetAppBucketNfsUser))] - [ModelReaderWriterBuildable(typeof(NetAppBucketPatch))] - [ModelReaderWriterBuildable(typeof(NetAppBucketResource))] - [ModelReaderWriterBuildable(typeof(NetAppBucketServerPatchProperties))] - [ModelReaderWriterBuildable(typeof(NetAppBucketServerProperties))] [ModelReaderWriterBuildable(typeof(NetAppChangeKeyVault))] [ModelReaderWriterBuildable(typeof(NetAppCheckAvailabilityResult))] [ModelReaderWriterBuildable(typeof(NetAppDestinationReplication))] @@ -98,8 +87,6 @@ namespace Azure.ResourceManager.NetApp [ModelReaderWriterBuildable(typeof(NetAppVolumePatchDataProtection))] [ModelReaderWriterBuildable(typeof(NetAppVolumePlacementRule))] [ModelReaderWriterBuildable(typeof(NetAppVolumePoolChangeContent))] - [ModelReaderWriterBuildable(typeof(NetAppVolumeQuotaReport))] - [ModelReaderWriterBuildable(typeof(NetAppVolumeQuotaReportListResult))] [ModelReaderWriterBuildable(typeof(NetAppVolumeQuotaRuleData))] [ModelReaderWriterBuildable(typeof(NetAppVolumeQuotaRulePatch))] [ModelReaderWriterBuildable(typeof(NetAppVolumeQuotaRuleResource))] diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.Serialization.cs index f16769dbe64f..0e793315b20c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.Serialization.cs @@ -34,15 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(BackupPoliciesList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -82,16 +84,13 @@ internal static BackupPoliciesList DeserializeBackupPoliciesList(JsonElement ele return null; } IReadOnlyList value = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -100,13 +99,22 @@ internal static BackupPoliciesList DeserializeBackupPoliciesList(JsonElement ele value = array; continue; } + if (property.NameEquals("nextLink"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new BackupPoliciesList(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new BackupPoliciesList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.cs index 0825b5e86167..913fa9573c43 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of Backup Policies. + /// + /// List of Backup Policies + /// Serialized Name: BackupPoliciesList + /// internal partial class BackupPoliciesList { /// @@ -46,21 +50,49 @@ internal partial class BackupPoliciesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal BackupPoliciesList() + /// + /// The BackupPolicy items on this page + /// Serialized Name: BackupPoliciesList.value + /// + /// is null. + internal BackupPoliciesList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// A list of backup policies. + /// + /// The BackupPolicy items on this page + /// Serialized Name: BackupPoliciesList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: BackupPoliciesList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal BackupPoliciesList(IReadOnlyList value, IDictionary serializedAdditionalRawData) + internal BackupPoliciesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; + NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// A list of backup policies. + /// Initializes a new instance of for deserialization. + internal BackupPoliciesList() + { + } + + /// + /// The BackupPolicy items on this page + /// Serialized Name: BackupPoliciesList.value + /// public IReadOnlyList Value { get; } + /// + /// The link to the next page of items + /// Serialized Name: BackupPoliciesList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.Serialization.cs index 74af69d403dd..de653d92bc28 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(BackupVaultsList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static BackupVaultsList DeserializeBackupVaultsList(JsonElement element return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static BackupVaultsList DeserializeBackupVaultsList(JsonElement element } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static BackupVaultsList DeserializeBackupVaultsList(JsonElement element } } serializedAdditionalRawData = rawDataDictionary; - return new BackupVaultsList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new BackupVaultsList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.cs index c2dbf2f7c75e..27ca2c70b699 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of Backup Vaults. + /// + /// List of Backup Vaults + /// Serialized Name: BackupVaultsList + /// internal partial class BackupVaultsList { /// @@ -46,25 +50,49 @@ internal partial class BackupVaultsList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal BackupVaultsList() + /// + /// The BackupVault items on this page + /// Serialized Name: BackupVaultsList.value + /// + /// is null. + internal BackupVaultsList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// A list of Backup Vaults. - /// URL to get the next set of results. + /// + /// The BackupVault items on this page + /// Serialized Name: BackupVaultsList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: BackupVaultsList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal BackupVaultsList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal BackupVaultsList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// A list of Backup Vaults. + /// Initializes a new instance of for deserialization. + internal BackupVaultsList() + { + } + + /// + /// The BackupVault items on this page + /// Serialized Name: BackupVaultsList.value + /// public IReadOnlyList Value { get; } - /// URL to get the next set of results. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: BackupVaultsList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.Serialization.cs index 12eaf308823f..0707517b7e4e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(BackupsList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static BackupsList DeserializeBackupsList(JsonElement element, ModelRea return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static BackupsList DeserializeBackupsList(JsonElement element, ModelRea } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static BackupsList DeserializeBackupsList(JsonElement element, ModelRea } } serializedAdditionalRawData = rawDataDictionary; - return new BackupsList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new BackupsList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.cs index 616e6b59c724..2b57d07536b7 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of Backups. + /// + /// List of Backups + /// Serialized Name: BackupsList + /// internal partial class BackupsList { /// @@ -46,25 +50,49 @@ internal partial class BackupsList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal BackupsList() + /// + /// The Backup items on this page + /// Serialized Name: BackupsList.value + /// + /// is null. + internal BackupsList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// A list of Backups. - /// URL to get the next set of results. + /// + /// The Backup items on this page + /// Serialized Name: BackupsList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: BackupsList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal BackupsList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal BackupsList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// A list of Backups. + /// Initializes a new instance of for deserialization. + internal BackupsList() + { + } + + /// + /// The Backup items on this page + /// Serialized Name: BackupsList.value + /// public IReadOnlyList Value { get; } - /// URL to get the next set of results. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: BackupsList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsMigrationContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsMigrationContent.cs index 03e98b44ecd8..3de8777f71d4 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsMigrationContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsMigrationContent.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Migrate Backups Request. + /// + /// Migrate Backups Request + /// Serialized Name: BackupsMigrationRequest + /// public partial class BackupsMigrationContent { /// @@ -46,7 +49,10 @@ public partial class BackupsMigrationContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The ResourceId of the Backup Vault. + /// + /// The ResourceId of the Backup Vault + /// Serialized Name: BackupsMigrationRequest.backupVaultId + /// /// is null. public BackupsMigrationContent(string backupVaultId) { @@ -56,7 +62,10 @@ public BackupsMigrationContent(string backupVaultId) } /// Initializes a new instance of . - /// The ResourceId of the Backup Vault. + /// + /// The ResourceId of the Backup Vault + /// Serialized Name: BackupsMigrationRequest.backupVaultId + /// /// Keeps track of any properties unknown to the library. internal BackupsMigrationContent(string backupVaultId, IDictionary serializedAdditionalRawData) { @@ -69,7 +78,10 @@ internal BackupsMigrationContent() { } - /// The ResourceId of the Backup Vault. + /// + /// The ResourceId of the Backup Vault + /// Serialized Name: BackupsMigrationRequest.backupVaultId + /// public string BackupVaultId { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolEncryptionType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolEncryptionType.cs index b1b843a4398e..01f2d77cea08 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolEncryptionType.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolEncryptionType.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool. + /// + /// Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool. + /// Serialized Name: PoolPropertiesEncryptionType + /// public readonly partial struct CapacityPoolEncryptionType : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public CapacityPoolEncryptionType(string value) private const string SingleValue = "Single"; private const string DoubleValue = "Double"; - /// EncryptionType Single, volumes will use single encryption at rest. + /// + /// EncryptionType Single, volumes will use single encryption at rest + /// Serialized Name: PoolPropertiesEncryptionType.Single + /// public static CapacityPoolEncryptionType Single { get; } = new CapacityPoolEncryptionType(SingleValue); - /// EncryptionType Double, volumes will use double encryption at rest. + /// + /// EncryptionType Double, volumes will use double encryption at rest + /// Serialized Name: PoolPropertiesEncryptionType.Double + /// public static CapacityPoolEncryptionType Double { get; } = new CapacityPoolEncryptionType(DoubleValue); /// Determines if two values are the same. public static bool operator ==(CapacityPoolEncryptionType left, CapacityPoolEncryptionType right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.Serialization.cs index f6a6f2b58aff..2ee17b7f7456 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CapacityPoolList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static CapacityPoolList DeserializeCapacityPoolList(JsonElement element return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static CapacityPoolList DeserializeCapacityPoolList(JsonElement element } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static CapacityPoolList DeserializeCapacityPoolList(JsonElement element } } serializedAdditionalRawData = rawDataDictionary; - return new CapacityPoolList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new CapacityPoolList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.cs index 64c1fb0af9d2..a355ba3e6534 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of capacity pool resources. + /// + /// List of capacity pool resources + /// Serialized Name: CapacityPoolList + /// internal partial class CapacityPoolList { /// @@ -46,25 +50,49 @@ internal partial class CapacityPoolList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal CapacityPoolList() + /// + /// The CapacityPool items on this page + /// Serialized Name: CapacityPoolList.value + /// + /// is null. + internal CapacityPoolList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// List of Capacity pools. - /// URL to get the next set of results. + /// + /// The CapacityPool items on this page + /// Serialized Name: CapacityPoolList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: CapacityPoolList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal CapacityPoolList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal CapacityPoolList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of Capacity pools. + /// Initializes a new instance of for deserialization. + internal CapacityPoolList() + { + } + + /// + /// The CapacityPool items on this page + /// Serialized Name: CapacityPoolList.value + /// public IReadOnlyList Value { get; } - /// URL to get the next set of results. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: CapacityPoolList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolPatch.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolPatch.Serialization.cs index d66d2bc53776..b68fcf995c33 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolPatch.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolPatch.Serialization.cs @@ -54,12 +54,12 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("coolAccess"u8); writer.WriteBooleanValue(IsCoolAccessEnabled.Value); } - if (Optional.IsDefined(CustomThroughputMibps)) + if (Optional.IsDefined(CustomThroughputMibpsInt)) { - if (CustomThroughputMibps != null) + if (CustomThroughputMibpsInt != null) { writer.WritePropertyName("customThroughputMibps"u8); - writer.WriteNumberValue(CustomThroughputMibps.Value); + writer.WriteNumberValue(CustomThroughputMibpsInt.Value); } else { @@ -98,7 +98,7 @@ internal static CapacityPoolPatch DeserializeCapacityPoolPatch(JsonElement eleme long? size = default; CapacityPoolQosType? qosType = default; bool? coolAccess = default; - float? customThroughputMibps = default; + int? customThroughputMibps = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -189,7 +189,7 @@ internal static CapacityPoolPatch DeserializeCapacityPoolPatch(JsonElement eleme customThroughputMibps = null; continue; } - customThroughputMibps = property0.Value.GetSingle(); + customThroughputMibps = property0.Value.GetInt32(); continue; } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolPatch.cs index bc3cb36a7404..afa36532e51b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolPatch.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Capacity pool patch resource. + /// + /// Capacity pool patch resource + /// Serialized Name: CapacityPoolPatch + /// public partial class CapacityPoolPatch : TrackedResourceData { /// @@ -60,17 +63,29 @@ public CapacityPoolPatch(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). - /// The qos type of the pool. - /// If enabled (true) the pool can contain cool Access enabled volumes. - /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. + /// + /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). + /// Serialized Name: CapacityPoolPatch.properties.size + /// + /// + /// The qos type of the pool + /// Serialized Name: CapacityPoolPatch.properties.qosType + /// + /// + /// If enabled (true) the pool can contain cool Access enabled volumes. + /// Serialized Name: CapacityPoolPatch.properties.coolAccess + /// + /// + /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level + /// Serialized Name: CapacityPoolPatch.properties.customThroughputMibps + /// /// Keeps track of any properties unknown to the library. - internal CapacityPoolPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, long? size, CapacityPoolQosType? qosType, bool? isCoolAccessEnabled, float? customThroughputMibps, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal CapacityPoolPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, long? size, CapacityPoolQosType? qosType, bool? isCoolAccessEnabled, int? customThroughputMibpsInt, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Size = size; QosType = qosType; IsCoolAccessEnabled = isCoolAccessEnabled; - CustomThroughputMibps = customThroughputMibps; + CustomThroughputMibpsInt = customThroughputMibpsInt; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -79,13 +94,25 @@ internal CapacityPoolPatch() { } - /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). + /// + /// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). + /// Serialized Name: CapacityPoolPatch.properties.size + /// public long? Size { get; set; } - /// The qos type of the pool. + /// + /// The qos type of the pool + /// Serialized Name: CapacityPoolPatch.properties.qosType + /// public CapacityPoolQosType? QosType { get; set; } - /// If enabled (true) the pool can contain cool Access enabled volumes. + /// + /// If enabled (true) the pool can contain cool Access enabled volumes. + /// Serialized Name: CapacityPoolPatch.properties.coolAccess + /// public bool? IsCoolAccessEnabled { get; set; } - /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. - public float? CustomThroughputMibps { get; set; } + /// + /// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level + /// Serialized Name: CapacityPoolPatch.properties.customThroughputMibps + /// + public int? CustomThroughputMibpsInt { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolQosType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolQosType.cs index 71994c7bcda3..8cb512d75205 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolQosType.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolQosType.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// The qos type of the pool. + /// + /// The qos type of the pool + /// Serialized Name: QosType + /// public readonly partial struct CapacityPoolQosType : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public CapacityPoolQosType(string value) private const string AutoValue = "Auto"; private const string ManualValue = "Manual"; - /// qos type Auto. + /// + /// qos type Auto + /// Serialized Name: QosType.Auto + /// public static CapacityPoolQosType Auto { get; } = new CapacityPoolQosType(AutoValue); - /// qos type Manual. + /// + /// qos type Manual + /// Serialized Name: QosType.Manual + /// public static CapacityPoolQosType Manual { get; } = new CapacityPoolQosType(ManualValue); /// Determines if two values are the same. public static bool operator ==(CapacityPoolQosType left, CapacityPoolQosType right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CifsUser.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CifsUser.Serialization.cs deleted file mode 100644 index 1108a82ec8c6..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CifsUser.Serialization.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - internal partial class CifsUser : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(CifsUser)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(Username)) - { - writer.WritePropertyName("username"u8); - writer.WriteStringValue(Username); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - CifsUser IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(CifsUser)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeCifsUser(document.RootElement, options); - } - - internal static CifsUser DeserializeCifsUser(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string username = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("username"u8)) - { - username = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new CifsUser(username, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(CifsUser)} does not support writing '{options.Format}' format."); - } - } - - CifsUser IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeCifsUser(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(CifsUser)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CifsUser.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CifsUser.cs deleted file mode 100644 index 7f4917acbbe3..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CifsUser.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// The effective CIFS username when accessing the volume data. - internal partial class CifsUser - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public CifsUser() - { - } - - /// Initializes a new instance of . - /// The CIFS user's username. - /// Keeps track of any properties unknown to the library. - internal CifsUser(string username, IDictionary serializedAdditionalRawData) - { - Username = username; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The CIFS user's username. - public string Username { get; set; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ClusterPeerCommandResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ClusterPeerCommandResult.cs index 776a58ab2e77..8034b2962ea9 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ClusterPeerCommandResult.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ClusterPeerCommandResult.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Information about cluster peering process. + /// + /// Information about cluster peering process + /// Serialized Name: ClusterPeerCommandResponse + /// public partial class ClusterPeerCommandResult { /// @@ -51,7 +54,10 @@ internal ClusterPeerCommandResult() } /// Initializes a new instance of . - /// A command that needs to be run on the external ONTAP to accept cluster peering. Will only be present if <code>clusterPeeringStatus</code> is <code>pending</code>. + /// + /// A command that needs to be run on the external ONTAP to accept cluster peering. Will only be present if <code>clusterPeeringStatus</code> is <code>pending</code> + /// Serialized Name: ClusterPeerCommandResponse.peerAcceptCommand + /// /// Keeps track of any properties unknown to the library. internal ClusterPeerCommandResult(string peerAcceptCommand, IDictionary serializedAdditionalRawData) { @@ -59,7 +65,10 @@ internal ClusterPeerCommandResult(string peerAcceptCommand, IDictionary A command that needs to be run on the external ONTAP to accept cluster peering. Will only be present if <code>clusterPeeringStatus</code> is <code>pending</code>. + /// + /// A command that needs to be run on the external ONTAP to accept cluster peering. Will only be present if <code>clusterPeeringStatus</code> is <code>pending</code> + /// Serialized Name: ClusterPeerCommandResponse.peerAcceptCommand + /// public string PeerAcceptCommand { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessRetrievalPolicy.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessRetrievalPolicy.cs index e4036665a502..111805a137ce 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessRetrievalPolicy.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessRetrievalPolicy.cs @@ -12,9 +12,10 @@ namespace Azure.ResourceManager.NetApp.Models { /// /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: - /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. - /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. - /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Serialized Name: CoolAccessRetrievalPolicy /// public readonly partial struct CoolAccessRetrievalPolicy : IEquatable { @@ -31,11 +32,20 @@ public CoolAccessRetrievalPolicy(string value) private const string OnReadValue = "OnRead"; private const string NeverValue = "Never"; - /// Default. + /// + /// Default + /// Serialized Name: CoolAccessRetrievalPolicy.Default + /// public static CoolAccessRetrievalPolicy Default { get; } = new CoolAccessRetrievalPolicy(DefaultValue); - /// OnRead. + /// + /// OnRead + /// Serialized Name: CoolAccessRetrievalPolicy.OnRead + /// public static CoolAccessRetrievalPolicy OnRead { get; } = new CoolAccessRetrievalPolicy(OnReadValue); - /// Never. + /// + /// Never + /// Serialized Name: CoolAccessRetrievalPolicy.Never + /// public static CoolAccessRetrievalPolicy Never { get; } = new CoolAccessRetrievalPolicy(NeverValue); /// Determines if two values are the same. public static bool operator ==(CoolAccessRetrievalPolicy left, CoolAccessRetrievalPolicy right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessTieringPolicy.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessTieringPolicy.cs index c170727383c5..2cbe50c89c32 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessTieringPolicy.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CoolAccessTieringPolicy.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// + /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// Serialized Name: CoolAccessTieringPolicy + /// public readonly partial struct CoolAccessTieringPolicy : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public CoolAccessTieringPolicy(string value) private const string AutoValue = "Auto"; private const string SnapshotOnlyValue = "SnapshotOnly"; - /// Auto. + /// + /// Auto + /// Serialized Name: CoolAccessTieringPolicy.Auto + /// public static CoolAccessTieringPolicy Auto { get; } = new CoolAccessTieringPolicy(AutoValue); - /// SnapshotOnly. + /// + /// SnapshotOnly + /// Serialized Name: CoolAccessTieringPolicy.SnapshotOnly + /// public static CoolAccessTieringPolicy SnapshotOnly { get; } = new CoolAccessTieringPolicy(SnapshotOnlyValue); /// Determines if two values are the same. public static bool operator ==(CoolAccessTieringPolicy left, CoolAccessTieringPolicy right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/EnableNetAppSubvolume.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/EnableNetAppSubvolume.cs index aa217adbb1bc..94edd4927e56 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/EnableNetAppSubvolume.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/EnableNetAppSubvolume.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Flag indicating whether subvolume operations are enabled on the volume. + /// + /// Flag indicating whether subvolume operations are enabled on the volume + /// Serialized Name: EnableSubvolumes + /// public readonly partial struct EnableNetAppSubvolume : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public EnableNetAppSubvolume(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// subvolumes are enabled. + /// + /// subvolumes are enabled + /// Serialized Name: EnableSubvolumes.Enabled + /// public static EnableNetAppSubvolume Enabled { get; } = new EnableNetAppSubvolume(EnabledValue); - /// subvolumes are not enabled. + /// + /// subvolumes are not enabled + /// Serialized Name: EnableSubvolumes.Disabled + /// public static EnableNetAppSubvolume Disabled { get; } = new EnableNetAppSubvolume(DisabledValue); /// Determines if two values are the same. public static bool operator ==(EnableNetAppSubvolume left, EnableNetAppSubvolume right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/Exclude.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/Exclude.cs new file mode 100644 index 000000000000..abe3a82149d5 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/Exclude.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// + /// Exclude Replications filter. 'None' returns all replications, 'Deleted' excludes deleted replications. Default is 'None' + /// Serialized Name: Exclude + /// + public readonly partial struct Exclude : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public Exclude(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string DeletedValue = "Deleted"; + + /// + /// 'None' returns all replications + /// Serialized Name: Exclude.None + /// + public static Exclude None { get; } = new Exclude(NoneValue); + /// + /// 'Deleted' excludes deleted replications + /// Serialized Name: Exclude.Deleted + /// + public static Exclude Deleted { get; } = new Exclude(DeletedValue); + /// Determines if two values are the same. + public static bool operator ==(Exclude left, Exclude right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(Exclude left, Exclude right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator Exclude(string value) => new Exclude(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is Exclude other && Equals(other); + /// + public bool Equals(Exclude other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ExternalReplicationSetupStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ExternalReplicationSetupStatus.cs deleted file mode 100644 index 7884f10fface..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ExternalReplicationSetupStatus.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Property that only applies to external replications. Provides a machine-readable value for the status of the external replication setup. - public readonly partial struct ExternalReplicationSetupStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ExternalReplicationSetupStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ClusterPeerRequiredValue = "ClusterPeerRequired"; - private const string ClusterPeerPendingValue = "ClusterPeerPending"; - private const string VServerPeerRequiredValue = "VServerPeerRequired"; - private const string ReplicationCreateRequiredValue = "ReplicationCreateRequired"; - private const string NoActionRequiredValue = "NoActionRequired"; - - /// Your cluster needs to be peered by using the 'peerExternalCluster' action. - public static ExternalReplicationSetupStatus ClusterPeerRequired { get; } = new ExternalReplicationSetupStatus(ClusterPeerRequiredValue); - /// The peering needs to be accepted on your cluster before the setup can proceed. - public static ExternalReplicationSetupStatus ClusterPeerPending { get; } = new ExternalReplicationSetupStatus(ClusterPeerPendingValue); - /// Need to call 'authorizeExternalReplication' and accept the returned 'vserver peer accept' command on your cluster to finish setting up the external replication. - public static ExternalReplicationSetupStatus VServerPeerRequired { get; } = new ExternalReplicationSetupStatus(VServerPeerRequiredValue); - /// Need to call 'authorizeExternalReplication' to finish setting up the external replication. - public static ExternalReplicationSetupStatus ReplicationCreateRequired { get; } = new ExternalReplicationSetupStatus(ReplicationCreateRequiredValue); - /// External Replication setup is complete, you can now monitor the 'mirrorState' in the replication status for the health of the replication. - public static ExternalReplicationSetupStatus NoActionRequired { get; } = new ExternalReplicationSetupStatus(NoActionRequiredValue); - /// Determines if two values are the same. - public static bool operator ==(ExternalReplicationSetupStatus left, ExternalReplicationSetupStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ExternalReplicationSetupStatus left, ExternalReplicationSetupStatus right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator ExternalReplicationSetupStatus(string value) => new ExternalReplicationSetupStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ExternalReplicationSetupStatus other && Equals(other); - /// - public bool Equals(ExternalReplicationSetupStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.cs index 92a91c974fff..a1dabf91a6dd 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserContent.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Get group Id list for LDAP User request. + /// + /// Get group Id list for LDAP User request + /// Serialized Name: GetGroupIdListForLdapUserRequest + /// public partial class GetGroupIdListForLdapUserContent { /// @@ -46,7 +49,10 @@ public partial class GetGroupIdListForLdapUserContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// username is required to fetch the group to which user is part of. + /// + /// username is required to fetch the group to which user is part of + /// Serialized Name: GetGroupIdListForLdapUserRequest.username + /// /// is null. public GetGroupIdListForLdapUserContent(string username) { @@ -56,7 +62,10 @@ public GetGroupIdListForLdapUserContent(string username) } /// Initializes a new instance of . - /// username is required to fetch the group to which user is part of. + /// + /// username is required to fetch the group to which user is part of + /// Serialized Name: GetGroupIdListForLdapUserRequest.username + /// /// Keeps track of any properties unknown to the library. internal GetGroupIdListForLdapUserContent(string username, IDictionary serializedAdditionalRawData) { @@ -69,7 +78,10 @@ internal GetGroupIdListForLdapUserContent() { } - /// username is required to fetch the group to which user is part of. + /// + /// username is required to fetch the group to which user is part of + /// Serialized Name: GetGroupIdListForLdapUserRequest.username + /// public string Username { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs index 294a9686c801..917bc40fc54b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Group Id list for Ldap user. + /// + /// Group Id list for Ldap user + /// Serialized Name: GetGroupIdListForLdapUserResponse + /// public partial class GetGroupIdListForLdapUserResult { /// @@ -52,7 +55,10 @@ internal GetGroupIdListForLdapUserResult() } /// Initializes a new instance of . - /// Group Id list. + /// + /// Group Id list + /// Serialized Name: GetGroupIdListForLdapUserResponse.groupIdsForLdapUser + /// /// Keeps track of any properties unknown to the library. internal GetGroupIdListForLdapUserResult(IReadOnlyList groupIdsForLdapUser, IDictionary serializedAdditionalRawData) { @@ -60,7 +66,10 @@ internal GetGroupIdListForLdapUserResult(IReadOnlyList groupIdsForLdapUs _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Group Id list. + /// + /// Group Id list + /// Serialized Name: GetGroupIdListForLdapUserResponse.groupIdsForLdapUser + /// public IReadOnlyList GroupIdsForLdapUser { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/LdapConfiguration.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/LdapConfiguration.Serialization.cs deleted file mode 100644 index 7647db3d69d6..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/LdapConfiguration.Serialization.cs +++ /dev/null @@ -1,209 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - public partial class LdapConfiguration : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(LdapConfiguration)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(Domain)) - { - writer.WritePropertyName("domain"u8); - writer.WriteStringValue(Domain); - } - if (Optional.IsCollectionDefined(LdapServers)) - { - writer.WritePropertyName("ldapServers"u8); - writer.WriteStartArray(); - foreach (var item in LdapServers) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(LdapOverTls)) - { - writer.WritePropertyName("ldapOverTLS"u8); - writer.WriteBooleanValue(LdapOverTls.Value); - } - if (Optional.IsDefined(ServerCACertificate)) - { - writer.WritePropertyName("serverCACertificate"u8); - writer.WriteStringValue(ServerCACertificate); - } - if (Optional.IsDefined(CertificateCNHost)) - { - if (CertificateCNHost != null) - { - writer.WritePropertyName("certificateCNHost"u8); - writer.WriteStringValue(CertificateCNHost); - } - else - { - writer.WriteNull("certificateCNHost"); - } - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - LdapConfiguration IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(LdapConfiguration)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeLdapConfiguration(document.RootElement, options); - } - - internal static LdapConfiguration DeserializeLdapConfiguration(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string domain = default; - IList ldapServers = default; - bool? ldapOverTls = default; - string serverCACertificate = default; - string certificateCNHost = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("domain"u8)) - { - domain = property.Value.GetString(); - continue; - } - if (property.NameEquals("ldapServers"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - ldapServers = array; - continue; - } - if (property.NameEquals("ldapOverTLS"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - ldapOverTls = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("serverCACertificate"u8)) - { - serverCACertificate = property.Value.GetString(); - continue; - } - if (property.NameEquals("certificateCNHost"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - certificateCNHost = null; - continue; - } - certificateCNHost = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new LdapConfiguration( - domain, - ldapServers ?? new ChangeTrackingList(), - ldapOverTls, - serverCACertificate, - certificateCNHost, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(LdapConfiguration)} does not support writing '{options.Format}' format."); - } - } - - LdapConfiguration IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeLdapConfiguration(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(LdapConfiguration)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/LdapConfiguration.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/LdapConfiguration.cs deleted file mode 100644 index 9b4ca6736071..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/LdapConfiguration.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// LDAP configuration. - public partial class LdapConfiguration - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public LdapConfiguration() - { - LdapServers = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// Name of the LDAP configuration domain. - /// List of LDAP server IP addresses (IPv4 only) for the LDAP domain. - /// Specifies whether or not the LDAP traffic needs to be secured via TLS. - /// When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded ldap servers CA certificate. - /// The CN host name used while generating the certificate, LDAP Over TLS requires the CN host name to create DNS host entry. - /// Keeps track of any properties unknown to the library. - internal LdapConfiguration(string domain, IList ldapServers, bool? ldapOverTls, string serverCACertificate, string certificateCNHost, IDictionary serializedAdditionalRawData) - { - Domain = domain; - LdapServers = ldapServers; - LdapOverTls = ldapOverTls; - ServerCACertificate = serverCACertificate; - CertificateCNHost = certificateCNHost; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Name of the LDAP configuration domain. - public string Domain { get; set; } - /// List of LDAP server IP addresses (IPv4 only) for the LDAP domain. - public IList LdapServers { get; } - /// Specifies whether or not the LDAP traffic needs to be secured via TLS. - public bool? LdapOverTls { get; set; } - /// When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded ldap servers CA certificate. - public string ServerCACertificate { get; set; } - /// The CN host name used while generating the certificate, LDAP Over TLS requires the CN host name to create DNS host entry. - public string CertificateCNHost { get; set; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/LdapServerType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/LdapServerType.cs deleted file mode 100644 index c15cae6506e3..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/LdapServerType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// The type of the LDAP server. - public readonly partial struct LdapServerType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public LdapServerType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ActiveDirectoryValue = "ActiveDirectory"; - private const string OpenLdapValue = "OpenLDAP"; - - /// The volume should use Active Directory for LDAP connections. - public static LdapServerType ActiveDirectory { get; } = new LdapServerType(ActiveDirectoryValue); - /// The volume should use OpenLDAP for LDAP connections. - public static LdapServerType OpenLdap { get; } = new LdapServerType(OpenLdapValue); - /// Determines if two values are the same. - public static bool operator ==(LdapServerType left, LdapServerType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(LdapServerType left, LdapServerType right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator LdapServerType(string value) => new LdapServerType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is LdapServerType other && Equals(other); - /// - public bool Equals(LdapServerType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.Serialization.cs index a3819564ffa2..c95a45c6a4a7 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.Serialization.cs @@ -34,15 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ListReplications)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -82,16 +84,13 @@ internal static ListReplications DeserializeListReplications(JsonElement element return null; } IReadOnlyList value = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -100,13 +99,22 @@ internal static ListReplications DeserializeListReplications(JsonElement element value = array; continue; } + if (property.NameEquals("nextLink"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new ListReplications(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new ListReplications(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.cs index 6cfd78de7648..207927940bba 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List Replications. + /// + /// List Replications + /// Serialized Name: ListReplications + /// internal partial class ListReplications { /// @@ -46,21 +50,49 @@ internal partial class ListReplications private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ListReplications() + /// + /// The Replication items on this page + /// Serialized Name: ListReplications.value + /// + /// is null. + internal ListReplications(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// A list of replications. + /// + /// The Replication items on this page + /// Serialized Name: ListReplications.value + /// + /// + /// The link to the next page of items + /// Serialized Name: ListReplications.nextLink + /// /// Keeps track of any properties unknown to the library. - internal ListReplications(IReadOnlyList value, IDictionary serializedAdditionalRawData) + internal ListReplications(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; + NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// A list of replications. + /// Initializes a new instance of for deserialization. + internal ListReplications() + { + } + + /// + /// The Replication items on this page + /// Serialized Name: ListReplications.value + /// public IReadOnlyList Value { get; } + /// + /// The link to the next page of items + /// Serialized Name: ListReplications.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketCredentialsExpiry.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplicationsContent.Serialization.cs similarity index 58% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketCredentialsExpiry.Serialization.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplicationsContent.Serialization.cs index 399f220f2ce0..a23b858581f7 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketCredentialsExpiry.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplicationsContent.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.NetApp.Models { - public partial class NetAppBucketCredentialsExpiry : IUtf8JsonSerializable, IJsonModel + public partial class ListReplicationsContent : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,16 +28,16 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mode /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(NetAppBucketCredentialsExpiry)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(ListReplicationsContent)} does not support writing '{format}' format."); } - if (Optional.IsDefined(KeyPairExpiryDays)) + if (Optional.IsDefined(Exclude)) { - writer.WritePropertyName("keyPairExpiryDays"u8); - writer.WriteNumberValue(KeyPairExpiryDays.Value); + writer.WritePropertyName("exclude"u8); + writer.WriteStringValue(Exclude.Value.ToString()); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -56,19 +56,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - NetAppBucketCredentialsExpiry IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + ListReplicationsContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(NetAppBucketCredentialsExpiry)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(ListReplicationsContent)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetAppBucketCredentialsExpiry(document.RootElement, options); + return DeserializeListReplicationsContent(document.RootElement, options); } - internal static NetAppBucketCredentialsExpiry DeserializeNetAppBucketCredentialsExpiry(JsonElement element, ModelReaderWriterOptions options = null) + internal static ListReplicationsContent DeserializeListReplicationsContent(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -76,18 +76,18 @@ internal static NetAppBucketCredentialsExpiry DeserializeNetAppBucketCredentials { return null; } - int? keyPairExpiryDays = default; + Exclude? exclude = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("keyPairExpiryDays"u8)) + if (property.NameEquals("exclude"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - keyPairExpiryDays = property.Value.GetInt32(); + exclude = new Exclude(property.Value.GetString()); continue; } if (options.Format != "W") @@ -96,38 +96,38 @@ internal static NetAppBucketCredentialsExpiry DeserializeNetAppBucketCredentials } } serializedAdditionalRawData = rawDataDictionary; - return new NetAppBucketCredentialsExpiry(keyPairExpiryDays, serializedAdditionalRawData); + return new ListReplicationsContent(exclude, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); default: - throw new FormatException($"The model {nameof(NetAppBucketCredentialsExpiry)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(ListReplicationsContent)} does not support writing '{options.Format}' format."); } } - NetAppBucketCredentialsExpiry IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + ListReplicationsContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeNetAppBucketCredentialsExpiry(document.RootElement, options); + return DeserializeListReplicationsContent(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(NetAppBucketCredentialsExpiry)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(ListReplicationsContent)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketCredentialsExpiry.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplicationsContent.cs similarity index 59% rename from sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketCredentialsExpiry.cs rename to sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplicationsContent.cs index 401d36eb234a..bdfb7de301eb 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketCredentialsExpiry.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplicationsContent.cs @@ -10,8 +10,11 @@ namespace Azure.ResourceManager.NetApp.Models { - /// The bucket's Access and Secret key pair Expiry Time expressed as the number of days from now. - public partial class NetAppBucketCredentialsExpiry + /// + /// Body for the list replications endpoint. If supplied, the body will be used as a filter for example to exclude deleted replications. If omitted, the endpoint returns all replications + /// Serialized Name: ListReplicationsRequest + /// + public partial class ListReplicationsContent { /// /// Keeps track of any properties unknown to the library. @@ -45,21 +48,27 @@ public partial class NetAppBucketCredentialsExpiry /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public NetAppBucketCredentialsExpiry() + /// Initializes a new instance of . + public ListReplicationsContent() { } - /// Initializes a new instance of . - /// The number of days from now until the newly generated Access and Secret key pair will expire. + /// Initializes a new instance of . + /// + /// Exclude Replications filter. 'None' returns all replications, 'Deleted' excludes deleted replications. Default is 'None' + /// Serialized Name: ListReplicationsRequest.exclude + /// /// Keeps track of any properties unknown to the library. - internal NetAppBucketCredentialsExpiry(int? keyPairExpiryDays, IDictionary serializedAdditionalRawData) + internal ListReplicationsContent(Exclude? exclude, IDictionary serializedAdditionalRawData) { - KeyPairExpiryDays = keyPairExpiryDays; + Exclude = exclude; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The number of days from now until the newly generated Access and Secret key pair will expire. - public int? KeyPairExpiryDays { get; set; } + /// + /// Exclude Replications filter. 'None' returns all replications, 'Deleted' excludes deleted replications. Default is 'None' + /// Serialized Name: ListReplicationsRequest.exclude + /// + public Exclude? Exclude { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/MultiAdStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/MultiAdStatus.cs index c6ca81da38f2..9c3d057d3eb4 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/MultiAdStatus.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/MultiAdStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// MultiAD Status for the account. + /// + /// MultiAD Status for the account + /// Serialized Name: MultiAdStatus + /// public readonly partial struct MultiAdStatus : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public MultiAdStatus(string value) private const string DisabledValue = "Disabled"; private const string EnabledValue = "Enabled"; - /// Account is MultiAD disabled, Means its a SharedAD or SingleAD account. + /// + /// Account is MultiAD disabled, Means its a SharedAD or SingleAD account. + /// Serialized Name: MultiAdStatus.Disabled + /// public static MultiAdStatus Disabled { get; } = new MultiAdStatus(DisabledValue); - /// Account is MultiAD enabled. + /// + /// Account is MultiAD enabled + /// Serialized Name: MultiAdStatus.Enabled + /// public static MultiAdStatus Enabled { get; } = new MultiAdStatus(EnabledValue); /// Determines if two values are the same. public static bool operator ==(MultiAdStatus left, MultiAdStatus right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectory.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectory.cs index 9805f98e022d..e93d257e15cf 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectory.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectory.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Active Directory. + /// + /// Active Directory + /// Serialized Name: ActiveDirectory + /// public partial class NetAppAccountActiveDirectory { /// @@ -55,29 +58,98 @@ public NetAppAccountActiveDirectory() } /// Initializes a new instance of . - /// Id of the Active Directory. - /// A domain user account with permission to create machine accounts. - /// Plain text password of Active Directory domain administrator, value is masked in the response. - /// Name of the Active Directory domain. - /// Comma separated list of DNS server IP addresses (IPv4 only) for the Active Directory domain. - /// Status of the Active Directory. - /// Any details in regards to the Status of the Active Directory. - /// NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount volumes. - /// The Organizational Unit (OU) within the Windows Active Directory. - /// The Active Directory site the service will limit Domain Controller discovery to. - /// Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without domain specifier. - /// Users to be added to the Built-in Administrators active directory group. A list of unique usernames without domain specifier. - /// kdc server IP address for the active directory machine. This optional parameter is used only while creating kerberos volume. - /// Name of the active directory machine. This optional parameter is used only while creating kerberos volume. - /// When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter is used only for dual protocol with LDAP user-mapping volumes. - /// If enabled, AES encryption will be enabled for SMB communication. - /// Specifies whether or not the LDAP traffic needs to be signed. - /// Domain Users in the Active directory to be given SeSecurityPrivilege privilege (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier. - /// Specifies whether or not the LDAP traffic needs to be secured via TLS. - /// If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. - /// If enabled, Traffic between the SMB server to Domain Controller (DC) will be encrypted. - /// LDAP Search scope options. - /// Comma separated list of IPv4 addresses of preferred servers for LDAP client. At most two comma separated IPv4 addresses can be passed. + /// + /// Id of the Active Directory + /// Serialized Name: ActiveDirectory.activeDirectoryId + /// + /// + /// A domain user account with permission to create machine accounts + /// Serialized Name: ActiveDirectory.username + /// + /// + /// Plain text password of Active Directory domain administrator, value is masked in the response + /// Serialized Name: ActiveDirectory.password + /// + /// + /// Name of the Active Directory domain + /// Serialized Name: ActiveDirectory.domain + /// + /// + /// Comma separated list of DNS server IP addresses (IPv4 only) for the Active Directory domain + /// Serialized Name: ActiveDirectory.dns + /// + /// + /// Status of the Active Directory + /// Serialized Name: ActiveDirectory.status + /// + /// + /// Any details in regards to the Status of the Active Directory + /// Serialized Name: ActiveDirectory.statusDetails + /// + /// + /// NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount volumes + /// Serialized Name: ActiveDirectory.smbServerName + /// + /// + /// The Organizational Unit (OU) within the Windows Active Directory + /// Serialized Name: ActiveDirectory.organizationalUnit + /// + /// + /// The Active Directory site the service will limit Domain Controller discovery to + /// Serialized Name: ActiveDirectory.site + /// + /// + /// Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without domain specifier + /// Serialized Name: ActiveDirectory.backupOperators + /// + /// + /// Users to be added to the Built-in Administrators active directory group. A list of unique usernames without domain specifier + /// Serialized Name: ActiveDirectory.administrators + /// + /// + /// kdc server IP address for the active directory machine. This optional parameter is used only while creating kerberos volume. + /// Serialized Name: ActiveDirectory.kdcIP + /// + /// + /// Name of the active directory machine. This optional parameter is used only while creating kerberos volume + /// Serialized Name: ActiveDirectory.adName + /// + /// + /// When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter is used only for dual protocol with LDAP user-mapping volumes. + /// Serialized Name: ActiveDirectory.serverRootCACertificate + /// + /// + /// If enabled, AES encryption will be enabled for SMB communication. + /// Serialized Name: ActiveDirectory.aesEncryption + /// + /// + /// Specifies whether or not the LDAP traffic needs to be signed. + /// Serialized Name: ActiveDirectory.ldapSigning + /// + /// + /// Domain Users in the Active directory to be given SeSecurityPrivilege privilege (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier + /// Serialized Name: ActiveDirectory.securityOperators + /// + /// + /// Specifies whether or not the LDAP traffic needs to be secured via TLS. + /// Serialized Name: ActiveDirectory.ldapOverTLS + /// + /// + /// If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. + /// Serialized Name: ActiveDirectory.allowLocalNfsUsersWithLdap + /// + /// + /// If enabled, Traffic between the SMB server to Domain Controller (DC) will be encrypted. + /// Serialized Name: ActiveDirectory.encryptDCConnections + /// + /// + /// LDAP Search scope options + /// Serialized Name: ActiveDirectory.ldapSearchScope + /// + /// + /// Comma separated list of IPv4 addresses of preferred servers for LDAP client. At most two comma separated IPv4 addresses can be passed. + /// Serialized Name: ActiveDirectory.preferredServersForLdapClient + /// /// Keeps track of any properties unknown to the library. internal NetAppAccountActiveDirectory(string activeDirectoryId, string username, string password, string domain, string dns, NetAppAccountActiveDirectoryStatus? status, string statusDetails, string smbServerName, string organizationalUnit, string site, IList backupOperators, IList administrators, IPAddress kdcIP, string adName, string serverRootCACertificate, bool? isAesEncryptionEnabled, bool? isLdapSigningEnabled, IList securityOperators, bool? isLdapOverTlsEnabled, bool? allowLocalNfsUsersWithLdap, bool? encryptDCConnections, NetAppLdapSearchScopeConfiguration ldapSearchScope, string preferredServersForLdapClient, IDictionary serializedAdditionalRawData) { @@ -107,51 +179,120 @@ internal NetAppAccountActiveDirectory(string activeDirectoryId, string username, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Id of the Active Directory. + /// + /// Id of the Active Directory + /// Serialized Name: ActiveDirectory.activeDirectoryId + /// public string ActiveDirectoryId { get; set; } - /// A domain user account with permission to create machine accounts. + /// + /// A domain user account with permission to create machine accounts + /// Serialized Name: ActiveDirectory.username + /// public string Username { get; set; } - /// Plain text password of Active Directory domain administrator, value is masked in the response. + /// + /// Plain text password of Active Directory domain administrator, value is masked in the response + /// Serialized Name: ActiveDirectory.password + /// public string Password { get; set; } - /// Name of the Active Directory domain. + /// + /// Name of the Active Directory domain + /// Serialized Name: ActiveDirectory.domain + /// public string Domain { get; set; } - /// Comma separated list of DNS server IP addresses (IPv4 only) for the Active Directory domain. + /// + /// Comma separated list of DNS server IP addresses (IPv4 only) for the Active Directory domain + /// Serialized Name: ActiveDirectory.dns + /// public string Dns { get; set; } - /// Status of the Active Directory. + /// + /// Status of the Active Directory + /// Serialized Name: ActiveDirectory.status + /// public NetAppAccountActiveDirectoryStatus? Status { get; } - /// Any details in regards to the Status of the Active Directory. + /// + /// Any details in regards to the Status of the Active Directory + /// Serialized Name: ActiveDirectory.statusDetails + /// public string StatusDetails { get; } - /// NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount volumes. + /// + /// NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount volumes + /// Serialized Name: ActiveDirectory.smbServerName + /// public string SmbServerName { get; set; } - /// The Organizational Unit (OU) within the Windows Active Directory. + /// + /// The Organizational Unit (OU) within the Windows Active Directory + /// Serialized Name: ActiveDirectory.organizationalUnit + /// public string OrganizationalUnit { get; set; } - /// The Active Directory site the service will limit Domain Controller discovery to. + /// + /// The Active Directory site the service will limit Domain Controller discovery to + /// Serialized Name: ActiveDirectory.site + /// public string Site { get; set; } - /// Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without domain specifier. + /// + /// Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without domain specifier + /// Serialized Name: ActiveDirectory.backupOperators + /// public IList BackupOperators { get; } - /// Users to be added to the Built-in Administrators active directory group. A list of unique usernames without domain specifier. + /// + /// Users to be added to the Built-in Administrators active directory group. A list of unique usernames without domain specifier + /// Serialized Name: ActiveDirectory.administrators + /// public IList Administrators { get; } - /// kdc server IP address for the active directory machine. This optional parameter is used only while creating kerberos volume. + /// + /// kdc server IP address for the active directory machine. This optional parameter is used only while creating kerberos volume. + /// Serialized Name: ActiveDirectory.kdcIP + /// public IPAddress KdcIP { get; set; } - /// Name of the active directory machine. This optional parameter is used only while creating kerberos volume. + /// + /// Name of the active directory machine. This optional parameter is used only while creating kerberos volume + /// Serialized Name: ActiveDirectory.adName + /// public string AdName { get; set; } - /// When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter is used only for dual protocol with LDAP user-mapping volumes. + /// + /// When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter is used only for dual protocol with LDAP user-mapping volumes. + /// Serialized Name: ActiveDirectory.serverRootCACertificate + /// public string ServerRootCACertificate { get; set; } - /// If enabled, AES encryption will be enabled for SMB communication. + /// + /// If enabled, AES encryption will be enabled for SMB communication. + /// Serialized Name: ActiveDirectory.aesEncryption + /// public bool? IsAesEncryptionEnabled { get; set; } - /// Specifies whether or not the LDAP traffic needs to be signed. + /// + /// Specifies whether or not the LDAP traffic needs to be signed. + /// Serialized Name: ActiveDirectory.ldapSigning + /// public bool? IsLdapSigningEnabled { get; set; } - /// Domain Users in the Active directory to be given SeSecurityPrivilege privilege (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier. + /// + /// Domain Users in the Active directory to be given SeSecurityPrivilege privilege (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier + /// Serialized Name: ActiveDirectory.securityOperators + /// public IList SecurityOperators { get; } - /// Specifies whether or not the LDAP traffic needs to be secured via TLS. + /// + /// Specifies whether or not the LDAP traffic needs to be secured via TLS. + /// Serialized Name: ActiveDirectory.ldapOverTLS + /// public bool? IsLdapOverTlsEnabled { get; set; } - /// If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. + /// + /// If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. + /// Serialized Name: ActiveDirectory.allowLocalNfsUsersWithLdap + /// public bool? AllowLocalNfsUsersWithLdap { get; set; } - /// If enabled, Traffic between the SMB server to Domain Controller (DC) will be encrypted. + /// + /// If enabled, Traffic between the SMB server to Domain Controller (DC) will be encrypted. + /// Serialized Name: ActiveDirectory.encryptDCConnections + /// public bool? EncryptDCConnections { get; set; } - /// LDAP Search scope options. + /// + /// LDAP Search scope options + /// Serialized Name: ActiveDirectory.ldapSearchScope + /// public NetAppLdapSearchScopeConfiguration LdapSearchScope { get; set; } - /// Comma separated list of IPv4 addresses of preferred servers for LDAP client. At most two comma separated IPv4 addresses can be passed. + /// + /// Comma separated list of IPv4 addresses of preferred servers for LDAP client. At most two comma separated IPv4 addresses can be passed. + /// Serialized Name: ActiveDirectory.preferredServersForLdapClient + /// public string PreferredServersForLdapClient { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectoryStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectoryStatus.cs index 8f37db242eb0..b8cc103a9bde 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectoryStatus.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectoryStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Status of the Active Directory. + /// + /// Status of the Active Directory + /// Serialized Name: ActiveDirectoryStatus + /// public readonly partial struct NetAppAccountActiveDirectoryStatus : IEquatable { private readonly string _value; @@ -28,15 +31,30 @@ public NetAppAccountActiveDirectoryStatus(string value) private const string ErrorValue = "Error"; private const string UpdatingValue = "Updating"; - /// Active Directory created but not in use. + /// + /// Active Directory created but not in use + /// Serialized Name: ActiveDirectoryStatus.Created + /// public static NetAppAccountActiveDirectoryStatus Created { get; } = new NetAppAccountActiveDirectoryStatus(CreatedValue); - /// Active Directory in use by SMB Volume. + /// + /// Active Directory in use by SMB Volume + /// Serialized Name: ActiveDirectoryStatus.InUse + /// public static NetAppAccountActiveDirectoryStatus InUse { get; } = new NetAppAccountActiveDirectoryStatus(InUseValue); - /// Active Directory Deleted. + /// + /// Active Directory Deleted + /// Serialized Name: ActiveDirectoryStatus.Deleted + /// public static NetAppAccountActiveDirectoryStatus Deleted { get; } = new NetAppAccountActiveDirectoryStatus(DeletedValue); - /// Error with the Active Directory. + /// + /// Error with the Active Directory + /// Serialized Name: ActiveDirectoryStatus.Error + /// public static NetAppAccountActiveDirectoryStatus Error { get; } = new NetAppAccountActiveDirectoryStatus(ErrorValue); - /// Active Directory Updating. + /// + /// Active Directory Updating + /// Serialized Name: ActiveDirectoryStatus.Updating + /// public static NetAppAccountActiveDirectoryStatus Updating { get; } = new NetAppAccountActiveDirectoryStatus(UpdatingValue); /// Determines if two values are the same. public static bool operator ==(NetAppAccountActiveDirectoryStatus left, NetAppAccountActiveDirectoryStatus right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountEncryption.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountEncryption.cs index b5a2ed87f6f5..a641ed0709aa 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountEncryption.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountEncryption.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Encryption settings. + /// + /// Encryption settings + /// Serialized Name: AccountEncryption + /// public partial class NetAppAccountEncryption { /// @@ -51,9 +54,18 @@ public NetAppAccountEncryption() } /// Initializes a new instance of . - /// The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault. - /// Properties provided by KeVault. Applicable if keySource is 'Microsoft.KeyVault'. - /// Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'. + /// + /// The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault + /// Serialized Name: AccountEncryption.keySource + /// + /// + /// Properties provided by KeVault. Applicable if keySource is 'Microsoft.KeyVault'. + /// Serialized Name: AccountEncryption.keyVaultProperties + /// + /// + /// Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'. + /// Serialized Name: AccountEncryption.identity + /// /// Keeps track of any properties unknown to the library. internal NetAppAccountEncryption(NetAppKeySource? keySource, NetAppKeyVaultProperties keyVaultProperties, NetAppEncryptionIdentity identity, IDictionary serializedAdditionalRawData) { @@ -63,11 +75,20 @@ internal NetAppAccountEncryption(NetAppKeySource? keySource, NetAppKeyVaultPrope _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault. + /// + /// The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault + /// Serialized Name: AccountEncryption.keySource + /// public NetAppKeySource? KeySource { get; set; } - /// Properties provided by KeVault. Applicable if keySource is 'Microsoft.KeyVault'. + /// + /// Properties provided by KeVault. Applicable if keySource is 'Microsoft.KeyVault'. + /// Serialized Name: AccountEncryption.keyVaultProperties + /// public NetAppKeyVaultProperties KeyVaultProperties { get; set; } - /// Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'. + /// + /// Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'. + /// Serialized Name: AccountEncryption.identity + /// public NetAppEncryptionIdentity Identity { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.Serialization.cs index 6e7771dfe6c0..fb98a609b60b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(NetAppAccountList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static NetAppAccountList DeserializeNetAppAccountList(JsonElement eleme return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static NetAppAccountList DeserializeNetAppAccountList(JsonElement eleme } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static NetAppAccountList DeserializeNetAppAccountList(JsonElement eleme } } serializedAdditionalRawData = rawDataDictionary; - return new NetAppAccountList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new NetAppAccountList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.cs index 681b09a1f71e..8b877b63d8b9 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of NetApp account resources. + /// + /// List of NetApp account resources + /// Serialized Name: NetAppAccountList + /// internal partial class NetAppAccountList { /// @@ -46,25 +50,49 @@ internal partial class NetAppAccountList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal NetAppAccountList() + /// + /// The NetAppAccount items on this page + /// Serialized Name: NetAppAccountList.value + /// + /// is null. + internal NetAppAccountList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// Multiple NetApp accounts. - /// URL to get the next set of results. + /// + /// The NetAppAccount items on this page + /// Serialized Name: NetAppAccountList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: NetAppAccountList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal NetAppAccountList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal NetAppAccountList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Multiple NetApp accounts. + /// Initializes a new instance of for deserialization. + internal NetAppAccountList() + { + } + + /// + /// The NetAppAccount items on this page + /// Serialized Name: NetAppAccountList.value + /// public IReadOnlyList Value { get; } - /// URL to get the next set of results. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: NetAppAccountList.nextLink + /// + public Uri NextLink { 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 31e075b0f791..bbd7ae68ff22 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 @@ -93,11 +93,6 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("multiAdStatus"u8); writer.WriteStringValue(MultiAdStatus.Value.ToString()); } - if (Optional.IsDefined(LdapConfiguration)) - { - writer.WritePropertyName("ldapConfiguration"u8); - writer.WriteObjectValue(LdapConfiguration, options); - } writer.WriteEndObject(); } @@ -134,7 +129,6 @@ internal static NetAppAccountPatch DeserializeNetAppAccountPatch(JsonElement ele bool? disableShowmount = default; string nfsV4IdDomain = default; MultiAdStatus? multiAdStatus = default; - LdapConfiguration ldapConfiguration = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -257,15 +251,6 @@ internal static NetAppAccountPatch DeserializeNetAppAccountPatch(JsonElement ele multiAdStatus = new MultiAdStatus(property0.Value.GetString()); continue; } - if (property0.NameEquals("ldapConfiguration"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - ldapConfiguration = LdapConfiguration.DeserializeLdapConfiguration(property0.Value, options); - continue; - } } continue; } @@ -289,7 +274,6 @@ internal static NetAppAccountPatch DeserializeNetAppAccountPatch(JsonElement ele disableShowmount, nfsV4IdDomain, multiAdStatus, - ldapConfiguration, serializedAdditionalRawData); } 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 13fc2fa9f160..3ccd20d28a0c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// NetApp account patch resource. + /// + /// NetApp account patch resource + /// Serialized Name: NetAppAccountPatch + /// public partial class NetAppAccountPatch : TrackedResourceData { /// @@ -61,16 +64,36 @@ public NetAppAccountPatch(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// The identity used for the resource. - /// Azure lifecycle management. - /// Active Directories. - /// Encryption settings. - /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. - /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. - /// MultiAD Status for the account. - /// LDAP Configuration for the account. + /// + /// The identity used for the resource. + /// Serialized Name: NetAppAccountPatch.identity + /// + /// + /// Azure lifecycle management + /// Serialized Name: NetAppAccountPatch.properties.provisioningState + /// + /// + /// Active Directories + /// Serialized Name: NetAppAccountPatch.properties.activeDirectories + /// + /// + /// Encryption settings + /// Serialized Name: NetAppAccountPatch.properties.encryption + /// + /// + /// Shows the status of disableShowmount for all volumes under the subscription, null equals false + /// Serialized Name: NetAppAccountPatch.properties.disableShowmount + /// + /// + /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. + /// Serialized Name: NetAppAccountPatch.properties.nfsV4IDDomain + /// + /// + /// MultiAD Status for the account + /// Serialized Name: NetAppAccountPatch.properties.multiAdStatus + /// /// Keeps track of any properties unknown to the library. - internal NetAppAccountPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string provisioningState, IList activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount, string nfsV4IdDomain, MultiAdStatus? multiAdStatus, LdapConfiguration ldapConfiguration, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal NetAppAccountPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string provisioningState, IList activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount, string nfsV4IdDomain, MultiAdStatus? multiAdStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; ProvisioningState = provisioningState; @@ -79,7 +102,6 @@ internal NetAppAccountPatch(ResourceIdentifier id, string name, ResourceType res DisableShowmount = disableShowmount; NfsV4IdDomain = nfsV4IdDomain; MultiAdStatus = multiAdStatus; - LdapConfiguration = ldapConfiguration; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -88,21 +110,40 @@ internal NetAppAccountPatch() { } - /// The identity used for the resource. + /// + /// The identity used for the resource. + /// Serialized Name: NetAppAccountPatch.identity + /// public ManagedServiceIdentity Identity { get; set; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: NetAppAccountPatch.properties.provisioningState + /// public string ProvisioningState { get; } - /// Active Directories. + /// + /// Active Directories + /// Serialized Name: NetAppAccountPatch.properties.activeDirectories + /// public IList ActiveDirectories { get; } - /// Encryption settings. + /// + /// Encryption settings + /// Serialized Name: NetAppAccountPatch.properties.encryption + /// public NetAppAccountEncryption Encryption { get; set; } - /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. + /// + /// Shows the status of disableShowmount for all volumes under the subscription, null equals false + /// Serialized Name: NetAppAccountPatch.properties.disableShowmount + /// public bool? DisableShowmount { get; } - /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. + /// + /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. + /// Serialized Name: NetAppAccountPatch.properties.nfsV4IDDomain + /// public string NfsV4IdDomain { get; set; } - /// MultiAD Status for the account. + /// + /// MultiAD Status for the account + /// Serialized Name: NetAppAccountPatch.properties.multiAdStatus + /// public MultiAdStatus? MultiAdStatus { get; } - /// LDAP Configuration for the account. - public LdapConfiguration LdapConfiguration { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppApplicationType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppApplicationType.cs index b297dd5ebfd6..a8e885cc8428 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppApplicationType.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppApplicationType.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Application Type. + /// + /// Application Type + /// Serialized Name: ApplicationType + /// public readonly partial struct NetAppApplicationType : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NetAppApplicationType(string value) private const string SapHanaValue = "SAP-HANA"; private const string OracleValue = "ORACLE"; - /// SAP-HANA. + /// + /// SAP-HANA + /// Serialized Name: ApplicationType.SAP-HANA + /// public static NetAppApplicationType SapHana { get; } = new NetAppApplicationType(SapHanaValue); - /// ORACLE. + /// + /// ORACLE + /// Serialized Name: ApplicationType.ORACLE + /// public static NetAppApplicationType Oracle { get; } = new NetAppApplicationType(OracleValue); /// Determines if two values are the same. public static bool operator ==(NetAppApplicationType left, NetAppApplicationType right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAvsDataStore.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAvsDataStore.cs index e54f4557bfaa..d743bf15679a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAvsDataStore.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAvsDataStore.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + /// + /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose + /// Serialized Name: AvsDataStore + /// public readonly partial struct NetAppAvsDataStore : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NetAppAvsDataStore(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// avsDataStore is enabled. + /// + /// avsDataStore is enabled + /// Serialized Name: AvsDataStore.Enabled + /// public static NetAppAvsDataStore Enabled { get; } = new NetAppAvsDataStore(EnabledValue); - /// avsDataStore is disabled. + /// + /// avsDataStore is disabled + /// Serialized Name: AvsDataStore.Disabled + /// public static NetAppAvsDataStore Disabled { get; } = new NetAppAvsDataStore(DisabledValue); /// Determines if two values are the same. public static bool operator ==(NetAppAvsDataStore left, NetAppAvsDataStore right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyPatch.cs index 50f2504ee33f..2b48567fb37c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyPatch.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Backup policy Details for create and update. + /// + /// Backup policy Details for create and update + /// Serialized Name: BackupPolicyPatch + /// public partial class NetAppBackupPolicyPatch : TrackedResourceData { /// @@ -61,14 +64,38 @@ public NetAppBackupPolicyPatch(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// Backup Policy GUID ID. - /// Azure lifecycle management. - /// Daily backups count to keep. - /// Weekly backups count to keep. - /// Monthly backups count to keep. - /// Volumes using current backup policy. - /// The property to decide policy is enabled or not. - /// A list of volumes assigned to this policy. + /// + /// Backup Policy GUID ID + /// Serialized Name: BackupPolicyPatch.properties.backupPolicyId + /// + /// + /// Azure lifecycle management + /// Serialized Name: BackupPolicyPatch.properties.provisioningState + /// + /// + /// Daily backups count to keep + /// Serialized Name: BackupPolicyPatch.properties.dailyBackupsToKeep + /// + /// + /// Weekly backups count to keep + /// Serialized Name: BackupPolicyPatch.properties.weeklyBackupsToKeep + /// + /// + /// Monthly backups count to keep + /// Serialized Name: BackupPolicyPatch.properties.monthlyBackupsToKeep + /// + /// + /// Volumes using current backup policy + /// Serialized Name: BackupPolicyPatch.properties.volumesAssigned + /// + /// + /// The property to decide policy is enabled or not + /// Serialized Name: BackupPolicyPatch.properties.enabled + /// + /// + /// A list of volumes assigned to this policy + /// Serialized Name: BackupPolicyPatch.properties.volumeBackups + /// /// Keeps track of any properties unknown to the library. internal NetAppBackupPolicyPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ResourceIdentifier backupPolicyId, string provisioningState, int? dailyBackupsToKeep, int? weeklyBackupsToKeep, int? monthlyBackupsToKeep, int? volumesAssigned, bool? isEnabled, IReadOnlyList volumeBackups, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -88,21 +115,45 @@ internal NetAppBackupPolicyPatch() { } - /// Backup Policy GUID ID. + /// + /// Backup Policy GUID ID + /// Serialized Name: BackupPolicyPatch.properties.backupPolicyId + /// public ResourceIdentifier BackupPolicyId { get; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: BackupPolicyPatch.properties.provisioningState + /// public string ProvisioningState { get; } - /// Daily backups count to keep. + /// + /// Daily backups count to keep + /// Serialized Name: BackupPolicyPatch.properties.dailyBackupsToKeep + /// public int? DailyBackupsToKeep { get; set; } - /// Weekly backups count to keep. + /// + /// Weekly backups count to keep + /// Serialized Name: BackupPolicyPatch.properties.weeklyBackupsToKeep + /// public int? WeeklyBackupsToKeep { get; set; } - /// Monthly backups count to keep. + /// + /// Monthly backups count to keep + /// Serialized Name: BackupPolicyPatch.properties.monthlyBackupsToKeep + /// public int? MonthlyBackupsToKeep { get; set; } - /// Volumes using current backup policy. + /// + /// Volumes using current backup policy + /// Serialized Name: BackupPolicyPatch.properties.volumesAssigned + /// public int? VolumesAssigned { get; } - /// The property to decide policy is enabled or not. + /// + /// The property to decide policy is enabled or not + /// Serialized Name: BackupPolicyPatch.properties.enabled + /// public bool? IsEnabled { get; set; } - /// A list of volumes assigned to this policy. + /// + /// A list of volumes assigned to this policy + /// Serialized Name: BackupPolicyPatch.properties.volumeBackups + /// public IReadOnlyList VolumeBackups { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupType.cs index 7869e20d2d3b..adbab7f55227 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupType.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupType.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Type of backup Manual or Scheduled. + /// + /// Type of backup Manual or Scheduled + /// Serialized Name: BackupType + /// public readonly partial struct NetAppBackupType : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NetAppBackupType(string value) private const string ManualValue = "Manual"; private const string ScheduledValue = "Scheduled"; - /// Manual backup. + /// + /// Manual backup + /// Serialized Name: BackupType.Manual + /// public static NetAppBackupType Manual { get; } = new NetAppBackupType(ManualValue); - /// Scheduled backup. + /// + /// Scheduled backup + /// Serialized Name: BackupType.Scheduled + /// public static NetAppBackupType Scheduled { get; } = new NetAppBackupType(ScheduledValue); /// Determines if two values are the same. public static bool operator ==(NetAppBackupType left, NetAppBackupType right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupVaultBackupPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupVaultBackupPatch.cs index 2f252d764d79..38315fed65c2 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupVaultBackupPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupVaultBackupPatch.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Backup patch. + /// + /// Backup patch + /// Serialized Name: BackupPatch + /// public partial class NetAppBackupVaultBackupPatch { /// @@ -51,7 +54,10 @@ public NetAppBackupVaultBackupPatch() } /// Initializes a new instance of . - /// Label for backup. + /// + /// Label for backup + /// Serialized Name: BackupPatch.properties.label + /// /// Keeps track of any properties unknown to the library. internal NetAppBackupVaultBackupPatch(string label, IDictionary serializedAdditionalRawData) { @@ -59,7 +65,10 @@ internal NetAppBackupVaultBackupPatch(string label, IDictionary Label for backup. + /// + /// Label for backup + /// Serialized Name: BackupPatch.properties.label + /// public string Label { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupVaultPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupVaultPatch.cs index 1816a5b66afe..421524470e3d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupVaultPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupVaultPatch.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Backup Vault information. + /// + /// Backup Vault information + /// Serialized Name: BackupVaultPatch + /// public partial class NetAppBackupVaultPatch { /// @@ -52,7 +55,10 @@ public NetAppBackupVaultPatch() } /// Initializes a new instance of . - /// Resource tags. + /// + /// Resource tags + /// Serialized Name: BackupVaultPatch.tags + /// /// Keeps track of any properties unknown to the library. internal NetAppBackupVaultPatch(IDictionary tags, IDictionary serializedAdditionalRawData) { @@ -60,7 +66,10 @@ internal NetAppBackupVaultPatch(IDictionary tags, IDictionary Resource tags. + /// + /// Resource tags + /// Serialized Name: BackupVaultPatch.tags + /// public IDictionary Tags { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketCredentialStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketCredentialStatus.cs deleted file mode 100644 index 55915982fda1..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketCredentialStatus.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// - /// The bucket credentials status. There states: - /// - /// "NoCredentialsSet": Access and Secret key pair have not been generated. - /// "CredentialsExpired": Access and Secret key pair have expired. - /// "Active": The certificate has been installed and credentials are unexpired. - /// - public readonly partial struct NetAppBucketCredentialStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public NetAppBucketCredentialStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NoCredentialsSetValue = "NoCredentialsSet"; - private const string CredentialsExpiredValue = "CredentialsExpired"; - private const string ActiveValue = "Active"; - - /// Access and Secret key pair have not been generated. - public static NetAppBucketCredentialStatus NoCredentialsSet { get; } = new NetAppBucketCredentialStatus(NoCredentialsSetValue); - /// Access and Secret key pair have expired. - public static NetAppBucketCredentialStatus CredentialsExpired { get; } = new NetAppBucketCredentialStatus(CredentialsExpiredValue); - /// The certificate has been installed on the bucket server and the bucket credentials are unexpired. - public static NetAppBucketCredentialStatus Active { get; } = new NetAppBucketCredentialStatus(ActiveValue); - /// Determines if two values are the same. - public static bool operator ==(NetAppBucketCredentialStatus left, NetAppBucketCredentialStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(NetAppBucketCredentialStatus left, NetAppBucketCredentialStatus right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator NetAppBucketCredentialStatus(string value) => new NetAppBucketCredentialStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is NetAppBucketCredentialStatus other && Equals(other); - /// - public bool Equals(NetAppBucketCredentialStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketFileSystemUser.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketFileSystemUser.Serialization.cs deleted file mode 100644 index 75ce04ee5e66..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketFileSystemUser.Serialization.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - public partial class NetAppBucketFileSystemUser : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketFileSystemUser)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(NfsUser)) - { - writer.WritePropertyName("nfsUser"u8); - writer.WriteObjectValue(NfsUser, options); - } - if (Optional.IsDefined(CifsUser)) - { - writer.WritePropertyName("cifsUser"u8); - writer.WriteObjectValue(CifsUser, options); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - NetAppBucketFileSystemUser IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketFileSystemUser)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetAppBucketFileSystemUser(document.RootElement, options); - } - - internal static NetAppBucketFileSystemUser DeserializeNetAppBucketFileSystemUser(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - NetAppBucketNfsUser nfsUser = default; - CifsUser cifsUser = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("nfsUser"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nfsUser = NetAppBucketNfsUser.DeserializeNetAppBucketNfsUser(property.Value, options); - continue; - } - if (property.NameEquals("cifsUser"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - cifsUser = CifsUser.DeserializeCifsUser(property.Value, options); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NetAppBucketFileSystemUser(nfsUser, cifsUser, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(NetAppBucketFileSystemUser)} does not support writing '{options.Format}' format."); - } - } - - NetAppBucketFileSystemUser IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeNetAppBucketFileSystemUser(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NetAppBucketFileSystemUser)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketFileSystemUser.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketFileSystemUser.cs deleted file mode 100644 index ba753157c396..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketFileSystemUser.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be supplied, but not both. - public partial class NetAppBucketFileSystemUser - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public NetAppBucketFileSystemUser() - { - } - - /// Initializes a new instance of . - /// The effective NFS User ID and Group ID when accessing the volume data. - /// The effective CIFS username when accessing the volume data. - /// Keeps track of any properties unknown to the library. - internal NetAppBucketFileSystemUser(NetAppBucketNfsUser nfsUser, CifsUser cifsUser, IDictionary serializedAdditionalRawData) - { - NfsUser = nfsUser; - CifsUser = cifsUser; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The effective NFS User ID and Group ID when accessing the volume data. - public NetAppBucketNfsUser NfsUser { get; set; } - /// The effective CIFS username when accessing the volume data. - internal CifsUser CifsUser { get; set; } - /// The CIFS user's username. - public string CifsUserUsername - { - get => CifsUser is null ? default : CifsUser.Username; - set - { - if (CifsUser is null) - CifsUser = new CifsUser(); - CifsUser.Username = value; - } - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketGenerateCredentials.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketGenerateCredentials.Serialization.cs deleted file mode 100644 index c643198ae044..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketGenerateCredentials.Serialization.cs +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - public partial class NetAppBucketGenerateCredentials : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketGenerateCredentials)} does not support writing '{format}' format."); - } - - if (options.Format != "W" && Optional.IsDefined(AccessKey)) - { - writer.WritePropertyName("accessKey"u8); - writer.WriteStringValue(AccessKey); - } - if (options.Format != "W" && Optional.IsDefined(SecretKey)) - { - writer.WritePropertyName("secretKey"u8); - writer.WriteStringValue(SecretKey); - } - if (options.Format != "W" && Optional.IsDefined(KeyPairExpiry)) - { - writer.WritePropertyName("keyPairExpiry"u8); - writer.WriteStringValue(KeyPairExpiry.Value, "O"); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - NetAppBucketGenerateCredentials IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketGenerateCredentials)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetAppBucketGenerateCredentials(document.RootElement, options); - } - - internal static NetAppBucketGenerateCredentials DeserializeNetAppBucketGenerateCredentials(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string accessKey = default; - string secretKey = default; - DateTimeOffset? keyPairExpiry = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("accessKey"u8)) - { - accessKey = property.Value.GetString(); - continue; - } - if (property.NameEquals("secretKey"u8)) - { - secretKey = property.Value.GetString(); - continue; - } - if (property.NameEquals("keyPairExpiry"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - keyPairExpiry = property.Value.GetDateTimeOffset("O"); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NetAppBucketGenerateCredentials(accessKey, secretKey, keyPairExpiry, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(NetAppBucketGenerateCredentials)} does not support writing '{options.Format}' format."); - } - } - - NetAppBucketGenerateCredentials IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeNetAppBucketGenerateCredentials(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NetAppBucketGenerateCredentials)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketGenerateCredentials.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketGenerateCredentials.cs deleted file mode 100644 index e37c94e2c3b4..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketGenerateCredentials.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Bucket Access Key, Secret Key, and Expiry date and time of the key pair. - public partial class NetAppBucketGenerateCredentials - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal NetAppBucketGenerateCredentials() - { - } - - /// Initializes a new instance of . - /// The Access Key that is required along with the Secret Key to access the bucket. - /// The Secret Key that is required along with the Access Key to access the bucket. - /// The bucket's Access and Secret key pair expiry date and time (in UTC). - /// Keeps track of any properties unknown to the library. - internal NetAppBucketGenerateCredentials(string accessKey, string secretKey, DateTimeOffset? keyPairExpiry, IDictionary serializedAdditionalRawData) - { - AccessKey = accessKey; - SecretKey = secretKey; - KeyPairExpiry = keyPairExpiry; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The Access Key that is required along with the Secret Key to access the bucket. - public string AccessKey { get; } - /// The Secret Key that is required along with the Access Key to access the bucket. - public string SecretKey { get; } - /// The bucket's Access and Secret key pair expiry date and time (in UTC). - public DateTimeOffset? KeyPairExpiry { get; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketList.Serialization.cs deleted file mode 100644 index 325b42c2c31a..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketList.Serialization.cs +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - internal partial class NetAppBucketList : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketList)} does not support writing '{format}' format."); - } - - if (Optional.IsCollectionDefined(Value)) - { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - NetAppBucketList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketList)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetAppBucketList(document.RootElement, options); - } - - internal static NetAppBucketList DeserializeNetAppBucketList(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList value = default; - string nextLink = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(NetAppBucketData.DeserializeNetAppBucketData(item, options)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink"u8)) - { - nextLink = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NetAppBucketList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(NetAppBucketList)} does not support writing '{options.Format}' format."); - } - } - - NetAppBucketList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeNetAppBucketList(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NetAppBucketList)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketList.cs deleted file mode 100644 index 995af7fa4c4f..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketList.cs +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// List of volume bucket resources. - internal partial class NetAppBucketList - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal NetAppBucketList() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// List of volume buckets. - /// URL to get the next set of results. - /// Keeps track of any properties unknown to the library. - internal NetAppBucketList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) - { - Value = value; - NextLink = nextLink; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// List of volume buckets. - public IReadOnlyList Value { get; } - /// URL to get the next set of results. - public string NextLink { get; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketNfsUser.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketNfsUser.Serialization.cs deleted file mode 100644 index 4991ab77a5de..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketNfsUser.Serialization.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - public partial class NetAppBucketNfsUser : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketNfsUser)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(UserId)) - { - writer.WritePropertyName("userId"u8); - writer.WriteNumberValue(UserId.Value); - } - if (Optional.IsDefined(GroupId)) - { - writer.WritePropertyName("groupId"u8); - writer.WriteNumberValue(GroupId.Value); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - NetAppBucketNfsUser IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketNfsUser)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetAppBucketNfsUser(document.RootElement, options); - } - - internal static NetAppBucketNfsUser DeserializeNetAppBucketNfsUser(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - long? userId = default; - long? groupId = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("userId"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - userId = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("groupId"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - groupId = property.Value.GetInt64(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NetAppBucketNfsUser(userId, groupId, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(NetAppBucketNfsUser)} does not support writing '{options.Format}' format."); - } - } - - NetAppBucketNfsUser IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeNetAppBucketNfsUser(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NetAppBucketNfsUser)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketNfsUser.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketNfsUser.cs deleted file mode 100644 index 898ed0c2514a..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketNfsUser.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// The effective NFS User ID and Group ID when accessing the volume data. - public partial class NetAppBucketNfsUser - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public NetAppBucketNfsUser() - { - } - - /// Initializes a new instance of . - /// The NFS user's UID. - /// The NFS user's GID. - /// Keeps track of any properties unknown to the library. - internal NetAppBucketNfsUser(long? userId, long? groupId, IDictionary serializedAdditionalRawData) - { - UserId = userId; - GroupId = groupId; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The NFS user's UID. - public long? UserId { get; set; } - /// The NFS user's GID. - public long? GroupId { get; set; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPatch.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPatch.Serialization.cs deleted file mode 100644 index dc5b26b31111..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPatch.Serialization.cs +++ /dev/null @@ -1,230 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.NetApp.Models -{ - public partial class NetAppBucketPatch : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketPatch)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(Path)) - { - writer.WritePropertyName("path"u8); - writer.WriteStringValue(Path); - } - if (Optional.IsDefined(FileSystemUser)) - { - writer.WritePropertyName("fileSystemUser"u8); - writer.WriteObjectValue(FileSystemUser, options); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); - } - if (Optional.IsDefined(Server)) - { - writer.WritePropertyName("server"u8); - writer.WriteObjectValue(Server, options); - } - if (Optional.IsDefined(Permissions)) - { - writer.WritePropertyName("permissions"u8); - writer.WriteStringValue(Permissions.Value.ToString()); - } - writer.WriteEndObject(); - } - - NetAppBucketPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketPatch)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetAppBucketPatch(document.RootElement, options); - } - - internal static NetAppBucketPatch DeserializeNetAppBucketPatch(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - string path = default; - NetAppBucketFileSystemUser fileSystemUser = default; - NetAppProvisioningState? provisioningState = default; - NetAppBucketServerPatchProperties server = default; - NetAppBucketPatchPermission? permissions = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerNetAppContext.Default); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("path"u8)) - { - path = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("fileSystemUser"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - fileSystemUser = NetAppBucketFileSystemUser.DeserializeNetAppBucketFileSystemUser(property0.Value, options); - continue; - } - if (property0.NameEquals("provisioningState"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = property0.Value.GetString().ToNetAppProvisioningState(); - continue; - } - if (property0.NameEquals("server"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - server = NetAppBucketServerPatchProperties.DeserializeNetAppBucketServerPatchProperties(property0.Value, options); - continue; - } - if (property0.NameEquals("permissions"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - permissions = new NetAppBucketPatchPermission(property0.Value.GetString()); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NetAppBucketPatch( - id, - name, - type, - systemData, - path, - fileSystemUser, - provisioningState, - server, - permissions, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(NetAppBucketPatch)} does not support writing '{options.Format}' format."); - } - } - - NetAppBucketPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeNetAppBucketPatch(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NetAppBucketPatch)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPatch.cs deleted file mode 100644 index 32c01890a14a..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPatch.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Bucket resource. - public partial class NetAppBucketPatch : ResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public NetAppBucketPatch() - { - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The volume path mounted inside the bucket. - /// File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be supplied, but not both. - /// Provisioning state of the resource. - /// Properties of the server managing the lifecycle of volume buckets. - /// Access permissions for the bucket. Either ReadOnly or ReadWrite. - /// Keeps track of any properties unknown to the library. - internal NetAppBucketPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string path, NetAppBucketFileSystemUser fileSystemUser, NetAppProvisioningState? provisioningState, NetAppBucketServerPatchProperties server, NetAppBucketPatchPermission? permissions, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - Path = path; - FileSystemUser = fileSystemUser; - ProvisioningState = provisioningState; - Server = server; - Permissions = permissions; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The volume path mounted inside the bucket. - public string Path { get; set; } - /// File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be supplied, but not both. - public NetAppBucketFileSystemUser FileSystemUser { get; set; } - /// Provisioning state of the resource. - public NetAppProvisioningState? ProvisioningState { get; } - /// Properties of the server managing the lifecycle of volume buckets. - public NetAppBucketServerPatchProperties Server { get; set; } - /// Access permissions for the bucket. Either ReadOnly or ReadWrite. - public NetAppBucketPatchPermission? Permissions { get; set; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPatchPermission.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPatchPermission.cs deleted file mode 100644 index c0230c983b0f..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPatchPermission.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Access permissions for the bucket. Either ReadOnly or ReadWrite. - public readonly partial struct NetAppBucketPatchPermission : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public NetAppBucketPatchPermission(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ReadOnlyValue = "ReadOnly"; - private const string ReadWriteValue = "ReadWrite"; - - /// Read-only access to bucket. - public static NetAppBucketPatchPermission ReadOnly { get; } = new NetAppBucketPatchPermission(ReadOnlyValue); - /// Read-write access to bucket. - public static NetAppBucketPatchPermission ReadWrite { get; } = new NetAppBucketPatchPermission(ReadWriteValue); - /// Determines if two values are the same. - public static bool operator ==(NetAppBucketPatchPermission left, NetAppBucketPatchPermission right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(NetAppBucketPatchPermission left, NetAppBucketPatchPermission right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator NetAppBucketPatchPermission(string value) => new NetAppBucketPatchPermission(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is NetAppBucketPatchPermission other && Equals(other); - /// - public bool Equals(NetAppBucketPatchPermission other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPermission.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPermission.cs deleted file mode 100644 index 4847072ebdad..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketPermission.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is ReadOnly if no value is provided during bucket creation. - public readonly partial struct NetAppBucketPermission : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public NetAppBucketPermission(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ReadOnlyValue = "ReadOnly"; - private const string ReadWriteValue = "ReadWrite"; - - /// Read-only access to bucket. - public static NetAppBucketPermission ReadOnly { get; } = new NetAppBucketPermission(ReadOnlyValue); - /// Read-write access to bucket. - public static NetAppBucketPermission ReadWrite { get; } = new NetAppBucketPermission(ReadWriteValue); - /// Determines if two values are the same. - public static bool operator ==(NetAppBucketPermission left, NetAppBucketPermission right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(NetAppBucketPermission left, NetAppBucketPermission right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator NetAppBucketPermission(string value) => new NetAppBucketPermission(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is NetAppBucketPermission other && Equals(other); - /// - public bool Equals(NetAppBucketPermission other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerPatchProperties.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerPatchProperties.Serialization.cs deleted file mode 100644 index 7f99e790fe38..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerPatchProperties.Serialization.cs +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - public partial class NetAppBucketServerPatchProperties : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketServerPatchProperties)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(Fqdn)) - { - writer.WritePropertyName("fqdn"u8); - writer.WriteStringValue(Fqdn); - } - if (Optional.IsDefined(CertificateObject)) - { - writer.WritePropertyName("certificateObject"u8); - writer.WriteStringValue(CertificateObject); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - NetAppBucketServerPatchProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketServerPatchProperties)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetAppBucketServerPatchProperties(document.RootElement, options); - } - - internal static NetAppBucketServerPatchProperties DeserializeNetAppBucketServerPatchProperties(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string fqdn = default; - string certificateObject = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("fqdn"u8)) - { - fqdn = property.Value.GetString(); - continue; - } - if (property.NameEquals("certificateObject"u8)) - { - certificateObject = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NetAppBucketServerPatchProperties(fqdn, certificateObject, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(NetAppBucketServerPatchProperties)} does not support writing '{options.Format}' format."); - } - } - - NetAppBucketServerPatchProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeNetAppBucketServerPatchProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NetAppBucketServerPatchProperties)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerPatchProperties.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerPatchProperties.cs deleted file mode 100644 index 889123334809..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerPatchProperties.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Properties of the server managing the lifecycle of volume buckets. - public partial class NetAppBucketServerPatchProperties - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public NetAppBucketServerPatchProperties() - { - } - - /// Initializes a new instance of . - /// The host part of the bucket URL, resolving to the bucket IP address and allowed by the server certificate. - /// A base64-encoded PEM file, which includes both the bucket server's certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only manner. - /// Keeps track of any properties unknown to the library. - internal NetAppBucketServerPatchProperties(string fqdn, string certificateObject, IDictionary serializedAdditionalRawData) - { - Fqdn = fqdn; - CertificateObject = certificateObject; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The host part of the bucket URL, resolving to the bucket IP address and allowed by the server certificate. - public string Fqdn { get; set; } - /// A base64-encoded PEM file, which includes both the bucket server's certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only manner. - public string CertificateObject { get; set; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerProperties.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerProperties.Serialization.cs deleted file mode 100644 index 97e793b890e2..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerProperties.Serialization.cs +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - public partial class NetAppBucketServerProperties : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketServerProperties)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(Fqdn)) - { - writer.WritePropertyName("fqdn"u8); - writer.WriteStringValue(Fqdn); - } - if (options.Format != "W" && Optional.IsDefined(CertificateCommonName)) - { - writer.WritePropertyName("certificateCommonName"u8); - writer.WriteStringValue(CertificateCommonName); - } - if (options.Format != "W" && Optional.IsDefined(CertificateExpiryOn)) - { - writer.WritePropertyName("certificateExpiryDate"u8); - writer.WriteStringValue(CertificateExpiryOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(IPAddress)) - { - writer.WritePropertyName("ipAddress"u8); - writer.WriteStringValue(IPAddress); - } - if (Optional.IsDefined(CertificateObject)) - { - writer.WritePropertyName("certificateObject"u8); - writer.WriteStringValue(CertificateObject); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - NetAppBucketServerProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketServerProperties)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetAppBucketServerProperties(document.RootElement, options); - } - - internal static NetAppBucketServerProperties DeserializeNetAppBucketServerProperties(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string fqdn = default; - string certificateCommonName = default; - DateTimeOffset? certificateExpiryDate = default; - string ipAddress = default; - string certificateObject = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("fqdn"u8)) - { - fqdn = property.Value.GetString(); - continue; - } - if (property.NameEquals("certificateCommonName"u8)) - { - certificateCommonName = property.Value.GetString(); - continue; - } - if (property.NameEquals("certificateExpiryDate"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - certificateExpiryDate = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("ipAddress"u8)) - { - ipAddress = property.Value.GetString(); - continue; - } - if (property.NameEquals("certificateObject"u8)) - { - certificateObject = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NetAppBucketServerProperties( - fqdn, - certificateCommonName, - certificateExpiryDate, - ipAddress, - certificateObject, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(NetAppBucketServerProperties)} does not support writing '{options.Format}' format."); - } - } - - NetAppBucketServerProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeNetAppBucketServerProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NetAppBucketServerProperties)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerProperties.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerProperties.cs deleted file mode 100644 index 44290ed3d86a..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBucketServerProperties.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Properties of the server managing the lifecycle of volume buckets. - public partial class NetAppBucketServerProperties - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public NetAppBucketServerProperties() - { - } - - /// Initializes a new instance of . - /// The host part of the bucket URL, resolving to the bucket IP address and allowed by the server certificate. - /// Certificate Common Name taken from the certificate installed on the bucket server. - /// The bucket server's certificate expiry date. - /// The bucket server's IPv4 address. - /// A base64-encoded PEM file, which includes both the bucket server's certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only manner. - /// Keeps track of any properties unknown to the library. - internal NetAppBucketServerProperties(string fqdn, string certificateCommonName, DateTimeOffset? certificateExpiryOn, string ipAddress, string certificateObject, IDictionary serializedAdditionalRawData) - { - Fqdn = fqdn; - CertificateCommonName = certificateCommonName; - CertificateExpiryOn = certificateExpiryOn; - IPAddress = ipAddress; - CertificateObject = certificateObject; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The host part of the bucket URL, resolving to the bucket IP address and allowed by the server certificate. - public string Fqdn { get; set; } - /// Certificate Common Name taken from the certificate installed on the bucket server. - public string CertificateCommonName { get; } - /// The bucket server's certificate expiry date. - public DateTimeOffset? CertificateExpiryOn { get; } - /// The bucket server's IPv4 address. - public string IPAddress { get; } - /// A base64-encoded PEM file, which includes both the bucket server's certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only manner. - public string CertificateObject { get; set; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppChangeKeyVault.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppChangeKeyVault.cs index e3bdfad1ab63..e61336fae289 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppChangeKeyVault.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppChangeKeyVault.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Change key vault request. + /// + /// Change key vault request + /// Serialized Name: ChangeKeyVault + /// public partial class NetAppChangeKeyVault { /// @@ -48,9 +51,18 @@ public partial class NetAppChangeKeyVault private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The URI of the key vault/managed HSM that should be used for encryption. - /// The name of the key that should be used for encryption. - /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// + /// The URI of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: ChangeKeyVault.keyVaultUri + /// + /// + /// The name of the key that should be used for encryption. + /// Serialized Name: ChangeKeyVault.keyName + /// + /// + /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// Serialized Name: ChangeKeyVault.keyVaultPrivateEndpoints + /// /// , or is null. public NetAppChangeKeyVault(Uri keyVaultUri, string keyName, IEnumerable keyVaultPrivateEndpoints) { @@ -64,10 +76,22 @@ public NetAppChangeKeyVault(Uri keyVaultUri, string keyName, IEnumerable Initializes a new instance of . - /// The URI of the key vault/managed HSM that should be used for encryption. - /// The name of the key that should be used for encryption. - /// Azure resource ID of the key vault/managed HSM that should be used for encryption. - /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// + /// The URI of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: ChangeKeyVault.keyVaultUri + /// + /// + /// The name of the key that should be used for encryption. + /// Serialized Name: ChangeKeyVault.keyName + /// + /// + /// Azure resource ID of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: ChangeKeyVault.keyVaultResourceId + /// + /// + /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// Serialized Name: ChangeKeyVault.keyVaultPrivateEndpoints + /// /// Keeps track of any properties unknown to the library. internal NetAppChangeKeyVault(Uri keyVaultUri, string keyName, ResourceIdentifier keyVaultResourceId, IList keyVaultPrivateEndpoints, IDictionary serializedAdditionalRawData) { @@ -83,13 +107,25 @@ internal NetAppChangeKeyVault() { } - /// The URI of the key vault/managed HSM that should be used for encryption. + /// + /// The URI of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: ChangeKeyVault.keyVaultUri + /// public Uri KeyVaultUri { get; } - /// The name of the key that should be used for encryption. + /// + /// The name of the key that should be used for encryption. + /// Serialized Name: ChangeKeyVault.keyName + /// public string KeyName { get; } - /// Azure resource ID of the key vault/managed HSM that should be used for encryption. + /// + /// Azure resource ID of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: ChangeKeyVault.keyVaultResourceId + /// public ResourceIdentifier KeyVaultResourceId { get; set; } - /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// + /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// Serialized Name: ChangeKeyVault.keyVaultPrivateEndpoints + /// public IList KeyVaultPrivateEndpoints { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppCheckAvailabilityResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppCheckAvailabilityResult.cs index 5f0f8e0bf81b..9e01d6256e6b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppCheckAvailabilityResult.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppCheckAvailabilityResult.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Information regarding availability of a resource. + /// + /// Information regarding availability of a resource. + /// Serialized Name: CheckAvailabilityResponse + /// public partial class NetAppCheckAvailabilityResult { /// @@ -51,9 +54,18 @@ internal NetAppCheckAvailabilityResult() } /// Initializes a new instance of . - /// <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both. - /// <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. - /// If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name. + /// + /// <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both. + /// Serialized Name: CheckAvailabilityResponse.isAvailable + /// + /// + /// <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. + /// Serialized Name: CheckAvailabilityResponse.reason + /// + /// + /// If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name. + /// Serialized Name: CheckAvailabilityResponse.message + /// /// Keeps track of any properties unknown to the library. internal NetAppCheckAvailabilityResult(bool? isAvailable, NetAppNameUnavailableReason? reason, string message, IDictionary serializedAdditionalRawData) { @@ -63,11 +75,20 @@ internal NetAppCheckAvailabilityResult(bool? isAvailable, NetAppNameUnavailableR _serializedAdditionalRawData = serializedAdditionalRawData; } - /// <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both. + /// + /// <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both. + /// Serialized Name: CheckAvailabilityResponse.isAvailable + /// public bool? IsAvailable { get; } - /// <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. + /// + /// <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. + /// Serialized Name: CheckAvailabilityResponse.reason + /// public NetAppNameUnavailableReason? Reason { get; } - /// If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name. + /// + /// If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name. + /// Serialized Name: CheckAvailabilityResponse.message + /// public string Message { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppChownMode.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppChownMode.cs index b55f26f7902a..628f5a2ab763 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppChownMode.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppChownMode.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change ownership of files that they own. + /// + /// This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change ownership of files that they own. + /// Serialized Name: ChownMode + /// public readonly partial struct NetAppChownMode : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NetAppChownMode(string value) private const string RestrictedValue = "Restricted"; private const string UnrestrictedValue = "Unrestricted"; - /// Restricted. + /// + /// Restricted + /// Serialized Name: ChownMode.Restricted + /// public static NetAppChownMode Restricted { get; } = new NetAppChownMode(RestrictedValue); - /// Unrestricted. + /// + /// Unrestricted + /// Serialized Name: ChownMode.Unrestricted + /// public static NetAppChownMode Unrestricted { get; } = new NetAppChownMode(UnrestrictedValue); /// Determines if two values are the same. public static bool operator ==(NetAppChownMode left, NetAppChownMode right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppDestinationReplication.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppDestinationReplication.cs index 3f011d4a4fce..e7150fe72ffe 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppDestinationReplication.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppDestinationReplication.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Destination replication properties. + /// + /// Destination replication properties + /// Serialized Name: DestinationReplication + /// public partial class NetAppDestinationReplication { /// @@ -52,10 +55,22 @@ internal NetAppDestinationReplication() } /// Initializes a new instance of . - /// The resource ID of the remote volume. - /// Indicates whether the replication is cross zone or cross region. - /// The remote region for the destination volume. - /// The remote zone for the destination volume. + /// + /// The resource ID of the remote volume + /// Serialized Name: DestinationReplication.resourceId + /// + /// + /// Indicates whether the replication is cross zone or cross region. + /// Serialized Name: DestinationReplication.replicationType + /// + /// + /// The remote region for the destination volume. + /// Serialized Name: DestinationReplication.region + /// + /// + /// The remote zone for the destination volume. + /// Serialized Name: DestinationReplication.zone + /// /// Keeps track of any properties unknown to the library. internal NetAppDestinationReplication(ResourceIdentifier resourceId, NetAppReplicationType? replicationType, string region, string zone, IDictionary serializedAdditionalRawData) { @@ -66,13 +81,25 @@ internal NetAppDestinationReplication(ResourceIdentifier resourceId, NetAppRepli _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The resource ID of the remote volume. + /// + /// The resource ID of the remote volume + /// Serialized Name: DestinationReplication.resourceId + /// public ResourceIdentifier ResourceId { get; } - /// Indicates whether the replication is cross zone or cross region. + /// + /// Indicates whether the replication is cross zone or cross region. + /// Serialized Name: DestinationReplication.replicationType + /// public NetAppReplicationType? ReplicationType { get; } - /// The remote region for the destination volume. + /// + /// The remote region for the destination volume. + /// Serialized Name: DestinationReplication.region + /// public string Region { get; } - /// The remote zone for the destination volume. + /// + /// The remote zone for the destination volume. + /// Serialized Name: DestinationReplication.zone + /// public string Zone { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionIdentity.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionIdentity.cs index 40984f9d9a7b..dc2f89a620e2 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionIdentity.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionIdentity.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Identity used to authenticate with key vault. + /// + /// Identity used to authenticate with key vault. + /// Serialized Name: EncryptionIdentity + /// public partial class NetAppEncryptionIdentity { /// @@ -51,9 +54,18 @@ public NetAppEncryptionIdentity() } /// Initializes a new instance of . - /// The principal ID (object ID) of the identity used to authenticate with key vault. Read-only. - /// The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities. - /// ClientId of the multi-tenant AAD Application. Used to access cross-tenant KeyVaults. + /// + /// The principal ID (object ID) of the identity used to authenticate with key vault. Read-only. + /// Serialized Name: EncryptionIdentity.principalId + /// + /// + /// The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities. + /// Serialized Name: EncryptionIdentity.userAssignedIdentity + /// + /// + /// ClientId of the multi-tenant AAD Application. Used to access cross-tenant keyvaults. + /// Serialized Name: EncryptionIdentity.federatedClientId + /// /// Keeps track of any properties unknown to the library. internal NetAppEncryptionIdentity(string principalId, string userAssignedIdentity, string federatedClientId, IDictionary serializedAdditionalRawData) { @@ -63,11 +75,20 @@ internal NetAppEncryptionIdentity(string principalId, string userAssignedIdentit _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The principal ID (object ID) of the identity used to authenticate with key vault. Read-only. + /// + /// The principal ID (object ID) of the identity used to authenticate with key vault. Read-only. + /// Serialized Name: EncryptionIdentity.principalId + /// public string PrincipalId { get; } - /// The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities. + /// + /// The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities. + /// Serialized Name: EncryptionIdentity.userAssignedIdentity + /// public string UserAssignedIdentity { get; set; } - /// ClientId of the multi-tenant AAD Application. Used to access cross-tenant KeyVaults. + /// + /// ClientId of the multi-tenant AAD Application. Used to access cross-tenant keyvaults. + /// Serialized Name: EncryptionIdentity.federatedClientId + /// public string FederatedClientId { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionKeySource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionKeySource.cs index d92194bc74b4..bfca5fcb314a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionKeySource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionKeySource.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// 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'. + /// + /// 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' + /// Serialized Name: EncryptionKeySource + /// public readonly partial struct NetAppEncryptionKeySource : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NetAppEncryptionKeySource(string value) private const string MicrosoftNetAppValue = "Microsoft.NetApp"; private const string MicrosoftKeyVaultValue = "Microsoft.KeyVault"; - /// Microsoft-managed key encryption. + /// + /// Microsoft-managed key encryption + /// Serialized Name: EncryptionKeySource.Microsoft.NetApp + /// public static NetAppEncryptionKeySource MicrosoftNetApp { get; } = new NetAppEncryptionKeySource(MicrosoftNetAppValue); - /// Customer-managed key encryption. + /// + /// Customer-managed key encryption + /// Serialized Name: EncryptionKeySource.Microsoft.KeyVault + /// public static NetAppEncryptionKeySource MicrosoftKeyVault { get; } = new NetAppEncryptionKeySource(MicrosoftKeyVaultValue); /// Determines if two values are the same. public static bool operator ==(NetAppEncryptionKeySource left, NetAppEncryptionKeySource right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionTransitionContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionTransitionContent.cs index d2dd283f2806..655e982f6bde 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionTransitionContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEncryptionTransitionContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Encryption transition request. + /// + /// Encryption transition request + /// Serialized Name: EncryptionTransitionRequest + /// public partial class NetAppEncryptionTransitionContent { /// @@ -47,8 +50,14 @@ public partial class NetAppEncryptionTransitionContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Identifier for the virtual network. - /// Identifier of the private endpoint to reach the Azure Key Vault. + /// + /// Identifier for the virtual network + /// Serialized Name: EncryptionTransitionRequest.virtualNetworkId + /// + /// + /// Identifier of the private endpoint to reach the Azure Key Vault + /// Serialized Name: EncryptionTransitionRequest.privateEndpointId + /// /// or is null. public NetAppEncryptionTransitionContent(ResourceIdentifier virtualNetworkId, ResourceIdentifier privateEndpointId) { @@ -60,8 +69,14 @@ public NetAppEncryptionTransitionContent(ResourceIdentifier virtualNetworkId, Re } /// Initializes a new instance of . - /// Identifier for the virtual network. - /// Identifier of the private endpoint to reach the Azure Key Vault. + /// + /// Identifier for the virtual network + /// Serialized Name: EncryptionTransitionRequest.virtualNetworkId + /// + /// + /// Identifier of the private endpoint to reach the Azure Key Vault + /// Serialized Name: EncryptionTransitionRequest.privateEndpointId + /// /// Keeps track of any properties unknown to the library. internal NetAppEncryptionTransitionContent(ResourceIdentifier virtualNetworkId, ResourceIdentifier privateEndpointId, IDictionary serializedAdditionalRawData) { @@ -75,9 +90,15 @@ internal NetAppEncryptionTransitionContent() { } - /// Identifier for the virtual network. + /// + /// Identifier for the virtual network + /// Serialized Name: EncryptionTransitionRequest.virtualNetworkId + /// public ResourceIdentifier VirtualNetworkId { get; } - /// Identifier of the private endpoint to reach the Azure Key Vault. + /// + /// Identifier of the private endpoint to reach the Azure Key Vault + /// Serialized Name: EncryptionTransitionRequest.privateEndpointId + /// public ResourceIdentifier PrivateEndpointId { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEndpointType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEndpointType.cs index b6288a94dd57..37ef9bea316b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEndpointType.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppEndpointType.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Indicates whether the local volume is the source or destination for the Volume Replication. + /// + /// Indicates whether the local volume is the source or destination for the Volume Replication + /// Serialized Name: EndpointType + /// public readonly partial struct NetAppEndpointType : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NetAppEndpointType(string value) private const string SourceValue = "src"; private const string DestinationValue = "dst"; - /// src. + /// + /// src + /// Serialized Name: EndpointType.src + /// public static NetAppEndpointType Source { get; } = new NetAppEndpointType(SourceValue); - /// dst. + /// + /// dst + /// Serialized Name: EndpointType.dst + /// public static NetAppEndpointType Destination { get; } = new NetAppEndpointType(DestinationValue); /// Determines if two values are the same. public static bool operator ==(NetAppEndpointType left, NetAppEndpointType right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFileAccessLog.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFileAccessLog.cs index f30febad8cb1..3240afdc9364 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFileAccessLog.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFileAccessLog.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// + /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// Serialized Name: FileAccessLogs + /// public readonly partial struct NetAppFileAccessLog : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NetAppFileAccessLog(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// fileAccessLogs are enabled. + /// + /// fileAccessLogs are enabled + /// Serialized Name: FileAccessLogs.Enabled + /// public static NetAppFileAccessLog Enabled { get; } = new NetAppFileAccessLog(EnabledValue); - /// fileAccessLogs are not enabled. + /// + /// fileAccessLogs are not enabled + /// Serialized Name: FileAccessLogs.Disabled + /// public static NetAppFileAccessLog Disabled { get; } = new NetAppFileAccessLog(DisabledValue); /// Determines if two values are the same. public static bool operator ==(NetAppFileAccessLog left, NetAppFileAccessLog right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFilePathAvailabilityContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFilePathAvailabilityContent.cs index 049048b3767e..db6a5df6e941 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFilePathAvailabilityContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFilePathAvailabilityContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// File path availability request content - availability is based on the name and the subnetId. + /// + /// File path availability request content - availability is based on the name and the subnetId. + /// Serialized Name: FilePathAvailabilityRequest + /// public partial class NetAppFilePathAvailabilityContent { /// @@ -47,8 +50,14 @@ public partial class NetAppFilePathAvailabilityContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// File path to verify. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. + /// + /// File path to verify. + /// Serialized Name: FilePathAvailabilityRequest.name + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: FilePathAvailabilityRequest.subnetId + /// /// or is null. public NetAppFilePathAvailabilityContent(string name, ResourceIdentifier subnetId) { @@ -60,9 +69,18 @@ public NetAppFilePathAvailabilityContent(string name, ResourceIdentifier subnetI } /// Initializes a new instance of . - /// File path to verify. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone where volume is placed. + /// + /// File path to verify. + /// Serialized Name: FilePathAvailabilityRequest.name + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: FilePathAvailabilityRequest.subnetId + /// + /// + /// The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone where volume is placed. + /// Serialized Name: FilePathAvailabilityRequest.availabilityZone + /// /// Keeps track of any properties unknown to the library. internal NetAppFilePathAvailabilityContent(string name, ResourceIdentifier subnetId, string availabilityZone, IDictionary serializedAdditionalRawData) { @@ -77,11 +95,20 @@ internal NetAppFilePathAvailabilityContent() { } - /// File path to verify. + /// + /// File path to verify. + /// Serialized Name: FilePathAvailabilityRequest.name + /// public string Name { get; } - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: FilePathAvailabilityRequest.subnetId + /// public ResourceIdentifier SubnetId { get; } - /// The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone where volume is placed. + /// + /// The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone where volume is placed. + /// Serialized Name: FilePathAvailabilityRequest.availabilityZone + /// public string AvailabilityZone { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFileServiceLevel.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFileServiceLevel.cs index 9b8cec9c1600..a37e05e689ba 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFileServiceLevel.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppFileServiceLevel.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// The service level of the file system. + /// + /// The service level of the file system + /// Serialized Name: ServiceLevel + /// public readonly partial struct NetAppFileServiceLevel : IEquatable { private readonly string _value; @@ -28,15 +31,30 @@ public NetAppFileServiceLevel(string value) private const string StandardZrsValue = "StandardZRS"; private const string FlexibleValue = "Flexible"; - /// Standard service level. + /// + /// Standard service level + /// Serialized Name: ServiceLevel.Standard + /// public static NetAppFileServiceLevel Standard { get; } = new NetAppFileServiceLevel(StandardValue); - /// Premium service level. + /// + /// Premium service level + /// Serialized Name: ServiceLevel.Premium + /// public static NetAppFileServiceLevel Premium { get; } = new NetAppFileServiceLevel(PremiumValue); - /// Ultra service level. + /// + /// Ultra service level + /// Serialized Name: ServiceLevel.Ultra + /// public static NetAppFileServiceLevel Ultra { get; } = new NetAppFileServiceLevel(UltraValue); - /// Zone redundant storage service level. This will be deprecated soon. + /// + /// Zone redundant storage service level. This will be deprecated soon. + /// Serialized Name: ServiceLevel.StandardZRS + /// public static NetAppFileServiceLevel StandardZrs { get; } = new NetAppFileServiceLevel(StandardZrsValue); - /// Flexible service level. + /// + /// Flexible service level + /// Serialized Name: ServiceLevel.Flexible + /// public static NetAppFileServiceLevel Flexible { get; } = new NetAppFileServiceLevel(FlexibleValue); /// Determines if two values are the same. public static bool operator ==(NetAppFileServiceLevel left, NetAppFileServiceLevel right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeySource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeySource.cs index 9682041ae757..1874eb31a186 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeySource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeySource.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault. + /// + /// The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault + /// Serialized Name: KeySource + /// public readonly partial struct NetAppKeySource : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NetAppKeySource(string value) private const string MicrosoftNetAppValue = "Microsoft.NetApp"; private const string MicrosoftKeyVaultValue = "Microsoft.KeyVault"; - /// Microsoft-managed key encryption. + /// + /// Microsoft-managed key encryption + /// Serialized Name: KeySource.Microsoft.NetApp + /// public static NetAppKeySource MicrosoftNetApp { get; } = new NetAppKeySource(MicrosoftNetAppValue); - /// Customer-managed key encryption. + /// + /// Customer-managed key encryption + /// Serialized Name: KeySource.Microsoft.KeyVault + /// public static NetAppKeySource MicrosoftKeyVault { get; } = new NetAppKeySource(MicrosoftKeyVaultValue); /// Determines if two values are the same. public static bool operator ==(NetAppKeySource left, NetAppKeySource right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultPrivateEndpoint.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultPrivateEndpoint.cs index 5353f22857c5..eb2209dc3842 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultPrivateEndpoint.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultPrivateEndpoint.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// + /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// Serialized Name: KeyVaultPrivateEndpoint + /// public partial class NetAppKeyVaultPrivateEndpoint { /// @@ -52,8 +55,14 @@ public NetAppKeyVaultPrivateEndpoint() } /// Initializes a new instance of . - /// Identifier for the virtual network id. - /// Identifier of the private endpoint to reach the Azure Key Vault. + /// + /// Identifier for the virtual network id + /// Serialized Name: KeyVaultPrivateEndpoint.virtualNetworkId + /// + /// + /// Identifier of the private endpoint to reach the Azure Key Vault + /// Serialized Name: KeyVaultPrivateEndpoint.privateEndpointId + /// /// Keeps track of any properties unknown to the library. internal NetAppKeyVaultPrivateEndpoint(ResourceIdentifier virtualNetworkId, ResourceIdentifier privateEndpointId, IDictionary serializedAdditionalRawData) { @@ -62,9 +71,15 @@ internal NetAppKeyVaultPrivateEndpoint(ResourceIdentifier virtualNetworkId, Reso _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Identifier for the virtual network id. + /// + /// Identifier for the virtual network id + /// Serialized Name: KeyVaultPrivateEndpoint.virtualNetworkId + /// public ResourceIdentifier VirtualNetworkId { get; set; } - /// Identifier of the private endpoint to reach the Azure Key Vault. + /// + /// Identifier of the private endpoint to reach the Azure Key Vault + /// Serialized Name: KeyVaultPrivateEndpoint.privateEndpointId + /// public ResourceIdentifier PrivateEndpointId { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultProperties.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultProperties.cs index 2c06281f5cc8..07a67504b7ce 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultProperties.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultProperties.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Properties of key vault. + /// + /// Properties of key vault. + /// Serialized Name: KeyVaultProperties + /// public partial class NetAppKeyVaultProperties { /// @@ -47,8 +50,14 @@ public partial class NetAppKeyVaultProperties private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The Uri of KeyVault. - /// The name of KeyVault key. + /// + /// The Uri of KeyVault. + /// Serialized Name: KeyVaultProperties.keyVaultUri + /// + /// + /// The name of KeyVault key. + /// Serialized Name: KeyVaultProperties.keyName + /// /// or is null. public NetAppKeyVaultProperties(Uri keyVaultUri, string keyName) { @@ -60,11 +69,26 @@ public NetAppKeyVaultProperties(Uri keyVaultUri, string keyName) } /// Initializes a new instance of . - /// UUID v4 used to identify the Azure Key Vault configuration. - /// The Uri of KeyVault. - /// The name of KeyVault key. - /// The resource ID of KeyVault. - /// Status of the KeyVault connection. + /// + /// UUID v4 used to identify the Azure Key Vault configuration + /// Serialized Name: KeyVaultProperties.keyVaultId + /// + /// + /// The Uri of KeyVault. + /// Serialized Name: KeyVaultProperties.keyVaultUri + /// + /// + /// The name of KeyVault key. + /// Serialized Name: KeyVaultProperties.keyName + /// + /// + /// The resource ID of KeyVault. + /// Serialized Name: KeyVaultProperties.keyVaultResourceId + /// + /// + /// Status of the KeyVault connection. + /// Serialized Name: KeyVaultProperties.status + /// /// Keeps track of any properties unknown to the library. internal NetAppKeyVaultProperties(string keyVaultId, Uri keyVaultUri, string keyName, ResourceIdentifier keyVaultArmResourceId, NetAppKeyVaultStatus? status, IDictionary serializedAdditionalRawData) { @@ -81,15 +105,30 @@ internal NetAppKeyVaultProperties() { } - /// UUID v4 used to identify the Azure Key Vault configuration. + /// + /// UUID v4 used to identify the Azure Key Vault configuration + /// Serialized Name: KeyVaultProperties.keyVaultId + /// public string KeyVaultId { get; } - /// The Uri of KeyVault. + /// + /// The Uri of KeyVault. + /// Serialized Name: KeyVaultProperties.keyVaultUri + /// public Uri KeyVaultUri { get; set; } - /// The name of KeyVault key. + /// + /// The name of KeyVault key. + /// Serialized Name: KeyVaultProperties.keyName + /// public string KeyName { get; set; } - /// The resource ID of KeyVault. + /// + /// The resource ID of KeyVault. + /// Serialized Name: KeyVaultProperties.keyVaultResourceId + /// public ResourceIdentifier KeyVaultArmResourceId { get; set; } - /// Status of the KeyVault connection. + /// + /// Status of the KeyVault connection. + /// Serialized Name: KeyVaultProperties.status + /// public NetAppKeyVaultStatus? Status { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultStatus.cs index 829facaedafd..b59c9a16bed5 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultStatus.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Status of the KeyVault connection. + /// + /// Status of the KeyVault connection. + /// Serialized Name: KeyVaultStatus + /// public readonly partial struct NetAppKeyVaultStatus : IEquatable { private readonly string _value; @@ -28,15 +31,30 @@ public NetAppKeyVaultStatus(string value) private const string ErrorValue = "Error"; private const string UpdatingValue = "Updating"; - /// KeyVault connection created but not in use. + /// + /// KeyVault connection created but not in use + /// Serialized Name: KeyVaultStatus.Created + /// public static NetAppKeyVaultStatus Created { get; } = new NetAppKeyVaultStatus(CreatedValue); - /// KeyVault connection in use by SMB Volume. + /// + /// KeyVault connection in use by SMB Volume + /// Serialized Name: KeyVaultStatus.InUse + /// public static NetAppKeyVaultStatus InUse { get; } = new NetAppKeyVaultStatus(InUseValue); - /// KeyVault connection Deleted. + /// + /// KeyVault connection Deleted + /// Serialized Name: KeyVaultStatus.Deleted + /// public static NetAppKeyVaultStatus Deleted { get; } = new NetAppKeyVaultStatus(DeletedValue); - /// Error with the KeyVault connection. + /// + /// Error with the KeyVault connection + /// Serialized Name: KeyVaultStatus.Error + /// public static NetAppKeyVaultStatus Error { get; } = new NetAppKeyVaultStatus(ErrorValue); - /// KeyVault connection Updating. + /// + /// KeyVault connection Updating + /// Serialized Name: KeyVaultStatus.Updating + /// public static NetAppKeyVaultStatus Updating { get; } = new NetAppKeyVaultStatus(UpdatingValue); /// Determines if two values are the same. public static bool operator ==(NetAppKeyVaultStatus left, NetAppKeyVaultStatus right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultStatusResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultStatusResult.cs index a3b9ebae64eb..b67519befb7f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultStatusResult.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppKeyVaultStatusResult.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. + /// + /// Result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. + /// Serialized Name: GetKeyVaultStatusResponse + /// public partial class NetAppKeyVaultStatusResult { /// @@ -53,10 +56,22 @@ internal NetAppKeyVaultStatusResult() } /// Initializes a new instance of . - /// The URI of the key vault/managed HSM that should be used for encryption. - /// The name of the key that should be used for encryption. - /// Azure resource ID of the key vault/managed HSM that should be used for encryption. - /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// + /// The URI of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyVaultUri + /// + /// + /// The name of the key that should be used for encryption. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyName + /// + /// + /// Azure resource ID of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyVaultResourceId + /// + /// + /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyVaultPrivateEndpoints + /// /// Keeps track of any properties unknown to the library. internal NetAppKeyVaultStatusResult(Uri keyVaultUri, string keyName, ResourceIdentifier keyVaultResourceId, IReadOnlyList keyVaultPrivateEndpoints, IDictionary serializedAdditionalRawData) { @@ -67,13 +82,25 @@ internal NetAppKeyVaultStatusResult(Uri keyVaultUri, string keyName, ResourceIde _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The URI of the key vault/managed HSM that should be used for encryption. + /// + /// The URI of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyVaultUri + /// public Uri KeyVaultUri { get; } - /// The name of the key that should be used for encryption. + /// + /// The name of the key that should be used for encryption. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyName + /// public string KeyName { get; } - /// Azure resource ID of the key vault/managed HSM that should be used for encryption. + /// + /// Azure resource ID of the key vault/managed HSM that should be used for encryption. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyVaultResourceId + /// public ResourceIdentifier KeyVaultResourceId { get; } - /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// + /// Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + /// Serialized Name: GetKeyVaultStatusResponse.properties.keyVaultPrivateEndpoints + /// public IReadOnlyList KeyVaultPrivateEndpoints { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppLdapSearchScopeConfiguration.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppLdapSearchScopeConfiguration.cs index 9a84531d7c83..fb93d9d6019c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppLdapSearchScopeConfiguration.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppLdapSearchScopeConfiguration.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// LDAP search scope. + /// + /// LDAP search scope + /// Serialized Name: LdapSearchScopeOpt + /// public partial class NetAppLdapSearchScopeConfiguration { /// @@ -51,9 +54,18 @@ public NetAppLdapSearchScopeConfiguration() } /// Initializes a new instance of . - /// This specifies the user DN, which overrides the base DN for user lookups. - /// This specifies the group DN, which overrides the base DN for group lookups. - /// This specifies the custom LDAP search filter to be used when looking up group membership from LDAP server. + /// + /// This specifies the user DN, which overrides the base DN for user lookups. + /// Serialized Name: LdapSearchScopeOpt.userDN + /// + /// + /// This specifies the group DN, which overrides the base DN for group lookups. + /// Serialized Name: LdapSearchScopeOpt.groupDN + /// + /// + /// This specifies the custom LDAP search filter to be used when looking up group membership from LDAP server. + /// Serialized Name: LdapSearchScopeOpt.groupMembershipFilter + /// /// Keeps track of any properties unknown to the library. internal NetAppLdapSearchScopeConfiguration(string userDN, string groupDN, string groupMembershipFilter, IDictionary serializedAdditionalRawData) { @@ -63,11 +75,20 @@ internal NetAppLdapSearchScopeConfiguration(string userDN, string groupDN, strin _serializedAdditionalRawData = serializedAdditionalRawData; } - /// This specifies the user DN, which overrides the base DN for user lookups. + /// + /// This specifies the user DN, which overrides the base DN for user lookups. + /// Serialized Name: LdapSearchScopeOpt.userDN + /// public string UserDN { get; set; } - /// This specifies the group DN, which overrides the base DN for group lookups. + /// + /// This specifies the group DN, which overrides the base DN for group lookups. + /// Serialized Name: LdapSearchScopeOpt.groupDN + /// public string GroupDN { get; set; } - /// This specifies the custom LDAP search filter to be used when looking up group membership from LDAP server. + /// + /// This specifies the custom LDAP search filter to be used when looking up group membership from LDAP server. + /// Serialized Name: LdapSearchScopeOpt.groupMembershipFilter + /// public string GroupMembershipFilter { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppMirrorState.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppMirrorState.cs index ba11c919069f..49680bfcf2d1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppMirrorState.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppMirrorState.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// The mirror state property describes the current status of data replication for a resource. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. + /// + /// The status of the replication + /// Serialized Name: MirrorState + /// public readonly partial struct NetAppMirrorState : IEquatable { private readonly string _value; @@ -26,11 +29,20 @@ public NetAppMirrorState(string value) private const string MirroredValue = "Mirrored"; private const string BrokenValue = "Broken"; - /// The mirror state is still uninitialized. + /// + /// Uninitialized + /// Serialized Name: MirrorState.Uninitialized + /// public static NetAppMirrorState Uninitialized { get; } = new NetAppMirrorState(UninitializedValue); - /// The mirror state is mirrored. + /// + /// Mirrored + /// Serialized Name: MirrorState.Mirrored + /// public static NetAppMirrorState Mirrored { get; } = new NetAppMirrorState(MirroredValue); - /// The mirror state is broken. + /// + /// Broken + /// Serialized Name: MirrorState.Broken + /// public static NetAppMirrorState Broken { get; } = new NetAppMirrorState(BrokenValue); /// Determines if two values are the same. public static bool operator ==(NetAppMirrorState left, NetAppMirrorState right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameAvailabilityContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameAvailabilityContent.cs index 4ca775999808..06d37c0f73b8 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameAvailabilityContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameAvailabilityContent.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Resource name availability request content. + /// + /// Resource name availability request content. + /// Serialized Name: ResourceNameAvailabilityRequest + /// public partial class NetAppNameAvailabilityContent { /// @@ -46,9 +49,18 @@ public partial class NetAppNameAvailabilityContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Resource name to verify. - /// Resource type used for verification. - /// Resource group name. + /// + /// Resource name to verify. + /// Serialized Name: ResourceNameAvailabilityRequest.name + /// + /// + /// Resource type used for verification. + /// Serialized Name: ResourceNameAvailabilityRequest.type + /// + /// + /// Resource group name. + /// Serialized Name: ResourceNameAvailabilityRequest.resourceGroup + /// /// or is null. public NetAppNameAvailabilityContent(string name, NetAppNameAvailabilityResourceType resourceType, string resourceGroup) { @@ -61,9 +73,18 @@ public NetAppNameAvailabilityContent(string name, NetAppNameAvailabilityResource } /// Initializes a new instance of . - /// Resource name to verify. - /// Resource type used for verification. - /// Resource group name. + /// + /// Resource name to verify. + /// Serialized Name: ResourceNameAvailabilityRequest.name + /// + /// + /// Resource type used for verification. + /// Serialized Name: ResourceNameAvailabilityRequest.type + /// + /// + /// Resource group name. + /// Serialized Name: ResourceNameAvailabilityRequest.resourceGroup + /// /// Keeps track of any properties unknown to the library. internal NetAppNameAvailabilityContent(string name, NetAppNameAvailabilityResourceType resourceType, string resourceGroup, IDictionary serializedAdditionalRawData) { @@ -78,11 +99,20 @@ internal NetAppNameAvailabilityContent() { } - /// Resource name to verify. + /// + /// Resource name to verify. + /// Serialized Name: ResourceNameAvailabilityRequest.name + /// public string Name { get; } - /// Resource type used for verification. + /// + /// Resource type used for verification. + /// Serialized Name: ResourceNameAvailabilityRequest.type + /// public NetAppNameAvailabilityResourceType ResourceType { get; } - /// Resource group name. + /// + /// Resource group name. + /// Serialized Name: ResourceNameAvailabilityRequest.resourceGroup + /// public string ResourceGroup { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameAvailabilityResourceType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameAvailabilityResourceType.cs index 4cef6a197d3b..7ad70f9ca481 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameAvailabilityResourceType.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameAvailabilityResourceType.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Resource type used for verification. + /// + /// Resource type used for verification. + /// Serialized Name: CheckNameResourceTypes + /// public readonly partial struct NetAppNameAvailabilityResourceType : IEquatable { private readonly string _value; @@ -26,15 +29,39 @@ public NetAppNameAvailabilityResourceType(string value) private const string MicrosoftNetAppNetAppAccountsCapacityPoolsValue = "Microsoft.NetApp/netAppAccounts/capacityPools"; private const string MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesValue = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes"; private const string MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshotsValue = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"; + private const string MicrosoftNetAppNetAppAccountsBackupVaultsBackupsValue = "Microsoft.NetApp/netAppAccounts/backupVaults/backups"; + private const string MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesBackupsValue = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/backups"; - /// Microsoft.NetApp/netAppAccounts. + /// + /// Microsoft.NetApp/netAppAccounts + /// Serialized Name: CheckNameResourceTypes.Microsoft.NetApp/netAppAccounts + /// public static NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccounts { get; } = new NetAppNameAvailabilityResourceType(MicrosoftNetAppNetAppAccountsValue); - /// Microsoft.NetApp/netAppAccounts/capacityPools. + /// + /// Microsoft.NetApp/netAppAccounts/capacityPools + /// Serialized Name: CheckNameResourceTypes.Microsoft.NetApp/netAppAccounts/capacityPools + /// public static NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPools { get; } = new NetAppNameAvailabilityResourceType(MicrosoftNetAppNetAppAccountsCapacityPoolsValue); - /// Microsoft.NetApp/netAppAccounts/capacityPools/volumes. + /// + /// Microsoft.NetApp/netAppAccounts/capacityPools/volumes + /// Serialized Name: CheckNameResourceTypes.Microsoft.NetApp/netAppAccounts/capacityPools/volumes + /// public static NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes { get; } = new NetAppNameAvailabilityResourceType(MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesValue); - /// Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots. + /// + /// Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots + /// Serialized Name: CheckNameResourceTypes.Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots + /// public static NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots { get; } = new NetAppNameAvailabilityResourceType(MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshotsValue); + /// + /// ANF Backup under a volume , deprecated, use `Microsoft.NetApp/netAppAccounts/backupVaults/backups` instead. + /// Serialized Name: CheckNameResourceTypes.Microsoft.NetApp/netAppAccounts/backupVaults/backups + /// + public static NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsBackupVaultsBackups { get; } = new NetAppNameAvailabilityResourceType(MicrosoftNetAppNetAppAccountsBackupVaultsBackupsValue); + /// + /// ANF Backup under a Backup Vault + /// Serialized Name: CheckNameResourceTypes.Microsoft.NetApp/netAppAccounts/capacityPools/volumes/backups + /// + public static NetAppNameAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesBackups { get; } = new NetAppNameAvailabilityResourceType(MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesBackupsValue); /// Determines if two values are the same. public static bool operator ==(NetAppNameAvailabilityResourceType left, NetAppNameAvailabilityResourceType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameUnavailableReason.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameUnavailableReason.cs index 23b71e28c927..a785aebe4424 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameUnavailableReason.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNameUnavailableReason.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. + /// + /// <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. + /// Serialized Name: InAvailabilityReasonType + /// public readonly partial struct NetAppNameUnavailableReason : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NetAppNameUnavailableReason(string value) private const string InvalidValue = "Invalid"; private const string AlreadyExistsValue = "AlreadyExists"; - /// Invalid. + /// + /// Invalid + /// Serialized Name: InAvailabilityReasonType.Invalid + /// public static NetAppNameUnavailableReason Invalid { get; } = new NetAppNameUnavailableReason(InvalidValue); - /// AlreadyExists. + /// + /// AlreadyExists + /// Serialized Name: InAvailabilityReasonType.AlreadyExists + /// public static NetAppNameUnavailableReason AlreadyExists { get; } = new NetAppNameUnavailableReason(AlreadyExistsValue); /// Determines if two values are the same. public static bool operator ==(NetAppNameUnavailableReason left, NetAppNameUnavailableReason right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNetworkFeature.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNetworkFeature.cs index bf5e443847f5..66607f07d6fd 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNetworkFeature.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppNetworkFeature.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Network features available to the volume, or current state of update. + /// + /// Network features available to the volume, or current state of update. + /// Serialized Name: NetworkFeatures + /// public readonly partial struct NetAppNetworkFeature : IEquatable { private readonly string _value; @@ -27,13 +30,25 @@ public NetAppNetworkFeature(string value) private const string BasicStandardValue = "Basic_Standard"; private const string StandardBasicValue = "Standard_Basic"; - /// Basic network features. + /// + /// Basic network features. + /// Serialized Name: NetworkFeatures.Basic + /// public static NetAppNetworkFeature Basic { get; } = new NetAppNetworkFeature(BasicValue); - /// Standard network features. + /// + /// Standard network features. + /// Serialized Name: NetworkFeatures.Standard + /// public static NetAppNetworkFeature Standard { get; } = new NetAppNetworkFeature(StandardValue); - /// Updating from Basic to Standard network features. + /// + /// Updating from Basic to Standard network features. + /// Serialized Name: NetworkFeatures.Basic_Standard + /// public static NetAppNetworkFeature BasicStandard { get; } = new NetAppNetworkFeature(BasicStandardValue); - /// Updating from Standard to Basic network features. + /// + /// Updating from Standard to Basic network features. + /// Serialized Name: NetworkFeatures.Standard_Basic + /// public static NetAppNetworkFeature StandardBasic { get; } = new NetAppNetworkFeature(StandardBasicValue); /// Determines if two values are the same. public static bool operator ==(NetAppNetworkFeature left, NetAppNetworkFeature right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppProvisioningState.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppProvisioningState.Serialization.cs index bb201023f272..61e5e84d677f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppProvisioningState.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppProvisioningState.Serialization.cs @@ -13,27 +13,27 @@ internal static partial class NetAppProvisioningStateExtensions { public static string ToSerialString(this NetAppProvisioningState value) => value switch { - NetAppProvisioningState.Succeeded => "Succeeded", - NetAppProvisioningState.Failed => "Failed", - NetAppProvisioningState.Canceled => "Canceled", - NetAppProvisioningState.Provisioning => "Provisioning", - NetAppProvisioningState.Moving => "Moving", + NetAppProvisioningState.Accepted => "Accepted", + NetAppProvisioningState.Creating => "Creating", + NetAppProvisioningState.Patching => "Patching", NetAppProvisioningState.Updating => "Updating", NetAppProvisioningState.Deleting => "Deleting", - NetAppProvisioningState.Accepted => "Accepted", + NetAppProvisioningState.Moving => "Moving", + NetAppProvisioningState.Failed => "Failed", + NetAppProvisioningState.Succeeded => "Succeeded", _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown NetAppProvisioningState value.") }; public static NetAppProvisioningState ToNetAppProvisioningState(this string value) { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return NetAppProvisioningState.Succeeded; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return NetAppProvisioningState.Failed; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Canceled")) return NetAppProvisioningState.Canceled; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Provisioning")) return NetAppProvisioningState.Provisioning; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Moving")) return NetAppProvisioningState.Moving; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Accepted")) return NetAppProvisioningState.Accepted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return NetAppProvisioningState.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Patching")) return NetAppProvisioningState.Patching; if (StringComparer.OrdinalIgnoreCase.Equals(value, "Updating")) return NetAppProvisioningState.Updating; if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleting")) return NetAppProvisioningState.Deleting; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Accepted")) return NetAppProvisioningState.Accepted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Moving")) return NetAppProvisioningState.Moving; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return NetAppProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return NetAppProvisioningState.Succeeded; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown NetAppProvisioningState value."); } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppQuotaAvailabilityContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppQuotaAvailabilityContent.cs index f5a651fc23cf..c6c9202d8561 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppQuotaAvailabilityContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppQuotaAvailabilityContent.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Quota availability request content. + /// + /// Quota availability request content. + /// Serialized Name: QuotaAvailabilityRequest + /// public partial class NetAppQuotaAvailabilityContent { /// @@ -46,9 +49,18 @@ public partial class NetAppQuotaAvailabilityContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Name of the resource to verify. - /// Resource type used for verification. - /// Resource group name. + /// + /// Name of the resource to verify. + /// Serialized Name: QuotaAvailabilityRequest.name + /// + /// + /// Resource type used for verification. + /// Serialized Name: QuotaAvailabilityRequest.type + /// + /// + /// Resource group name. + /// Serialized Name: QuotaAvailabilityRequest.resourceGroup + /// /// or is null. public NetAppQuotaAvailabilityContent(string name, NetAppQuotaAvailabilityResourceType availabilityResourceType, string resourceGroup) { @@ -61,9 +73,18 @@ public NetAppQuotaAvailabilityContent(string name, NetAppQuotaAvailabilityResour } /// Initializes a new instance of . - /// Name of the resource to verify. - /// Resource type used for verification. - /// Resource group name. + /// + /// Name of the resource to verify. + /// Serialized Name: QuotaAvailabilityRequest.name + /// + /// + /// Resource type used for verification. + /// Serialized Name: QuotaAvailabilityRequest.type + /// + /// + /// Resource group name. + /// Serialized Name: QuotaAvailabilityRequest.resourceGroup + /// /// Keeps track of any properties unknown to the library. internal NetAppQuotaAvailabilityContent(string name, NetAppQuotaAvailabilityResourceType availabilityResourceType, string resourceGroup, IDictionary serializedAdditionalRawData) { @@ -78,11 +99,20 @@ internal NetAppQuotaAvailabilityContent() { } - /// Name of the resource to verify. + /// + /// Name of the resource to verify. + /// Serialized Name: QuotaAvailabilityRequest.name + /// public string Name { get; } - /// Resource type used for verification. + /// + /// Resource type used for verification. + /// Serialized Name: QuotaAvailabilityRequest.type + /// public NetAppQuotaAvailabilityResourceType AvailabilityResourceType { get; } - /// Resource group name. + /// + /// Resource group name. + /// Serialized Name: QuotaAvailabilityRequest.resourceGroup + /// public string ResourceGroup { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppQuotaAvailabilityResourceType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppQuotaAvailabilityResourceType.cs index 378fb36967e0..418777d1154a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppQuotaAvailabilityResourceType.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppQuotaAvailabilityResourceType.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Resource type used for verification. + /// + /// Resource type used for verification. + /// Serialized Name: CheckQuotaNameResourceTypes + /// public readonly partial struct NetAppQuotaAvailabilityResourceType : IEquatable { private readonly string _value; @@ -26,15 +29,39 @@ public NetAppQuotaAvailabilityResourceType(string value) private const string MicrosoftNetAppNetAppAccountsCapacityPoolsValue = "Microsoft.NetApp/netAppAccounts/capacityPools"; private const string MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesValue = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes"; private const string MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshotsValue = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"; + private const string MicrosoftNetAppNetAppAccountsBackupVaultsBackupsValue = "Microsoft.NetApp/netAppAccounts/backupVaults/backups"; + private const string MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesBackupsValue = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/backups"; - /// Microsoft.NetApp/netAppAccounts. + /// + /// Microsoft.NetApp/netAppAccounts + /// Serialized Name: CheckQuotaNameResourceTypes.Microsoft.NetApp/netAppAccounts + /// public static NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccounts { get; } = new NetAppQuotaAvailabilityResourceType(MicrosoftNetAppNetAppAccountsValue); - /// Microsoft.NetApp/netAppAccounts/capacityPools. + /// + /// Microsoft.NetApp/netAppAccounts/capacityPools + /// Serialized Name: CheckQuotaNameResourceTypes.Microsoft.NetApp/netAppAccounts/capacityPools + /// public static NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPools { get; } = new NetAppQuotaAvailabilityResourceType(MicrosoftNetAppNetAppAccountsCapacityPoolsValue); - /// Microsoft.NetApp/netAppAccounts/capacityPools/volumes. + /// + /// Microsoft.NetApp/netAppAccounts/capacityPools/volumes + /// Serialized Name: CheckQuotaNameResourceTypes.Microsoft.NetApp/netAppAccounts/capacityPools/volumes + /// public static NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes { get; } = new NetAppQuotaAvailabilityResourceType(MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesValue); - /// Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots. + /// + /// Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots + /// Serialized Name: CheckQuotaNameResourceTypes.Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots + /// public static NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots { get; } = new NetAppQuotaAvailabilityResourceType(MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshotsValue); + /// + /// ANF Backup under a volume , deprecated, use `Microsoft.NetApp/netAppAccounts/backupVaults/backups` instead. + /// Serialized Name: CheckQuotaNameResourceTypes.Microsoft.NetApp/netAppAccounts/backupVaults/backups + /// + public static NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsBackupVaultsBackups { get; } = new NetAppQuotaAvailabilityResourceType(MicrosoftNetAppNetAppAccountsBackupVaultsBackupsValue); + /// + /// ANF Backup under a Backup Vault + /// Serialized Name: CheckQuotaNameResourceTypes.Microsoft.NetApp/netAppAccounts/capacityPools/volumes/backups + /// + public static NetAppQuotaAvailabilityResourceType MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesBackups { get; } = new NetAppQuotaAvailabilityResourceType(MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesBackupsValue); /// Determines if two values are the same. public static bool operator ==(NetAppQuotaAvailabilityResourceType left, NetAppQuotaAvailabilityResourceType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRegionInfo.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRegionInfo.cs index 5aff7dafe5aa..d9212519711f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRegionInfo.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRegionInfo.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Provides region specific information. + /// + /// Provides region specific information. + /// Serialized Name: RegionInfo + /// public partial class NetAppRegionInfo { /// @@ -52,8 +55,14 @@ internal NetAppRegionInfo() } /// Initializes a new instance of . - /// Provides storage to network proximity information in the region. - /// Provides logical availability zone mappings for the subscription for a region. + /// + /// Provides storage to network proximity information in the region. + /// Serialized Name: RegionInfo.storageToNetworkProximity + /// + /// + /// Provides logical availability zone mappings for the subscription for a region. + /// Serialized Name: RegionInfo.availabilityZoneMappings + /// /// Keeps track of any properties unknown to the library. internal NetAppRegionInfo(RegionStorageToNetworkProximity? storageToNetworkProximity, IReadOnlyList availabilityZoneMappings, IDictionary serializedAdditionalRawData) { @@ -62,9 +71,15 @@ internal NetAppRegionInfo(RegionStorageToNetworkProximity? storageToNetworkProxi _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Provides storage to network proximity information in the region. + /// + /// Provides storage to network proximity information in the region. + /// Serialized Name: RegionInfo.storageToNetworkProximity + /// public RegionStorageToNetworkProximity? StorageToNetworkProximity { get; } - /// Provides logical availability zone mappings for the subscription for a region. + /// + /// Provides logical availability zone mappings for the subscription for a region. + /// Serialized Name: RegionInfo.availabilityZoneMappings + /// public IReadOnlyList AvailabilityZoneMappings { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRelationshipStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRelationshipStatus.cs deleted file mode 100644 index 13d61ac19890..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRelationshipStatus.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// The status of the Volume Replication. - public readonly partial struct NetAppRelationshipStatus : IEquatable - { - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.Serialization.cs index 9390b1ba8707..ce753c428e69 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.Serialization.cs @@ -74,26 +74,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndArray(); } - if (options.Format != "W" && Optional.IsDefined(ExternalReplicationSetupStatus)) - { - writer.WritePropertyName("externalReplicationSetupStatus"u8); - writer.WriteStringValue(ExternalReplicationSetupStatus.Value.ToString()); - } - if (options.Format != "W" && Optional.IsDefined(ExternalReplicationSetupInfo)) - { - writer.WritePropertyName("externalReplicationSetupInfo"u8); - writer.WriteStringValue(ExternalReplicationSetupInfo); - } - if (options.Format != "W" && Optional.IsDefined(MirrorState)) - { - writer.WritePropertyName("mirrorState"u8); - writer.WriteStringValue(MirrorState.Value.ToString()); - } - if (options.Format != "W" && Optional.IsDefined(RelationshipStatus)) - { - writer.WritePropertyName("relationshipStatus"u8); - writer.WriteStringValue(RelationshipStatus.Value.ToString()); - } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -138,10 +118,6 @@ internal static NetAppReplicationObject DeserializeNetAppReplicationObject(JsonE RemotePath remotePath = default; string remoteVolumeRegion = default; IReadOnlyList destinationReplications = default; - ExternalReplicationSetupStatus? externalReplicationSetupStatus = default; - string externalReplicationSetupInfo = default; - NetAppMirrorState? mirrorState = default; - NetAppRelationshipStatus? relationshipStatus = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -206,38 +182,6 @@ internal static NetAppReplicationObject DeserializeNetAppReplicationObject(JsonE destinationReplications = array; continue; } - if (property.NameEquals("externalReplicationSetupStatus"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - externalReplicationSetupStatus = new ExternalReplicationSetupStatus(property.Value.GetString()); - continue; - } - if (property.NameEquals("externalReplicationSetupInfo"u8)) - { - externalReplicationSetupInfo = property.Value.GetString(); - continue; - } - if (property.NameEquals("mirrorState"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - mirrorState = new NetAppMirrorState(property.Value.GetString()); - continue; - } - if (property.NameEquals("relationshipStatus"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - relationshipStatus = new NetAppRelationshipStatus(property.Value.GetString()); - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -252,10 +196,6 @@ internal static NetAppReplicationObject DeserializeNetAppReplicationObject(JsonE remotePath, remoteVolumeRegion, destinationReplications ?? new ChangeTrackingList(), - externalReplicationSetupStatus, - externalReplicationSetupInfo, - mirrorState, - relationshipStatus, serializedAdditionalRawData); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.cs index 4186a6039744..bcc4d4061f13 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Replication properties. + /// + /// Replication properties + /// Serialized Name: ReplicationObject + /// public partial class NetAppReplicationObject { /// @@ -53,19 +56,36 @@ public NetAppReplicationObject() } /// Initializes a new instance of . - /// Id. - /// Indicates whether the local volume is the source or destination for the Volume Replication. - /// Schedule. - /// The resource ID of the remote volume. Required for cross region and cross zone replication. - /// The full path to a volume that is to be migrated into ANF. Required for Migration volumes. - /// The remote region for the other end of the Volume Replication. - /// A list of destination replications. - /// Property that only applies to external replications. Provides a machine-readable value for the status of the external replication setup. - /// Contains human-readable instructions on what the next step is to finish the external replication setup. - /// The mirror state property describes the current status of data replication for a replication. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. - /// The status of the Volume Replication. + /// + /// Id + /// Serialized Name: ReplicationObject.replicationId + /// + /// + /// Indicates whether the local volume is the source or destination for the Volume Replication + /// Serialized Name: ReplicationObject.endpointType + /// + /// + /// Schedule + /// Serialized Name: ReplicationObject.replicationSchedule + /// + /// + /// The resource ID of the remote volume. Required for cross region and cross zone replication + /// Serialized Name: ReplicationObject.remoteVolumeResourceId + /// + /// + /// The full path to a volume that is to be migrated into ANF. Required for Migration volumes + /// Serialized Name: ReplicationObject.remotePath + /// + /// + /// The remote region for the other end of the Volume Replication. + /// Serialized Name: ReplicationObject.remoteVolumeRegion + /// + /// + /// A list of destination replications + /// Serialized Name: ReplicationObject.destinationReplications + /// /// Keeps track of any properties unknown to the library. - internal NetAppReplicationObject(string replicationId, NetAppEndpointType? endpointType, NetAppReplicationSchedule? replicationSchedule, ResourceIdentifier remoteVolumeResourceId, RemotePath remotePath, string remoteVolumeRegion, IReadOnlyList destinationReplications, ExternalReplicationSetupStatus? externalReplicationSetupStatus, string externalReplicationSetupInfo, NetAppMirrorState? mirrorState, NetAppRelationshipStatus? relationshipStatus, IDictionary serializedAdditionalRawData) + internal NetAppReplicationObject(string replicationId, NetAppEndpointType? endpointType, NetAppReplicationSchedule? replicationSchedule, ResourceIdentifier remoteVolumeResourceId, RemotePath remotePath, string remoteVolumeRegion, IReadOnlyList destinationReplications, IDictionary serializedAdditionalRawData) { ReplicationId = replicationId; EndpointType = endpointType; @@ -74,29 +94,32 @@ internal NetAppReplicationObject(string replicationId, NetAppEndpointType? endpo RemotePath = remotePath; RemoteVolumeRegion = remoteVolumeRegion; DestinationReplications = destinationReplications; - ExternalReplicationSetupStatus = externalReplicationSetupStatus; - ExternalReplicationSetupInfo = externalReplicationSetupInfo; - MirrorState = mirrorState; - RelationshipStatus = relationshipStatus; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Schedule. + /// + /// Schedule + /// Serialized Name: ReplicationObject.replicationSchedule + /// public NetAppReplicationSchedule? ReplicationSchedule { get; set; } - /// The resource ID of the remote volume. Required for cross region and cross zone replication. + /// + /// The resource ID of the remote volume. Required for cross region and cross zone replication + /// Serialized Name: ReplicationObject.remoteVolumeResourceId + /// public ResourceIdentifier RemoteVolumeResourceId { get; set; } - /// The full path to a volume that is to be migrated into ANF. Required for Migration volumes. + /// + /// The full path to a volume that is to be migrated into ANF. Required for Migration volumes + /// Serialized Name: ReplicationObject.remotePath + /// public RemotePath RemotePath { get; set; } - /// The remote region for the other end of the Volume Replication. + /// + /// The remote region for the other end of the Volume Replication. + /// Serialized Name: ReplicationObject.remoteVolumeRegion + /// public string RemoteVolumeRegion { get; set; } - /// A list of destination replications. + /// + /// A list of destination replications + /// Serialized Name: ReplicationObject.destinationReplications + /// public IReadOnlyList DestinationReplications { get; } - /// Property that only applies to external replications. Provides a machine-readable value for the status of the external replication setup. - public ExternalReplicationSetupStatus? ExternalReplicationSetupStatus { get; } - /// Contains human-readable instructions on what the next step is to finish the external replication setup. - public string ExternalReplicationSetupInfo { get; } - /// The mirror state property describes the current status of data replication for a replication. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. - public NetAppMirrorState? MirrorState { get; } - /// The status of the Volume Replication. - public NetAppRelationshipStatus? RelationshipStatus { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationSchedule.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationSchedule.cs index b0d49565e0ab..7c14d1595d06 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationSchedule.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationSchedule.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Schedule. + /// + /// Schedule + /// Serialized Name: ReplicationSchedule + /// public readonly partial struct NetAppReplicationSchedule : IEquatable { private readonly string _value; @@ -26,11 +29,20 @@ public NetAppReplicationSchedule(string value) private const string HourlyValue = "hourly"; private const string DailyValue = "daily"; - /// _10minutely. + /// + /// _10minutely + /// Serialized Name: ReplicationSchedule._10minutely + /// public static NetAppReplicationSchedule TenMinutely { get; } = new NetAppReplicationSchedule(TenMinutelyValue); - /// hourly. + /// + /// hourly + /// Serialized Name: ReplicationSchedule.hourly + /// public static NetAppReplicationSchedule Hourly { get; } = new NetAppReplicationSchedule(HourlyValue); - /// daily. + /// + /// daily + /// Serialized Name: ReplicationSchedule.daily + /// public static NetAppReplicationSchedule Daily { get; } = new NetAppReplicationSchedule(DailyValue); /// Determines if two values are the same. public static bool operator ==(NetAppReplicationSchedule left, NetAppReplicationSchedule right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationType.cs index 02523d059286..d57dbb73e116 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationType.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationType.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Indicates whether the replication is cross zone or cross region. + /// + /// Indicates whether the replication is cross zone or cross region. + /// Serialized Name: ReplicationType + /// public readonly partial struct NetAppReplicationType : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NetAppReplicationType(string value) private const string CrossRegionReplicationValue = "CrossRegionReplication"; private const string CrossZoneReplicationValue = "CrossZoneReplication"; - /// Cross region replication. + /// + /// Cross region replication + /// Serialized Name: ReplicationType.CrossRegionReplication + /// public static NetAppReplicationType CrossRegionReplication { get; } = new NetAppReplicationType(CrossRegionReplicationValue); - /// Cross zone replication. + /// + /// Cross zone replication + /// Serialized Name: ReplicationType.CrossZoneReplication + /// public static NetAppReplicationType CrossZoneReplication { get; } = new NetAppReplicationType(CrossZoneReplicationValue); /// Determines if two values are the same. public static bool operator ==(NetAppReplicationType left, NetAppReplicationType right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRestoreStatus.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRestoreStatus.Serialization.cs index fc99ac7ec2bf..013400ea65d0 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRestoreStatus.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRestoreStatus.Serialization.cs @@ -39,10 +39,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("healthy"u8); writer.WriteBooleanValue(IsHealthy.Value); } - if (options.Format != "W" && Optional.IsDefined(RelationshipStatus)) + if (options.Format != "W" && Optional.IsDefined(VolumeRestoreRelationshipStatus)) { writer.WritePropertyName("relationshipStatus"u8); - writer.WriteStringValue(RelationshipStatus.Value.ToString()); + writer.WriteStringValue(VolumeRestoreRelationshipStatus.Value.ToString()); } if (options.Format != "W" && Optional.IsDefined(MirrorState)) { @@ -102,7 +102,7 @@ internal static NetAppRestoreStatus DeserializeNetAppRestoreStatus(JsonElement e return null; } bool? healthy = default; - NetAppRelationshipStatus? relationshipStatus = default; + VolumeRestoreRelationshipStatus? relationshipStatus = default; NetAppMirrorState? mirrorState = default; string unhealthyReason = default; string errorMessage = default; @@ -126,7 +126,7 @@ internal static NetAppRestoreStatus DeserializeNetAppRestoreStatus(JsonElement e { continue; } - relationshipStatus = new NetAppRelationshipStatus(property.Value.GetString()); + relationshipStatus = new VolumeRestoreRelationshipStatus(property.Value.GetString()); continue; } if (property.NameEquals("mirrorState"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRestoreStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRestoreStatus.cs index ba55ce47e81e..f3359dd46e90 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRestoreStatus.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRestoreStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Restore status. + /// + /// Restore status + /// Serialized Name: RestoreStatus + /// public partial class NetAppRestoreStatus { /// @@ -51,17 +54,35 @@ internal NetAppRestoreStatus() } /// Initializes a new instance of . - /// Restore health status. - /// Status of the restore SnapMirror relationship. - /// The mirror state property describes the current status of data replication for a restore. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. - /// Reason for the unhealthy restore relationship. - /// Displays error message if the restore is in an error state. - /// Displays the total bytes transferred. + /// + /// Restore health status + /// Serialized Name: RestoreStatus.healthy + /// + /// + /// Status of the restore SnapMirror relationship + /// Serialized Name: RestoreStatus.relationshipStatus + /// + /// + /// The status of the restore + /// Serialized Name: RestoreStatus.mirrorState + /// + /// + /// Reason for the unhealthy restore relationship + /// Serialized Name: RestoreStatus.unhealthyReason + /// + /// + /// Displays error message if the restore is in an error state + /// Serialized Name: RestoreStatus.errorMessage + /// + /// + /// Displays the total bytes transferred + /// Serialized Name: RestoreStatus.totalTransferBytes + /// /// Keeps track of any properties unknown to the library. - internal NetAppRestoreStatus(bool? isHealthy, NetAppRelationshipStatus? relationshipStatus, NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? totalTransferBytes, IDictionary serializedAdditionalRawData) + internal NetAppRestoreStatus(bool? isHealthy, VolumeRestoreRelationshipStatus? volumeRestoreRelationshipStatus, NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? totalTransferBytes, IDictionary serializedAdditionalRawData) { IsHealthy = isHealthy; - RelationshipStatus = relationshipStatus; + VolumeRestoreRelationshipStatus = volumeRestoreRelationshipStatus; MirrorState = mirrorState; UnhealthyReason = unhealthyReason; ErrorMessage = errorMessage; @@ -69,17 +90,35 @@ internal NetAppRestoreStatus(bool? isHealthy, NetAppRelationshipStatus? relation _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Restore health status. + /// + /// Restore health status + /// Serialized Name: RestoreStatus.healthy + /// public bool? IsHealthy { get; } - /// Status of the restore SnapMirror relationship. - public NetAppRelationshipStatus? RelationshipStatus { get; } - /// The mirror state property describes the current status of data replication for a restore. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. + /// + /// Status of the restore SnapMirror relationship + /// Serialized Name: RestoreStatus.relationshipStatus + /// + public VolumeRestoreRelationshipStatus? VolumeRestoreRelationshipStatus { get; } + /// + /// The status of the restore + /// Serialized Name: RestoreStatus.mirrorState + /// public NetAppMirrorState? MirrorState { get; } - /// Reason for the unhealthy restore relationship. + /// + /// Reason for the unhealthy restore relationship + /// Serialized Name: RestoreStatus.unhealthyReason + /// public string UnhealthyReason { get; } - /// Displays error message if the restore is in an error state. + /// + /// Displays error message if the restore is in an error state + /// Serialized Name: RestoreStatus.errorMessage + /// public string ErrorMessage { get; } - /// Displays the total bytes transferred. + /// + /// Displays the total bytes transferred + /// Serialized Name: RestoreStatus.totalTransferBytes + /// public long? TotalTransferBytes { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs index be4cef576499..0626d69b3de6 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubscriptionQuotaItem.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Information regarding Quota Item. + /// + /// Information regarding Quota Item. + /// Serialized Name: QuotaItem + /// public partial class NetAppSubscriptionQuotaItem : ResourceData { /// @@ -57,9 +60,18 @@ public NetAppSubscriptionQuotaItem() /// The name. /// The resourceType. /// The systemData. - /// The current quota value. - /// The default quota value. - /// The usage quota value. + /// + /// The current quota value. + /// Serialized Name: QuotaItem.properties.current + /// + /// + /// The default quota value. + /// Serialized Name: QuotaItem.properties.default + /// + /// + /// The usage quota value. + /// Serialized Name: QuotaItem.properties.usage + /// /// Keeps track of any properties unknown to the library. internal NetAppSubscriptionQuotaItem(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, int? current, int? @default, int? usage, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -69,11 +81,20 @@ internal NetAppSubscriptionQuotaItem(ResourceIdentifier id, string name, Resourc _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The current quota value. + /// + /// The current quota value. + /// Serialized Name: QuotaItem.properties.current + /// public int? Current { get; } - /// The default quota value. + /// + /// The default quota value. + /// Serialized Name: QuotaItem.properties.default + /// public int? Default { get; } - /// The usage quota value. + /// + /// The usage quota value. + /// Serialized Name: QuotaItem.properties.usage + /// public int? Usage { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeInfoPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeInfoPatch.cs index d70b4be54e06..1084f23a978c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeInfoPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeInfoPatch.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Subvolume Patch Request properties. + /// + /// Subvolume Patch Request properties + /// Serialized Name: SubvolumePatchRequest + /// public partial class NetAppSubvolumeInfoPatch { /// @@ -51,8 +54,14 @@ public NetAppSubvolumeInfoPatch() } /// Initializes a new instance of . - /// Truncate subvolume to the provided size in bytes. - /// path to the subvolume. + /// + /// Truncate subvolume to the provided size in bytes + /// Serialized Name: SubvolumePatchRequest.properties.size + /// + /// + /// path to the subvolume + /// Serialized Name: SubvolumePatchRequest.properties.path + /// /// Keeps track of any properties unknown to the library. internal NetAppSubvolumeInfoPatch(long? size, string path, IDictionary serializedAdditionalRawData) { @@ -61,9 +70,15 @@ internal NetAppSubvolumeInfoPatch(long? size, string path, IDictionary Truncate subvolume to the provided size in bytes. + /// + /// Truncate subvolume to the provided size in bytes + /// Serialized Name: SubvolumePatchRequest.properties.size + /// public long? Size { get; set; } - /// path to the subvolume. + /// + /// path to the subvolume + /// Serialized Name: SubvolumePatchRequest.properties.path + /// public string Path { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs index 723711ab44a8..5024a3e6a1ec 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeMetadata.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Result of the post subvolume and action is to get metadata of the subvolume. + /// + /// Result of the post subvolume and action is to get metadata of the subvolume. + /// Serialized Name: SubvolumeModel + /// public partial class NetAppSubvolumeMetadata : ResourceData { /// @@ -57,16 +60,46 @@ internal NetAppSubvolumeMetadata() /// The name. /// The resourceType. /// The systemData. - /// Path to the subvolume. - /// Path to the parent subvolume. - /// Size of subvolume. - /// Bytes used. - /// Permissions of the subvolume. - /// Creation time and date. - /// Most recent access time and date. - /// Most recent modification time and date. - /// Most recent change time and date. - /// Azure lifecycle management. + /// + /// Path to the subvolume + /// Serialized Name: SubvolumeModel.properties.path + /// + /// + /// Path to the parent subvolume + /// Serialized Name: SubvolumeModel.properties.parentPath + /// + /// + /// Size of subvolume + /// Serialized Name: SubvolumeModel.properties.size + /// + /// + /// Bytes used + /// Serialized Name: SubvolumeModel.properties.bytesUsed + /// + /// + /// Permissions of the subvolume + /// Serialized Name: SubvolumeModel.properties.permissions + /// + /// + /// Creation time and date + /// Serialized Name: SubvolumeModel.properties.creationTimeStamp + /// + /// + /// Most recent access time and date + /// Serialized Name: SubvolumeModel.properties.accessedTimeStamp + /// + /// + /// Most recent modification time and date + /// Serialized Name: SubvolumeModel.properties.modifiedTimeStamp + /// + /// + /// Most recent change time and date + /// Serialized Name: SubvolumeModel.properties.changedTimeStamp + /// + /// + /// Azure lifecycle management + /// Serialized Name: SubvolumeModel.properties.provisioningState + /// /// Keeps track of any properties unknown to the library. internal NetAppSubvolumeMetadata(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string path, string parentPath, long? size, long? bytesUsed, string permissions, DateTimeOffset? createdOn, DateTimeOffset? accessedOn, DateTimeOffset? modifiedOn, DateTimeOffset? changedOn, string provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -83,25 +116,55 @@ internal NetAppSubvolumeMetadata(ResourceIdentifier id, string name, ResourceTyp _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Path to the subvolume. + /// + /// Path to the subvolume + /// Serialized Name: SubvolumeModel.properties.path + /// public string Path { get; } - /// Path to the parent subvolume. + /// + /// Path to the parent subvolume + /// Serialized Name: SubvolumeModel.properties.parentPath + /// public string ParentPath { get; } - /// Size of subvolume. + /// + /// Size of subvolume + /// Serialized Name: SubvolumeModel.properties.size + /// public long? Size { get; } - /// Bytes used. + /// + /// Bytes used + /// Serialized Name: SubvolumeModel.properties.bytesUsed + /// public long? BytesUsed { get; } - /// Permissions of the subvolume. + /// + /// Permissions of the subvolume + /// Serialized Name: SubvolumeModel.properties.permissions + /// public string Permissions { get; } - /// Creation time and date. + /// + /// Creation time and date + /// Serialized Name: SubvolumeModel.properties.creationTimeStamp + /// public DateTimeOffset? CreatedOn { get; } - /// Most recent access time and date. + /// + /// Most recent access time and date + /// Serialized Name: SubvolumeModel.properties.accessedTimeStamp + /// public DateTimeOffset? AccessedOn { get; } - /// Most recent modification time and date. + /// + /// Most recent modification time and date + /// Serialized Name: SubvolumeModel.properties.modifiedTimeStamp + /// public DateTimeOffset? ModifiedOn { get; } - /// Most recent change time and date. + /// + /// Most recent change time and date + /// Serialized Name: SubvolumeModel.properties.changedTimeStamp + /// public DateTimeOffset? ChangedOn { get; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: SubvolumeModel.properties.provisioningState + /// public string ProvisioningState { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppUsageName.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppUsageName.cs index 1ccef44f2549..28e8ff393385 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppUsageName.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppUsageName.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// The name of the usage. + /// + /// The name of the usage. + /// Serialized Name: UsageName + /// public partial class NetAppUsageName { /// @@ -51,8 +54,14 @@ internal NetAppUsageName() } /// Initializes a new instance of . - /// The name of the usage. - /// The localized name of the usage. + /// + /// The name of the usage. + /// Serialized Name: UsageName.value + /// + /// + /// The localized name of the usage. + /// Serialized Name: UsageName.localizedValue + /// /// Keeps track of any properties unknown to the library. internal NetAppUsageName(string value, string localizedValue, IDictionary serializedAdditionalRawData) { @@ -61,9 +70,15 @@ internal NetAppUsageName(string value, string localizedValue, IDictionary The name of the usage. + /// + /// The name of the usage. + /// Serialized Name: UsageName.value + /// public string Value { get; } - /// The localized name of the usage. + /// + /// The localized name of the usage. + /// Serialized Name: UsageName.localizedValue + /// public string LocalizedValue { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppUsageResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppUsageResult.cs index 0c9043f8ac9d..b15fc5f55811 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppUsageResult.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppUsageResult.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Usages entity model. + /// + /// Usages entity model + /// Serialized Name: UsageResult + /// public partial class NetAppUsageResult { /// @@ -51,11 +54,26 @@ internal NetAppUsageResult() } /// Initializes a new instance of . - /// The id of the usage. - /// The name of the usage. - /// The current usage value for the subscription. - /// The limit of the usage. - /// The unit of the usage. + /// + /// The id of the usage. + /// Serialized Name: UsageResult.id + /// + /// + /// The name of the usage. + /// Serialized Name: UsageResult.name + /// + /// + /// The current usage value for the subscription. + /// Serialized Name: UsageResult.properties.currentValue + /// + /// + /// The limit of the usage. + /// Serialized Name: UsageResult.properties.limit + /// + /// + /// The unit of the usage. + /// Serialized Name: UsageResult.properties.unit + /// /// Keeps track of any properties unknown to the library. internal NetAppUsageResult(string id, NetAppUsageName name, int? currentValue, int? limit, string unit, IDictionary serializedAdditionalRawData) { @@ -67,15 +85,30 @@ internal NetAppUsageResult(string id, NetAppUsageName name, int? currentValue, i _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The id of the usage. + /// + /// The id of the usage. + /// Serialized Name: UsageResult.id + /// public string Id { get; } - /// The name of the usage. + /// + /// The name of the usage. + /// Serialized Name: UsageResult.name + /// public NetAppUsageName Name { get; } - /// The current usage value for the subscription. + /// + /// The current usage value for the subscription. + /// Serialized Name: UsageResult.properties.currentValue + /// public int? CurrentValue { get; } - /// The limit of the usage. + /// + /// The limit of the usage. + /// Serialized Name: UsageResult.properties.limit + /// public int? Limit { get; } - /// The unit of the usage. + /// + /// The unit of the usage. + /// Serialized Name: UsageResult.properties.unit + /// public string Unit { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeAuthorizeReplicationContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeAuthorizeReplicationContent.cs index 617a8f011fb0..2fa04250f493 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeAuthorizeReplicationContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeAuthorizeReplicationContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Authorize request. + /// + /// Authorize request + /// Serialized Name: AuthorizeRequest + /// public partial class NetAppVolumeAuthorizeReplicationContent { /// @@ -52,7 +55,10 @@ public NetAppVolumeAuthorizeReplicationContent() } /// Initializes a new instance of . - /// Resource id of the remote volume. + /// + /// Resource id of the remote volume + /// Serialized Name: AuthorizeRequest.remoteVolumeResourceId + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeAuthorizeReplicationContent(ResourceIdentifier remoteVolumeResourceId, IDictionary serializedAdditionalRawData) { @@ -60,7 +66,10 @@ internal NetAppVolumeAuthorizeReplicationContent(ResourceIdentifier remoteVolume _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Resource id of the remote volume. + /// + /// Resource id of the remote volume + /// Serialized Name: AuthorizeRequest.remoteVolumeResourceId + /// public ResourceIdentifier RemoteVolumeResourceId { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupBackupRestoreFilesContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupBackupRestoreFilesContent.cs index 508f343c084a..635b03588b2d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupBackupRestoreFilesContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupBackupRestoreFilesContent.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Restore payload for Single File Backup Restore. + /// + /// Restore payload for Single File Backup Restore + /// Serialized Name: BackupRestoreFiles + /// public partial class NetAppVolumeBackupBackupRestoreFilesContent { /// @@ -48,8 +51,14 @@ public partial class NetAppVolumeBackupBackupRestoreFilesContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// List of files to be restored. - /// Resource Id of the destination volume on which the files need to be restored. + /// + /// List of files to be restored + /// Serialized Name: BackupRestoreFiles.fileList + /// + /// + /// Resource Id of the destination volume on which the files need to be restored + /// Serialized Name: BackupRestoreFiles.destinationVolumeId + /// /// or is null. public NetAppVolumeBackupBackupRestoreFilesContent(IEnumerable fileList, ResourceIdentifier destinationVolumeId) { @@ -61,9 +70,18 @@ public NetAppVolumeBackupBackupRestoreFilesContent(IEnumerable fileList, } /// Initializes a new instance of . - /// List of files to be restored. - /// Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default. - /// Resource Id of the destination volume on which the files need to be restored. + /// + /// List of files to be restored + /// Serialized Name: BackupRestoreFiles.fileList + /// + /// + /// Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default + /// Serialized Name: BackupRestoreFiles.restoreFilePath + /// + /// + /// Resource Id of the destination volume on which the files need to be restored + /// Serialized Name: BackupRestoreFiles.destinationVolumeId + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeBackupBackupRestoreFilesContent(IList fileList, string restoreFilePath, ResourceIdentifier destinationVolumeId, IDictionary serializedAdditionalRawData) { @@ -78,11 +96,20 @@ internal NetAppVolumeBackupBackupRestoreFilesContent() { } - /// List of files to be restored. + /// + /// List of files to be restored + /// Serialized Name: BackupRestoreFiles.fileList + /// public IList FileList { get; } - /// Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default. + /// + /// Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default + /// Serialized Name: BackupRestoreFiles.restoreFilePath + /// public string RestoreFilePath { get; set; } - /// Resource Id of the destination volume on which the files need to be restored. + /// + /// Resource Id of the destination volume on which the files need to be restored + /// Serialized Name: BackupRestoreFiles.destinationVolumeId + /// public ResourceIdentifier DestinationVolumeId { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.cs index f1880ee68c2a..9cb6908e0feb 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupConfiguration.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Volume Backup Properties. + /// + /// Volume Backup Properties + /// Serialized Name: VolumeBackupProperties + /// public partial class NetAppVolumeBackupConfiguration { /// @@ -47,9 +50,18 @@ public partial class NetAppVolumeBackupConfiguration private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Backup Policy Resource ID. - /// Policy Enforced. - /// Backup Vault Resource ID. + /// + /// Backup Policy Resource ID + /// Serialized Name: VolumeBackupProperties.backupPolicyId + /// + /// + /// Policy Enforced + /// Serialized Name: VolumeBackupProperties.policyEnforced + /// + /// + /// Backup Vault Resource ID + /// Serialized Name: VolumeBackupProperties.backupVaultId + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeBackupConfiguration(ResourceIdentifier backupPolicyId, bool? isPolicyEnforced, ResourceIdentifier backupVaultId, IDictionary serializedAdditionalRawData) { @@ -59,11 +71,20 @@ internal NetAppVolumeBackupConfiguration(ResourceIdentifier backupPolicyId, bool _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Backup Policy Resource ID. + /// + /// Backup Policy Resource ID + /// Serialized Name: VolumeBackupProperties.backupPolicyId + /// public ResourceIdentifier BackupPolicyId { get; set; } - /// Policy Enforced. + /// + /// Policy Enforced + /// Serialized Name: VolumeBackupProperties.policyEnforced + /// public bool? IsPolicyEnforced { get; set; } - /// Backup Vault Resource ID. + /// + /// Backup Vault Resource ID + /// Serialized Name: VolumeBackupProperties.backupVaultId + /// public ResourceIdentifier BackupVaultId { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupDetail.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupDetail.cs index c5f82302155d..b1d9a1c95df4 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupDetail.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupDetail.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Volume details using the backup policy. + /// + /// Volume details using the backup policy + /// Serialized Name: VolumeBackups + /// public partial class NetAppVolumeBackupDetail { /// @@ -52,10 +55,22 @@ internal NetAppVolumeBackupDetail() } /// Initializes a new instance of . - /// Volume name. - /// ResourceId used to identify the Volume. - /// Total count of backups for volume. - /// Policy enabled. + /// + /// Volume name + /// Serialized Name: VolumeBackups.volumeName + /// + /// + /// ResourceId used to identify the Volume + /// Serialized Name: VolumeBackups.volumeResourceId + /// + /// + /// Total count of backups for volume + /// Serialized Name: VolumeBackups.backupsCount + /// + /// + /// Policy enabled + /// Serialized Name: VolumeBackups.policyEnabled + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeBackupDetail(string volumeName, ResourceIdentifier volumeResourceId, int? backupsCount, bool? isPolicyEnabled, IDictionary serializedAdditionalRawData) { @@ -66,13 +81,25 @@ internal NetAppVolumeBackupDetail(string volumeName, ResourceIdentifier volumeRe _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Volume name. + /// + /// Volume name + /// Serialized Name: VolumeBackups.volumeName + /// public string VolumeName { get; } - /// ResourceId used to identify the Volume. + /// + /// ResourceId used to identify the Volume + /// Serialized Name: VolumeBackups.volumeResourceId + /// public ResourceIdentifier VolumeResourceId { get; } - /// Total count of backups for volume. + /// + /// Total count of backups for volume + /// Serialized Name: VolumeBackups.backupsCount + /// public int? BackupsCount { get; } - /// Policy enabled. + /// + /// Policy enabled + /// Serialized Name: VolumeBackups.policyEnabled + /// public bool? IsPolicyEnabled { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.Serialization.cs index f73094557e9c..65bbdcf92d97 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.Serialization.cs @@ -39,10 +39,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("healthy"u8); writer.WriteBooleanValue(IsHealthy.Value); } - if (options.Format != "W" && Optional.IsDefined(RelationshipStatus)) + if (options.Format != "W" && Optional.IsDefined(VolumeBackupRelationshipStatus)) { writer.WritePropertyName("relationshipStatus"u8); - writer.WriteStringValue(RelationshipStatus.Value.ToString()); + writer.WriteStringValue(VolumeBackupRelationshipStatus.Value.ToString()); } if (options.Format != "W" && Optional.IsDefined(MirrorState)) { @@ -117,7 +117,7 @@ internal static NetAppVolumeBackupStatus DeserializeNetAppVolumeBackupStatus(Jso return null; } bool? healthy = default; - NetAppRelationshipStatus? relationshipStatus = default; + VolumeBackupRelationshipStatus? relationshipStatus = default; NetAppMirrorState? mirrorState = default; string unhealthyReason = default; string errorMessage = default; @@ -144,7 +144,7 @@ internal static NetAppVolumeBackupStatus DeserializeNetAppVolumeBackupStatus(Jso { continue; } - relationshipStatus = new NetAppRelationshipStatus(property.Value.GetString()); + relationshipStatus = new VolumeBackupRelationshipStatus(property.Value.GetString()); continue; } if (property.NameEquals("mirrorState"u8)) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.cs index 03f2ed474401..378babcc8279 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBackupStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Backup status. + /// + /// Backup status + /// Serialized Name: BackupStatus + /// public partial class NetAppVolumeBackupStatus { /// @@ -51,20 +54,47 @@ internal NetAppVolumeBackupStatus() } /// Initializes a new instance of . - /// Backup health status. - /// Status of the backup mirror relationship. - /// The mirror state property describes the current status of data replication for a backup. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. - /// Reason for the unhealthy backup relationship. - /// Displays error message if the backup is in an error state. - /// Displays the last transfer size. - /// Displays the last transfer type. - /// Displays the total bytes transferred. - /// Displays the total number of bytes transferred for the ongoing operation. + /// + /// Backup health status + /// Serialized Name: BackupStatus.healthy + /// + /// + /// Status of the backup mirror relationship + /// Serialized Name: BackupStatus.relationshipStatus + /// + /// + /// The status of the backup + /// Serialized Name: BackupStatus.mirrorState + /// + /// + /// Reason for the unhealthy backup relationship + /// Serialized Name: BackupStatus.unhealthyReason + /// + /// + /// Displays error message if the backup is in an error state + /// Serialized Name: BackupStatus.errorMessage + /// + /// + /// Displays the last transfer size + /// Serialized Name: BackupStatus.lastTransferSize + /// + /// + /// Displays the last transfer type + /// Serialized Name: BackupStatus.lastTransferType + /// + /// + /// Displays the total bytes transferred + /// Serialized Name: BackupStatus.totalTransferBytes + /// + /// + /// Displays the total number of bytes transferred for the ongoing operation + /// Serialized Name: BackupStatus.transferProgressBytes + /// /// Keeps track of any properties unknown to the library. - internal NetAppVolumeBackupStatus(bool? isHealthy, NetAppRelationshipStatus? relationshipStatus, NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? lastTransferSize, string lastTransferType, long? totalTransferBytes, long? transferProgressBytes, IDictionary serializedAdditionalRawData) + internal NetAppVolumeBackupStatus(bool? isHealthy, VolumeBackupRelationshipStatus? volumeBackupRelationshipStatus, NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? lastTransferSize, string lastTransferType, long? totalTransferBytes, long? transferProgressBytes, IDictionary serializedAdditionalRawData) { IsHealthy = isHealthy; - RelationshipStatus = relationshipStatus; + VolumeBackupRelationshipStatus = volumeBackupRelationshipStatus; MirrorState = mirrorState; UnhealthyReason = unhealthyReason; ErrorMessage = errorMessage; @@ -75,23 +105,50 @@ internal NetAppVolumeBackupStatus(bool? isHealthy, NetAppRelationshipStatus? rel _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Backup health status. + /// + /// Backup health status + /// Serialized Name: BackupStatus.healthy + /// public bool? IsHealthy { get; } - /// Status of the backup mirror relationship. - public NetAppRelationshipStatus? RelationshipStatus { get; } - /// The mirror state property describes the current status of data replication for a backup. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. + /// + /// Status of the backup mirror relationship + /// Serialized Name: BackupStatus.relationshipStatus + /// + public VolumeBackupRelationshipStatus? VolumeBackupRelationshipStatus { get; } + /// + /// The status of the backup + /// Serialized Name: BackupStatus.mirrorState + /// public NetAppMirrorState? MirrorState { get; } - /// Reason for the unhealthy backup relationship. + /// + /// Reason for the unhealthy backup relationship + /// Serialized Name: BackupStatus.unhealthyReason + /// public string UnhealthyReason { get; } - /// Displays error message if the backup is in an error state. + /// + /// Displays error message if the backup is in an error state + /// Serialized Name: BackupStatus.errorMessage + /// public string ErrorMessage { get; } - /// Displays the last transfer size. + /// + /// Displays the last transfer size + /// Serialized Name: BackupStatus.lastTransferSize + /// public long? LastTransferSize { get; } - /// Displays the last transfer type. + /// + /// Displays the last transfer type + /// Serialized Name: BackupStatus.lastTransferType + /// public string LastTransferType { get; } - /// Displays the total bytes transferred. + /// + /// Displays the total bytes transferred + /// Serialized Name: BackupStatus.totalTransferBytes + /// public long? TotalTransferBytes { get; } - /// Displays the total number of bytes transferred for the ongoing operation. + /// + /// Displays the total number of bytes transferred for the ongoing operation + /// Serialized Name: BackupStatus.transferProgressBytes + /// public long? TransferProgressBytes { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBreakFileLocksContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBreakFileLocksContent.cs index 7641377bab21..c8217f40ca58 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBreakFileLocksContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBreakFileLocksContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Break file locks request. + /// + /// Break file locks request + /// Serialized Name: BreakFileLocksRequest + /// public partial class NetAppVolumeBreakFileLocksContent { /// @@ -52,8 +55,14 @@ public NetAppVolumeBreakFileLocksContent() } /// Initializes a new instance of . - /// To clear file locks on a volume for a particular client. - /// Break File locks could be a disruptive operation for application as locks on the volume will be broken, if want to process, set to true. + /// + /// To clear file locks on a volume for a particular client + /// Serialized Name: BreakFileLocksRequest.clientIp + /// + /// + /// Break File locks could be a disruptive operation for application as locks on the volume will be broken, if want to process, set to true. + /// Serialized Name: BreakFileLocksRequest.confirmRunningDisruptiveOperation + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeBreakFileLocksContent(IPAddress clientIP, bool? confirmRunningDisruptiveOperation, IDictionary serializedAdditionalRawData) { @@ -62,9 +71,15 @@ internal NetAppVolumeBreakFileLocksContent(IPAddress clientIP, bool? confirmRunn _serializedAdditionalRawData = serializedAdditionalRawData; } - /// To clear file locks on a volume for a particular client. + /// + /// To clear file locks on a volume for a particular client + /// Serialized Name: BreakFileLocksRequest.clientIp + /// public IPAddress ClientIP { get; set; } - /// Break File locks could be a disruptive operation for application as locks on the volume will be broken, if want to process, set to true. + /// + /// Break File locks could be a disruptive operation for application as locks on the volume will be broken, if want to process, set to true. + /// Serialized Name: BreakFileLocksRequest.confirmRunningDisruptiveOperation + /// public bool? ConfirmRunningDisruptiveOperation { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBreakReplicationContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBreakReplicationContent.cs index b983b26af163..106bfed614c9 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBreakReplicationContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeBreakReplicationContent.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Break replication request. + /// + /// Break replication request + /// Serialized Name: BreakReplicationRequest + /// public partial class NetAppVolumeBreakReplicationContent { /// @@ -51,7 +54,10 @@ public NetAppVolumeBreakReplicationContent() } /// Initializes a new instance of . - /// If replication is in status transferring and you want to force break the replication, set to true. + /// + /// If replication is in status transferring and you want to force break the replication, set to true + /// Serialized Name: BreakReplicationRequest.forceBreakReplication + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeBreakReplicationContent(bool? forceBreakReplication, IDictionary serializedAdditionalRawData) { @@ -59,7 +65,10 @@ internal NetAppVolumeBreakReplicationContent(bool? forceBreakReplication, IDicti _serializedAdditionalRawData = serializedAdditionalRawData; } - /// If replication is in status transferring and you want to force break the replication, set to true. + /// + /// If replication is in status transferring and you want to force break the replication, set to true + /// Serialized Name: BreakReplicationRequest.forceBreakReplication + /// public bool? ForceBreakReplication { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.cs index a61e8bcc90d6..6b9f75f74799 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeDataProtection.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// DataProtection type volumes include an object containing details of the replication. + /// + /// DataProtection type volumes include an object containing details of the replication + /// Serialized Name: VolumePropertiesDataProtection + /// public partial class NetAppVolumeDataProtection { /// @@ -52,10 +55,22 @@ public NetAppVolumeDataProtection() } /// Initializes a new instance of . - /// Backup Properties. - /// Replication properties. - /// Snapshot properties. - /// VolumeRelocation properties. + /// + /// Backup Properties + /// Serialized Name: VolumePropertiesDataProtection.backup + /// + /// + /// Replication properties + /// Serialized Name: VolumePropertiesDataProtection.replication + /// + /// + /// Snapshot properties. + /// Serialized Name: VolumePropertiesDataProtection.snapshot + /// + /// + /// VolumeRelocation properties + /// Serialized Name: VolumePropertiesDataProtection.volumeRelocation + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeDataProtection(NetAppVolumeBackupConfiguration backup, NetAppReplicationObject replication, VolumeSnapshotProperties snapshot, NetAppVolumeRelocationProperties volumeRelocation, IDictionary serializedAdditionalRawData) { @@ -66,13 +81,25 @@ internal NetAppVolumeDataProtection(NetAppVolumeBackupConfiguration backup, NetA _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Backup Properties. + /// + /// Backup Properties + /// Serialized Name: VolumePropertiesDataProtection.backup + /// public NetAppVolumeBackupConfiguration Backup { get; set; } - /// Replication properties. + /// + /// Replication properties + /// Serialized Name: VolumePropertiesDataProtection.replication + /// public NetAppReplicationObject Replication { get; set; } - /// Snapshot properties. + /// + /// Snapshot properties. + /// Serialized Name: VolumePropertiesDataProtection.snapshot + /// internal VolumeSnapshotProperties Snapshot { get; set; } - /// Snapshot Policy ResourceId. + /// + /// Snapshot Policy ResourceId + /// Serialized Name: VolumeSnapshotProperties.snapshotPolicyId + /// public ResourceIdentifier SnapshotPolicyId { get => Snapshot is null ? default : Snapshot.SnapshotPolicyId; @@ -84,7 +111,10 @@ public ResourceIdentifier SnapshotPolicyId } } - /// VolumeRelocation properties. + /// + /// VolumeRelocation properties + /// Serialized Name: VolumePropertiesDataProtection.volumeRelocation + /// public NetAppVolumeRelocationProperties VolumeRelocation { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeExportPolicyRule.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeExportPolicyRule.cs index ff4d0fc308bb..b967c9e55d74 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeExportPolicyRule.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeExportPolicyRule.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Volume Export Policy Rule. + /// + /// Volume Export Policy Rule + /// Serialized Name: ExportPolicyRule + /// public partial class NetAppVolumeExportPolicyRule { /// @@ -51,21 +54,66 @@ public NetAppVolumeExportPolicyRule() } /// Initializes a new instance of . - /// Order index. - /// Read only access. - /// Read and write access. - /// Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later. - /// Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later. - /// Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later. - /// Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later. - /// Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later. - /// Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later. - /// Allows CIFS protocol. - /// Allows NFSv3 protocol. Enable only for NFSv3 type volumes. - /// Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes. - /// Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names. - /// Has root access to volume. - /// This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change ownership of files that they own. + /// + /// Order index + /// Serialized Name: ExportPolicyRule.ruleIndex + /// + /// + /// Read only access + /// Serialized Name: ExportPolicyRule.unixReadOnly + /// + /// + /// Read and write access + /// Serialized Name: ExportPolicyRule.unixReadWrite + /// + /// + /// Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5ReadOnly + /// + /// + /// Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5ReadWrite + /// + /// + /// Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5iReadOnly + /// + /// + /// Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5iReadWrite + /// + /// + /// Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5pReadOnly + /// + /// + /// Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5pReadWrite + /// + /// + /// Allows CIFS protocol + /// Serialized Name: ExportPolicyRule.cifs + /// + /// + /// Allows NFSv3 protocol. Enable only for NFSv3 type volumes + /// Serialized Name: ExportPolicyRule.nfsv3 + /// + /// + /// Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes + /// Serialized Name: ExportPolicyRule.nfsv41 + /// + /// + /// Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names + /// Serialized Name: ExportPolicyRule.allowedClients + /// + /// + /// Has root access to volume + /// Serialized Name: ExportPolicyRule.hasRootAccess + /// + /// + /// This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change ownership of files that they own. + /// Serialized Name: ExportPolicyRule.chownMode + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeExportPolicyRule(int? ruleIndex, bool? isUnixReadOnly, bool? isUnixReadWrite, bool? isKerberos5ReadOnly, bool? isKerberos5ReadWrite, bool? isKerberos5iReadOnly, bool? isKerberos5iReadWrite, bool? isKerberos5pReadOnly, bool? isKerberos5pReadWrite, bool? allowCifsProtocol, bool? allowNfsV3Protocol, bool? allowNfsV41Protocol, string allowedClients, bool? hasRootAccess, NetAppChownMode? chownMode, IDictionary serializedAdditionalRawData) { @@ -87,35 +135,80 @@ internal NetAppVolumeExportPolicyRule(int? ruleIndex, bool? isUnixReadOnly, bool _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Order index. + /// + /// Order index + /// Serialized Name: ExportPolicyRule.ruleIndex + /// public int? RuleIndex { get; set; } - /// Read only access. + /// + /// Read only access + /// Serialized Name: ExportPolicyRule.unixReadOnly + /// public bool? IsUnixReadOnly { get; set; } - /// Read and write access. + /// + /// Read and write access + /// Serialized Name: ExportPolicyRule.unixReadWrite + /// public bool? IsUnixReadWrite { get; set; } - /// Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later. + /// + /// Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5ReadOnly + /// public bool? IsKerberos5ReadOnly { get; set; } - /// Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later. + /// + /// Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5ReadWrite + /// public bool? IsKerberos5ReadWrite { get; set; } - /// Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later. + /// + /// Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5iReadOnly + /// public bool? IsKerberos5iReadOnly { get; set; } - /// Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later. + /// + /// Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5iReadWrite + /// public bool? IsKerberos5iReadWrite { get; set; } - /// Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later. + /// + /// Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5pReadOnly + /// public bool? IsKerberos5pReadOnly { get; set; } - /// Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later. + /// + /// Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later + /// Serialized Name: ExportPolicyRule.kerberos5pReadWrite + /// public bool? IsKerberos5pReadWrite { get; set; } - /// Allows CIFS protocol. + /// + /// Allows CIFS protocol + /// Serialized Name: ExportPolicyRule.cifs + /// public bool? AllowCifsProtocol { get; set; } - /// Allows NFSv3 protocol. Enable only for NFSv3 type volumes. + /// + /// Allows NFSv3 protocol. Enable only for NFSv3 type volumes + /// Serialized Name: ExportPolicyRule.nfsv3 + /// public bool? AllowNfsV3Protocol { get; set; } - /// Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes. + /// + /// Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes + /// Serialized Name: ExportPolicyRule.nfsv41 + /// public bool? AllowNfsV41Protocol { get; set; } - /// Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names. + /// + /// Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names + /// Serialized Name: ExportPolicyRule.allowedClients + /// public string AllowedClients { get; set; } - /// Has root access to volume. + /// + /// Has root access to volume + /// Serialized Name: ExportPolicyRule.hasRootAccess + /// public bool? HasRootAccess { get; set; } - /// This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change ownership of files that they own. + /// + /// This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change ownership of files that they own. + /// Serialized Name: ExportPolicyRule.chownMode + /// public NetAppChownMode? ChownMode { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupMetadata.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupMetadata.cs index c3b20d30e389..ed2ea2595c1b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupMetadata.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupMetadata.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Volume group properties. + /// + /// Volume group properties + /// Serialized Name: VolumeGroupMetaData + /// public partial class NetAppVolumeGroupMetadata { /// @@ -52,11 +55,26 @@ public NetAppVolumeGroupMetadata() } /// Initializes a new instance of . - /// Group Description. - /// Application Type. - /// Application specific identifier. - /// Application specific placement rules for the volume group. - /// Number of volumes in volume group. + /// + /// Group Description + /// Serialized Name: VolumeGroupMetaData.groupDescription + /// + /// + /// Application Type + /// Serialized Name: VolumeGroupMetaData.applicationType + /// + /// + /// Application specific identifier + /// Serialized Name: VolumeGroupMetaData.applicationIdentifier + /// + /// + /// Application specific placement rules for the volume group + /// Serialized Name: VolumeGroupMetaData.globalPlacementRules + /// + /// + /// Number of volumes in volume group + /// Serialized Name: VolumeGroupMetaData.volumesCount + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeGroupMetadata(string groupDescription, NetAppApplicationType? applicationType, string applicationIdentifier, IList globalPlacementRules, long? volumesCount, IDictionary serializedAdditionalRawData) { @@ -68,15 +86,30 @@ internal NetAppVolumeGroupMetadata(string groupDescription, NetAppApplicationTyp _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Group Description. + /// + /// Group Description + /// Serialized Name: VolumeGroupMetaData.groupDescription + /// public string GroupDescription { get; set; } - /// Application Type. + /// + /// Application Type + /// Serialized Name: VolumeGroupMetaData.applicationType + /// public NetAppApplicationType? ApplicationType { get; set; } - /// Application specific identifier. + /// + /// Application specific identifier + /// Serialized Name: VolumeGroupMetaData.applicationIdentifier + /// public string ApplicationIdentifier { get; set; } - /// Application specific placement rules for the volume group. + /// + /// Application specific placement rules for the volume group + /// Serialized Name: VolumeGroupMetaData.globalPlacementRules + /// public IList GlobalPlacementRules { get; } - /// Number of volumes in volume group. + /// + /// Number of volumes in volume group + /// Serialized Name: VolumeGroupMetaData.volumesCount + /// public long? VolumesCount { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs index d06b810d110f..08268874d34d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResult.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Volume group resource. + /// + /// Volume group resource + /// Serialized Name: VolumeGroup + /// public partial class NetAppVolumeGroupResult : ResourceData { /// @@ -57,9 +60,18 @@ internal NetAppVolumeGroupResult() /// The name. /// The resourceType. /// The systemData. - /// Resource location. - /// Azure lifecycle management. - /// Volume group details. + /// + /// Resource location + /// Serialized Name: VolumeGroup.location + /// + /// + /// Azure lifecycle management + /// Serialized Name: VolumeGroup.properties.provisioningState + /// + /// + /// Volume group details + /// Serialized Name: VolumeGroup.properties.groupMetaData + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeGroupResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, string provisioningState, NetAppVolumeGroupMetadata groupMetaData, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -69,11 +81,20 @@ internal NetAppVolumeGroupResult(ResourceIdentifier id, string name, ResourceTyp _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Resource location. + /// + /// Resource location + /// Serialized Name: VolumeGroup.location + /// public AzureLocation? Location { get; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: VolumeGroup.properties.provisioningState + /// public string ProvisioningState { get; } - /// Volume group details. + /// + /// Volume group details + /// Serialized Name: VolumeGroup.properties.groupMetaData + /// public NetAppVolumeGroupMetadata GroupMetaData { get; } } } 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 86d562d21ac4..41621134bb57 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 @@ -266,18 +266,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("ldapEnabled"u8); writer.WriteBooleanValue(IsLdapEnabled.Value); } - if (Optional.IsDefined(LdapServerType)) - { - if (LdapServerType != null) - { - writer.WritePropertyName("ldapServerType"u8); - writer.WriteStringValue(LdapServerType.Value.ToString()); - } - else - { - writer.WriteNull("ldapServerType"); - } - } if (Optional.IsDefined(IsCoolAccessEnabled)) { writer.WritePropertyName("coolAccess"u8); @@ -453,18 +441,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteNull("inheritedSizeInBytes"); } } - if (Optional.IsDefined(Language)) - { - if (Language != null) - { - writer.WritePropertyName("language"u8); - writer.WriteStringValue(Language.Value.ToString()); - } - else - { - writer.WriteNull("language"); - } - } writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -541,7 +517,6 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE NetAppEncryptionKeySource? encryptionKeySource = default; ResourceIdentifier keyVaultPrivateEndpointResourceId = default; bool? ldapEnabled = default; - LdapServerType? ldapServerType = default; bool? coolAccess = default; int? coolnessPeriod = default; CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default; @@ -567,7 +542,6 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE bool? isLargeVolume = default; ResourceIdentifier originatingResourceId = default; long? inheritedSizeInBytes = default; - NetAppVolumeLanguage? language = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -919,16 +893,6 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE ldapEnabled = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("ldapServerType"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - ldapServerType = null; - continue; - } - ldapServerType = new LdapServerType(property0.Value.GetString()); - continue; - } if (property0.NameEquals("coolAccess"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -1164,16 +1128,6 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE inheritedSizeInBytes = property0.Value.GetInt64(); continue; } - if (property0.NameEquals("language"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - language = null; - continue; - } - language = new NetAppVolumeLanguage(property0.Value.GetString()); - continue; - } } continue; } @@ -1222,7 +1176,6 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE encryptionKeySource, keyVaultPrivateEndpointResourceId, ldapEnabled, - ldapServerType, coolAccess, coolnessPeriod, coolAccessRetrievalPolicy, @@ -1248,7 +1201,6 @@ internal static NetAppVolumeGroupVolume DeserializeNetAppVolumeGroupVolume(JsonE isLargeVolume, originatingResourceId, inheritedSizeInBytes, - language, serializedAdditionalRawData); } 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 9c230ebafb11..e23cd59c779f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Volume resource. + /// + /// Volume resource + /// Serialized Name: VolumeGroupVolumeProperties + /// public partial class NetAppVolumeGroupVolume { /// @@ -47,9 +50,18 @@ public partial class NetAppVolumeGroupVolume private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// A unique file path for the volume. Used when creating mount targets. - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. + /// + /// A unique file path for the volume. Used when creating mount targets + /// Serialized Name: VolumeGroupVolumeProperties.properties.creationToken + /// + /// + /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// Serialized Name: VolumeGroupVolumeProperties.properties.usageThreshold + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: VolumeGroupVolumeProperties.properties.subnetId + /// /// or is null. public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, ResourceIdentifier subnetId) { @@ -68,78 +80,263 @@ public NetAppVolumeGroupVolume(string creationToken, long usageThreshold, Resour } /// Initializes a new instance of . - /// Resource Id. - /// Resource name. - /// Resource type. - /// Resource tags. - /// Availability Zone. - /// Unique FileSystem Identifier. - /// A unique file path for the volume. Used when creating mount targets. - /// The service level of the file system. - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. - /// Set of export policy rules. - /// Set of protocol types, default NFSv3, CIFS for SMB protocol. - /// Azure lifecycle management. - /// Resource identifier used to identify the Snapshot. - /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false. - /// Resource identifier used to identify the Backup. - /// Unique Baremetal Tenant Identifier. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// The original value of the network features type available to the volume at the time it was created. - /// The effective value of the network features type available to the volume, or current effective state of update. - /// Network Sibling Set ID for the the group of volumes sharing networking resources. - /// Provides storage to network proximity information for the volume. - /// List of mount targets. - /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone. - /// DataProtection type volumes include an object containing details of the replication. - /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. - /// Restoring. - /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (defaults to true). - /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. - /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. - /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables continuously available share property for smb volume. Only applicable for SMB volume. - /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. - /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. - /// Source of key used to encrypt data in volume. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'. - /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - /// Specifies whether LDAP is enabled or not for a given NFS volume. - /// Specifies the type of LDAP server for a given NFS volume. - /// Specifies whether Cool Access(tiering) is enabled for the volume. - /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// + /// Resource Id + /// Serialized Name: VolumeGroupVolumeProperties.id + /// + /// + /// Resource name + /// Serialized Name: VolumeGroupVolumeProperties.name + /// + /// + /// Resource type + /// Serialized Name: VolumeGroupVolumeProperties.type + /// + /// + /// Resource tags + /// Serialized Name: VolumeGroupVolumeProperties.tags + /// + /// + /// Availability Zone + /// Serialized Name: VolumeGroupVolumeProperties.zones + /// + /// + /// Unique FileSystem Identifier. + /// Serialized Name: VolumeGroupVolumeProperties.properties.fileSystemId + /// + /// + /// A unique file path for the volume. Used when creating mount targets + /// Serialized Name: VolumeGroupVolumeProperties.properties.creationToken + /// + /// + /// The service level of the file system + /// Serialized Name: VolumeGroupVolumeProperties.properties.serviceLevel + /// + /// + /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// Serialized Name: VolumeGroupVolumeProperties.properties.usageThreshold + /// + /// + /// Set of export policy rules + /// Serialized Name: VolumeGroupVolumeProperties.properties.exportPolicy + /// + /// + /// Set of protocol types, default NFSv3, CIFS for SMB protocol + /// Serialized Name: VolumeGroupVolumeProperties.properties.protocolTypes + /// + /// + /// Azure lifecycle management + /// Serialized Name: VolumeGroupVolumeProperties.properties.provisioningState + /// + /// + /// Resource identifier used to identify the Snapshot. + /// Serialized Name: VolumeGroupVolumeProperties.properties.snapshotId + /// + /// + /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false + /// Serialized Name: VolumeGroupVolumeProperties.properties.deleteBaseSnapshot + /// + /// + /// Resource identifier used to identify the Backup. + /// Serialized Name: VolumeGroupVolumeProperties.properties.backupId + /// + /// + /// Unique Baremetal Tenant Identifier. + /// Serialized Name: VolumeGroupVolumeProperties.properties.baremetalTenantId + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: VolumeGroupVolumeProperties.properties.subnetId + /// + /// + /// The original value of the network features type available to the volume at the time it was created. + /// Serialized Name: VolumeGroupVolumeProperties.properties.networkFeatures + /// + /// + /// The effective value of the network features type available to the volume, or current effective state of update. + /// Serialized Name: VolumeGroupVolumeProperties.properties.effectiveNetworkFeatures + /// + /// + /// Network Sibling Set ID for the the group of volumes sharing networking resources. + /// Serialized Name: VolumeGroupVolumeProperties.properties.networkSiblingSetId + /// + /// + /// Provides storage to network proximity information for the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.storageToNetworkProximity + /// + /// + /// List of mount targets + /// Serialized Name: VolumeGroupVolumeProperties.properties.mountTargets + /// + /// + /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone + /// Serialized Name: VolumeGroupVolumeProperties.properties.volumeType + /// + /// + /// DataProtection type volumes include an object containing details of the replication + /// Serialized Name: VolumeGroupVolumeProperties.properties.dataProtection + /// + /// + /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. + /// Serialized Name: VolumeGroupVolumeProperties.properties.acceptGrowCapacityPoolForShortTermCloneSplit + /// + /// + /// Restoring + /// Serialized Name: VolumeGroupVolumeProperties.properties.isRestoring + /// + /// + /// 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). + /// Serialized Name: VolumeGroupVolumeProperties.properties.snapshotDirectoryVisible + /// + /// + /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later + /// Serialized Name: VolumeGroupVolumeProperties.properties.kerberosEnabled + /// + /// + /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol + /// Serialized Name: VolumeGroupVolumeProperties.properties.securityStyle + /// + /// + /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbEncryption + /// + /// + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbAccessBasedEnumeration + /// + /// + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbNonBrowsable + /// + /// + /// Enables continuously available share property for smb volume. Only applicable for SMB volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbContinuouslyAvailable + /// + /// + /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.throughputMibps + /// + /// + /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel + /// Serialized Name: VolumeGroupVolumeProperties.properties.actualThroughputMibps + /// + /// + /// 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' + /// Serialized Name: VolumeGroupVolumeProperties.properties.encryptionKeySource + /// + /// + /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. + /// Serialized Name: VolumeGroupVolumeProperties.properties.keyVaultPrivateEndpointResourceId + /// + /// + /// Specifies whether LDAP is enabled or not for a given NFS volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.ldapEnabled + /// + /// + /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolAccess + /// + /// + /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolnessPeriod + /// /// /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: - /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. - /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. - /// Never - No client-driven data is pulled from cool tier to standard storage. - /// - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. - /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain as its last saved value only. - /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. - /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. - /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - /// Data store resource unique identifier. - /// Specifies if default quota is enabled for the volume. - /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . - /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. - /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. - /// Volume Group Name. - /// Pool Resource Id used in case of creating a volume through volume group. - /// Proximity placement group associated with the volume. - /// T2 network information. - /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log. - /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. - /// Application specific placement rules for the particular volume. - /// Flag indicating whether subvolume operations are enabled on the volume. - /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. - /// Specifies whether volume is a Large Volume or Regular Volume. - /// Id of the snapshot or backup that the volume is restored from. - /// Space shared by short term clone volume with parent volume in bytes. - /// Language supported for volume. + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolAccessRetrievalPolicy + /// + /// + /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolAccessTieringPolicy + /// + /// + /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. + /// Serialized Name: VolumeGroupVolumeProperties.properties.unixPermissions + /// + /// + /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. + /// Serialized Name: VolumeGroupVolumeProperties.properties.cloneProgress + /// + /// + /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.fileAccessLogs + /// + /// + /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose + /// Serialized Name: VolumeGroupVolumeProperties.properties.avsDataStore + /// + /// + /// Data store resource unique identifier + /// Serialized Name: VolumeGroupVolumeProperties.properties.dataStoreResourceId + /// + /// + /// Specifies if default quota is enabled for the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.isDefaultQuotaEnabled + /// + /// + /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// Serialized Name: VolumeGroupVolumeProperties.properties.defaultUserQuotaInKiBs + /// + /// + /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// Serialized Name: VolumeGroupVolumeProperties.properties.defaultGroupQuotaInKiBs + /// + /// + /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. + /// Serialized Name: VolumeGroupVolumeProperties.properties.maximumNumberOfFiles + /// + /// + /// Volume Group Name + /// Serialized Name: VolumeGroupVolumeProperties.properties.volumeGroupName + /// + /// + /// Pool Resource Id used in case of creating a volume through volume group + /// Serialized Name: VolumeGroupVolumeProperties.properties.capacityPoolResourceId + /// + /// + /// Proximity placement group associated with the volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.proximityPlacementGroup + /// + /// + /// T2 network information + /// Serialized Name: VolumeGroupVolumeProperties.properties.t2Network + /// + /// + /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log + /// Serialized Name: VolumeGroupVolumeProperties.properties.volumeSpecName + /// + /// + /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. + /// Serialized Name: VolumeGroupVolumeProperties.properties.encrypted + /// + /// + /// Application specific placement rules for the particular volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.placementRules + /// + /// + /// Flag indicating whether subvolume operations are enabled on the volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.enableSubvolumes + /// + /// + /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + /// Serialized Name: VolumeGroupVolumeProperties.properties.provisionedAvailabilityZone + /// + /// + /// Specifies whether volume is a Large Volume or Regular Volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.isLargeVolume + /// + /// + /// Id of the snapshot or backup that the volume is restored from. + /// Serialized Name: VolumeGroupVolumeProperties.properties.originatingResourceId + /// + /// + /// Space shared by short term clone volume with parent volume in bytes. + /// Serialized Name: VolumeGroupVolumeProperties.properties.inheritedSizeInBytes + /// /// Keeps track of any properties unknown to the library. - internal NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary tags, IList zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, VolumePropertiesExportPolicy exportPolicy, IList protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, NetAppNetworkFeature? effectiveNetworkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IReadOnlyList mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit, 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, LdapServerType? ldapServerType, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, CoolAccessTieringPolicy? coolAccessTieringPolicy, 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, long? inheritedSizeInBytes, NetAppVolumeLanguage? language, IDictionary serializedAdditionalRawData) + internal NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary tags, IList zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, VolumePropertiesExportPolicy exportPolicy, IList protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, NetAppNetworkFeature? effectiveNetworkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IReadOnlyList mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, CoolAccessTieringPolicy? coolAccessTieringPolicy, 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, long? inheritedSizeInBytes, IDictionary serializedAdditionalRawData) { Id = id; Name = name; @@ -179,7 +376,6 @@ internal NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceTyp EncryptionKeySource = encryptionKeySource; KeyVaultPrivateEndpointResourceId = keyVaultPrivateEndpointResourceId; IsLdapEnabled = isLdapEnabled; - LdapServerType = ldapServerType; IsCoolAccessEnabled = isCoolAccessEnabled; CoolnessPeriod = coolnessPeriod; CoolAccessRetrievalPolicy = coolAccessRetrievalPolicy; @@ -205,7 +401,6 @@ internal NetAppVolumeGroupVolume(ResourceIdentifier id, string name, ResourceTyp IsLargeVolume = isLargeVolume; OriginatingResourceId = originatingResourceId; InheritedSizeInBytes = inheritedSizeInBytes; - Language = language; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -214,27 +409,60 @@ internal NetAppVolumeGroupVolume() { } - /// Resource Id. + /// + /// Resource Id + /// Serialized Name: VolumeGroupVolumeProperties.id + /// public ResourceIdentifier Id { get; } - /// Resource name. + /// + /// Resource name + /// Serialized Name: VolumeGroupVolumeProperties.name + /// public string Name { get; set; } - /// Resource type. + /// + /// Resource type + /// Serialized Name: VolumeGroupVolumeProperties.type + /// public ResourceType? ResourceType { get; } - /// Resource tags. + /// + /// Resource tags + /// Serialized Name: VolumeGroupVolumeProperties.tags + /// public IDictionary Tags { get; } - /// Availability Zone. + /// + /// Availability Zone + /// Serialized Name: VolumeGroupVolumeProperties.zones + /// public IList Zones { get; } - /// Unique FileSystem Identifier. + /// + /// Unique FileSystem Identifier. + /// Serialized Name: VolumeGroupVolumeProperties.properties.fileSystemId + /// public Guid? FileSystemId { get; } - /// A unique file path for the volume. Used when creating mount targets. + /// + /// A unique file path for the volume. Used when creating mount targets + /// Serialized Name: VolumeGroupVolumeProperties.properties.creationToken + /// public string CreationToken { get; set; } - /// The service level of the file system. + /// + /// The service level of the file system + /// Serialized Name: VolumeGroupVolumeProperties.properties.serviceLevel + /// public NetAppFileServiceLevel? ServiceLevel { get; set; } - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// + /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// Serialized Name: VolumeGroupVolumeProperties.properties.usageThreshold + /// public long UsageThreshold { get; set; } - /// Set of export policy rules. + /// + /// Set of export policy rules + /// Serialized Name: VolumeGroupVolumeProperties.properties.exportPolicy + /// internal VolumePropertiesExportPolicy ExportPolicy { get; set; } - /// Export policy rule. + /// + /// Export policy rule + /// Serialized Name: VolumePropertiesExportPolicy.rules + /// public IList ExportRules { get @@ -245,118 +473,268 @@ public IList ExportRules } } - /// Set of protocol types, default NFSv3, CIFS for SMB protocol. + /// + /// Set of protocol types, default NFSv3, CIFS for SMB protocol + /// Serialized Name: VolumeGroupVolumeProperties.properties.protocolTypes + /// public IList ProtocolTypes { get; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: VolumeGroupVolumeProperties.properties.provisioningState + /// public string ProvisioningState { get; } - /// Resource identifier used to identify the Snapshot. + /// + /// Resource identifier used to identify the Snapshot. + /// Serialized Name: VolumeGroupVolumeProperties.properties.snapshotId + /// public string SnapshotId { get; set; } - /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false. + /// + /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false + /// Serialized Name: VolumeGroupVolumeProperties.properties.deleteBaseSnapshot + /// public bool? DeleteBaseSnapshot { get; set; } - /// Resource identifier used to identify the Backup. + /// + /// Resource identifier used to identify the Backup. + /// Serialized Name: VolumeGroupVolumeProperties.properties.backupId + /// public string BackupId { get; set; } - /// Unique Baremetal Tenant Identifier. + /// + /// Unique Baremetal Tenant Identifier. + /// Serialized Name: VolumeGroupVolumeProperties.properties.baremetalTenantId + /// public string BaremetalTenantId { get; } - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: VolumeGroupVolumeProperties.properties.subnetId + /// public ResourceIdentifier SubnetId { get; set; } - /// The original value of the network features type available to the volume at the time it was created. + /// + /// The original value of the network features type available to the volume at the time it was created. + /// Serialized Name: VolumeGroupVolumeProperties.properties.networkFeatures + /// public NetAppNetworkFeature? NetworkFeatures { get; set; } - /// The effective value of the network features type available to the volume, or current effective state of update. + /// + /// The effective value of the network features type available to the volume, or current effective state of update. + /// Serialized Name: VolumeGroupVolumeProperties.properties.effectiveNetworkFeatures + /// public NetAppNetworkFeature? EffectiveNetworkFeatures { get; } - /// Network Sibling Set ID for the the group of volumes sharing networking resources. + /// + /// Network Sibling Set ID for the the group of volumes sharing networking resources. + /// Serialized Name: VolumeGroupVolumeProperties.properties.networkSiblingSetId + /// public Guid? NetworkSiblingSetId { get; } - /// Provides storage to network proximity information for the volume. + /// + /// Provides storage to network proximity information for the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.storageToNetworkProximity + /// public NetAppVolumeStorageToNetworkProximity? StorageToNetworkProximity { get; } - /// List of mount targets. + /// + /// List of mount targets + /// Serialized Name: VolumeGroupVolumeProperties.properties.mountTargets + /// public IReadOnlyList MountTargets { get; } - /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone. + /// + /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone + /// Serialized Name: VolumeGroupVolumeProperties.properties.volumeType + /// public string VolumeType { get; set; } - /// DataProtection type volumes include an object containing details of the replication. + /// + /// DataProtection type volumes include an object containing details of the replication + /// Serialized Name: VolumeGroupVolumeProperties.properties.dataProtection + /// public NetAppVolumeDataProtection DataProtection { get; set; } - /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. + /// + /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. + /// Serialized Name: VolumeGroupVolumeProperties.properties.acceptGrowCapacityPoolForShortTermCloneSplit + /// public AcceptGrowCapacityPoolForShortTermCloneSplit? AcceptGrowCapacityPoolForShortTermCloneSplit { get; set; } - /// 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). + /// + /// 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). + /// Serialized Name: VolumeGroupVolumeProperties.properties.snapshotDirectoryVisible + /// public bool? IsSnapshotDirectoryVisible { get; set; } - /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. + /// + /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later + /// Serialized Name: VolumeGroupVolumeProperties.properties.kerberosEnabled + /// public bool? IsKerberosEnabled { get; set; } - /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. + /// + /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol + /// Serialized Name: VolumeGroupVolumeProperties.properties.securityStyle + /// public NetAppVolumeSecurityStyle? SecurityStyle { get; set; } - /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. + /// + /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbEncryption + /// public bool? IsSmbEncryptionEnabled { get; set; } - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbAccessBasedEnumeration + /// public SmbAccessBasedEnumeration? SmbAccessBasedEnumeration { get; set; } - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbNonBrowsable + /// public SmbNonBrowsable? SmbNonBrowsable { get; set; } - /// Enables continuously available share property for smb volume. Only applicable for SMB volume. + /// + /// Enables continuously available share property for smb volume. Only applicable for SMB volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.smbContinuouslyAvailable + /// 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. + /// + /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.throughputMibps + /// public float? ThroughputMibps { get; set; } - /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. + /// + /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel + /// Serialized Name: VolumeGroupVolumeProperties.properties.actualThroughputMibps + /// 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'. + /// + /// 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' + /// Serialized Name: VolumeGroupVolumeProperties.properties.encryptionKeySource + /// 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'. + /// + /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. + /// Serialized Name: VolumeGroupVolumeProperties.properties.keyVaultPrivateEndpointResourceId + /// public ResourceIdentifier KeyVaultPrivateEndpointResourceId { get; set; } - /// Specifies whether LDAP is enabled or not for a given NFS volume. + /// + /// Specifies whether LDAP is enabled or not for a given NFS volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.ldapEnabled + /// public bool? IsLdapEnabled { get; set; } - /// Specifies the type of LDAP server for a given NFS volume. - public LdapServerType? LdapServerType { get; set; } - /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// + /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolAccess + /// public bool? IsCoolAccessEnabled { get; set; } - /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// + /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolnessPeriod + /// public int? CoolnessPeriod { get; set; } /// /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: - /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. - /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. - /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolAccessRetrievalPolicy /// public CoolAccessRetrievalPolicy? CoolAccessRetrievalPolicy { get; set; } - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// + /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// Serialized Name: VolumeGroupVolumeProperties.properties.coolAccessTieringPolicy + /// public CoolAccessTieringPolicy? CoolAccessTieringPolicy { get; set; } - /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain as its last saved value only. + /// + /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. + /// Serialized Name: VolumeGroupVolumeProperties.properties.unixPermissions + /// public string UnixPermissions { get; set; } - /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. + /// + /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. + /// Serialized Name: VolumeGroupVolumeProperties.properties.cloneProgress + /// public int? CloneProgress { get; } - /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// + /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.fileAccessLogs + /// public NetAppFileAccessLog? FileAccessLogs { get; } - /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + /// + /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose + /// Serialized Name: VolumeGroupVolumeProperties.properties.avsDataStore + /// public NetAppAvsDataStore? AvsDataStore { get; set; } - /// Data store resource unique identifier. + /// + /// Data store resource unique identifier + /// Serialized Name: VolumeGroupVolumeProperties.properties.dataStoreResourceId + /// public IReadOnlyList DataStoreResourceId { get; } - /// Specifies if default quota is enabled for the volume. + /// + /// Specifies if default quota is enabled for the volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.isDefaultQuotaEnabled + /// public bool? IsDefaultQuotaEnabled { get; set; } - /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// + /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// Serialized Name: VolumeGroupVolumeProperties.properties.defaultUserQuotaInKiBs + /// public long? DefaultUserQuotaInKiBs { get; set; } - /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// + /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// Serialized Name: VolumeGroupVolumeProperties.properties.defaultGroupQuotaInKiBs + /// public long? DefaultGroupQuotaInKiBs { get; set; } - /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. + /// + /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. + /// Serialized Name: VolumeGroupVolumeProperties.properties.maximumNumberOfFiles + /// public long? MaximumNumberOfFiles { get; } - /// Volume Group Name. + /// + /// Volume Group Name + /// Serialized Name: VolumeGroupVolumeProperties.properties.volumeGroupName + /// public string VolumeGroupName { get; } - /// Pool Resource Id used in case of creating a volume through volume group. + /// + /// Pool Resource Id used in case of creating a volume through volume group + /// Serialized Name: VolumeGroupVolumeProperties.properties.capacityPoolResourceId + /// public ResourceIdentifier CapacityPoolResourceId { get; set; } - /// Proximity placement group associated with the volume. + /// + /// Proximity placement group associated with the volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.proximityPlacementGroup + /// public ResourceIdentifier ProximityPlacementGroupId { get; set; } - /// T2 network information. + /// + /// T2 network information + /// Serialized Name: VolumeGroupVolumeProperties.properties.t2Network + /// public string T2Network { get; } - /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log. + /// + /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log + /// Serialized Name: VolumeGroupVolumeProperties.properties.volumeSpecName + /// public string VolumeSpecName { get; set; } - /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. + /// + /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. + /// Serialized Name: VolumeGroupVolumeProperties.properties.encrypted + /// public bool? IsEncrypted { get; } - /// Application specific placement rules for the particular volume. + /// + /// Application specific placement rules for the particular volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.placementRules + /// public IList PlacementRules { get; } - /// Flag indicating whether subvolume operations are enabled on the volume. + /// + /// Flag indicating whether subvolume operations are enabled on the volume + /// Serialized Name: VolumeGroupVolumeProperties.properties.enableSubvolumes + /// public EnableNetAppSubvolume? EnableSubvolumes { get; set; } - /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + /// + /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + /// Serialized Name: VolumeGroupVolumeProperties.properties.provisionedAvailabilityZone + /// public string ProvisionedAvailabilityZone { get; } - /// Specifies whether volume is a Large Volume or Regular Volume. + /// + /// Specifies whether volume is a Large Volume or Regular Volume. + /// Serialized Name: VolumeGroupVolumeProperties.properties.isLargeVolume + /// public bool? IsLargeVolume { get; set; } - /// Id of the snapshot or backup that the volume is restored from. + /// + /// Id of the snapshot or backup that the volume is restored from. + /// Serialized Name: VolumeGroupVolumeProperties.properties.originatingResourceId + /// public ResourceIdentifier OriginatingResourceId { get; } - /// Space shared by short term clone volume with parent volume in bytes. + /// + /// Space shared by short term clone volume with parent volume in bytes. + /// Serialized Name: VolumeGroupVolumeProperties.properties.inheritedSizeInBytes + /// public long? InheritedSizeInBytes { get; } - /// Language supported for volume. - public NetAppVolumeLanguage? Language { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeLanguage.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeLanguage.cs deleted file mode 100644 index ef814a5f25eb..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeLanguage.cs +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Language supported for volume. - public readonly partial struct NetAppVolumeLanguage : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public NetAppVolumeLanguage(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string CUtf8Value = "c.utf-8"; - private const string Utf8Mb4Value = "utf8mb4"; - private const string ArValue = "ar"; - private const string ArUtf8Value = "ar.utf-8"; - private const string HrValue = "hr"; - private const string HrUtf8Value = "hr.utf-8"; - private const string CsValue = "cs"; - private const string CsUtf8Value = "cs.utf-8"; - private const string DaValue = "da"; - private const string DaUtf8Value = "da.utf-8"; - private const string NlValue = "nl"; - private const string NlUtf8Value = "nl.utf-8"; - private const string EnValue = "en"; - private const string EnUtf8Value = "en.utf-8"; - private const string FiValue = "fi"; - private const string FiUtf8Value = "fi.utf-8"; - private const string FrValue = "fr"; - private const string FrUtf8Value = "fr.utf-8"; - private const string DeValue = "de"; - private const string DeUtf8Value = "de.utf-8"; - private const string HeValue = "he"; - private const string HeUtf8Value = "he.utf-8"; - private const string HuValue = "hu"; - private const string HuUtf8Value = "hu.utf-8"; - private const string ItValue = "it"; - private const string ItUtf8Value = "it.utf-8"; - private const string JaValue = "ja"; - private const string JaUtf8Value = "ja.utf-8"; - private const string JaV1Value = "ja-v1"; - private const string JaV1Utf8Value = "ja-v1.utf-8"; - private const string JaJpPckValue = "ja-jp.pck"; - private const string JaJpPckUtf8Value = "ja-jp.pck.utf-8"; - private const string JaJp932Value = "ja-jp.932"; - private const string JaJp932Utf8Value = "ja-jp.932.utf-8"; - private const string JaJpPckV2Value = "ja-jp.pck-v2"; - private const string JaJpPckV2Utf8Value = "ja-jp.pck-v2.utf-8"; - private const string KoValue = "ko"; - private const string KoUtf8Value = "ko.utf-8"; - private const string NoValue = "no"; - private const string NoUtf8Value = "no.utf-8"; - private const string PlValue = "pl"; - private const string PlUtf8Value = "pl.utf-8"; - private const string PtValue = "pt"; - private const string PtUtf8Value = "pt.utf-8"; - private const string CValue = "c"; - private const string RoValue = "ro"; - private const string RoUtf8Value = "ro.utf-8"; - private const string RuValue = "ru"; - private const string RuUtf8Value = "ru.utf-8"; - private const string ZhValue = "zh"; - private const string ZhUtf8Value = "zh.utf-8"; - private const string ZhGbkValue = "zh.gbk"; - private const string ZhGbkUtf8Value = "zh.gbk.utf-8"; - private const string ZhTwBig5Value = "zh-tw.big5"; - private const string ZhTwBig5Utf8Value = "zh-tw.big5.utf-8"; - private const string ZhTwValue = "zh-tw"; - private const string ZhTwUtf8Value = "zh-tw.utf-8"; - private const string SkValue = "sk"; - private const string SkUtf8Value = "sk.utf-8"; - private const string SlValue = "sl"; - private const string SlUtf8Value = "sl.utf-8"; - private const string EsValue = "es"; - private const string EsUtf8Value = "es.utf-8"; - private const string SvValue = "sv"; - private const string SvUtf8Value = "sv.utf-8"; - private const string TrValue = "tr"; - private const string TrUtf8Value = "tr.utf-8"; - private const string EnUsValue = "en-us"; - private const string EnUsUtf8Value = "en-us.utf-8"; - - /// Posix with UTF-8. - public static NetAppVolumeLanguage CUtf8 { get; } = new NetAppVolumeLanguage(CUtf8Value); - /// UTF-8 with 4 byte character support. - public static NetAppVolumeLanguage Utf8Mb4 { get; } = new NetAppVolumeLanguage(Utf8Mb4Value); - /// Arabic - Deprecated. - public static NetAppVolumeLanguage Ar { get; } = new NetAppVolumeLanguage(ArValue); - /// Arabic with UTF-8. - public static NetAppVolumeLanguage ArUtf8 { get; } = new NetAppVolumeLanguage(ArUtf8Value); - /// Croatian - Deprecated. - public static NetAppVolumeLanguage Hr { get; } = new NetAppVolumeLanguage(HrValue); - /// Croatian with UTF-8. - public static NetAppVolumeLanguage HrUtf8 { get; } = new NetAppVolumeLanguage(HrUtf8Value); - /// Czech - Deprecated. - public static NetAppVolumeLanguage Cs { get; } = new NetAppVolumeLanguage(CsValue); - /// Czech with UTF-8. - public static NetAppVolumeLanguage CsUtf8 { get; } = new NetAppVolumeLanguage(CsUtf8Value); - /// Danish - Deprecated. - public static NetAppVolumeLanguage Da { get; } = new NetAppVolumeLanguage(DaValue); - /// Danish with UTF-8. - public static NetAppVolumeLanguage DaUtf8 { get; } = new NetAppVolumeLanguage(DaUtf8Value); - /// Dutch - Deprecated. - public static NetAppVolumeLanguage Nl { get; } = new NetAppVolumeLanguage(NlValue); - /// Dutch with UTF-8. - public static NetAppVolumeLanguage NlUtf8 { get; } = new NetAppVolumeLanguage(NlUtf8Value); - /// English - Deprecated. - public static NetAppVolumeLanguage En { get; } = new NetAppVolumeLanguage(EnValue); - /// English with UTF-8. - public static NetAppVolumeLanguage EnUtf8 { get; } = new NetAppVolumeLanguage(EnUtf8Value); - /// Finnish - Deprecated. - public static NetAppVolumeLanguage Fi { get; } = new NetAppVolumeLanguage(FiValue); - /// Finnish with UTF-8. - public static NetAppVolumeLanguage FiUtf8 { get; } = new NetAppVolumeLanguage(FiUtf8Value); - /// French - Deprecated. - public static NetAppVolumeLanguage Fr { get; } = new NetAppVolumeLanguage(FrValue); - /// French with UTF-8. - public static NetAppVolumeLanguage FrUtf8 { get; } = new NetAppVolumeLanguage(FrUtf8Value); - /// German - Deprecated. - public static NetAppVolumeLanguage De { get; } = new NetAppVolumeLanguage(DeValue); - /// German with UTF-8. - public static NetAppVolumeLanguage DeUtf8 { get; } = new NetAppVolumeLanguage(DeUtf8Value); - /// Hebrew - Deprecated. - public static NetAppVolumeLanguage He { get; } = new NetAppVolumeLanguage(HeValue); - /// Hebrew with UTF-8. - public static NetAppVolumeLanguage HeUtf8 { get; } = new NetAppVolumeLanguage(HeUtf8Value); - /// Hungarian - Deprecated. - public static NetAppVolumeLanguage Hu { get; } = new NetAppVolumeLanguage(HuValue); - /// Hungarian with UTF-8. - public static NetAppVolumeLanguage HuUtf8 { get; } = new NetAppVolumeLanguage(HuUtf8Value); - /// Italian - Deprecated. - public static NetAppVolumeLanguage It { get; } = new NetAppVolumeLanguage(ItValue); - /// Italian with UTF-8. - public static NetAppVolumeLanguage ItUtf8 { get; } = new NetAppVolumeLanguage(ItUtf8Value); - /// Japanese euc-j - Deprecated. - public static NetAppVolumeLanguage Ja { get; } = new NetAppVolumeLanguage(JaValue); - /// Japanese euc-j with UTF-8. - public static NetAppVolumeLanguage JaUtf8 { get; } = new NetAppVolumeLanguage(JaUtf8Value); - /// Japanese euc-j - Deprecated. - public static NetAppVolumeLanguage JaV1 { get; } = new NetAppVolumeLanguage(JaV1Value); - /// Japanese euc-j with UTF-8. - public static NetAppVolumeLanguage JaV1Utf8 { get; } = new NetAppVolumeLanguage(JaV1Utf8Value); - /// Japanese pck. - public static NetAppVolumeLanguage JaJpPck { get; } = new NetAppVolumeLanguage(JaJpPckValue); - /// Japanese pck with UTF-8 - Deprecated. - public static NetAppVolumeLanguage JaJpPckUtf8 { get; } = new NetAppVolumeLanguage(JaJpPckUtf8Value); - /// Japanese cp932. - public static NetAppVolumeLanguage JaJp932 { get; } = new NetAppVolumeLanguage(JaJp932Value); - /// Japanese cp932 with UTF-8 - Deprecated. - public static NetAppVolumeLanguage JaJp932Utf8 { get; } = new NetAppVolumeLanguage(JaJp932Utf8Value); - /// Japanese pck - sjis. - public static NetAppVolumeLanguage JaJpPckV2 { get; } = new NetAppVolumeLanguage(JaJpPckV2Value); - /// Japanese pck - sjis with UTF-8 - Deprecated. - public static NetAppVolumeLanguage JaJpPckV2Utf8 { get; } = new NetAppVolumeLanguage(JaJpPckV2Utf8Value); - /// Korean - Deprecated. - public static NetAppVolumeLanguage Ko { get; } = new NetAppVolumeLanguage(KoValue); - /// Korean with UTF-8. - public static NetAppVolumeLanguage KoUtf8 { get; } = new NetAppVolumeLanguage(KoUtf8Value); - /// Norwegian - Deprecated. - public static NetAppVolumeLanguage No { get; } = new NetAppVolumeLanguage(NoValue); - /// Norwegian with UTF-8. - public static NetAppVolumeLanguage NoUtf8 { get; } = new NetAppVolumeLanguage(NoUtf8Value); - /// Polish - Deprecated. - public static NetAppVolumeLanguage Pl { get; } = new NetAppVolumeLanguage(PlValue); - /// Polish with UTF-8. - public static NetAppVolumeLanguage PlUtf8 { get; } = new NetAppVolumeLanguage(PlUtf8Value); - /// Portuguese - Deprecated. - public static NetAppVolumeLanguage Pt { get; } = new NetAppVolumeLanguage(PtValue); - /// Portuguese with UTF-8. - public static NetAppVolumeLanguage PtUtf8 { get; } = new NetAppVolumeLanguage(PtUtf8Value); - /// Posix - Deprecated. - public static NetAppVolumeLanguage C { get; } = new NetAppVolumeLanguage(CValue); - /// Romanian - Deprecated. - public static NetAppVolumeLanguage Ro { get; } = new NetAppVolumeLanguage(RoValue); - /// Romanian with UTF-8. - public static NetAppVolumeLanguage RoUtf8 { get; } = new NetAppVolumeLanguage(RoUtf8Value); - /// Russian - Deprecated. - public static NetAppVolumeLanguage Ru { get; } = new NetAppVolumeLanguage(RuValue); - /// Russian with UTF-8. - public static NetAppVolumeLanguage RuUtf8 { get; } = new NetAppVolumeLanguage(RuUtf8Value); - /// Simplified Chinese - Deprecated. - public static NetAppVolumeLanguage Zh { get; } = new NetAppVolumeLanguage(ZhValue); - /// Simplified Chinese with UTF-8. - public static NetAppVolumeLanguage ZhUtf8 { get; } = new NetAppVolumeLanguage(ZhUtf8Value); - /// Simplified gbk Chinese. - public static NetAppVolumeLanguage ZhGbk { get; } = new NetAppVolumeLanguage(ZhGbkValue); - /// Simplified gbk Chinese with UTF-8 - Deprecated. - public static NetAppVolumeLanguage ZhGbkUtf8 { get; } = new NetAppVolumeLanguage(ZhGbkUtf8Value); - /// Traditional Chinese BIG 5. - public static NetAppVolumeLanguage ZhTwBig5 { get; } = new NetAppVolumeLanguage(ZhTwBig5Value); - /// Traditional Chinese BIG 5 with UTF-8 - Deprecated. - public static NetAppVolumeLanguage ZhTwBig5Utf8 { get; } = new NetAppVolumeLanguage(ZhTwBig5Utf8Value); - /// Traditional Chinese EUC-TW. - public static NetAppVolumeLanguage ZhTw { get; } = new NetAppVolumeLanguage(ZhTwValue); - /// Traditional Chinese EUC-TW with UTF-8 - Deprecated. - public static NetAppVolumeLanguage ZhTwUtf8 { get; } = new NetAppVolumeLanguage(ZhTwUtf8Value); - /// Slovak - Deprecated. - public static NetAppVolumeLanguage Sk { get; } = new NetAppVolumeLanguage(SkValue); - /// Slovak with UTF-8. - public static NetAppVolumeLanguage SkUtf8 { get; } = new NetAppVolumeLanguage(SkUtf8Value); - /// Slovenian - Deprecated. - public static NetAppVolumeLanguage Sl { get; } = new NetAppVolumeLanguage(SlValue); - /// Slovenian with UTF-8. - public static NetAppVolumeLanguage SlUtf8 { get; } = new NetAppVolumeLanguage(SlUtf8Value); - /// Spanish - Deprecated. - public static NetAppVolumeLanguage Es { get; } = new NetAppVolumeLanguage(EsValue); - /// Spanish with UTF-8. - public static NetAppVolumeLanguage EsUtf8 { get; } = new NetAppVolumeLanguage(EsUtf8Value); - /// Swedish - Deprecated. - public static NetAppVolumeLanguage Sv { get; } = new NetAppVolumeLanguage(SvValue); - /// Swedish with UTF-8. - public static NetAppVolumeLanguage SvUtf8 { get; } = new NetAppVolumeLanguage(SvUtf8Value); - /// Turkish - Deprecated. - public static NetAppVolumeLanguage Tr { get; } = new NetAppVolumeLanguage(TrValue); - /// Turkish with UTF-8. - public static NetAppVolumeLanguage TrUtf8 { get; } = new NetAppVolumeLanguage(TrUtf8Value); - /// US English - Deprecated. - public static NetAppVolumeLanguage EnUs { get; } = new NetAppVolumeLanguage(EnUsValue); - /// US English with UTF-8. - public static NetAppVolumeLanguage EnUsUtf8 { get; } = new NetAppVolumeLanguage(EnUsUtf8Value); - /// Determines if two values are the same. - public static bool operator ==(NetAppVolumeLanguage left, NetAppVolumeLanguage right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(NetAppVolumeLanguage left, NetAppVolumeLanguage right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator NetAppVolumeLanguage(string value) => new NetAppVolumeLanguage(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is NetAppVolumeLanguage other && Equals(other); - /// - public bool Equals(NetAppVolumeLanguage other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeMountTarget.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeMountTarget.cs index 373129941bc6..6490bd428739 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeMountTarget.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeMountTarget.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Mount target properties. + /// + /// Mount target properties + /// Serialized Name: MountTargetProperties + /// public partial class NetAppVolumeMountTarget { /// @@ -47,17 +50,32 @@ public partial class NetAppVolumeMountTarget private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// UUID v4 used to identify the MountTarget. + /// + /// UUID v4 used to identify the MountTarget + /// Serialized Name: MountTargetProperties.fileSystemId + /// internal NetAppVolumeMountTarget(Guid fileSystemId) { FileSystemId = fileSystemId; } /// Initializes a new instance of . - /// UUID v4 used to identify the MountTarget. - /// UUID v4 used to identify the MountTarget. - /// The mount target's IPv4 address. - /// The SMB server's Fully Qualified Domain Name, FQDN. + /// + /// UUID v4 used to identify the MountTarget + /// Serialized Name: MountTargetProperties.mountTargetId + /// + /// + /// UUID v4 used to identify the MountTarget + /// Serialized Name: MountTargetProperties.fileSystemId + /// + /// + /// The mount target's IPv4 address + /// Serialized Name: MountTargetProperties.ipAddress + /// + /// + /// The SMB server's Fully Qualified Domain Name, FQDN + /// Serialized Name: MountTargetProperties.smbServerFqdn + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeMountTarget(Guid? mountTargetId, Guid fileSystemId, IPAddress ipAddress, string smbServerFqdn, IDictionary serializedAdditionalRawData) { @@ -73,13 +91,25 @@ internal NetAppVolumeMountTarget() { } - /// UUID v4 used to identify the MountTarget. + /// + /// UUID v4 used to identify the MountTarget + /// Serialized Name: MountTargetProperties.mountTargetId + /// public Guid? MountTargetId { get; } - /// UUID v4 used to identify the MountTarget. + /// + /// UUID v4 used to identify the MountTarget + /// Serialized Name: MountTargetProperties.fileSystemId + /// public Guid FileSystemId { get; } - /// The mount target's IPv4 address. + /// + /// The mount target's IPv4 address + /// Serialized Name: MountTargetProperties.ipAddress + /// public IPAddress IPAddress { get; } - /// The SMB server's Fully Qualified Domain Name, FQDN. + /// + /// The SMB server's Fully Qualified Domain Name, FQDN + /// Serialized Name: MountTargetProperties.smbServerFqdn + /// public string SmbServerFqdn { get; } } } 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 f286d5bbbc07..52047b2d48d6 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatch.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Volume patch resource. + /// + /// Volume patch resource + /// Serialized Name: VolumePatch + /// public partial class NetAppVolumePatch : TrackedResourceData { /// @@ -61,28 +64,77 @@ public NetAppVolumePatch(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// The service level of the file system. - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. - /// Set of export policy rules. - /// Set of protocol types, default NFSv3, CIFS for SMB protocol. - /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. - /// DataProtection type volumes include an object containing details of the replication. - /// Specifies if default quota is enabled for the volume. - /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . - /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. - /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. - /// Specifies whether Cool Access(tiering) is enabled for the volume. - /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// + /// The service level of the file system + /// Serialized Name: VolumePatch.properties.serviceLevel + /// + /// + /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// Serialized Name: VolumePatch.properties.usageThreshold + /// + /// + /// Set of export policy rules + /// Serialized Name: VolumePatch.properties.exportPolicy + /// + /// + /// Set of protocol types, default NFSv3, CIFS for SMB protocol + /// Serialized Name: VolumePatch.properties.protocolTypes + /// + /// + /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume + /// Serialized Name: VolumePatch.properties.throughputMibps + /// + /// + /// DataProtection type volumes include an object containing details of the replication + /// Serialized Name: VolumePatch.properties.dataProtection + /// + /// + /// Specifies if default quota is enabled for the volume. + /// Serialized Name: VolumePatch.properties.isDefaultQuotaEnabled + /// + /// + /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// Serialized Name: VolumePatch.properties.defaultUserQuotaInKiBs + /// + /// + /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// Serialized Name: VolumePatch.properties.defaultGroupQuotaInKiBs + /// + /// + /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. + /// Serialized Name: VolumePatch.properties.unixPermissions + /// + /// + /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// Serialized Name: VolumePatch.properties.coolAccess + /// + /// + /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// Serialized Name: VolumePatch.properties.coolnessPeriod + /// /// /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: - /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. - /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. - /// Never - No client-driven data is pulled from cool tier to standard storage. - /// - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. - /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots. - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Serialized Name: VolumePatch.properties.coolAccessRetrievalPolicy + /// + /// + /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// Serialized Name: VolumePatch.properties.coolAccessTieringPolicy + /// + /// + /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots. + /// Serialized Name: VolumePatch.properties.snapshotDirectoryVisible + /// + /// + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumePatch.properties.smbAccessBasedEnumeration + /// + /// + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumePatch.properties.smbNonBrowsable + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, NetAppFileServiceLevel? serviceLevel, long? usageThreshold, VolumePatchPropertiesExportPolicy exportPolicy, IList protocolTypes, float? throughputMibps, NetAppVolumePatchDataProtection dataProtection, bool? isDefaultQuotaEnabled, long? defaultUserQuotaInKiBs, long? defaultGroupQuotaInKiBs, string unixPermissions, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, CoolAccessTieringPolicy? coolAccessTieringPolicy, bool? isSnapshotDirectoryVisible, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -111,13 +163,25 @@ internal NetAppVolumePatch() { } - /// The service level of the file system. + /// + /// The service level of the file system + /// Serialized Name: VolumePatch.properties.serviceLevel + /// public NetAppFileServiceLevel? ServiceLevel { get; set; } - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// + /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// Serialized Name: VolumePatch.properties.usageThreshold + /// public long? UsageThreshold { get; set; } - /// Set of export policy rules. + /// + /// Set of export policy rules + /// Serialized Name: VolumePatch.properties.exportPolicy + /// internal VolumePatchPropertiesExportPolicy ExportPolicy { get; set; } - /// Export policy rule. + /// + /// Export policy rule + /// Serialized Name: VolumePatchPropertiesExportPolicy.rules + /// public IList ExportRules { get @@ -128,38 +192,78 @@ public IList ExportRules } } - /// Set of protocol types, default NFSv3, CIFS for SMB protocol. + /// + /// Set of protocol types, default NFSv3, CIFS for SMB protocol + /// Serialized Name: VolumePatch.properties.protocolTypes + /// public IList ProtocolTypes { get; } - /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType 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 + /// Serialized Name: VolumePatch.properties.throughputMibps + /// public float? ThroughputMibps { get; set; } - /// DataProtection type volumes include an object containing details of the replication. + /// + /// DataProtection type volumes include an object containing details of the replication + /// Serialized Name: VolumePatch.properties.dataProtection + /// public NetAppVolumePatchDataProtection DataProtection { get; set; } - /// Specifies if default quota is enabled for the volume. + /// + /// Specifies if default quota is enabled for the volume. + /// Serialized Name: VolumePatch.properties.isDefaultQuotaEnabled + /// public bool? IsDefaultQuotaEnabled { get; set; } - /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// + /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// Serialized Name: VolumePatch.properties.defaultUserQuotaInKiBs + /// public long? DefaultUserQuotaInKiBs { get; set; } - /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// + /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// Serialized Name: VolumePatch.properties.defaultGroupQuotaInKiBs + /// public long? DefaultGroupQuotaInKiBs { get; set; } - /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. + /// + /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. + /// Serialized Name: VolumePatch.properties.unixPermissions + /// public string UnixPermissions { get; set; } - /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// + /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// Serialized Name: VolumePatch.properties.coolAccess + /// public bool? IsCoolAccessEnabled { get; set; } - /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// + /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// Serialized Name: VolumePatch.properties.coolnessPeriod + /// public int? CoolnessPeriod { get; set; } /// /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: - /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. - /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. - /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Serialized Name: VolumePatch.properties.coolAccessRetrievalPolicy /// public CoolAccessRetrievalPolicy? CoolAccessRetrievalPolicy { get; set; } - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// + /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// Serialized Name: VolumePatch.properties.coolAccessTieringPolicy + /// public CoolAccessTieringPolicy? CoolAccessTieringPolicy { get; set; } - /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots. + /// + /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots. + /// Serialized Name: VolumePatch.properties.snapshotDirectoryVisible + /// public bool? IsSnapshotDirectoryVisible { get; set; } - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumePatch.properties.smbAccessBasedEnumeration + /// public SmbAccessBasedEnumeration? SmbAccessBasedEnumeration { get; set; } - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: VolumePatch.properties.smbNonBrowsable + /// public SmbNonBrowsable? SmbNonBrowsable { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.cs index 7e16cbc108a4..cb1cb10fced7 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePatchDataProtection.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// DataProtection type volumes include an object containing details of the replication. + /// + /// DataProtection type volumes include an object containing details of the replication + /// Serialized Name: VolumePatchPropertiesDataProtection + /// public partial class NetAppVolumePatchDataProtection { /// @@ -52,8 +55,14 @@ public NetAppVolumePatchDataProtection() } /// Initializes a new instance of . - /// Backup Properties. - /// Snapshot properties. + /// + /// Backup Properties + /// Serialized Name: VolumePatchPropertiesDataProtection.backup + /// + /// + /// Snapshot properties. + /// Serialized Name: VolumePatchPropertiesDataProtection.snapshot + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumePatchDataProtection(NetAppVolumeBackupConfiguration backup, VolumeSnapshotProperties snapshot, IDictionary serializedAdditionalRawData) { @@ -62,11 +71,20 @@ internal NetAppVolumePatchDataProtection(NetAppVolumeBackupConfiguration backup, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Backup Properties. + /// + /// Backup Properties + /// Serialized Name: VolumePatchPropertiesDataProtection.backup + /// public NetAppVolumeBackupConfiguration Backup { get; set; } - /// Snapshot properties. + /// + /// Snapshot properties. + /// Serialized Name: VolumePatchPropertiesDataProtection.snapshot + /// internal VolumeSnapshotProperties Snapshot { get; set; } - /// Snapshot Policy ResourceId. + /// + /// Snapshot Policy ResourceId + /// Serialized Name: VolumeSnapshotProperties.snapshotPolicyId + /// public ResourceIdentifier SnapshotPolicyId { get => Snapshot is null ? default : Snapshot.SnapshotPolicyId; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePlacementRule.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePlacementRule.cs index 7a8fa4c99b93..e3b2316130bf 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePlacementRule.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePlacementRule.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Application specific parameters for the placement of volumes in the volume group. + /// + /// Application specific parameters for the placement of volumes in the volume group + /// Serialized Name: PlacementKeyValuePairs + /// public partial class NetAppVolumePlacementRule { /// @@ -46,8 +49,14 @@ public partial class NetAppVolumePlacementRule private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Key for an application specific parameter for the placement of volumes in the volume group. - /// Value for an application specific parameter for the placement of volumes in the volume group. + /// + /// Key for an application specific parameter for the placement of volumes in the volume group + /// Serialized Name: PlacementKeyValuePairs.key + /// + /// + /// Value for an application specific parameter for the placement of volumes in the volume group + /// Serialized Name: PlacementKeyValuePairs.value + /// /// or is null. public NetAppVolumePlacementRule(string key, string value) { @@ -59,8 +68,14 @@ public NetAppVolumePlacementRule(string key, string value) } /// Initializes a new instance of . - /// Key for an application specific parameter for the placement of volumes in the volume group. - /// Value for an application specific parameter for the placement of volumes in the volume group. + /// + /// Key for an application specific parameter for the placement of volumes in the volume group + /// Serialized Name: PlacementKeyValuePairs.key + /// + /// + /// Value for an application specific parameter for the placement of volumes in the volume group + /// Serialized Name: PlacementKeyValuePairs.value + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumePlacementRule(string key, string value, IDictionary serializedAdditionalRawData) { @@ -74,9 +89,15 @@ internal NetAppVolumePlacementRule() { } - /// Key for an application specific parameter for the placement of volumes in the volume group. + /// + /// Key for an application specific parameter for the placement of volumes in the volume group + /// Serialized Name: PlacementKeyValuePairs.key + /// public string Key { get; set; } - /// Value for an application specific parameter for the placement of volumes in the volume group. + /// + /// Value for an application specific parameter for the placement of volumes in the volume group + /// Serialized Name: PlacementKeyValuePairs.value + /// public string Value { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePoolChangeContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePoolChangeContent.cs index 07ad52c68dd8..9d80e96f6ee4 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePoolChangeContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumePoolChangeContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Pool change request. + /// + /// Pool change request + /// Serialized Name: PoolChangeRequest + /// public partial class NetAppVolumePoolChangeContent { /// @@ -47,7 +50,10 @@ public partial class NetAppVolumePoolChangeContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Resource id of the pool to move volume to. + /// + /// Resource id of the pool to move volume to + /// Serialized Name: PoolChangeRequest.newPoolResourceId + /// /// is null. public NetAppVolumePoolChangeContent(ResourceIdentifier newPoolResourceId) { @@ -57,7 +63,10 @@ public NetAppVolumePoolChangeContent(ResourceIdentifier newPoolResourceId) } /// Initializes a new instance of . - /// Resource id of the pool to move volume to. + /// + /// Resource id of the pool to move volume to + /// Serialized Name: PoolChangeRequest.newPoolResourceId + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumePoolChangeContent(ResourceIdentifier newPoolResourceId, IDictionary serializedAdditionalRawData) { @@ -70,7 +79,10 @@ internal NetAppVolumePoolChangeContent() { } - /// Resource id of the pool to move volume to. + /// + /// Resource id of the pool to move volume to + /// Serialized Name: PoolChangeRequest.newPoolResourceId + /// public ResourceIdentifier NewPoolResourceId { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReport.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReport.Serialization.cs deleted file mode 100644 index 85434db3d87c..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReport.Serialization.cs +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - public partial class NetAppVolumeQuotaReport : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppVolumeQuotaReport)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(QuotaType)) - { - writer.WritePropertyName("quotaType"u8); - writer.WriteStringValue(QuotaType.Value.ToString()); - } - if (Optional.IsDefined(QuotaTarget)) - { - writer.WritePropertyName("quotaTarget"u8); - writer.WriteStringValue(QuotaTarget); - } - if (Optional.IsDefined(QuotaLimitUsedInKiBs)) - { - writer.WritePropertyName("quotaLimitUsedInKiBs"u8); - writer.WriteNumberValue(QuotaLimitUsedInKiBs.Value); - } - if (Optional.IsDefined(QuotaLimitTotalInKiBs)) - { - writer.WritePropertyName("quotaLimitTotalInKiBs"u8); - writer.WriteNumberValue(QuotaLimitTotalInKiBs.Value); - } - if (Optional.IsDefined(PercentageUsed)) - { - writer.WritePropertyName("percentageUsed"u8); - writer.WriteNumberValue(PercentageUsed.Value); - } - if (Optional.IsDefined(IsDerivedQuota)) - { - writer.WritePropertyName("isDerivedQuota"u8); - writer.WriteBooleanValue(IsDerivedQuota.Value); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - NetAppVolumeQuotaReport IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppVolumeQuotaReport)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetAppVolumeQuotaReport(document.RootElement, options); - } - - internal static NetAppVolumeQuotaReport DeserializeNetAppVolumeQuotaReport(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - NetAppVolumeQuotaType? quotaType = default; - string quotaTarget = default; - long? quotaLimitUsedInKiBs = default; - long? quotaLimitTotalInKiBs = default; - float? percentageUsed = default; - bool? isDerivedQuota = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("quotaType"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - quotaType = new NetAppVolumeQuotaType(property.Value.GetString()); - continue; - } - if (property.NameEquals("quotaTarget"u8)) - { - quotaTarget = property.Value.GetString(); - continue; - } - if (property.NameEquals("quotaLimitUsedInKiBs"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - quotaLimitUsedInKiBs = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("quotaLimitTotalInKiBs"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - quotaLimitTotalInKiBs = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("percentageUsed"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - percentageUsed = property.Value.GetSingle(); - continue; - } - if (property.NameEquals("isDerivedQuota"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isDerivedQuota = property.Value.GetBoolean(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NetAppVolumeQuotaReport( - quotaType, - quotaTarget, - quotaLimitUsedInKiBs, - quotaLimitTotalInKiBs, - percentageUsed, - isDerivedQuota, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(NetAppVolumeQuotaReport)} does not support writing '{options.Format}' format."); - } - } - - NetAppVolumeQuotaReport IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeNetAppVolumeQuotaReport(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NetAppVolumeQuotaReport)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReport.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReport.cs deleted file mode 100644 index ce36162cbb06..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReport.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Quota report record properties. - public partial class NetAppVolumeQuotaReport - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal NetAppVolumeQuotaReport() - { - } - - /// Initializes a new instance of . - /// Type of quota. - /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. - /// Specifies the current usage in kibibytes for the user/group quota. - /// Specifies the total size limit in kibibytes for the user/group quota. - /// Percentage of used size compared to total size. - /// Flag to indicate whether the quota is derived from default quota. - /// Keeps track of any properties unknown to the library. - internal NetAppVolumeQuotaReport(NetAppVolumeQuotaType? quotaType, string quotaTarget, long? quotaLimitUsedInKiBs, long? quotaLimitTotalInKiBs, float? percentageUsed, bool? isDerivedQuota, IDictionary serializedAdditionalRawData) - { - QuotaType = quotaType; - QuotaTarget = quotaTarget; - QuotaLimitUsedInKiBs = quotaLimitUsedInKiBs; - QuotaLimitTotalInKiBs = quotaLimitTotalInKiBs; - PercentageUsed = percentageUsed; - IsDerivedQuota = isDerivedQuota; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Type of quota. - public NetAppVolumeQuotaType? QuotaType { get; } - /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. - public string QuotaTarget { get; } - /// Specifies the current usage in kibibytes for the user/group quota. - public long? QuotaLimitUsedInKiBs { get; } - /// Specifies the total size limit in kibibytes for the user/group quota. - public long? QuotaLimitTotalInKiBs { get; } - /// Percentage of used size compared to total size. - public float? PercentageUsed { get; } - /// Flag to indicate whether the quota is derived from default quota. - public bool? IsDerivedQuota { get; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReportListResult.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReportListResult.Serialization.cs deleted file mode 100644 index a4d5ac234858..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReportListResult.Serialization.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.NetApp.Models -{ - public partial class NetAppVolumeQuotaReportListResult : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppVolumeQuotaReportListResult)} does not support writing '{format}' format."); - } - - if (Optional.IsCollectionDefined(Value)) - { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - NetAppVolumeQuotaReportListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppVolumeQuotaReportListResult)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetAppVolumeQuotaReportListResult(document.RootElement, options); - } - - internal static NetAppVolumeQuotaReportListResult DeserializeNetAppVolumeQuotaReportListResult(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList value = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(NetAppVolumeQuotaReport.DeserializeNetAppVolumeQuotaReport(item, options)); - } - value = array; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NetAppVolumeQuotaReportListResult(value ?? new ChangeTrackingList(), serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(NetAppVolumeQuotaReportListResult)} does not support writing '{options.Format}' format."); - } - } - - NetAppVolumeQuotaReportListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeNetAppVolumeQuotaReportListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NetAppVolumeQuotaReportListResult)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReportListResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReportListResult.cs deleted file mode 100644 index 2ad18d6a68a9..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaReportListResult.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.NetApp.Models -{ - /// Quota Report for volume. - public partial class NetAppVolumeQuotaReportListResult - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal NetAppVolumeQuotaReportListResult() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// List of volume quota report records. - /// Keeps track of any properties unknown to the library. - internal NetAppVolumeQuotaReportListResult(IReadOnlyList value, IDictionary serializedAdditionalRawData) - { - Value = value; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// List of volume quota report records. - public IReadOnlyList Value { get; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRulePatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRulePatch.cs index 5fbaccaf2e2b..3a6741a53f4d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRulePatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRulePatch.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Patchable Quota Rule of a Volume. + /// + /// Patchable Quota Rule of a Volume + /// Serialized Name: VolumeQuotaRulePatch + /// public partial class NetAppVolumeQuotaRulePatch { /// @@ -52,11 +55,26 @@ public NetAppVolumeQuotaRulePatch() } /// Initializes a new instance of . - /// Resource tags. - /// Provisioning state of the resource. - /// Size of quota. - /// Type of quota. - /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. + /// + /// Resource tags + /// Serialized Name: VolumeQuotaRulePatch.tags + /// + /// + /// Gets the status of the VolumeQuotaRule at the time the operation was called. + /// Serialized Name: VolumeQuotaRulePatch.properties.provisioningState + /// + /// + /// Size of quota + /// Serialized Name: VolumeQuotaRulePatch.properties.quotaSizeInKiBs + /// + /// + /// Type of quota + /// Serialized Name: VolumeQuotaRulePatch.properties.quotaType + /// + /// + /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid> + /// Serialized Name: VolumeQuotaRulePatch.properties.quotaTarget + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeQuotaRulePatch(IDictionary tags, NetAppProvisioningState? provisioningState, long? quotaSizeInKiBs, NetAppVolumeQuotaType? quotaType, string quotaTarget, IDictionary serializedAdditionalRawData) { @@ -68,15 +86,30 @@ internal NetAppVolumeQuotaRulePatch(IDictionary tags, NetAppProv _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Resource tags. + /// + /// Resource tags + /// Serialized Name: VolumeQuotaRulePatch.tags + /// public IDictionary Tags { get; } - /// Provisioning state of the resource. + /// + /// Gets the status of the VolumeQuotaRule at the time the operation was called. + /// Serialized Name: VolumeQuotaRulePatch.properties.provisioningState + /// public NetAppProvisioningState? ProvisioningState { get; } - /// Size of quota. + /// + /// Size of quota + /// Serialized Name: VolumeQuotaRulePatch.properties.quotaSizeInKiBs + /// public long? QuotaSizeInKiBs { get; set; } - /// Type of quota. + /// + /// Type of quota + /// Serialized Name: VolumeQuotaRulePatch.properties.quotaType + /// public NetAppVolumeQuotaType? QuotaType { get; set; } - /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. + /// + /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid> + /// Serialized Name: VolumeQuotaRulePatch.properties.quotaTarget + /// public string QuotaTarget { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaType.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaType.cs index 99e103054a0b..6db80ca7ee05 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaType.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaType.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Type of quota rule. + /// + /// Type of quota + /// Serialized Name: Type + /// public readonly partial struct NetAppVolumeQuotaType : IEquatable { private readonly string _value; @@ -27,13 +30,25 @@ public NetAppVolumeQuotaType(string value) private const string IndividualUserQuotaValue = "IndividualUserQuota"; private const string IndividualGroupQuotaValue = "IndividualGroupQuota"; - /// Default user quota. + /// + /// Default user quota + /// Serialized Name: Type.DefaultUserQuota + /// public static NetAppVolumeQuotaType DefaultUserQuota { get; } = new NetAppVolumeQuotaType(DefaultUserQuotaValue); - /// Default group quota. + /// + /// Default group quota + /// Serialized Name: Type.DefaultGroupQuota + /// public static NetAppVolumeQuotaType DefaultGroupQuota { get; } = new NetAppVolumeQuotaType(DefaultGroupQuotaValue); - /// Individual user quota. + /// + /// Individual user quota + /// Serialized Name: Type.IndividualUserQuota + /// public static NetAppVolumeQuotaType IndividualUserQuota { get; } = new NetAppVolumeQuotaType(IndividualUserQuotaValue); - /// Individual group quota. + /// + /// Individual group quota + /// Serialized Name: Type.IndividualGroupQuota + /// public static NetAppVolumeQuotaType IndividualGroupQuota { get; } = new NetAppVolumeQuotaType(IndividualGroupQuotaValue); /// Determines if two values are the same. public static bool operator ==(NetAppVolumeQuotaType left, NetAppVolumeQuotaType right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReestablishReplicationContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReestablishReplicationContent.cs index e9e430126e23..7d2675d0c961 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReestablishReplicationContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReestablishReplicationContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Re-establish request object supplied in the body of the operation. + /// + /// Re-establish request object supplied in the body of the operation. + /// Serialized Name: ReestablishReplicationRequest + /// public partial class NetAppVolumeReestablishReplicationContent { /// @@ -52,7 +55,10 @@ public NetAppVolumeReestablishReplicationContent() } /// Initializes a new instance of . - /// Resource id of the source volume for the replication. + /// + /// Resource id of the source volume for the replication + /// Serialized Name: ReestablishReplicationRequest.sourceVolumeId + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeReestablishReplicationContent(ResourceIdentifier sourceVolumeId, IDictionary serializedAdditionalRawData) { @@ -60,7 +66,10 @@ internal NetAppVolumeReestablishReplicationContent(ResourceIdentifier sourceVolu _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Resource id of the source volume for the replication. + /// + /// Resource id of the source volume for the replication + /// Serialized Name: ReestablishReplicationRequest.sourceVolumeId + /// public ResourceIdentifier SourceVolumeId { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeRelocationProperties.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeRelocationProperties.cs index cba21b3116e6..862091357671 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeRelocationProperties.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeRelocationProperties.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Volume relocation properties. + /// + /// Volume relocation properties + /// Serialized Name: VolumeRelocationProperties + /// public partial class NetAppVolumeRelocationProperties { /// @@ -51,8 +54,14 @@ public NetAppVolumeRelocationProperties() } /// Initializes a new instance of . - /// Has relocation been requested for this volume. - /// Has relocation finished and is ready to be cleaned up. + /// + /// Has relocation been requested for this volume + /// Serialized Name: VolumeRelocationProperties.relocationRequested + /// + /// + /// Has relocation finished and is ready to be cleaned up + /// Serialized Name: VolumeRelocationProperties.readyToBeFinalized + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeRelocationProperties(bool? isRelocationRequested, bool? isReadyToBeFinalized, IDictionary serializedAdditionalRawData) { @@ -61,9 +70,15 @@ internal NetAppVolumeRelocationProperties(bool? isRelocationRequested, bool? isR _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Has relocation been requested for this volume. + /// + /// Has relocation been requested for this volume + /// Serialized Name: VolumeRelocationProperties.relocationRequested + /// public bool? IsRelocationRequested { get; set; } - /// Has relocation finished and is ready to be cleaned up. + /// + /// Has relocation finished and is ready to be cleaned up + /// Serialized Name: VolumeRelocationProperties.readyToBeFinalized + /// public bool? IsReadyToBeFinalized { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplication.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplication.Serialization.cs index f99eff95b895..282eb4afbafa 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplication.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplication.Serialization.cs @@ -56,6 +56,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("remoteVolumeRegion"u8); writer.WriteStringValue(RemoteVolumeRegion); } + if (options.Format != "W" && Optional.IsDefined(MirrorState)) + { + writer.WritePropertyName("mirrorState"u8); + writer.WriteStringValue(MirrorState.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ReplicationCreationOn)) + { + writer.WritePropertyName("replicationCreationTime"u8); + writer.WriteStringValue(ReplicationCreationOn.Value, "O"); + } + if (options.Format != "W" && Optional.IsDefined(ReplicationDeletionOn)) + { + writer.WritePropertyName("replicationDeletionTime"u8); + writer.WriteStringValue(ReplicationDeletionOn.Value, "O"); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -98,6 +113,9 @@ internal static NetAppVolumeReplication DeserializeNetAppVolumeReplication(JsonE NetAppReplicationSchedule? replicationSchedule = default; ResourceIdentifier remoteVolumeResourceId = default; string remoteVolumeRegion = default; + ReplicationMirrorState? mirrorState = default; + DateTimeOffset? replicationCreationTime = default; + DateTimeOffset? replicationDeletionTime = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -135,6 +153,33 @@ internal static NetAppVolumeReplication DeserializeNetAppVolumeReplication(JsonE remoteVolumeRegion = property.Value.GetString(); continue; } + if (property.NameEquals("mirrorState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mirrorState = new ReplicationMirrorState(property.Value.GetString()); + continue; + } + if (property.NameEquals("replicationCreationTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + replicationCreationTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("replicationDeletionTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + replicationDeletionTime = property.Value.GetDateTimeOffset("O"); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -147,6 +192,9 @@ internal static NetAppVolumeReplication DeserializeNetAppVolumeReplication(JsonE replicationSchedule, remoteVolumeResourceId, remoteVolumeRegion, + mirrorState, + replicationCreationTime, + replicationDeletionTime, serializedAdditionalRawData); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplication.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplication.cs index bd5b49140822..ca5505d111e9 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplication.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplication.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Replication properties. + /// + /// Replication properties + /// Serialized Name: Replication + /// public partial class NetAppVolumeReplication { /// @@ -47,7 +50,10 @@ public partial class NetAppVolumeReplication private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The resource ID of the remote volume. + /// + /// The resource ID of the remote volume. + /// Serialized Name: Replication.remoteVolumeResourceId + /// /// is null. internal NetAppVolumeReplication(ResourceIdentifier remoteVolumeResourceId) { @@ -57,19 +63,49 @@ internal NetAppVolumeReplication(ResourceIdentifier remoteVolumeResourceId) } /// Initializes a new instance of . - /// UUID v4 used to identify the replication. - /// Indicates whether the local volume is the source or destination for the Volume Replication. - /// Schedule. - /// The resource ID of the remote volume. - /// The remote region for the other end of the Volume Replication. + /// + /// UUID v4 used to identify the replication. + /// Serialized Name: Replication.replicationId + /// + /// + /// Indicates whether the local volume is the source or destination for the Volume Replication + /// Serialized Name: Replication.endpointType + /// + /// + /// Schedule + /// Serialized Name: Replication.replicationSchedule + /// + /// + /// The resource ID of the remote volume. + /// Serialized Name: Replication.remoteVolumeResourceId + /// + /// + /// The remote region for the other end of the Volume Replication. + /// Serialized Name: Replication.remoteVolumeRegion + /// + /// + /// The status of the replication + /// Serialized Name: Replication.mirrorState + /// + /// + /// Replication creation time + /// Serialized Name: Replication.replicationCreationTime + /// + /// + /// Replication deletion time + /// Serialized Name: Replication.replicationDeletionTime + /// /// Keeps track of any properties unknown to the library. - internal NetAppVolumeReplication(string replicationId, NetAppEndpointType? endpointType, NetAppReplicationSchedule? replicationSchedule, ResourceIdentifier remoteVolumeResourceId, string remoteVolumeRegion, IDictionary serializedAdditionalRawData) + internal NetAppVolumeReplication(string replicationId, NetAppEndpointType? endpointType, NetAppReplicationSchedule? replicationSchedule, ResourceIdentifier remoteVolumeResourceId, string remoteVolumeRegion, ReplicationMirrorState? mirrorState, DateTimeOffset? replicationCreationOn, DateTimeOffset? replicationDeletionOn, IDictionary serializedAdditionalRawData) { ReplicationId = replicationId; EndpointType = endpointType; ReplicationSchedule = replicationSchedule; RemoteVolumeResourceId = remoteVolumeResourceId; RemoteVolumeRegion = remoteVolumeRegion; + MirrorState = mirrorState; + ReplicationCreationOn = replicationCreationOn; + ReplicationDeletionOn = replicationDeletionOn; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -78,15 +114,45 @@ internal NetAppVolumeReplication() { } - /// UUID v4 used to identify the replication. + /// + /// UUID v4 used to identify the replication. + /// Serialized Name: Replication.replicationId + /// public string ReplicationId { get; } - /// Indicates whether the local volume is the source or destination for the Volume Replication. + /// + /// Indicates whether the local volume is the source or destination for the Volume Replication + /// Serialized Name: Replication.endpointType + /// public NetAppEndpointType? EndpointType { get; } - /// Schedule. + /// + /// Schedule + /// Serialized Name: Replication.replicationSchedule + /// public NetAppReplicationSchedule? ReplicationSchedule { get; } - /// The resource ID of the remote volume. + /// + /// The resource ID of the remote volume. + /// Serialized Name: Replication.remoteVolumeResourceId + /// public ResourceIdentifier RemoteVolumeResourceId { get; } - /// The remote region for the other end of the Volume Replication. + /// + /// The remote region for the other end of the Volume Replication. + /// Serialized Name: Replication.remoteVolumeRegion + /// public string RemoteVolumeRegion { get; } + /// + /// The status of the replication + /// Serialized Name: Replication.mirrorState + /// + public ReplicationMirrorState? MirrorState { get; } + /// + /// Replication creation time + /// Serialized Name: Replication.replicationCreationTime + /// + public DateTimeOffset? ReplicationCreationOn { get; } + /// + /// Replication deletion time + /// Serialized Name: Replication.replicationDeletionTime + /// + public DateTimeOffset? ReplicationDeletionOn { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplicationStatus.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplicationStatus.Serialization.cs index 605c975cca31..5cb5a213e696 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplicationStatus.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplicationStatus.Serialization.cs @@ -44,7 +44,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("relationshipStatus"u8); writer.WriteStringValue(VolumeReplicationRelationshipStatus.Value.ToString()); } - if (options.Format != "W" && Optional.IsDefined(MirrorState)) + if (Optional.IsDefined(MirrorState)) { writer.WritePropertyName("mirrorState"u8); writer.WriteStringValue(MirrorState.Value.ToString()); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplicationStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplicationStatus.cs index da74c715b05e..68beb2d3edb4 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplicationStatus.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeReplicationStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Replication status. + /// + /// Replication status + /// Serialized Name: ReplicationStatus + /// public partial class NetAppVolumeReplicationStatus { /// @@ -51,11 +54,26 @@ internal NetAppVolumeReplicationStatus() } /// Initializes a new instance of . - /// Replication health check. - /// Status of the mirror relationship. - /// The mirror state property describes the current status of data replication for a replication. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. - /// The progress of the replication. - /// Displays error message if the replication is in an error state. + /// + /// Replication health check + /// Serialized Name: ReplicationStatus.healthy + /// + /// + /// Status of the mirror relationship + /// Serialized Name: ReplicationStatus.relationshipStatus + /// + /// + /// The status of the replication + /// Serialized Name: ReplicationStatus.mirrorState + /// + /// + /// The progress of the replication + /// Serialized Name: ReplicationStatus.totalProgress + /// + /// + /// Displays error message if the replication is in an error state + /// Serialized Name: ReplicationStatus.errorMessage + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeReplicationStatus(bool? isHealthy, VolumeReplicationRelationshipStatus? volumeReplicationRelationshipStatus, NetAppMirrorState? mirrorState, string totalProgress, string errorMessage, IDictionary serializedAdditionalRawData) { @@ -67,15 +85,30 @@ internal NetAppVolumeReplicationStatus(bool? isHealthy, VolumeReplicationRelatio _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Replication health check. + /// + /// Replication health check + /// Serialized Name: ReplicationStatus.healthy + /// public bool? IsHealthy { get; } - /// Status of the mirror relationship. + /// + /// Status of the mirror relationship + /// Serialized Name: ReplicationStatus.relationshipStatus + /// public VolumeReplicationRelationshipStatus? VolumeReplicationRelationshipStatus { get; } - /// The mirror state property describes the current status of data replication for a replication. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. + /// + /// The status of the replication + /// Serialized Name: ReplicationStatus.mirrorState + /// public NetAppMirrorState? MirrorState { get; } - /// The progress of the replication. + /// + /// The progress of the replication + /// Serialized Name: ReplicationStatus.totalProgress + /// public string TotalProgress { get; } - /// Displays error message if the replication is in an error state. + /// + /// Displays error message if the replication is in an error state + /// Serialized Name: ReplicationStatus.errorMessage + /// public string ErrorMessage { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeRevertContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeRevertContent.cs index 630f5acb4ed5..6196e2cb808f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeRevertContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeRevertContent.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// revert a volume to the snapshot. + /// + /// revert a volume to the snapshot + /// Serialized Name: VolumeRevert + /// public partial class NetAppVolumeRevertContent { /// @@ -51,7 +54,10 @@ public NetAppVolumeRevertContent() } /// Initializes a new instance of . - /// Resource id of the snapshot. + /// + /// Resource id of the snapshot + /// Serialized Name: VolumeRevert.snapshotId + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeRevertContent(string snapshotId, IDictionary serializedAdditionalRawData) { @@ -59,7 +65,10 @@ internal NetAppVolumeRevertContent(string snapshotId, IDictionary Resource id of the snapshot. + /// + /// Resource id of the snapshot + /// Serialized Name: VolumeRevert.snapshotId + /// public string SnapshotId { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeSecurityStyle.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeSecurityStyle.cs index fd27af64ccfb..25801d2ebbac 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeSecurityStyle.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeSecurityStyle.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. + /// + /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol + /// Serialized Name: SecurityStyle + /// public readonly partial struct NetAppVolumeSecurityStyle : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NetAppVolumeSecurityStyle(string value) private const string NtfsValue = "ntfs"; private const string UnixValue = "unix"; - /// ntfs. + /// + /// ntfs + /// Serialized Name: SecurityStyle.ntfs + /// public static NetAppVolumeSecurityStyle Ntfs { get; } = new NetAppVolumeSecurityStyle(NtfsValue); - /// unix. + /// + /// unix + /// Serialized Name: SecurityStyle.unix + /// public static NetAppVolumeSecurityStyle Unix { get; } = new NetAppVolumeSecurityStyle(UnixValue); /// Determines if two values are the same. public static bool operator ==(NetAppVolumeSecurityStyle left, NetAppVolumeSecurityStyle right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeSnapshotRestoreFilesContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeSnapshotRestoreFilesContent.cs index 4156ce0a5876..18432e4a38fd 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeSnapshotRestoreFilesContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeSnapshotRestoreFilesContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Restore payload for Single File Snapshot Restore. + /// + /// Restore payload for Single File Snapshot Restore + /// Serialized Name: SnapshotRestoreFiles + /// public partial class NetAppVolumeSnapshotRestoreFilesContent { /// @@ -47,7 +50,10 @@ public partial class NetAppVolumeSnapshotRestoreFilesContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// List of files to be restored. + /// + /// List of files to be restored + /// Serialized Name: SnapshotRestoreFiles.filePaths + /// /// is null. public NetAppVolumeSnapshotRestoreFilesContent(IEnumerable filePaths) { @@ -57,8 +63,14 @@ public NetAppVolumeSnapshotRestoreFilesContent(IEnumerable filePaths) } /// Initializes a new instance of . - /// List of files to be restored. - /// Destination folder where the files will be restored. + /// + /// List of files to be restored + /// Serialized Name: SnapshotRestoreFiles.filePaths + /// + /// + /// Destination folder where the files will be restored + /// Serialized Name: SnapshotRestoreFiles.destinationPath + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeSnapshotRestoreFilesContent(IList filePaths, string destinationPath, IDictionary serializedAdditionalRawData) { @@ -72,9 +84,15 @@ internal NetAppVolumeSnapshotRestoreFilesContent() { } - /// List of files to be restored. + /// + /// List of files to be restored + /// Serialized Name: SnapshotRestoreFiles.filePaths + /// public IList FilePaths { get; } - /// Destination folder where the files will be restored. + /// + /// Destination folder where the files will be restored + /// Serialized Name: SnapshotRestoreFiles.destinationPath + /// public string DestinationPath { 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 d57a82da5315..1666bc105fb5 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeStorageToNetworkProximity.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeStorageToNetworkProximity.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Provides storage to network proximity information for the volume. + /// + /// Provides storage to network proximity information for the volume. + /// Serialized Name: VolumeStorageToNetworkProximity + /// public readonly partial struct NetAppVolumeStorageToNetworkProximity : IEquatable { private readonly string _value; @@ -27,13 +30,25 @@ public NetAppVolumeStorageToNetworkProximity(string value) private const string T2Value = "T2"; private const string AcrossT2Value = "AcrossT2"; - /// Basic storage to network connectivity. + /// + /// Basic storage to network connectivity. + /// Serialized Name: VolumeStorageToNetworkProximity.Default + /// public static NetAppVolumeStorageToNetworkProximity Default { get; } = new NetAppVolumeStorageToNetworkProximity(DefaultValue); - /// Standard T1 storage to network connectivity. + /// + /// Standard T1 storage to network connectivity. + /// Serialized Name: VolumeStorageToNetworkProximity.T1 + /// public static NetAppVolumeStorageToNetworkProximity T1 { get; } = new NetAppVolumeStorageToNetworkProximity(T1Value); - /// Standard T2 storage to network connectivity. + /// + /// Standard T2 storage to network connectivity. + /// Serialized Name: VolumeStorageToNetworkProximity.T2 + /// public static NetAppVolumeStorageToNetworkProximity T2 { get; } = new NetAppVolumeStorageToNetworkProximity(T2Value); - /// Standard AcrossT2 storage to network connectivity. + /// + /// Standard AcrossT2 storage to network connectivity. + /// Serialized Name: VolumeStorageToNetworkProximity.AcrossT2 + /// 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); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs index 6a9c3ba41cc4..8b68fe24a955 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Describes the contents of a network sibling set. + /// + /// Describes the contents of a network sibling set. + /// Serialized Name: NetworkSiblingSet + /// public partial class NetworkSiblingSet { /// @@ -53,12 +56,30 @@ internal NetworkSiblingSet() } /// Initializes a new instance of . - /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. - /// Network sibling set state Id identifying the current state of the sibling set. - /// Network features available to the volume, or current state of update. - /// Gets the status of the NetworkSiblingSet at the time the operation was called. - /// List of NIC information. + /// + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// Serialized Name: NetworkSiblingSet.networkSiblingSetId + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + /// Serialized Name: NetworkSiblingSet.subnetId + /// + /// + /// Network sibling set state Id identifying the current state of the sibling set. + /// Serialized Name: NetworkSiblingSet.networkSiblingSetStateId + /// + /// + /// Network features available to the volume, or current state of update. + /// Serialized Name: NetworkSiblingSet.networkFeatures + /// + /// + /// Gets the status of the NetworkSiblingSet at the time the operation was called. + /// Serialized Name: NetworkSiblingSet.provisioningState + /// + /// + /// List of NIC information + /// Serialized Name: NetworkSiblingSet.nicInfoList + /// /// Keeps track of any properties unknown to the library. internal NetworkSiblingSet(string networkSiblingSetId, ResourceIdentifier subnetId, string networkSiblingSetStateId, NetAppNetworkFeature? networkFeatures, NetworkSiblingSetProvisioningState? provisioningState, IReadOnlyList nicInfoList, IDictionary serializedAdditionalRawData) { @@ -71,17 +92,35 @@ internal NetworkSiblingSet(string networkSiblingSetId, ResourceIdentifier subnet _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// Serialized Name: NetworkSiblingSet.networkSiblingSetId + /// public string NetworkSiblingSetId { get; } - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + /// Serialized Name: NetworkSiblingSet.subnetId + /// public ResourceIdentifier SubnetId { get; } - /// Network sibling set state Id identifying the current state of the sibling set. + /// + /// Network sibling set state Id identifying the current state of the sibling set. + /// Serialized Name: NetworkSiblingSet.networkSiblingSetStateId + /// public string NetworkSiblingSetStateId { get; } - /// Network features available to the volume, or current state of update. + /// + /// Network features available to the volume, or current state of update. + /// Serialized Name: NetworkSiblingSet.networkFeatures + /// public NetAppNetworkFeature? NetworkFeatures { get; } - /// Gets the status of the NetworkSiblingSet at the time the operation was called. + /// + /// Gets the status of the NetworkSiblingSet at the time the operation was called. + /// Serialized Name: NetworkSiblingSet.provisioningState + /// public NetworkSiblingSetProvisioningState? ProvisioningState { get; } - /// List of NIC information. + /// + /// List of NIC information + /// Serialized Name: NetworkSiblingSet.nicInfoList + /// public IReadOnlyList NicInfoList { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSetProvisioningState.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSetProvisioningState.cs index 0bdbfc607f39..fbac129da5cf 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSetProvisioningState.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSetProvisioningState.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Gets the status of the NetworkSiblingSet at the time the operation was called. + /// + /// Gets the status of the NetworkSiblingSet at the time the operation was called. + /// Serialized Name: NetworkSiblingSetProvisioningState + /// public readonly partial struct NetworkSiblingSetProvisioningState : IEquatable { private readonly string _value; @@ -27,13 +30,25 @@ public NetworkSiblingSetProvisioningState(string value) private const string CanceledValue = "Canceled"; private const string UpdatingValue = "Updating"; - /// Succeeded. + /// + /// Succeeded + /// Serialized Name: NetworkSiblingSetProvisioningState.Succeeded + /// public static NetworkSiblingSetProvisioningState Succeeded { get; } = new NetworkSiblingSetProvisioningState(SucceededValue); - /// Failed. + /// + /// Failed + /// Serialized Name: NetworkSiblingSetProvisioningState.Failed + /// public static NetworkSiblingSetProvisioningState Failed { get; } = new NetworkSiblingSetProvisioningState(FailedValue); - /// Canceled. + /// + /// Canceled + /// Serialized Name: NetworkSiblingSetProvisioningState.Canceled + /// public static NetworkSiblingSetProvisioningState Canceled { get; } = new NetworkSiblingSetProvisioningState(CanceledValue); - /// Updating. + /// + /// Updating + /// Serialized Name: NetworkSiblingSetProvisioningState.Updating + /// public static NetworkSiblingSetProvisioningState Updating { get; } = new NetworkSiblingSetProvisioningState(UpdatingValue); /// Determines if two values are the same. public static bool operator ==(NetworkSiblingSetProvisioningState left, NetworkSiblingSetProvisioningState right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs index f134a4c5b41c..7823d2929f10 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// NIC information and list of volumes for which the NIC has the primary mount ip address. + /// + /// NIC information and list of volumes for which the NIC has the primary mount ip address. + /// Serialized Name: NicInfo + /// public partial class NicInfo { /// @@ -53,8 +56,14 @@ internal NicInfo() } /// Initializes a new instance of . - /// ipAddress. - /// Volume resource Ids. + /// + /// ipAddress + /// Serialized Name: NicInfo.ipAddress + /// + /// + /// Volume resource Ids + /// Serialized Name: NicInfo.volumeResourceIds + /// /// Keeps track of any properties unknown to the library. internal NicInfo(string ipAddress, IReadOnlyList volumeResourceIds, IDictionary serializedAdditionalRawData) { @@ -63,9 +72,15 @@ internal NicInfo(string ipAddress, IReadOnlyList volumeResou _serializedAdditionalRawData = serializedAdditionalRawData; } - /// ipAddress. + /// + /// ipAddress + /// Serialized Name: NicInfo.ipAddress + /// public string IPAddress { get; } - /// Volume resource Ids. + /// + /// Volume resource Ids + /// Serialized Name: NicInfo.volumeResourceIds + /// public IReadOnlyList VolumeResourceIds { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/PeerClusterForVolumeMigrationContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/PeerClusterForVolumeMigrationContent.cs index 80e371f55a85..b233f55aef3f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/PeerClusterForVolumeMigrationContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/PeerClusterForVolumeMigrationContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Source Cluster properties for a cluster peer request. + /// + /// Source Cluster properties for a cluster peer request + /// Serialized Name: PeerClusterForVolumeMigrationRequest + /// public partial class PeerClusterForVolumeMigrationContent { /// @@ -47,7 +50,10 @@ public partial class PeerClusterForVolumeMigrationContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// A list of IC-LIF IPs that can be used to connect to the On-prem cluster. + /// + /// A list of IC-LIF IPs that can be used to connect to the On-prem cluster + /// Serialized Name: PeerClusterForVolumeMigrationRequest.peerIpAddresses + /// /// is null. public PeerClusterForVolumeMigrationContent(IEnumerable peerIPAddresses) { @@ -57,7 +63,10 @@ public PeerClusterForVolumeMigrationContent(IEnumerable peerIPAddresses) } /// Initializes a new instance of . - /// A list of IC-LIF IPs that can be used to connect to the On-prem cluster. + /// + /// A list of IC-LIF IPs that can be used to connect to the On-prem cluster + /// Serialized Name: PeerClusterForVolumeMigrationRequest.peerIpAddresses + /// /// Keeps track of any properties unknown to the library. internal PeerClusterForVolumeMigrationContent(IList peerIPAddresses, IDictionary serializedAdditionalRawData) { @@ -70,7 +79,10 @@ internal PeerClusterForVolumeMigrationContent() { } - /// A list of IC-LIF IPs that can be used to connect to the On-prem cluster. + /// + /// A list of IC-LIF IPs that can be used to connect to the On-prem cluster + /// Serialized Name: PeerClusterForVolumeMigrationRequest.peerIpAddresses + /// public IList PeerIPAddresses { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.cs index 69512168ff81..00ef84aac782 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QueryNetworkSiblingSetContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Network sibling set query. + /// + /// Network sibling set query. + /// Serialized Name: QueryNetworkSiblingSetRequest + /// public partial class QueryNetworkSiblingSetContent { /// @@ -47,8 +50,14 @@ public partial class QueryNetworkSiblingSetContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + /// + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// Serialized Name: QueryNetworkSiblingSetRequest.networkSiblingSetId + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + /// Serialized Name: QueryNetworkSiblingSetRequest.subnetId + /// /// or is null. public QueryNetworkSiblingSetContent(string networkSiblingSetId, ResourceIdentifier subnetId) { @@ -60,8 +69,14 @@ public QueryNetworkSiblingSetContent(string networkSiblingSetId, ResourceIdentif } /// Initializes a new instance of . - /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + /// + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// Serialized Name: QueryNetworkSiblingSetRequest.networkSiblingSetId + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + /// Serialized Name: QueryNetworkSiblingSetRequest.subnetId + /// /// Keeps track of any properties unknown to the library. internal QueryNetworkSiblingSetContent(string networkSiblingSetId, ResourceIdentifier subnetId, IDictionary serializedAdditionalRawData) { @@ -75,9 +90,15 @@ internal QueryNetworkSiblingSetContent() { } - /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// Serialized Name: QueryNetworkSiblingSetRequest.networkSiblingSetId + /// public string NetworkSiblingSetId { get; } - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + /// Serialized Name: QueryNetworkSiblingSetRequest.subnetId + /// public ResourceIdentifier SubnetId { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QuotaItemList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QuotaItemList.Serialization.cs index f6c35a50347a..445017fb4f51 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QuotaItemList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QuotaItemList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(QuotaItemList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static QuotaItemList DeserializeQuotaItemList(JsonElement element, Mode return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static QuotaItemList DeserializeQuotaItemList(JsonElement element, Mode } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static QuotaItemList DeserializeQuotaItemList(JsonElement element, Mode } } serializedAdditionalRawData = rawDataDictionary; - return new QuotaItemList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new QuotaItemList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QuotaItemList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QuotaItemList.cs index 860c14af5a43..77bec3ab2515 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QuotaItemList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/QuotaItemList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of Quota Items. + /// + /// List of Quota Items + /// Serialized Name: QuotaItemList + /// internal partial class QuotaItemList { /// @@ -46,25 +50,49 @@ internal partial class QuotaItemList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal QuotaItemList() + /// + /// The QuotaItem items on this page + /// Serialized Name: QuotaItemList.value + /// + /// is null. + internal QuotaItemList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// A list of QuotaItems. - /// URL to get the next set of results. + /// + /// The QuotaItem items on this page + /// Serialized Name: QuotaItemList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: QuotaItemList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal QuotaItemList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal QuotaItemList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// A list of QuotaItems. + /// Initializes a new instance of for deserialization. + internal QuotaItemList() + { + } + + /// + /// The QuotaItem items on this page + /// Serialized Name: QuotaItemList.value + /// public IReadOnlyList Value { get; } - /// URL to get the next set of results. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: QuotaItemList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.Serialization.cs index 0276919a3ccf..fb86cdc1e168 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RegionInfosList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static RegionInfosList DeserializeRegionInfosList(JsonElement element, return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static RegionInfosList DeserializeRegionInfosList(JsonElement element, } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static RegionInfosList DeserializeRegionInfosList(JsonElement element, } } serializedAdditionalRawData = rawDataDictionary; - return new RegionInfosList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new RegionInfosList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.cs index 3969ced7df9f..77307e9ff0c0 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of regionInfo resources. + /// + /// List of regionInfo resources + /// Serialized Name: RegionInfosList + /// internal partial class RegionInfosList { /// @@ -46,25 +50,49 @@ internal partial class RegionInfosList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal RegionInfosList() + /// + /// The RegionInfoResource items on this page + /// Serialized Name: RegionInfosList.value + /// + /// is null. + internal RegionInfosList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// A list of regionInfo resources. - /// URL to get the next set of results. + /// + /// The RegionInfoResource items on this page + /// Serialized Name: RegionInfosList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: RegionInfosList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal RegionInfosList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal RegionInfosList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// A list of regionInfo resources. + /// Initializes a new instance of for deserialization. + internal RegionInfosList() + { + } + + /// + /// The RegionInfoResource items on this page + /// Serialized Name: RegionInfosList.value + /// public IReadOnlyList Value { get; } - /// URL to get the next set of results. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: RegionInfosList.nextLink + /// + public Uri NextLink { get; } } } 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 97a3d752be2a..f3ad506d5a3d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionStorageToNetworkProximity.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionStorageToNetworkProximity.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Provides storage to network proximity information in the region. + /// + /// Provides storage to network proximity information in the region. + /// Serialized Name: RegionStorageToNetworkProximity + /// public readonly partial struct RegionStorageToNetworkProximity : IEquatable { private readonly string _value; @@ -31,21 +34,45 @@ public RegionStorageToNetworkProximity(string value) private const string T2AndAcrossT2Value = "T2AndAcrossT2"; private const string T1AndT2AndAcrossT2Value = "T1AndT2AndAcrossT2"; - /// Basic network connectivity. + /// + /// Basic network connectivity. + /// Serialized Name: RegionStorageToNetworkProximity.Default + /// public static RegionStorageToNetworkProximity Default { get; } = new RegionStorageToNetworkProximity(DefaultValue); - /// Standard T1 network connectivity. + /// + /// Standard T1 network connectivity. + /// Serialized Name: RegionStorageToNetworkProximity.T1 + /// public static RegionStorageToNetworkProximity T1 { get; } = new RegionStorageToNetworkProximity(T1Value); - /// Standard T2 network connectivity. + /// + /// Standard T2 network connectivity. + /// Serialized Name: RegionStorageToNetworkProximity.T2 + /// public static RegionStorageToNetworkProximity T2 { get; } = new RegionStorageToNetworkProximity(T2Value); - /// Standard AcrossT2 network connectivity. + /// + /// Standard AcrossT2 network connectivity. + /// Serialized Name: RegionStorageToNetworkProximity.AcrossT2 + /// public static RegionStorageToNetworkProximity AcrossT2 { get; } = new RegionStorageToNetworkProximity(AcrossT2Value); - /// Standard T1 and T2 network connectivity. + /// + /// Standard T1 and T2 network connectivity. + /// Serialized Name: RegionStorageToNetworkProximity.T1AndT2 + /// public static RegionStorageToNetworkProximity T1AndT2 { get; } = new RegionStorageToNetworkProximity(T1AndT2Value); - /// Standard T1 and AcrossT2 network connectivity. + /// + /// Standard T1 and AcrossT2 network connectivity. + /// Serialized Name: RegionStorageToNetworkProximity.T1AndAcrossT2 + /// public static RegionStorageToNetworkProximity T1AndAcrossT2 { get; } = new RegionStorageToNetworkProximity(T1AndAcrossT2Value); - /// Standard T2 and AcrossT2 network connectivity. + /// + /// Standard T2 and AcrossT2 network connectivity. + /// Serialized Name: RegionStorageToNetworkProximity.T2AndAcrossT2 + /// public static RegionStorageToNetworkProximity T2AndAcrossT2 { get; } = new RegionStorageToNetworkProximity(T2AndAcrossT2Value); - /// Standard T1, T2 and AcrossT2 network connectivity. + /// + /// Standard T1, T2 and AcrossT2 network connectivity. + /// Serialized Name: RegionStorageToNetworkProximity.T1AndT2AndAcrossT2 + /// 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); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RelocateVolumeContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RelocateVolumeContent.cs index 37b16580a063..6e313c2b4dd6 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RelocateVolumeContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RelocateVolumeContent.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Relocate volume request. + /// + /// Relocate volume request + /// Serialized Name: RelocateVolumeRequest + /// public partial class RelocateVolumeContent { /// @@ -51,7 +54,10 @@ public RelocateVolumeContent() } /// Initializes a new instance of . - /// New creation token for the volume that controls the mount point name. + /// + /// New creation token for the volume that controls the mount point name + /// Serialized Name: RelocateVolumeRequest.creationToken + /// /// Keeps track of any properties unknown to the library. internal RelocateVolumeContent(string creationToken, IDictionary serializedAdditionalRawData) { @@ -59,7 +65,10 @@ internal RelocateVolumeContent(string creationToken, IDictionary New creation token for the volume that controls the mount point name. + /// + /// New creation token for the volume that controls the mount point name + /// Serialized Name: RelocateVolumeRequest.creationToken + /// public string CreationToken { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RemotePath.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RemotePath.cs index ef592844bac0..5b38e3bab667 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RemotePath.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RemotePath.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// The full path to a volume that is to be migrated into ANF. Required for Migration volumes. + /// + /// The full path to a volume that is to be migrated into ANF. Required for Migration volumes + /// Serialized Name: RemotePath + /// public partial class RemotePath { /// @@ -46,9 +49,18 @@ public partial class RemotePath private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The Path to a ONTAP Host. - /// The name of a server on the ONTAP Host. - /// The name of a volume on the server. + /// + /// The Path to a ONTAP Host + /// Serialized Name: RemotePath.externalHostName + /// + /// + /// The name of a server on the ONTAP Host + /// Serialized Name: RemotePath.serverName + /// + /// + /// The name of a volume on the server + /// Serialized Name: RemotePath.volumeName + /// /// , or is null. public RemotePath(string externalHostName, string serverName, string volumeName) { @@ -62,9 +74,18 @@ public RemotePath(string externalHostName, string serverName, string volumeName) } /// Initializes a new instance of . - /// The Path to a ONTAP Host. - /// The name of a server on the ONTAP Host. - /// The name of a volume on the server. + /// + /// The Path to a ONTAP Host + /// Serialized Name: RemotePath.externalHostName + /// + /// + /// The name of a server on the ONTAP Host + /// Serialized Name: RemotePath.serverName + /// + /// + /// The name of a volume on the server + /// Serialized Name: RemotePath.volumeName + /// /// Keeps track of any properties unknown to the library. internal RemotePath(string externalHostName, string serverName, string volumeName, IDictionary serializedAdditionalRawData) { @@ -79,11 +100,20 @@ internal RemotePath() { } - /// The Path to a ONTAP Host. + /// + /// The Path to a ONTAP Host + /// Serialized Name: RemotePath.externalHostName + /// public string ExternalHostName { get; set; } - /// The name of a server on the ONTAP Host. + /// + /// The name of a server on the ONTAP Host + /// Serialized Name: RemotePath.serverName + /// public string ServerName { get; set; } - /// The name of a volume on the server. + /// + /// The name of a volume on the server + /// Serialized Name: RemotePath.volumeName + /// public string VolumeName { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ReplicationMirrorState.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ReplicationMirrorState.cs new file mode 100644 index 000000000000..fb9357fe5bbb --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ReplicationMirrorState.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// + /// The status of the replication + /// Serialized Name: ReplicationMirrorState + /// + public readonly partial struct ReplicationMirrorState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ReplicationMirrorState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string UninitializedValue = "Uninitialized"; + private const string MirroredValue = "Mirrored"; + private const string BrokenValue = "Broken"; + + /// + /// Destination volume has not been initialized + /// Serialized Name: ReplicationMirrorState.Uninitialized + /// + public static ReplicationMirrorState Uninitialized { get; } = new ReplicationMirrorState(UninitializedValue); + /// + /// Destination volume has been initialized and is ready + /// Serialized Name: ReplicationMirrorState.Mirrored + /// + public static ReplicationMirrorState Mirrored { get; } = new ReplicationMirrorState(MirroredValue); + /// + /// Destination volume is RW, replication relationship has been broken off + /// Serialized Name: ReplicationMirrorState.Broken + /// + public static ReplicationMirrorState Broken { get; } = new ReplicationMirrorState(BrokenValue); + /// Determines if two values are the same. + public static bool operator ==(ReplicationMirrorState left, ReplicationMirrorState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ReplicationMirrorState left, ReplicationMirrorState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ReplicationMirrorState(string value) => new ReplicationMirrorState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ReplicationMirrorState other && Equals(other); + /// + public bool Equals(ReplicationMirrorState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbAccessBasedEnumeration.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbAccessBasedEnumeration.cs index 2563fc271682..aeb135d87229 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbAccessBasedEnumeration.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbAccessBasedEnumeration.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: SmbAccessBasedEnumeration + /// public readonly partial struct SmbAccessBasedEnumeration : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public SmbAccessBasedEnumeration(string value) private const string DisabledValue = "Disabled"; private const string EnabledValue = "Enabled"; - /// smbAccessBasedEnumeration share setting is disabled. + /// + /// smbAccessBasedEnumeration share setting is disabled + /// Serialized Name: SmbAccessBasedEnumeration.Disabled + /// public static SmbAccessBasedEnumeration Disabled { get; } = new SmbAccessBasedEnumeration(DisabledValue); - /// smbAccessBasedEnumeration share setting is enabled. + /// + /// smbAccessBasedEnumeration share setting is enabled + /// Serialized Name: SmbAccessBasedEnumeration.Enabled + /// public static SmbAccessBasedEnumeration Enabled { get; } = new SmbAccessBasedEnumeration(EnabledValue); /// Determines if two values are the same. public static bool operator ==(SmbAccessBasedEnumeration left, SmbAccessBasedEnumeration right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbNonBrowsable.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbNonBrowsable.cs index 5e0a4c07f636..fd75d72df14e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbNonBrowsable.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SmbNonBrowsable.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: SmbNonBrowsable + /// public readonly partial struct SmbNonBrowsable : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public SmbNonBrowsable(string value) private const string DisabledValue = "Disabled"; private const string EnabledValue = "Enabled"; - /// smbNonBrowsable share setting is disabled. + /// + /// smbNonBrowsable share setting is disabled + /// Serialized Name: SmbNonBrowsable.Disabled + /// public static SmbNonBrowsable Disabled { get; } = new SmbNonBrowsable(DisabledValue); - /// smbNonBrowsable share setting is enabled. + /// + /// smbNonBrowsable share setting is enabled + /// Serialized Name: SmbNonBrowsable.Enabled + /// public static SmbNonBrowsable Enabled { get; } = new SmbNonBrowsable(EnabledValue); /// Determines if two values are the same. public static bool operator ==(SmbNonBrowsable left, SmbNonBrowsable right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.Serialization.cs index c0bb7b2835f2..f8c7a114dc76 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.Serialization.cs @@ -34,15 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(SnapshotPoliciesList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -82,16 +84,13 @@ internal static SnapshotPoliciesList DeserializeSnapshotPoliciesList(JsonElement return null; } IReadOnlyList value = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -100,13 +99,22 @@ internal static SnapshotPoliciesList DeserializeSnapshotPoliciesList(JsonElement value = array; continue; } + if (property.NameEquals("nextLink"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new SnapshotPoliciesList(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new SnapshotPoliciesList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.cs index 4dfe195b90b1..38e555fa74ef 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of Snapshot Policies. + /// + /// List of Snapshot Policies + /// Serialized Name: SnapshotPoliciesList + /// internal partial class SnapshotPoliciesList { /// @@ -46,21 +50,49 @@ internal partial class SnapshotPoliciesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal SnapshotPoliciesList() + /// + /// The SnapshotPolicy items on this page + /// Serialized Name: SnapshotPoliciesList.value + /// + /// is null. + internal SnapshotPoliciesList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// A list of snapshot policies. + /// + /// The SnapshotPolicy items on this page + /// Serialized Name: SnapshotPoliciesList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: SnapshotPoliciesList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal SnapshotPoliciesList(IReadOnlyList value, IDictionary serializedAdditionalRawData) + internal SnapshotPoliciesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; + NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// A list of snapshot policies. + /// Initializes a new instance of for deserialization. + internal SnapshotPoliciesList() + { + } + + /// + /// The SnapshotPolicy items on this page + /// Serialized Name: SnapshotPoliciesList.value + /// public IReadOnlyList Value { get; } + /// + /// The link to the next page of items + /// Serialized Name: SnapshotPoliciesList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyDailySchedule.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyDailySchedule.cs index e8a39dd29bf0..691309bc70e8 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyDailySchedule.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyDailySchedule.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Daily Schedule properties. + /// + /// Daily Schedule properties + /// Serialized Name: DailySchedule + /// public partial class SnapshotPolicyDailySchedule { /// @@ -51,10 +54,22 @@ public SnapshotPolicyDailySchedule() } /// Initializes a new instance of . - /// Daily snapshot count to keep. - /// Indicates which hour in UTC timezone a snapshot should be taken. - /// Indicates which minute snapshot should be taken. - /// Resource size in bytes, current storage usage for the volume in bytes. + /// + /// Daily snapshot count to keep + /// Serialized Name: DailySchedule.snapshotsToKeep + /// + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// Serialized Name: DailySchedule.hour + /// + /// + /// Indicates which minute snapshot should be taken + /// Serialized Name: DailySchedule.minute + /// + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// Serialized Name: DailySchedule.usedBytes + /// /// Keeps track of any properties unknown to the library. internal SnapshotPolicyDailySchedule(int? snapshotsToKeep, int? hour, int? minute, long? usedBytes, IDictionary serializedAdditionalRawData) { @@ -65,13 +80,25 @@ internal SnapshotPolicyDailySchedule(int? snapshotsToKeep, int? hour, int? minut _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Daily snapshot count to keep. + /// + /// Daily snapshot count to keep + /// Serialized Name: DailySchedule.snapshotsToKeep + /// public int? SnapshotsToKeep { get; set; } - /// Indicates which hour in UTC timezone a snapshot should be taken. + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// Serialized Name: DailySchedule.hour + /// public int? Hour { get; set; } - /// Indicates which minute snapshot should be taken. + /// + /// Indicates which minute snapshot should be taken + /// Serialized Name: DailySchedule.minute + /// public int? Minute { get; set; } - /// Resource size in bytes, current storage usage for the volume in bytes. + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// Serialized Name: DailySchedule.usedBytes + /// public long? UsedBytes { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyHourlySchedule.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyHourlySchedule.cs index 04a11d98b729..1e16f65ad70a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyHourlySchedule.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyHourlySchedule.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Hourly Schedule properties. + /// + /// Hourly Schedule properties + /// Serialized Name: HourlySchedule + /// public partial class SnapshotPolicyHourlySchedule { /// @@ -51,9 +54,18 @@ public SnapshotPolicyHourlySchedule() } /// Initializes a new instance of . - /// Hourly snapshot count to keep. - /// Indicates which minute snapshot should be taken. - /// Resource size in bytes, current storage usage for the volume in bytes. + /// + /// Hourly snapshot count to keep + /// Serialized Name: HourlySchedule.snapshotsToKeep + /// + /// + /// Indicates which minute snapshot should be taken + /// Serialized Name: HourlySchedule.minute + /// + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// Serialized Name: HourlySchedule.usedBytes + /// /// Keeps track of any properties unknown to the library. internal SnapshotPolicyHourlySchedule(int? snapshotsToKeep, int? minute, long? usedBytes, IDictionary serializedAdditionalRawData) { @@ -63,11 +75,20 @@ internal SnapshotPolicyHourlySchedule(int? snapshotsToKeep, int? minute, long? u _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Hourly snapshot count to keep. + /// + /// Hourly snapshot count to keep + /// Serialized Name: HourlySchedule.snapshotsToKeep + /// public int? SnapshotsToKeep { get; set; } - /// Indicates which minute snapshot should be taken. + /// + /// Indicates which minute snapshot should be taken + /// Serialized Name: HourlySchedule.minute + /// public int? Minute { get; set; } - /// Resource size in bytes, current storage usage for the volume in bytes. + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// Serialized Name: HourlySchedule.usedBytes + /// public long? UsedBytes { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyMonthlySchedule.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyMonthlySchedule.cs index 544524d8f380..779c53517d9f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyMonthlySchedule.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyMonthlySchedule.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Monthly Schedule properties. + /// + /// Monthly Schedule properties + /// Serialized Name: MonthlySchedule + /// public partial class SnapshotPolicyMonthlySchedule { /// @@ -51,11 +54,26 @@ public SnapshotPolicyMonthlySchedule() } /// Initializes a new instance of . - /// Monthly snapshot count to keep. - /// Indicates which days of the month snapshot should be taken. A comma delimited string. - /// Indicates which hour in UTC timezone a snapshot should be taken. - /// Indicates which minute snapshot should be taken. - /// Resource size in bytes, current storage usage for the volume in bytes. + /// + /// Monthly snapshot count to keep + /// Serialized Name: MonthlySchedule.snapshotsToKeep + /// + /// + /// Indicates which days of the month snapshot should be taken. A comma delimited string. + /// Serialized Name: MonthlySchedule.daysOfMonth + /// + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// Serialized Name: MonthlySchedule.hour + /// + /// + /// Indicates which minute snapshot should be taken + /// Serialized Name: MonthlySchedule.minute + /// + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// Serialized Name: MonthlySchedule.usedBytes + /// /// Keeps track of any properties unknown to the library. internal SnapshotPolicyMonthlySchedule(int? snapshotsToKeep, string daysOfMonth, int? hour, int? minute, long? usedBytes, IDictionary serializedAdditionalRawData) { @@ -67,15 +85,30 @@ internal SnapshotPolicyMonthlySchedule(int? snapshotsToKeep, string daysOfMonth, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Monthly snapshot count to keep. + /// + /// Monthly snapshot count to keep + /// Serialized Name: MonthlySchedule.snapshotsToKeep + /// public int? SnapshotsToKeep { get; set; } - /// Indicates which days of the month snapshot should be taken. A comma delimited string. + /// + /// Indicates which days of the month snapshot should be taken. A comma delimited string. + /// Serialized Name: MonthlySchedule.daysOfMonth + /// public string DaysOfMonth { get; set; } - /// Indicates which hour in UTC timezone a snapshot should be taken. + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// Serialized Name: MonthlySchedule.hour + /// public int? Hour { get; set; } - /// Indicates which minute snapshot should be taken. + /// + /// Indicates which minute snapshot should be taken + /// Serialized Name: MonthlySchedule.minute + /// public int? Minute { get; set; } - /// Resource size in bytes, current storage usage for the volume in bytes. + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// Serialized Name: MonthlySchedule.usedBytes + /// public long? UsedBytes { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyPatch.cs index b86f7f10b1ce..8d0c2ccfaa37 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyPatch.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Snapshot policy Details for create and update. + /// + /// Snapshot policy Details for create and update + /// Serialized Name: SnapshotPolicyPatch + /// public partial class SnapshotPolicyPatch : TrackedResourceData { /// @@ -60,12 +63,30 @@ public SnapshotPolicyPatch(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// Schedule for hourly snapshots. - /// Schedule for daily snapshots. - /// Schedule for weekly snapshots. - /// Schedule for monthly snapshots. - /// The property to decide policy is enabled or not. - /// Azure lifecycle management. + /// + /// Schedule for hourly snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.hourlySchedule + /// + /// + /// Schedule for daily snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.dailySchedule + /// + /// + /// Schedule for weekly snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.weeklySchedule + /// + /// + /// Schedule for monthly snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.monthlySchedule + /// + /// + /// The property to decide policy is enabled or not + /// Serialized Name: SnapshotPolicyPatch.properties.enabled + /// + /// + /// Azure lifecycle management + /// Serialized Name: SnapshotPolicyPatch.properties.provisioningState + /// /// Keeps track of any properties unknown to the library. internal SnapshotPolicyPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, SnapshotPolicyHourlySchedule hourlySchedule, SnapshotPolicyDailySchedule dailySchedule, SnapshotPolicyWeeklySchedule weeklySchedule, SnapshotPolicyMonthlySchedule monthlySchedule, bool? isEnabled, string provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -83,17 +104,35 @@ internal SnapshotPolicyPatch() { } - /// Schedule for hourly snapshots. + /// + /// Schedule for hourly snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.hourlySchedule + /// public SnapshotPolicyHourlySchedule HourlySchedule { get; set; } - /// Schedule for daily snapshots. + /// + /// Schedule for daily snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.dailySchedule + /// public SnapshotPolicyDailySchedule DailySchedule { get; set; } - /// Schedule for weekly snapshots. + /// + /// Schedule for weekly snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.weeklySchedule + /// public SnapshotPolicyWeeklySchedule WeeklySchedule { get; set; } - /// Schedule for monthly snapshots. + /// + /// Schedule for monthly snapshots + /// Serialized Name: SnapshotPolicyPatch.properties.monthlySchedule + /// public SnapshotPolicyMonthlySchedule MonthlySchedule { get; set; } - /// The property to decide policy is enabled or not. + /// + /// The property to decide policy is enabled or not + /// Serialized Name: SnapshotPolicyPatch.properties.enabled + /// public bool? IsEnabled { get; set; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: SnapshotPolicyPatch.properties.provisioningState + /// public string ProvisioningState { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.Serialization.cs index e1ae6d4236ea..c9548b1316ed 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.Serialization.cs @@ -34,15 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(SnapshotPolicyVolumeList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -82,16 +84,13 @@ internal static SnapshotPolicyVolumeList DeserializeSnapshotPolicyVolumeList(Jso return null; } IReadOnlyList value = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -100,13 +99,22 @@ internal static SnapshotPolicyVolumeList DeserializeSnapshotPolicyVolumeList(Jso value = array; continue; } + if (property.NameEquals("nextLink"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new SnapshotPolicyVolumeList(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new SnapshotPolicyVolumeList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.cs index 018bdb7ee6e2..1db9c248a4b7 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// Volumes associated with snapshot policy. + /// + /// Volumes associated with snapshot policy + /// Serialized Name: SnapshotPolicyVolumeList + /// internal partial class SnapshotPolicyVolumeList { /// @@ -46,21 +50,49 @@ internal partial class SnapshotPolicyVolumeList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal SnapshotPolicyVolumeList() + /// + /// The Volume items on this page + /// Serialized Name: SnapshotPolicyVolumeList.value + /// + /// is null. + internal SnapshotPolicyVolumeList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// List of volumes. + /// + /// The Volume items on this page + /// Serialized Name: SnapshotPolicyVolumeList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: SnapshotPolicyVolumeList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal SnapshotPolicyVolumeList(IReadOnlyList value, IDictionary serializedAdditionalRawData) + internal SnapshotPolicyVolumeList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; + NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of volumes. + /// Initializes a new instance of for deserialization. + internal SnapshotPolicyVolumeList() + { + } + + /// + /// The Volume items on this page + /// Serialized Name: SnapshotPolicyVolumeList.value + /// public IReadOnlyList Value { get; } + /// + /// The link to the next page of items + /// Serialized Name: SnapshotPolicyVolumeList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyWeeklySchedule.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyWeeklySchedule.cs index 408ab0d64f89..61bb58c93896 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyWeeklySchedule.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyWeeklySchedule.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Weekly Schedule properties, make a snapshot every week at a specific day or days. + /// + /// Weekly Schedule properties, make a snapshot every week at a specific day or days + /// Serialized Name: WeeklySchedule + /// public partial class SnapshotPolicyWeeklySchedule { /// @@ -51,11 +54,26 @@ public SnapshotPolicyWeeklySchedule() } /// Initializes a new instance of . - /// Weekly snapshot count to keep. - /// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english. - /// Indicates which hour in UTC timezone a snapshot should be taken. - /// Indicates which minute snapshot should be taken. - /// Resource size in bytes, current storage usage for the volume in bytes. + /// + /// Weekly snapshot count to keep + /// Serialized Name: WeeklySchedule.snapshotsToKeep + /// + /// + /// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + /// Serialized Name: WeeklySchedule.day + /// + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// Serialized Name: WeeklySchedule.hour + /// + /// + /// Indicates which minute snapshot should be taken + /// Serialized Name: WeeklySchedule.minute + /// + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// Serialized Name: WeeklySchedule.usedBytes + /// /// Keeps track of any properties unknown to the library. internal SnapshotPolicyWeeklySchedule(int? snapshotsToKeep, string day, int? hour, int? minute, long? usedBytes, IDictionary serializedAdditionalRawData) { @@ -67,15 +85,30 @@ internal SnapshotPolicyWeeklySchedule(int? snapshotsToKeep, string day, int? hou _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Weekly snapshot count to keep. + /// + /// Weekly snapshot count to keep + /// Serialized Name: WeeklySchedule.snapshotsToKeep + /// public int? SnapshotsToKeep { get; set; } - /// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english. + /// + /// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + /// Serialized Name: WeeklySchedule.day + /// public string Day { get; set; } - /// Indicates which hour in UTC timezone a snapshot should be taken. + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// Serialized Name: WeeklySchedule.hour + /// public int? Hour { get; set; } - /// Indicates which minute snapshot should be taken. + /// + /// Indicates which minute snapshot should be taken + /// Serialized Name: WeeklySchedule.minute + /// public int? Minute { get; set; } - /// Resource size in bytes, current storage usage for the volume in bytes. + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// Serialized Name: WeeklySchedule.usedBytes + /// public long? UsedBytes { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.Serialization.cs index dee768d8c8dc..4b094d2634db 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.Serialization.cs @@ -34,15 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(SnapshotsList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -82,16 +84,13 @@ internal static SnapshotsList DeserializeSnapshotsList(JsonElement element, Mode return null; } IReadOnlyList value = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -100,13 +99,22 @@ internal static SnapshotsList DeserializeSnapshotsList(JsonElement element, Mode value = array; continue; } + if (property.NameEquals("nextLink"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new SnapshotsList(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new SnapshotsList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.cs index f0bd6fbcb558..28b8c3cbea5e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of Snapshots. + /// + /// List of Snapshots + /// Serialized Name: SnapshotsList + /// internal partial class SnapshotsList { /// @@ -46,21 +50,49 @@ internal partial class SnapshotsList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal SnapshotsList() + /// + /// The Snapshot items on this page + /// Serialized Name: SnapshotsList.value + /// + /// is null. + internal SnapshotsList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// A list of Snapshots. + /// + /// The Snapshot items on this page + /// Serialized Name: SnapshotsList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: SnapshotsList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal SnapshotsList(IReadOnlyList value, IDictionary serializedAdditionalRawData) + internal SnapshotsList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; + NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// A list of Snapshots. + /// Initializes a new instance of for deserialization. + internal SnapshotsList() + { + } + + /// + /// The Snapshot items on this page + /// Serialized Name: SnapshotsList.value + /// public IReadOnlyList Value { get; } + /// + /// The link to the next page of items + /// Serialized Name: SnapshotsList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.Serialization.cs index 05affa3cfee1..54dee2347264 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(SubvolumesList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static SubvolumesList DeserializeSubvolumesList(JsonElement element, Mo return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static SubvolumesList DeserializeSubvolumesList(JsonElement element, Mo } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static SubvolumesList DeserializeSubvolumesList(JsonElement element, Mo } } serializedAdditionalRawData = rawDataDictionary; - return new SubvolumesList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new SubvolumesList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.cs index 3eabb0cf57cb..ffe3a606e355 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of Subvolumes. + /// + /// List of Subvolumes + /// Serialized Name: SubvolumesList + /// internal partial class SubvolumesList { /// @@ -46,25 +50,49 @@ internal partial class SubvolumesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal SubvolumesList() + /// + /// The SubvolumeInfo items on this page + /// Serialized Name: SubvolumesList.value + /// + /// is null. + internal SubvolumesList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// A list of Subvolumes. - /// URL to get the next set of results. + /// + /// The SubvolumeInfo items on this page + /// Serialized Name: SubvolumesList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: SubvolumesList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal SubvolumesList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal SubvolumesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// A list of Subvolumes. + /// Initializes a new instance of for deserialization. + internal SubvolumesList() + { + } + + /// + /// The SubvolumeInfo items on this page + /// Serialized Name: SubvolumesList.value + /// public IReadOnlyList Value { get; } - /// URL to get the next set of results. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: SubvolumesList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SvmPeerCommandResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SvmPeerCommandResult.cs index 21cde8c5b00e..cbc30fabe7e3 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SvmPeerCommandResult.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SvmPeerCommandResult.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Information about svm peering process. + /// + /// Information about svm peering process + /// Serialized Name: SvmPeerCommandResponse + /// public partial class SvmPeerCommandResult { /// @@ -51,7 +54,10 @@ internal SvmPeerCommandResult() } /// Initializes a new instance of . - /// A command that needs to be run on the external ONTAP to accept svm peering. Will only be present if <code>svmPeeringStatus</code> is <code>pending</code>. + /// + /// A command that needs to be run on the external ONTAP to accept svm peering. Will only be present if <code>svmPeeringStatus</code> is <code>pending</code> + /// Serialized Name: SvmPeerCommandResponse.svmPeeringCommand + /// /// Keeps track of any properties unknown to the library. internal SvmPeerCommandResult(string svmPeeringCommand, IDictionary serializedAdditionalRawData) { @@ -59,7 +65,10 @@ internal SvmPeerCommandResult(string svmPeeringCommand, IDictionary A command that needs to be run on the external ONTAP to accept svm peering. Will only be present if <code>svmPeeringStatus</code> is <code>pending</code>. + /// + /// A command that needs to be run on the external ONTAP to accept svm peering. Will only be present if <code>svmPeeringStatus</code> is <code>pending</code> + /// Serialized Name: SvmPeerCommandResponse.svmPeeringCommand + /// public string SvmPeeringCommand { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.cs index f57744de1d4c..28b02f553094 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UpdateNetworkSiblingSetContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Network sibling set update. + /// + /// Network sibling set update. + /// Serialized Name: UpdateNetworkSiblingSetRequest + /// public partial class UpdateNetworkSiblingSetContent { /// @@ -47,10 +50,22 @@ public partial class UpdateNetworkSiblingSetContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. - /// Network sibling set state Id identifying the current state of the sibling set. - /// Network features available to the volume. + /// + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// Serialized Name: UpdateNetworkSiblingSetRequest.networkSiblingSetId + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + /// Serialized Name: UpdateNetworkSiblingSetRequest.subnetId + /// + /// + /// Network sibling set state Id identifying the current state of the sibling set. + /// Serialized Name: UpdateNetworkSiblingSetRequest.networkSiblingSetStateId + /// + /// + /// Network features available to the volume. + /// Serialized Name: UpdateNetworkSiblingSetRequest.networkFeatures + /// /// , or is null. public UpdateNetworkSiblingSetContent(string networkSiblingSetId, ResourceIdentifier subnetId, string networkSiblingSetStateId, NetAppNetworkFeature networkFeatures) { @@ -65,10 +80,22 @@ public UpdateNetworkSiblingSetContent(string networkSiblingSetId, ResourceIdenti } /// Initializes a new instance of . - /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. - /// Network sibling set state Id identifying the current state of the sibling set. - /// Network features available to the volume. + /// + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// Serialized Name: UpdateNetworkSiblingSetRequest.networkSiblingSetId + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + /// Serialized Name: UpdateNetworkSiblingSetRequest.subnetId + /// + /// + /// Network sibling set state Id identifying the current state of the sibling set. + /// Serialized Name: UpdateNetworkSiblingSetRequest.networkSiblingSetStateId + /// + /// + /// Network features available to the volume. + /// Serialized Name: UpdateNetworkSiblingSetRequest.networkFeatures + /// /// Keeps track of any properties unknown to the library. internal UpdateNetworkSiblingSetContent(string networkSiblingSetId, ResourceIdentifier subnetId, string networkSiblingSetStateId, NetAppNetworkFeature networkFeatures, IDictionary serializedAdditionalRawData) { @@ -84,13 +111,25 @@ internal UpdateNetworkSiblingSetContent() { } - /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// + /// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + /// Serialized Name: UpdateNetworkSiblingSetRequest.networkSiblingSetId + /// public string NetworkSiblingSetId { get; } - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + /// Serialized Name: UpdateNetworkSiblingSetRequest.subnetId + /// public ResourceIdentifier SubnetId { get; } - /// Network sibling set state Id identifying the current state of the sibling set. + /// + /// Network sibling set state Id identifying the current state of the sibling set. + /// Serialized Name: UpdateNetworkSiblingSetRequest.networkSiblingSetStateId + /// public string NetworkSiblingSetStateId { get; } - /// Network features available to the volume. + /// + /// Network features available to the volume. + /// Serialized Name: UpdateNetworkSiblingSetRequest.networkFeatures + /// public NetAppNetworkFeature NetworkFeatures { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UsagesListResult.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UsagesListResult.Serialization.cs index 1b5ccd873ccf..54c51f3afce2 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UsagesListResult.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UsagesListResult.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(UsagesListResult)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static UsagesListResult DeserializeUsagesListResult(JsonElement element return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static UsagesListResult DeserializeUsagesListResult(JsonElement element } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static UsagesListResult DeserializeUsagesListResult(JsonElement element } } serializedAdditionalRawData = rawDataDictionary; - return new UsagesListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new UsagesListResult(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UsagesListResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UsagesListResult.cs index c5cdf62cff59..9a3eb0647fe1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UsagesListResult.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/UsagesListResult.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// Usages result. + /// + /// Usages result + /// Serialized Name: UsagesListResult + /// internal partial class UsagesListResult { /// @@ -46,25 +50,49 @@ internal partial class UsagesListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal UsagesListResult() + /// + /// The UsageResult items on this page + /// Serialized Name: UsagesListResult.value + /// + /// is null. + internal UsagesListResult(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// A list of usages. - /// URL to get the next set of results. + /// + /// The UsageResult items on this page + /// Serialized Name: UsagesListResult.value + /// + /// + /// The link to the next page of items + /// Serialized Name: UsagesListResult.nextLink + /// /// Keeps track of any properties unknown to the library. - internal UsagesListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal UsagesListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// A list of usages. + /// Initializes a new instance of for deserialization. + internal UsagesListResult() + { + } + + /// + /// The UsageResult items on this page + /// Serialized Name: UsagesListResult.value + /// public IReadOnlyList Value { get; } - /// URL to get the next set of results. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: UsagesListResult.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeBackupRelationshipStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeBackupRelationshipStatus.cs new file mode 100644 index 000000000000..d3adf01d5456 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeBackupRelationshipStatus.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// + /// Status of the volume backup relationship + /// Serialized Name: VolumeBackupRelationshipStatus + /// + public readonly partial struct VolumeBackupRelationshipStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public VolumeBackupRelationshipStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string IdleValue = "Idle"; + private const string TransferringValue = "Transferring"; + private const string FailedValue = "Failed"; + private const string UnknownValue = "Unknown"; + + /// + /// Idle + /// Serialized Name: VolumeBackupRelationshipStatus.Idle + /// + public static VolumeBackupRelationshipStatus Idle { get; } = new VolumeBackupRelationshipStatus(IdleValue); + /// + /// Transferring + /// Serialized Name: VolumeBackupRelationshipStatus.Transferring + /// + public static VolumeBackupRelationshipStatus Transferring { get; } = new VolumeBackupRelationshipStatus(TransferringValue); + /// + /// Failed + /// Serialized Name: VolumeBackupRelationshipStatus.Failed + /// + public static VolumeBackupRelationshipStatus Failed { get; } = new VolumeBackupRelationshipStatus(FailedValue); + /// + /// Unknown + /// Serialized Name: VolumeBackupRelationshipStatus.Unknown + /// + public static VolumeBackupRelationshipStatus Unknown { get; } = new VolumeBackupRelationshipStatus(UnknownValue); + /// Determines if two values are the same. + public static bool operator ==(VolumeBackupRelationshipStatus left, VolumeBackupRelationshipStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(VolumeBackupRelationshipStatus left, VolumeBackupRelationshipStatus right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator VolumeBackupRelationshipStatus(string value) => new VolumeBackupRelationshipStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is VolumeBackupRelationshipStatus other && Equals(other); + /// + public bool Equals(VolumeBackupRelationshipStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.Serialization.cs index 2b73ffbd6f4b..9a2ce2cdcfab 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.Serialization.cs @@ -34,15 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(VolumeGroupList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -82,16 +84,13 @@ internal static VolumeGroupList DeserializeVolumeGroupList(JsonElement element, return null; } IReadOnlyList value = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -100,13 +99,22 @@ internal static VolumeGroupList DeserializeVolumeGroupList(JsonElement element, value = array; continue; } + if (property.NameEquals("nextLink"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new VolumeGroupList(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new VolumeGroupList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.cs index 031f8d1bfc9f..748e4e94fc85 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of volume group resources. + /// + /// List of volume group resources + /// Serialized Name: VolumeGroupList + /// internal partial class VolumeGroupList { /// @@ -46,21 +50,49 @@ internal partial class VolumeGroupList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal VolumeGroupList() + /// + /// The VolumeGroup items on this page + /// Serialized Name: VolumeGroupList.value + /// + /// is null. + internal VolumeGroupList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// List of volume Groups. + /// + /// The VolumeGroup items on this page + /// Serialized Name: VolumeGroupList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: VolumeGroupList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal VolumeGroupList(IReadOnlyList value, IDictionary serializedAdditionalRawData) + internal VolumeGroupList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; + NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of volume Groups. + /// Initializes a new instance of for deserialization. + internal VolumeGroupList() + { + } + + /// + /// The VolumeGroup items on this page + /// Serialized Name: VolumeGroupList.value + /// public IReadOnlyList Value { get; } + /// + /// The link to the next page of items + /// Serialized Name: VolumeGroupList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.Serialization.cs index f72101ed4a0d..6da6006ca7a3 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(VolumeList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static VolumeList DeserializeVolumeList(JsonElement element, ModelReade return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static VolumeList DeserializeVolumeList(JsonElement element, ModelReade } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static VolumeList DeserializeVolumeList(JsonElement element, ModelReade } } serializedAdditionalRawData = rawDataDictionary; - return new VolumeList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new VolumeList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.cs index adcfb1676567..d73c9d7fce5a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of volume resources. + /// + /// List of volume resources + /// Serialized Name: VolumeList + /// internal partial class VolumeList { /// @@ -46,25 +50,49 @@ internal partial class VolumeList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal VolumeList() + /// + /// The Volume items on this page + /// Serialized Name: VolumeList.value + /// + /// is null. + internal VolumeList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// List of volumes. - /// URL to get the next set of results. + /// + /// The Volume items on this page + /// Serialized Name: VolumeList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: VolumeList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal VolumeList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal VolumeList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of volumes. + /// Initializes a new instance of for deserialization. + internal VolumeList() + { + } + + /// + /// The Volume items on this page + /// Serialized Name: VolumeList.value + /// public IReadOnlyList Value { get; } - /// URL to get the next set of results. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: VolumeList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePatchPropertiesExportPolicy.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePatchPropertiesExportPolicy.cs index 8a3e19c3de07..608eab2a5424 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePatchPropertiesExportPolicy.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePatchPropertiesExportPolicy.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Set of export policy rules. + /// + /// Set of export policy rules + /// Serialized Name: VolumePatchPropertiesExportPolicy + /// internal partial class VolumePatchPropertiesExportPolicy { /// @@ -52,7 +55,10 @@ public VolumePatchPropertiesExportPolicy() } /// Initializes a new instance of . - /// Export policy rule. + /// + /// Export policy rule + /// Serialized Name: VolumePatchPropertiesExportPolicy.rules + /// /// Keeps track of any properties unknown to the library. internal VolumePatchPropertiesExportPolicy(IList rules, IDictionary serializedAdditionalRawData) { @@ -60,7 +66,10 @@ internal VolumePatchPropertiesExportPolicy(IList r _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Export policy rule. + /// + /// Export policy rule + /// Serialized Name: VolumePatchPropertiesExportPolicy.rules + /// public IList Rules { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePropertiesExportPolicy.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePropertiesExportPolicy.cs index c47c8150a4fc..9128427861b8 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePropertiesExportPolicy.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePropertiesExportPolicy.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Set of export policy rules. + /// + /// Set of export policy rules + /// Serialized Name: VolumePropertiesExportPolicy + /// internal partial class VolumePropertiesExportPolicy { /// @@ -52,7 +55,10 @@ public VolumePropertiesExportPolicy() } /// Initializes a new instance of . - /// Export policy rule. + /// + /// Export policy rule + /// Serialized Name: VolumePropertiesExportPolicy.rules + /// /// Keeps track of any properties unknown to the library. internal VolumePropertiesExportPolicy(IList rules, IDictionary serializedAdditionalRawData) { @@ -60,7 +66,10 @@ internal VolumePropertiesExportPolicy(IList rules, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Export policy rule. + /// + /// Export policy rule + /// Serialized Name: VolumePropertiesExportPolicy.rules + /// public IList Rules { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.Serialization.cs index 57e04c21010e..5695481376fa 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.Serialization.cs @@ -34,15 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(VolumeQuotaRulesList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -82,16 +84,13 @@ internal static VolumeQuotaRulesList DeserializeVolumeQuotaRulesList(JsonElement return null; } IReadOnlyList value = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -100,13 +99,22 @@ internal static VolumeQuotaRulesList DeserializeVolumeQuotaRulesList(JsonElement value = array; continue; } + if (property.NameEquals("nextLink"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new VolumeQuotaRulesList(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new VolumeQuotaRulesList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.cs index f6f8835cf9e9..c42b78fd7f70 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NetApp.Models { - /// List of Volume Quota Rules. + /// + /// List of Volume Quota Rules + /// Serialized Name: VolumeQuotaRulesList + /// internal partial class VolumeQuotaRulesList { /// @@ -46,21 +50,49 @@ internal partial class VolumeQuotaRulesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal VolumeQuotaRulesList() + /// + /// The VolumeQuotaRule items on this page + /// Serialized Name: VolumeQuotaRulesList.value + /// + /// is null. + internal VolumeQuotaRulesList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// A list of Volume Quota Rules. + /// + /// The VolumeQuotaRule items on this page + /// Serialized Name: VolumeQuotaRulesList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: VolumeQuotaRulesList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal VolumeQuotaRulesList(IReadOnlyList value, IDictionary serializedAdditionalRawData) + internal VolumeQuotaRulesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; + NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// A list of Volume Quota Rules. + /// Initializes a new instance of for deserialization. + internal VolumeQuotaRulesList() + { + } + + /// + /// The VolumeQuotaRule items on this page + /// Serialized Name: VolumeQuotaRulesList.value + /// public IReadOnlyList Value { get; } + /// + /// The link to the next page of items + /// Serialized Name: VolumeQuotaRulesList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeReplicationRelationshipStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeReplicationRelationshipStatus.cs index f4730bdea6b2..1e3a54f66ac7 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeReplicationRelationshipStatus.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeReplicationRelationshipStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Status of the mirror relationship. + /// + /// Status of the volume replication relationship + /// Serialized Name: VolumeReplicationRelationshipStatus + /// public readonly partial struct VolumeReplicationRelationshipStatus : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public VolumeReplicationRelationshipStatus(string value) private const string IdleValue = "Idle"; private const string TransferringValue = "Transferring"; - /// Idle. + /// + /// Idle + /// Serialized Name: VolumeReplicationRelationshipStatus.Idle + /// public static VolumeReplicationRelationshipStatus Idle { get; } = new VolumeReplicationRelationshipStatus(IdleValue); - /// Transferring. + /// + /// Transferring + /// Serialized Name: VolumeReplicationRelationshipStatus.Transferring + /// public static VolumeReplicationRelationshipStatus Transferring { get; } = new VolumeReplicationRelationshipStatus(TransferringValue); /// Determines if two values are the same. public static bool operator ==(VolumeReplicationRelationshipStatus left, VolumeReplicationRelationshipStatus right) => left.Equals(right); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeRestoreRelationshipStatus.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeRestoreRelationshipStatus.cs new file mode 100644 index 000000000000..618512c5b63b --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeRestoreRelationshipStatus.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.NetApp.Models +{ + /// + /// Status of the volume restore relationship + /// Serialized Name: VolumeRestoreRelationshipStatus + /// + public readonly partial struct VolumeRestoreRelationshipStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public VolumeRestoreRelationshipStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string IdleValue = "Idle"; + private const string TransferringValue = "Transferring"; + private const string FailedValue = "Failed"; + private const string UnknownValue = "Unknown"; + + /// + /// Idle + /// Serialized Name: VolumeRestoreRelationshipStatus.Idle + /// + public static VolumeRestoreRelationshipStatus Idle { get; } = new VolumeRestoreRelationshipStatus(IdleValue); + /// + /// Transferring + /// Serialized Name: VolumeRestoreRelationshipStatus.Transferring + /// + public static VolumeRestoreRelationshipStatus Transferring { get; } = new VolumeRestoreRelationshipStatus(TransferringValue); + /// + /// Failed + /// Serialized Name: VolumeRestoreRelationshipStatus.Failed + /// + public static VolumeRestoreRelationshipStatus Failed { get; } = new VolumeRestoreRelationshipStatus(FailedValue); + /// + /// Unknown + /// Serialized Name: VolumeRestoreRelationshipStatus.Unknown + /// + public static VolumeRestoreRelationshipStatus Unknown { get; } = new VolumeRestoreRelationshipStatus(UnknownValue); + /// Determines if two values are the same. + public static bool operator ==(VolumeRestoreRelationshipStatus left, VolumeRestoreRelationshipStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(VolumeRestoreRelationshipStatus left, VolumeRestoreRelationshipStatus right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator VolumeRestoreRelationshipStatus(string value) => new VolumeRestoreRelationshipStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is VolumeRestoreRelationshipStatus other && Equals(other); + /// + public bool Equals(VolumeRestoreRelationshipStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeSnapshotProperties.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeSnapshotProperties.cs index 8e0cf23331b8..9d0e0269d40a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeSnapshotProperties.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeSnapshotProperties.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NetApp.Models { - /// Volume Snapshot Properties. + /// + /// Volume Snapshot Properties + /// Serialized Name: VolumeSnapshotProperties + /// internal partial class VolumeSnapshotProperties { /// @@ -52,7 +55,10 @@ public VolumeSnapshotProperties() } /// Initializes a new instance of . - /// Snapshot Policy ResourceId. + /// + /// Snapshot Policy ResourceId + /// Serialized Name: VolumeSnapshotProperties.snapshotPolicyId + /// /// Keeps track of any properties unknown to the library. internal VolumeSnapshotProperties(ResourceIdentifier snapshotPolicyId, IDictionary serializedAdditionalRawData) { @@ -60,7 +66,10 @@ internal VolumeSnapshotProperties(ResourceIdentifier snapshotPolicyId, IDictiona _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Snapshot Policy ResourceId. + /// + /// Snapshot Policy ResourceId + /// Serialized Name: VolumeSnapshotProperties.snapshotPolicyId + /// public ResourceIdentifier SnapshotPolicyId { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountCollection.cs index 6b0ff0a094ac..ca223ea59ebe 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string accou /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string accountName, Cancellat /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string accountName, Cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string accountName, CancellationToken cance /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.Serialization.cs index bfccdcb33ad8..da703dc083c0 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.Serialization.cs @@ -99,11 +99,6 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("multiAdStatus"u8); writer.WriteStringValue(MultiAdStatus.Value.ToString()); } - if (Optional.IsDefined(LdapConfiguration)) - { - writer.WritePropertyName("ldapConfiguration"u8); - writer.WriteObjectValue(LdapConfiguration, options); - } writer.WriteEndObject(); } @@ -141,7 +136,6 @@ internal static NetAppAccountData DeserializeNetAppAccountData(JsonElement eleme bool? disableShowmount = default; string nfsV4IdDomain = default; MultiAdStatus? multiAdStatus = default; - LdapConfiguration ldapConfiguration = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -273,15 +267,6 @@ internal static NetAppAccountData DeserializeNetAppAccountData(JsonElement eleme multiAdStatus = new MultiAdStatus(property0.Value.GetString()); continue; } - if (property0.NameEquals("ldapConfiguration"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - ldapConfiguration = LdapConfiguration.DeserializeLdapConfiguration(property0.Value, options); - continue; - } } continue; } @@ -306,7 +291,6 @@ internal static NetAppAccountData DeserializeNetAppAccountData(JsonElement eleme disableShowmount, nfsV4IdDomain, multiAdStatus, - ldapConfiguration, serializedAdditionalRawData); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs index e607aae31709..616ec244fe77 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the NetAppAccount data model. /// NetApp account resource + /// Serialized Name: NetAppAccount /// public partial class NetAppAccountData : TrackedResourceData { @@ -65,17 +66,40 @@ public NetAppAccountData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// The identity used for the resource. - /// Azure lifecycle management. - /// Active Directories. - /// Encryption settings. - /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. - /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. - /// MultiAD Status for the account. - /// LDAP Configuration for the account. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: NetAppAccount.etag + /// + /// + /// The managed service identities assigned to this resource. + /// Serialized Name: NetAppAccount.identity + /// + /// + /// Azure lifecycle management + /// Serialized Name: NetAppAccount.properties.provisioningState + /// + /// + /// Active Directories + /// Serialized Name: NetAppAccount.properties.activeDirectories + /// + /// + /// Encryption settings + /// Serialized Name: NetAppAccount.properties.encryption + /// + /// + /// Shows the status of disableShowmount for all volumes under the subscription, null equals false + /// Serialized Name: NetAppAccount.properties.disableShowmount + /// + /// + /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. + /// Serialized Name: NetAppAccount.properties.nfsV4IDDomain + /// + /// + /// MultiAD Status for the account + /// Serialized Name: NetAppAccount.properties.multiAdStatus + /// /// Keeps track of any properties unknown to the library. - internal NetAppAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ManagedServiceIdentity identity, string provisioningState, IList activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount, string nfsV4IdDomain, MultiAdStatus? multiAdStatus, LdapConfiguration ldapConfiguration, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal NetAppAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ManagedServiceIdentity identity, string provisioningState, IList activeDirectories, NetAppAccountEncryption encryption, bool? disableShowmount, string nfsV4IdDomain, MultiAdStatus? multiAdStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; Identity = identity; @@ -85,7 +109,6 @@ internal NetAppAccountData(ResourceIdentifier id, string name, ResourceType reso DisableShowmount = disableShowmount; NfsV4IdDomain = nfsV4IdDomain; MultiAdStatus = multiAdStatus; - LdapConfiguration = ldapConfiguration; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -94,23 +117,45 @@ internal NetAppAccountData() { } - /// A unique read-only string that changes whenever the resource is updated. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: NetAppAccount.etag + /// public ETag? ETag { get; } - /// The identity used for the resource. + /// + /// The managed service identities assigned to this resource. + /// Serialized Name: NetAppAccount.identity + /// public ManagedServiceIdentity Identity { get; set; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: NetAppAccount.properties.provisioningState + /// public string ProvisioningState { get; } - /// Active Directories. + /// + /// Active Directories + /// Serialized Name: NetAppAccount.properties.activeDirectories + /// public IList ActiveDirectories { get; } - /// Encryption settings. + /// + /// Encryption settings + /// Serialized Name: NetAppAccount.properties.encryption + /// public NetAppAccountEncryption Encryption { get; set; } - /// Shows the status of disableShowmount for all volumes under the subscription, null equals false. + /// + /// Shows the status of disableShowmount for all volumes under the subscription, null equals false + /// Serialized Name: NetAppAccount.properties.disableShowmount + /// public bool? DisableShowmount { get; } - /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. + /// + /// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. + /// Serialized Name: NetAppAccount.properties.nfsV4IDDomain + /// public string NfsV4IdDomain { get; set; } - /// MultiAD Status for the account. + /// + /// MultiAD Status for the account + /// Serialized Name: NetAppAccount.properties.multiAdStatus + /// public MultiAdStatus? MultiAdStatus { get; } - /// LDAP Configuration for the account. - public LdapConfiguration LdapConfiguration { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountResource.cs index 9029e5736872..a022eec1b10a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppAccountResource.cs @@ -38,12 +38,12 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _netAppAccountAccountsClientDiagnostics; private readonly AccountsRestOperations _netAppAccountAccountsRestClient; - private readonly ClientDiagnostics _netAppVolumeGroupVolumeGroupsClientDiagnostics; - private readonly VolumeGroupsRestOperations _netAppVolumeGroupVolumeGroupsRestClient; - private readonly ClientDiagnostics _netAppResourceQuotaLimitsAccountClientDiagnostics; - private readonly NetAppResourceQuotaLimitsAccountRestOperations _netAppResourceQuotaLimitsAccountRestClient; private readonly ClientDiagnostics _backupsUnderAccountClientDiagnostics; private readonly BackupsUnderAccountRestOperations _backupsUnderAccountRestClient; + private readonly ClientDiagnostics _netAppResourceQuotaLimitsAccountClientDiagnostics; + private readonly NetAppResourceQuotaLimitsAccountRestOperations _netAppResourceQuotaLimitsAccountRestClient; + private readonly ClientDiagnostics _netAppVolumeGroupVolumeGroupsClientDiagnostics; + private readonly VolumeGroupsRestOperations _netAppVolumeGroupVolumeGroupsRestClient; private readonly NetAppAccountData _data; /// Gets the resource type for the operations. @@ -71,13 +71,13 @@ internal NetAppAccountResource(ArmClient client, ResourceIdentifier id) : base(c _netAppAccountAccountsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetApp", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string netAppAccountAccountsApiVersion); _netAppAccountAccountsRestClient = new AccountsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, netAppAccountAccountsApiVersion); + _backupsUnderAccountClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetApp", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _backupsUnderAccountRestClient = new BackupsUnderAccountRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + _netAppResourceQuotaLimitsAccountClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetApp", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _netAppResourceQuotaLimitsAccountRestClient = new NetAppResourceQuotaLimitsAccountRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _netAppVolumeGroupVolumeGroupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetApp", NetAppVolumeGroupResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(NetAppVolumeGroupResource.ResourceType, out string netAppVolumeGroupVolumeGroupsApiVersion); _netAppVolumeGroupVolumeGroupsRestClient = new VolumeGroupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, netAppVolumeGroupVolumeGroupsApiVersion); - _netAppResourceQuotaLimitsAccountClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetApp", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _netAppResourceQuotaLimitsAccountRestClient = new NetAppResourceQuotaLimitsAccountRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - _backupsUnderAccountClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetApp", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _backupsUnderAccountRestClient = new BackupsUnderAccountRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG ValidateResourceId(Id); #endif @@ -104,349 +104,349 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of CapacityPoolResources in the NetAppAccount. - /// An object representing collection of CapacityPoolResources and their operations over a CapacityPoolResource. - public virtual CapacityPoolCollection GetCapacityPools() + /// Gets a collection of NetAppBackupPolicyResources in the NetAppAccount. + /// An object representing collection of NetAppBackupPolicyResources and their operations over a NetAppBackupPolicyResource. + public virtual NetAppBackupPolicyCollection GetNetAppBackupPolicies() { - return GetCachedClient(client => new CapacityPoolCollection(client, Id)); + return GetCachedClient(client => new NetAppBackupPolicyCollection(client, Id)); } /// - /// Get details of the specified capacity pool + /// Get a particular backup Policy /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName} /// /// /// Operation Id - /// Pools_Get + /// BackupPolicies_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the capacity pool. + /// Backup policy Name which uniquely identify backup policy. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetCapacityPoolAsync(string poolName, CancellationToken cancellationToken = default) + public virtual async Task> GetNetAppBackupPolicyAsync(string backupPolicyName, CancellationToken cancellationToken = default) { - return await GetCapacityPools().GetAsync(poolName, cancellationToken).ConfigureAwait(false); + return await GetNetAppBackupPolicies().GetAsync(backupPolicyName, cancellationToken).ConfigureAwait(false); } /// - /// Get details of the specified capacity pool + /// Get a particular backup Policy /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName} /// /// /// Operation Id - /// Pools_Get + /// BackupPolicies_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the capacity pool. + /// Backup policy Name which uniquely identify backup policy. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetCapacityPool(string poolName, CancellationToken cancellationToken = default) + public virtual Response GetNetAppBackupPolicy(string backupPolicyName, CancellationToken cancellationToken = default) { - return GetCapacityPools().Get(poolName, cancellationToken); + return GetNetAppBackupPolicies().Get(backupPolicyName, cancellationToken); } - /// Gets a collection of SnapshotPolicyResources in the NetAppAccount. - /// An object representing collection of SnapshotPolicyResources and their operations over a SnapshotPolicyResource. - public virtual SnapshotPolicyCollection GetSnapshotPolicies() + /// Gets a collection of NetAppBackupVaultResources in the NetAppAccount. + /// An object representing collection of NetAppBackupVaultResources and their operations over a NetAppBackupVaultResource. + public virtual NetAppBackupVaultCollection GetNetAppBackupVaults() { - return GetCachedClient(client => new SnapshotPolicyCollection(client, Id)); + return GetCachedClient(client => new NetAppBackupVaultCollection(client, Id)); } /// - /// Get a snapshot Policy + /// Get the Backup Vault /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName} /// /// /// Operation Id - /// SnapshotPolicies_Get + /// BackupVaults_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the snapshot policy. + /// The name of the Backup Vault. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetSnapshotPolicyAsync(string snapshotPolicyName, CancellationToken cancellationToken = default) + public virtual async Task> GetNetAppBackupVaultAsync(string backupVaultName, CancellationToken cancellationToken = default) { - return await GetSnapshotPolicies().GetAsync(snapshotPolicyName, cancellationToken).ConfigureAwait(false); + return await GetNetAppBackupVaults().GetAsync(backupVaultName, cancellationToken).ConfigureAwait(false); } /// - /// Get a snapshot Policy + /// Get the Backup Vault /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName} /// /// /// Operation Id - /// SnapshotPolicies_Get + /// BackupVaults_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the snapshot policy. + /// The name of the Backup Vault. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetSnapshotPolicy(string snapshotPolicyName, CancellationToken cancellationToken = default) + public virtual Response GetNetAppBackupVault(string backupVaultName, CancellationToken cancellationToken = default) { - return GetSnapshotPolicies().Get(snapshotPolicyName, cancellationToken); + return GetNetAppBackupVaults().Get(backupVaultName, cancellationToken); } - /// Gets a collection of NetAppBackupPolicyResources in the NetAppAccount. - /// An object representing collection of NetAppBackupPolicyResources and their operations over a NetAppBackupPolicyResource. - public virtual NetAppBackupPolicyCollection GetNetAppBackupPolicies() + /// Gets a collection of CapacityPoolResources in the NetAppAccount. + /// An object representing collection of CapacityPoolResources and their operations over a CapacityPoolResource. + public virtual CapacityPoolCollection GetCapacityPools() { - return GetCachedClient(client => new NetAppBackupPolicyCollection(client, Id)); + return GetCachedClient(client => new CapacityPoolCollection(client, Id)); } /// - /// Get a particular backup Policy + /// Get details of the specified capacity pool /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName} /// /// /// Operation Id - /// BackupPolicies_Get + /// Pools_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Backup policy Name which uniquely identify backup policy. + /// The name of the capacity pool. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetNetAppBackupPolicyAsync(string backupPolicyName, CancellationToken cancellationToken = default) + public virtual async Task> GetCapacityPoolAsync(string poolName, CancellationToken cancellationToken = default) { - return await GetNetAppBackupPolicies().GetAsync(backupPolicyName, cancellationToken).ConfigureAwait(false); + return await GetCapacityPools().GetAsync(poolName, cancellationToken).ConfigureAwait(false); } /// - /// Get a particular backup Policy + /// Get details of the specified capacity pool /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName} /// /// /// Operation Id - /// BackupPolicies_Get + /// Pools_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Backup policy Name which uniquely identify backup policy. + /// The name of the capacity pool. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetNetAppBackupPolicy(string backupPolicyName, CancellationToken cancellationToken = default) + public virtual Response GetCapacityPool(string poolName, CancellationToken cancellationToken = default) { - return GetNetAppBackupPolicies().Get(backupPolicyName, cancellationToken); + return GetCapacityPools().Get(poolName, cancellationToken); } - /// Gets a collection of NetAppVolumeGroupResources in the NetAppAccount. - /// An object representing collection of NetAppVolumeGroupResources and their operations over a NetAppVolumeGroupResource. - public virtual NetAppVolumeGroupCollection GetNetAppVolumeGroups() + /// Gets a collection of SnapshotPolicyResources in the NetAppAccount. + /// An object representing collection of SnapshotPolicyResources and their operations over a SnapshotPolicyResource. + public virtual SnapshotPolicyCollection GetSnapshotPolicies() { - return GetCachedClient(client => new NetAppVolumeGroupCollection(client, Id)); + return GetCachedClient(client => new SnapshotPolicyCollection(client, Id)); } /// - /// Get details of the specified volume group + /// Get a snapshot Policy /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName} /// /// /// Operation Id - /// VolumeGroups_Get + /// SnapshotPolicies_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the volumeGroup. + /// The name of the snapshot policy. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetNetAppVolumeGroupAsync(string volumeGroupName, CancellationToken cancellationToken = default) + public virtual async Task> GetSnapshotPolicyAsync(string snapshotPolicyName, CancellationToken cancellationToken = default) { - return await GetNetAppVolumeGroups().GetAsync(volumeGroupName, cancellationToken).ConfigureAwait(false); + return await GetSnapshotPolicies().GetAsync(snapshotPolicyName, cancellationToken).ConfigureAwait(false); } /// - /// Get details of the specified volume group + /// Get a snapshot Policy /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName} /// /// /// Operation Id - /// VolumeGroups_Get + /// SnapshotPolicies_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the volumeGroup. + /// The name of the snapshot policy. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetNetAppVolumeGroup(string volumeGroupName, CancellationToken cancellationToken = default) + public virtual Response GetSnapshotPolicy(string snapshotPolicyName, CancellationToken cancellationToken = default) { - return GetNetAppVolumeGroups().Get(volumeGroupName, cancellationToken); + return GetSnapshotPolicies().Get(snapshotPolicyName, cancellationToken); } - /// Gets a collection of NetAppBackupVaultResources in the NetAppAccount. - /// An object representing collection of NetAppBackupVaultResources and their operations over a NetAppBackupVaultResource. - public virtual NetAppBackupVaultCollection GetNetAppBackupVaults() + /// Gets a collection of NetAppVolumeGroupResources in the NetAppAccount. + /// An object representing collection of NetAppVolumeGroupResources and their operations over a NetAppVolumeGroupResource. + public virtual NetAppVolumeGroupCollection GetNetAppVolumeGroups() { - return GetCachedClient(client => new NetAppBackupVaultCollection(client, Id)); + return GetCachedClient(client => new NetAppVolumeGroupCollection(client, Id)); } /// - /// Get the Backup Vault + /// Get details of the specified volume group /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName} /// /// /// Operation Id - /// BackupVaults_Get + /// VolumeGroups_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the Backup Vault. + /// The name of the volumeGroup. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetNetAppBackupVaultAsync(string backupVaultName, CancellationToken cancellationToken = default) + public virtual async Task> GetNetAppVolumeGroupAsync(string volumeGroupName, CancellationToken cancellationToken = default) { - return await GetNetAppBackupVaults().GetAsync(backupVaultName, cancellationToken).ConfigureAwait(false); + return await GetNetAppVolumeGroups().GetAsync(volumeGroupName, cancellationToken).ConfigureAwait(false); } /// - /// Get the Backup Vault + /// Get details of the specified volume group /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName} /// /// /// Operation Id - /// BackupVaults_Get + /// VolumeGroups_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the Backup Vault. + /// The name of the volumeGroup. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetNetAppBackupVault(string backupVaultName, CancellationToken cancellationToken = default) + public virtual Response GetNetAppVolumeGroup(string volumeGroupName, CancellationToken cancellationToken = default) { - return GetNetAppBackupVaults().Get(backupVaultName, cancellationToken); + return GetNetAppVolumeGroups().Get(volumeGroupName, cancellationToken); } /// @@ -462,7 +462,7 @@ public virtual Response GetNetAppBackupVault(string b /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -502,7 +502,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -542,7 +542,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -584,7 +584,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -626,7 +626,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -672,7 +672,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -706,19 +706,19 @@ public virtual ArmOperation Update(WaitUntil waitUntil, N } /// - /// Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. + /// Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/changeKeyVault /// /// /// Operation Id - /// Accounts_RenewCredentials + /// Accounts_ChangeKeyVault /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -727,15 +727,16 @@ public virtual ArmOperation Update(WaitUntil waitUntil, N /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The required parameters to perform encryption migration. /// The cancellation token to use. - public virtual async Task RenewCredentialsAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task ChangeKeyVaultAsync(WaitUntil waitUntil, NetAppChangeKeyVault body = null, CancellationToken cancellationToken = default) { - using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.RenewCredentials"); + using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.ChangeKeyVault"); scope.Start(); try { - var response = await _netAppAccountAccountsRestClient.RenewCredentialsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateRenewCredentialsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var response = await _netAppAccountAccountsRestClient.ChangeKeyVaultAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateChangeKeyVaultRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -748,19 +749,19 @@ public virtual async Task RenewCredentialsAsync(WaitUntil waitUnti } /// - /// Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. + /// Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/changeKeyVault /// /// /// Operation Id - /// Accounts_RenewCredentials + /// Accounts_ChangeKeyVault /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -769,15 +770,16 @@ public virtual async Task RenewCredentialsAsync(WaitUntil waitUnti /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The required parameters to perform encryption migration. /// The cancellation token to use. - public virtual ArmOperation RenewCredentials(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation ChangeKeyVault(WaitUntil waitUntil, NetAppChangeKeyVault body = null, CancellationToken cancellationToken = default) { - using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.RenewCredentials"); + using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.ChangeKeyVault"); scope.Start(); try { - var response = _netAppAccountAccountsRestClient.RenewCredentials(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateRenewCredentialsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var response = _netAppAccountAccountsRestClient.ChangeKeyVault(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken); + var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateChangeKeyVaultRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -790,19 +792,19 @@ public virtual ArmOperation RenewCredentials(WaitUntil waitUntil, CancellationTo } /// - /// Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. + /// Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/transitiontocmk + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/getKeyVaultStatus /// /// /// Operation Id - /// Accounts_TransitionToCmk + /// Accounts_GetChangeKeyVaultInformation /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -811,18 +813,17 @@ public virtual ArmOperation RenewCredentials(WaitUntil waitUntil, CancellationTo /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The required parameters to perform encryption transition. /// The cancellation token to use. - public virtual async Task TransitionToCmkAsync(WaitUntil waitUntil, NetAppEncryptionTransitionContent content = null, CancellationToken cancellationToken = default) + public virtual async Task> GetChangeKeyVaultInformationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.TransitionToCmk"); + using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.GetChangeKeyVaultInformation"); scope.Start(); try { - var response = await _netAppAccountAccountsRestClient.TransitionToCmkAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateTransitionToCmkRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = await _netAppAccountAccountsRestClient.GetChangeKeyVaultInformationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(new NetAppKeyVaultStatusResultOperationSource(), _netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateGetChangeKeyVaultInformationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -833,19 +834,19 @@ public virtual async Task TransitionToCmkAsync(WaitUntil waitUntil } /// - /// Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. + /// Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/transitiontocmk + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/getKeyVaultStatus /// /// /// Operation Id - /// Accounts_TransitionToCmk + /// Accounts_GetChangeKeyVaultInformation /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -854,18 +855,17 @@ public virtual async Task TransitionToCmkAsync(WaitUntil waitUntil /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The required parameters to perform encryption transition. /// The cancellation token to use. - public virtual ArmOperation TransitionToCmk(WaitUntil waitUntil, NetAppEncryptionTransitionContent content = null, CancellationToken cancellationToken = default) + public virtual ArmOperation GetChangeKeyVaultInformation(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.TransitionToCmk"); + using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.GetChangeKeyVaultInformation"); scope.Start(); try { - var response = _netAppAccountAccountsRestClient.TransitionToCmk(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateTransitionToCmkRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = _netAppAccountAccountsRestClient.GetChangeKeyVaultInformation(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(new NetAppKeyVaultStatusResultOperationSource(), _netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateGetChangeKeyVaultInformationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -876,19 +876,19 @@ public virtual ArmOperation TransitionToCmk(WaitUntil waitUntil, NetAppEncryptio } /// - /// Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. + /// Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/getKeyVaultStatus + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials /// /// /// Operation Id - /// Accounts_GetChangeKeyVaultInformation + /// Accounts_RenewCredentials /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -898,16 +898,16 @@ public virtual ArmOperation TransitionToCmk(WaitUntil waitUntil, NetAppEncryptio /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task> GetChangeKeyVaultInformationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task RenewCredentialsAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.GetChangeKeyVaultInformation"); + using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.RenewCredentials"); scope.Start(); try { - var response = await _netAppAccountAccountsRestClient.GetChangeKeyVaultInformationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(new NetAppKeyVaultStatusResultOperationSource(), _netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateGetChangeKeyVaultInformationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var response = await _netAppAccountAccountsRestClient.RenewCredentialsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateRenewCredentialsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -918,19 +918,19 @@ public virtual async Task> GetChangeKey } /// - /// Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. + /// Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/getKeyVaultStatus + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials /// /// /// Operation Id - /// Accounts_GetChangeKeyVaultInformation + /// Accounts_RenewCredentials /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -940,16 +940,16 @@ public virtual async Task> GetChangeKey /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation GetChangeKeyVaultInformation(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation RenewCredentials(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.GetChangeKeyVaultInformation"); + using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.RenewCredentials"); scope.Start(); try { - var response = _netAppAccountAccountsRestClient.GetChangeKeyVaultInformation(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(new NetAppKeyVaultStatusResultOperationSource(), _netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateGetChangeKeyVaultInformationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var response = _netAppAccountAccountsRestClient.RenewCredentials(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateRenewCredentialsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); + operation.WaitForCompletionResponse(cancellationToken); return operation; } catch (Exception e) @@ -960,19 +960,19 @@ public virtual ArmOperation GetChangeKeyVaultInforma } /// - /// Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + /// Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/changeKeyVault + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/transitiontocmk /// /// /// Operation Id - /// Accounts_ChangeKeyVault + /// Accounts_TransitionToCmk /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -981,16 +981,16 @@ public virtual ArmOperation GetChangeKeyVaultInforma /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The required parameters to perform encryption migration. + /// The required parameters to perform encryption transition. /// The cancellation token to use. - public virtual async Task ChangeKeyVaultAsync(WaitUntil waitUntil, NetAppChangeKeyVault body = null, CancellationToken cancellationToken = default) + public virtual async Task TransitionToCmkAsync(WaitUntil waitUntil, NetAppEncryptionTransitionContent content = null, CancellationToken cancellationToken = default) { - using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.ChangeKeyVault"); + using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.TransitionToCmk"); scope.Start(); try { - var response = await _netAppAccountAccountsRestClient.ChangeKeyVaultAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateChangeKeyVaultRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = await _netAppAccountAccountsRestClient.TransitionToCmkAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateTransitionToCmkRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -1003,19 +1003,19 @@ public virtual async Task ChangeKeyVaultAsync(WaitUntil waitUntil, } /// - /// Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + /// Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/changeKeyVault + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/transitiontocmk /// /// /// Operation Id - /// Accounts_ChangeKeyVault + /// Accounts_TransitionToCmk /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1024,16 +1024,16 @@ public virtual async Task ChangeKeyVaultAsync(WaitUntil waitUntil, /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The required parameters to perform encryption migration. + /// The required parameters to perform encryption transition. /// The cancellation token to use. - public virtual ArmOperation ChangeKeyVault(WaitUntil waitUntil, NetAppChangeKeyVault body = null, CancellationToken cancellationToken = default) + public virtual ArmOperation TransitionToCmk(WaitUntil waitUntil, NetAppEncryptionTransitionContent content = null, CancellationToken cancellationToken = default) { - using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.ChangeKeyVault"); + using var scope = _netAppAccountAccountsClientDiagnostics.CreateScope("NetAppAccountResource.TransitionToCmk"); scope.Start(); try { - var response = _netAppAccountAccountsRestClient.ChangeKeyVault(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken); - var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateChangeKeyVaultRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body).Request, response, OperationFinalStateVia.Location); + var response = _netAppAccountAccountsRestClient.TransitionToCmk(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + var operation = new NetAppArmOperation(_netAppAccountAccountsClientDiagnostics, Pipeline, _netAppAccountAccountsRestClient.CreateTransitionToCmkRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -1046,61 +1046,87 @@ public virtual ArmOperation ChangeKeyVault(WaitUntil waitUntil, NetAppChangeKeyV } /// - /// List all volume groups for given account + /// Migrate the backups under a NetApp account to backup vault /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateBackups /// /// /// Operation Id - /// VolumeGroups_ListByNetAppAccount + /// BackupsUnderAccount_MigrateBackups /// /// /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// + /// 2025-09-01 /// /// /// + /// 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. + /// Migrate backups under an account payload supplied in the body of the operation. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetVolumeGroupsAsync(CancellationToken cancellationToken = default) + /// is null. + public virtual async Task MigrateBackupsBackupsUnderAccountAsync(WaitUntil waitUntil, BackupsMigrationContent content, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeGroupVolumeGroupsRestClient.CreateListByNetAppAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => NetAppVolumeGroupResult.DeserializeNetAppVolumeGroupResult(e), _netAppVolumeGroupVolumeGroupsClientDiagnostics, Pipeline, "NetAppAccountResource.GetVolumeGroups", "value", null, cancellationToken); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _backupsUnderAccountClientDiagnostics.CreateScope("NetAppAccountResource.MigrateBackupsBackupsUnderAccount"); + scope.Start(); + try + { + var response = await _backupsUnderAccountRestClient.MigrateBackupsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_backupsUnderAccountClientDiagnostics, Pipeline, _backupsUnderAccountRestClient.CreateMigrateBackupsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// List all volume groups for given account + /// Migrate the backups under a NetApp account to backup vault /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateBackups /// /// /// Operation Id - /// VolumeGroups_ListByNetAppAccount + /// BackupsUnderAccount_MigrateBackups /// /// /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// + /// 2025-09-01 /// /// /// + /// 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. + /// Migrate backups under an account payload supplied in the body of the operation. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetVolumeGroups(CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation MigrateBackupsBackupsUnderAccount(WaitUntil waitUntil, BackupsMigrationContent content, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeGroupVolumeGroupsRestClient.CreateListByNetAppAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => NetAppVolumeGroupResult.DeserializeNetAppVolumeGroupResult(e), _netAppVolumeGroupVolumeGroupsClientDiagnostics, Pipeline, "NetAppAccountResource.GetVolumeGroups", "value", null, cancellationToken); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _backupsUnderAccountClientDiagnostics.CreateScope("NetAppAccountResource.MigrateBackupsBackupsUnderAccount"); + scope.Start(); + try + { + var response = _backupsUnderAccountRestClient.MigrateBackups(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + var operation = new NetAppArmOperation(_backupsUnderAccountClientDiagnostics, Pipeline, _backupsUnderAccountRestClient.CreateMigrateBackupsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// @@ -1116,7 +1142,7 @@ public virtual Pageable GetVolumeGroups(CancellationTok /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// @@ -1142,7 +1168,7 @@ public virtual AsyncPageable GetNetAppResourceQuota /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// @@ -1168,7 +1194,7 @@ public virtual Pageable GetNetAppResourceQuotaLimit /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// @@ -1207,7 +1233,7 @@ public virtual async Task> GetNetAppResour /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// @@ -1234,87 +1260,63 @@ public virtual Response GetNetAppResourceQuotaLimit } /// - /// Migrate the backups under a NetApp account to backup vault + /// List all volume groups for given account /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateBackups + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups /// /// /// Operation Id - /// BackupsUnderAccount_MigrateBackups + /// VolumeGroups_ListByNetAppAccount /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 + /// + /// + /// Resource + /// /// /// /// - /// 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. - /// Migrate backups under an account payload supplied in the body of the operation. /// The cancellation token to use. - /// is null. - public virtual async Task MigrateBackupsBackupsUnderAccountAsync(WaitUntil waitUntil, BackupsMigrationContent content, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetVolumeGroupsAsync(CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _backupsUnderAccountClientDiagnostics.CreateScope("NetAppAccountResource.MigrateBackupsBackupsUnderAccount"); - scope.Start(); - try - { - var response = await _backupsUnderAccountRestClient.MigrateBackupsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_backupsUnderAccountClientDiagnostics, Pipeline, _backupsUnderAccountRestClient.CreateMigrateBackupsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeGroupVolumeGroupsRestClient.CreateListByNetAppAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppVolumeGroupVolumeGroupsRestClient.CreateListByNetAppAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => NetAppVolumeGroupResult.DeserializeNetAppVolumeGroupResult(e), _netAppVolumeGroupVolumeGroupsClientDiagnostics, Pipeline, "NetAppAccountResource.GetVolumeGroups", "value", "nextLink", cancellationToken); } /// - /// Migrate the backups under a NetApp account to backup vault + /// List all volume groups for given account /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateBackups + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups /// /// /// Operation Id - /// BackupsUnderAccount_MigrateBackups + /// VolumeGroups_ListByNetAppAccount /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 + /// + /// + /// Resource + /// /// /// /// - /// 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. - /// Migrate backups under an account payload supplied in the body of the operation. /// The cancellation token to use. - /// is null. - public virtual ArmOperation MigrateBackupsBackupsUnderAccount(WaitUntil waitUntil, BackupsMigrationContent content, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetVolumeGroups(CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _backupsUnderAccountClientDiagnostics.CreateScope("NetAppAccountResource.MigrateBackupsBackupsUnderAccount"); - scope.Start(); - try - { - var response = _backupsUnderAccountRestClient.MigrateBackups(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetAppArmOperation(_backupsUnderAccountClientDiagnostics, Pipeline, _backupsUnderAccountRestClient.CreateMigrateBackupsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeGroupVolumeGroupsRestClient.CreateListByNetAppAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppVolumeGroupVolumeGroupsRestClient.CreateListByNetAppAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => NetAppVolumeGroupResult.DeserializeNetAppVolumeGroupResult(e), _netAppVolumeGroupVolumeGroupsClientDiagnostics, Pipeline, "NetAppAccountResource.GetVolumeGroups", "value", "nextLink", cancellationToken); } /// @@ -1330,7 +1332,7 @@ public virtual ArmOperation MigrateBackupsBackupsUnderAccount(WaitUntil waitUnti /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1392,7 +1394,7 @@ public virtual async Task> AddTagAsync(string ke /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1454,7 +1456,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1511,7 +1513,7 @@ public virtual async Task> SetTagsAsync(IDiction /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1568,7 +1570,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1628,7 +1630,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupData.cs index febbfaa59d60..76b1cb5fa75c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the NetAppBackup data model. /// Backup under a Backup Vault + /// Serialized Name: Backup /// public partial class NetAppBackupData : ResourceData { @@ -52,7 +53,10 @@ public partial class NetAppBackupData : ResourceData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// ResourceId used to identify the Volume. + /// + /// ResourceId used to identify the Volume + /// Serialized Name: Backup.properties.volumeResourceId + /// /// is null. public NetAppBackupData(ResourceIdentifier volumeResourceId) { @@ -66,20 +70,62 @@ public NetAppBackupData(ResourceIdentifier volumeResourceId) /// The name. /// The resourceType. /// The systemData. - /// UUID v4 used to identify the Backup. - /// The creation date of the backup. - /// The snapshot creation date of the backup. - /// The completion date of the backup. - /// Azure lifecycle management. - /// Size of backup in bytes. - /// Label for backup. - /// Type of backup Manual or Scheduled. - /// Failure reason. - /// ResourceId used to identify the Volume. - /// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups. - /// The name of the snapshot. - /// ResourceId used to identify the backup policy. - /// Specifies if the backup is for a large volume. + /// + /// UUID v4 used to identify the Backup + /// Serialized Name: Backup.properties.backupId + /// + /// + /// The creation date of the backup + /// Serialized Name: Backup.properties.creationDate + /// + /// + /// The snapshot creation date of the backup + /// Serialized Name: Backup.properties.snapshotCreationDate + /// + /// + /// The completion date of the backup + /// Serialized Name: Backup.properties.completionDate + /// + /// + /// Azure lifecycle management + /// Serialized Name: Backup.properties.provisioningState + /// + /// + /// Size of backup in bytes + /// Serialized Name: Backup.properties.size + /// + /// + /// Label for backup + /// Serialized Name: Backup.properties.label + /// + /// + /// Type of backup Manual or Scheduled + /// Serialized Name: Backup.properties.backupType + /// + /// + /// Failure reason + /// Serialized Name: Backup.properties.failureReason + /// + /// + /// ResourceId used to identify the Volume + /// Serialized Name: Backup.properties.volumeResourceId + /// + /// + /// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups + /// Serialized Name: Backup.properties.useExistingSnapshot + /// + /// + /// The name of the snapshot + /// Serialized Name: Backup.properties.snapshotName + /// + /// + /// ResourceId used to identify the backup policy + /// Serialized Name: Backup.properties.backupPolicyResourceId + /// + /// + /// Specifies if the backup is for a large volume. + /// Serialized Name: Backup.properties.isLargeVolume + /// /// Keeps track of any properties unknown to the library. internal NetAppBackupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string backupId, DateTimeOffset? createdOn, DateTimeOffset? snapshotCreationOn, DateTimeOffset? completionOn, string provisioningState, long? size, string label, NetAppBackupType? backupType, string failureReason, ResourceIdentifier volumeResourceId, bool? useExistingSnapshot, string snapshotName, ResourceIdentifier backupPolicyArmResourceId, bool? isLargeVolume, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -105,33 +151,75 @@ internal NetAppBackupData() { } - /// UUID v4 used to identify the Backup. + /// + /// UUID v4 used to identify the Backup + /// Serialized Name: Backup.properties.backupId + /// public string BackupId { get; } - /// The creation date of the backup. + /// + /// The creation date of the backup + /// Serialized Name: Backup.properties.creationDate + /// public DateTimeOffset? CreatedOn { get; } - /// The snapshot creation date of the backup. + /// + /// The snapshot creation date of the backup + /// Serialized Name: Backup.properties.snapshotCreationDate + /// public DateTimeOffset? SnapshotCreationOn { get; } - /// The completion date of the backup. + /// + /// The completion date of the backup + /// Serialized Name: Backup.properties.completionDate + /// public DateTimeOffset? CompletionOn { get; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: Backup.properties.provisioningState + /// public string ProvisioningState { get; } - /// Size of backup in bytes. + /// + /// Size of backup in bytes + /// Serialized Name: Backup.properties.size + /// public long? Size { get; } - /// Label for backup. + /// + /// Label for backup + /// Serialized Name: Backup.properties.label + /// public string Label { get; set; } - /// Type of backup Manual or Scheduled. + /// + /// Type of backup Manual or Scheduled + /// Serialized Name: Backup.properties.backupType + /// public NetAppBackupType? BackupType { get; } - /// Failure reason. + /// + /// Failure reason + /// Serialized Name: Backup.properties.failureReason + /// public string FailureReason { get; } - /// ResourceId used to identify the Volume. + /// + /// ResourceId used to identify the Volume + /// Serialized Name: Backup.properties.volumeResourceId + /// public ResourceIdentifier VolumeResourceId { get; set; } - /// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups. + /// + /// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups + /// Serialized Name: Backup.properties.useExistingSnapshot + /// public bool? UseExistingSnapshot { get; set; } - /// The name of the snapshot. + /// + /// The name of the snapshot + /// Serialized Name: Backup.properties.snapshotName + /// public string SnapshotName { get; set; } - /// ResourceId used to identify the backup policy. + /// + /// ResourceId used to identify the backup policy + /// Serialized Name: Backup.properties.backupPolicyResourceId + /// public ResourceIdentifier BackupPolicyArmResourceId { get; } - /// Specifies if the backup is for a large volume. + /// + /// Specifies if the backup is for a large volume. + /// Serialized Name: Backup.properties.isLargeVolume + /// public bool? IsLargeVolume { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyCollection.cs index 89f7b7e7e745..81a33c6477c2 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string backupPolicyName, /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -265,7 +265,8 @@ public virtual Response Get(string backupPolicyName, public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppBackupPolicyBackupPoliciesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new NetAppBackupPolicyResource(Client, NetAppBackupPolicyData.DeserializeNetAppBackupPolicyData(e)), _netAppBackupPolicyBackupPoliciesClientDiagnostics, Pipeline, "NetAppBackupPolicyCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppBackupPolicyBackupPoliciesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetAppBackupPolicyResource(Client, NetAppBackupPolicyData.DeserializeNetAppBackupPolicyData(e)), _netAppBackupPolicyBackupPoliciesClientDiagnostics, Pipeline, "NetAppBackupPolicyCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -294,7 +295,8 @@ public virtual AsyncPageable GetAllAsync(Cancellatio public virtual Pageable GetAll(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppBackupPolicyBackupPoliciesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => new NetAppBackupPolicyResource(Client, NetAppBackupPolicyData.DeserializeNetAppBackupPolicyData(e)), _netAppBackupPolicyBackupPoliciesClientDiagnostics, Pipeline, "NetAppBackupPolicyCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppBackupPolicyBackupPoliciesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetAppBackupPolicyResource(Client, NetAppBackupPolicyData.DeserializeNetAppBackupPolicyData(e)), _netAppBackupPolicyBackupPoliciesClientDiagnostics, Pipeline, "NetAppBackupPolicyCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -310,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -353,7 +355,7 @@ public virtual async Task> ExistsAsync(string backupPolicyName, C /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -396,7 +398,7 @@ public virtual Response Exists(string backupPolicyName, CancellationToken /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -441,7 +443,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs index 07e3ede74a9e..3098eebf9b87 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the NetAppBackupPolicy data model. /// Backup policy information + /// Serialized Name: BackupPolicy /// public partial class NetAppBackupPolicyData : TrackedResourceData { @@ -65,15 +66,42 @@ public NetAppBackupPolicyData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// Backup Policy GUID ID. - /// Azure lifecycle management. - /// Daily backups count to keep. - /// Weekly backups count to keep. - /// Monthly backups count to keep. - /// Volumes using current backup policy. - /// The property to decide policy is enabled or not. - /// A list of volumes assigned to this policy. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: BackupPolicy.etag + /// + /// + /// Backup Policy GUID ID + /// Serialized Name: BackupPolicy.properties.backupPolicyId + /// + /// + /// Azure lifecycle management + /// Serialized Name: BackupPolicy.properties.provisioningState + /// + /// + /// Daily backups count to keep + /// Serialized Name: BackupPolicy.properties.dailyBackupsToKeep + /// + /// + /// Weekly backups count to keep + /// Serialized Name: BackupPolicy.properties.weeklyBackupsToKeep + /// + /// + /// Monthly backups count to keep + /// Serialized Name: BackupPolicy.properties.monthlyBackupsToKeep + /// + /// + /// Volumes using current backup policy + /// Serialized Name: BackupPolicy.properties.volumesAssigned + /// + /// + /// The property to decide policy is enabled or not + /// Serialized Name: BackupPolicy.properties.enabled + /// + /// + /// A list of volumes assigned to this policy + /// Serialized Name: BackupPolicy.properties.volumeBackups + /// /// Keeps track of any properties unknown to the library. internal NetAppBackupPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ResourceIdentifier backupPolicyId, string provisioningState, int? dailyBackupsToKeep, int? weeklyBackupsToKeep, int? monthlyBackupsToKeep, int? volumesAssigned, bool? isEnabled, IReadOnlyList volumeBackups, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -94,23 +122,50 @@ internal NetAppBackupPolicyData() { } - /// A unique read-only string that changes whenever the resource is updated. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: BackupPolicy.etag + /// public ETag? ETag { get; } - /// Backup Policy GUID ID. + /// + /// Backup Policy GUID ID + /// Serialized Name: BackupPolicy.properties.backupPolicyId + /// public ResourceIdentifier BackupPolicyId { get; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: BackupPolicy.properties.provisioningState + /// public string ProvisioningState { get; } - /// Daily backups count to keep. + /// + /// Daily backups count to keep + /// Serialized Name: BackupPolicy.properties.dailyBackupsToKeep + /// public int? DailyBackupsToKeep { get; set; } - /// Weekly backups count to keep. + /// + /// Weekly backups count to keep + /// Serialized Name: BackupPolicy.properties.weeklyBackupsToKeep + /// public int? WeeklyBackupsToKeep { get; set; } - /// Monthly backups count to keep. + /// + /// Monthly backups count to keep + /// Serialized Name: BackupPolicy.properties.monthlyBackupsToKeep + /// public int? MonthlyBackupsToKeep { get; set; } - /// Volumes using current backup policy. + /// + /// Volumes using current backup policy + /// Serialized Name: BackupPolicy.properties.volumesAssigned + /// public int? VolumesAssigned { get; } - /// The property to decide policy is enabled or not. + /// + /// The property to decide policy is enabled or not + /// Serialized Name: BackupPolicy.properties.enabled + /// public bool? IsEnabled { get; set; } - /// A list of volumes assigned to this policy. + /// + /// A list of volumes assigned to this policy + /// Serialized Name: BackupPolicy.properties.volumeBackups + /// public IReadOnlyList VolumeBackups { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyResource.cs index 7cf27e24041e..3562b694886f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupPolicyResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual ArmOperation Update(WaitUntil waitUnt /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -421,7 +421,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -483,7 +483,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -597,7 +597,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -657,7 +657,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultBackupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultBackupCollection.cs index 4c083adab3fc..0da281018ffa 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultBackupCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultBackupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string backupName, /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(string /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(string filter = /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> ExistsAsync(string backupName, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual Response Exists(string backupName, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultBackupResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultBackupResource.cs index b891c962dc98..3eb97960e070 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultBackupResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultBackupResource.cs @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual ArmOperation Update(WaitUntil wa /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// @@ -405,7 +405,7 @@ public virtual async Task RestoreFilesBackupsUnderBackupVaultAsync /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultCollection.cs index bcc8fb5cb07b..722e9a330993 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string b /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string backupVaultName, C /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string backupVaultName, Ca /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string backupVaultName, CancellationToken c /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultData.cs index fd76bbbfcf60..48fd6a108b83 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultData.cs @@ -15,6 +15,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the NetAppBackupVault data model. /// Backup Vault information + /// Serialized Name: BackupVault /// public partial class NetAppBackupVaultData : TrackedResourceData { @@ -63,7 +64,10 @@ public NetAppBackupVaultData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: BackupVault.properties.provisioningState + /// /// Keeps track of any properties unknown to the library. internal NetAppBackupVaultData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -76,7 +80,10 @@ internal NetAppBackupVaultData() { } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: BackupVault.properties.provisioningState + /// public string ProvisioningState { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultResource.cs index 65b9b79df24b..317733ed63ec 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBackupVaultResource.cs @@ -110,7 +110,7 @@ public virtual NetAppBackupVaultBackupCollection GetNetAppBackupVaultBackups() /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetNetAppBa /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetNetAppBackupVaultBac /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -382,7 +382,7 @@ public virtual async Task> UpdateAsync(W /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -428,7 +428,7 @@ public virtual ArmOperation Update(WaitUntil waitUnti /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -490,7 +490,7 @@ public virtual async Task> AddTagAsync(strin /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -552,7 +552,7 @@ public virtual Response AddTag(string key, string val /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -609,7 +609,7 @@ public virtual async Task> SetTagsAsync(IDic /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -666,7 +666,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -726,7 +726,7 @@ public virtual async Task> RemoveTagAsync(st /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketCollection.cs deleted file mode 100644 index 4286cf1d1359..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketCollection.cs +++ /dev/null @@ -1,493 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.NetApp -{ - /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetNetAppBuckets method from an instance of . - /// - public partial class NetAppBucketCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _netAppBucketBucketsClientDiagnostics; - private readonly BucketsRestOperations _netAppBucketBucketsRestClient; - - /// Initializes a new instance of the class for mocking. - protected NetAppBucketCollection() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the parent resource that is the target of operations. - internal NetAppBucketCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _netAppBucketBucketsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetApp", NetAppBucketResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(NetAppBucketResource.ResourceType, out string netAppBucketBucketsApiVersion); - _netAppBucketBucketsRestClient = new BucketsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, netAppBucketBucketsApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != NetAppVolumeResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, NetAppVolumeResource.ResourceType), nameof(id)); - } - - /// - /// Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the bucket. - /// The bucket details including user details, and the volume path that should be mounted inside the bucket. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string bucketName, NetAppBucketData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = await _netAppBucketBucketsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, bucketName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(new NetAppBucketOperationSource(Client), _netAppBucketBucketsClientDiagnostics, Pipeline, _netAppBucketBucketsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, bucketName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the bucket. - /// The bucket details including user details, and the volume path that should be mounted inside the bucket. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string bucketName, NetAppBucketData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = _netAppBucketBucketsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, bucketName, data, cancellationToken); - var operation = new NetAppArmOperation(new NetAppBucketOperationSource(Client), _netAppBucketBucketsClientDiagnostics, Pipeline, _netAppBucketBucketsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, bucketName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Get - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the bucket. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetAsync(string bucketName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketCollection.Get"); - scope.Start(); - try - { - var response = await _netAppBucketBucketsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, bucketName, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new NetAppBucketResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Get - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the bucket. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Get(string bucketName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketCollection.Get"); - scope.Start(); - try - { - var response = _netAppBucketBucketsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, bucketName, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new NetAppBucketResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to the volume data contained in those buckets. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets - /// - /// - /// Operation Id - /// Buckets_List - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppBucketBucketsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppBucketBucketsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetAppBucketResource(Client, NetAppBucketData.DeserializeNetAppBucketData(e)), _netAppBucketBucketsClientDiagnostics, Pipeline, "NetAppBucketCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to the volume data contained in those buckets. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets - /// - /// - /// Operation Id - /// Buckets_List - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppBucketBucketsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppBucketBucketsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetAppBucketResource(Client, NetAppBucketData.DeserializeNetAppBucketData(e)), _netAppBucketBucketsClientDiagnostics, Pipeline, "NetAppBucketCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Get - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the bucket. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string bucketName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketCollection.Exists"); - scope.Start(); - try - { - var response = await _netAppBucketBucketsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, bucketName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Get - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the bucket. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Exists(string bucketName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketCollection.Exists"); - scope.Start(); - try - { - var response = _netAppBucketBucketsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, bucketName, cancellationToken: cancellationToken); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Get - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the bucket. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetIfExistsAsync(string bucketName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _netAppBucketBucketsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, bucketName, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new NetAppBucketResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Get - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the bucket. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual NullableResponse GetIfExists(string bucketName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketCollection.GetIfExists"); - scope.Start(); - try - { - var response = _netAppBucketBucketsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, bucketName, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new NetAppBucketResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) - { - return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketData.Serialization.cs deleted file mode 100644 index 879242d47e86..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketData.Serialization.cs +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.NetApp.Models; - -namespace Azure.ResourceManager.NetApp -{ - public partial class NetAppBucketData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(Path)) - { - writer.WritePropertyName("path"u8); - writer.WriteStringValue(Path); - } - if (Optional.IsDefined(FileSystemUser)) - { - writer.WritePropertyName("fileSystemUser"u8); - writer.WriteObjectValue(FileSystemUser, options); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); - } - if (options.Format != "W" && Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status.Value.ToString()); - } - if (Optional.IsDefined(Server)) - { - writer.WritePropertyName("server"u8); - writer.WriteObjectValue(Server, options); - } - if (Optional.IsDefined(Permissions)) - { - writer.WritePropertyName("permissions"u8); - writer.WriteStringValue(Permissions.Value.ToString()); - } - writer.WriteEndObject(); - } - - NetAppBucketData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NetAppBucketData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNetAppBucketData(document.RootElement, options); - } - - internal static NetAppBucketData DeserializeNetAppBucketData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - string path = default; - NetAppBucketFileSystemUser fileSystemUser = default; - NetAppProvisioningState? provisioningState = default; - NetAppBucketCredentialStatus? status = default; - NetAppBucketServerProperties server = default; - NetAppBucketPermission? permissions = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerNetAppContext.Default); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("path"u8)) - { - path = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("fileSystemUser"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - fileSystemUser = NetAppBucketFileSystemUser.DeserializeNetAppBucketFileSystemUser(property0.Value, options); - continue; - } - if (property0.NameEquals("provisioningState"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = property0.Value.GetString().ToNetAppProvisioningState(); - continue; - } - if (property0.NameEquals("status"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - status = new NetAppBucketCredentialStatus(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("server"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - server = NetAppBucketServerProperties.DeserializeNetAppBucketServerProperties(property0.Value, options); - continue; - } - if (property0.NameEquals("permissions"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - permissions = new NetAppBucketPermission(property0.Value.GetString()); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NetAppBucketData( - id, - name, - type, - systemData, - path, - fileSystemUser, - provisioningState, - status, - server, - permissions, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerNetAppContext.Default); - default: - throw new FormatException($"The model {nameof(NetAppBucketData)} does not support writing '{options.Format}' format."); - } - } - - NetAppBucketData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeNetAppBucketData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NetAppBucketData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketData.cs deleted file mode 100644 index faaedb9e37b2..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketData.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.NetApp.Models; - -namespace Azure.ResourceManager.NetApp -{ - /// - /// A class representing the NetAppBucket data model. - /// Bucket resource - /// - public partial class NetAppBucketData : ResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public NetAppBucketData() - { - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The volume path mounted inside the bucket. The default is the root path '/' if no value is provided when the bucket is created. - /// File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be supplied, but not both. - /// Provisioning state of the resource. - /// - /// The bucket credentials status. There states: - /// - /// "NoCredentialsSet": Access and Secret key pair have not been generated. - /// "CredentialsExpired": Access and Secret key pair have expired. - /// "Active": The certificate has been installed and credentials are unexpired. - /// - /// Properties of the server managing the lifecycle of volume buckets. - /// Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is ReadOnly if no value is provided during bucket creation. - /// Keeps track of any properties unknown to the library. - internal NetAppBucketData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string path, NetAppBucketFileSystemUser fileSystemUser, NetAppProvisioningState? provisioningState, NetAppBucketCredentialStatus? status, NetAppBucketServerProperties server, NetAppBucketPermission? permissions, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - Path = path; - FileSystemUser = fileSystemUser; - ProvisioningState = provisioningState; - Status = status; - Server = server; - Permissions = permissions; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The volume path mounted inside the bucket. The default is the root path '/' if no value is provided when the bucket is created. - public string Path { get; set; } - /// File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be supplied, but not both. - public NetAppBucketFileSystemUser FileSystemUser { get; set; } - /// Provisioning state of the resource. - public NetAppProvisioningState? ProvisioningState { get; } - /// - /// The bucket credentials status. There states: - /// - /// "NoCredentialsSet": Access and Secret key pair have not been generated. - /// "CredentialsExpired": Access and Secret key pair have expired. - /// "Active": The certificate has been installed and credentials are unexpired. - /// - public NetAppBucketCredentialStatus? Status { get; } - /// Properties of the server managing the lifecycle of volume buckets. - public NetAppBucketServerProperties Server { get; set; } - /// Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is ReadOnly if no value is provided during bucket creation. - public NetAppBucketPermission? Permissions { get; set; } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketResource.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketResource.Serialization.cs deleted file mode 100644 index 64c05279856c..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketResource.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Azure.ResourceManager.NetApp -{ - public partial class NetAppBucketResource : IJsonModel - { - private static NetAppBucketData s_dataDeserializationInstance; - private static NetAppBucketData DataDeserializationInstance => s_dataDeserializationInstance ??= new(); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - NetAppBucketData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerNetAppContext.Default); - - NetAppBucketData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerNetAppContext.Default); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options); - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketResource.cs deleted file mode 100644 index 90dfce2bfee5..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppBucketResource.cs +++ /dev/null @@ -1,434 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.NetApp.Models; - -namespace Azure.ResourceManager.NetApp -{ - /// - /// A Class representing a NetAppBucket along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetNetAppBucketResource method. - /// Otherwise you can get one from its parent resource using the GetNetAppBucket method. - /// - public partial class NetAppBucketResource : ArmResource - { - /// Generate the resource identifier of a instance. - /// The subscriptionId. - /// The resourceGroupName. - /// The accountName. - /// The poolName. - /// The volumeName. - /// The bucketName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName) - { - var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _netAppBucketBucketsClientDiagnostics; - private readonly BucketsRestOperations _netAppBucketBucketsRestClient; - private readonly NetAppBucketData _data; - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/buckets"; - - /// Initializes a new instance of the class for mocking. - protected NetAppBucketResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal NetAppBucketResource(ArmClient client, NetAppBucketData data) : this(client, data.Id) - { - HasData = true; - _data = data; - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the resource that is the target of operations. - internal NetAppBucketResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _netAppBucketBucketsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetApp", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string netAppBucketBucketsApiVersion); - _netAppBucketBucketsRestClient = new BucketsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, netAppBucketBucketsApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - /// Gets whether or not the current instance has data. - public virtual bool HasData { get; } - - /// Gets the data representing this Feature. - /// Throws if there is no data loaded in the current instance. - public virtual NetAppBucketData Data - { - get - { - if (!HasData) - throw new InvalidOperationException("The current instance does not have data, you must call Get first."); - return _data; - } - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); - } - - /// - /// Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Get - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) - { - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketResource.Get"); - scope.Start(); - try - { - var response = await _netAppBucketBucketsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new NetAppBucketResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Get - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketResource.Get"); - scope.Start(); - try - { - var response = _netAppBucketBucketsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new NetAppBucketResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Delete a volume's bucket. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Delete - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The cancellation token to use. - public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketResource.Delete"); - scope.Start(); - try - { - var response = await _netAppBucketBucketsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppBucketBucketsClientDiagnostics, Pipeline, _netAppBucketBucketsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Delete a volume's bucket. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Delete - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The cancellation token to use. - public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketResource.Delete"); - scope.Start(); - try - { - var response = _netAppBucketBucketsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(_netAppBucketBucketsClientDiagnostics, Pipeline, _netAppBucketBucketsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Updates the details of a volume bucket. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Update - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The bucket details including user details, and the volume path that should be mounted inside the bucket. - /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, NetAppBucketPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketResource.Update"); - scope.Start(); - try - { - var response = await _netAppBucketBucketsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(new NetAppBucketOperationSource(Client), _netAppBucketBucketsClientDiagnostics, Pipeline, _netAppBucketBucketsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.AzureAsyncOperation); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Updates the details of a volume bucket. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} - /// - /// - /// Operation Id - /// Buckets_Update - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The bucket details including user details, and the volume path that should be mounted inside the bucket. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, NetAppBucketPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketResource.Update"); - scope.Start(); - try - { - var response = _netAppBucketBucketsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, patch, cancellationToken); - var operation = new NetAppArmOperation(new NetAppBucketOperationSource(Client), _netAppBucketBucketsClientDiagnostics, Pipeline, _netAppBucketBucketsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.AzureAsyncOperation); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date and time of key pair (in UTC). - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}/generateCredentials - /// - /// - /// Operation Id - /// Buckets_GenerateCredentials - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - /// The cancellation token to use. - /// is null. - public virtual async Task> GenerateCredentialsAsync(NetAppBucketCredentialsExpiry body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(body, nameof(body)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketResource.GenerateCredentials"); - scope.Start(); - try - { - var response = await _netAppBucketBucketsRestClient.GenerateCredentialsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date and time of key pair (in UTC). - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}/generateCredentials - /// - /// - /// Operation Id - /// Buckets_GenerateCredentials - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - /// The cancellation token to use. - /// is null. - public virtual Response GenerateCredentials(NetAppBucketCredentialsExpiry body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(body, nameof(body)); - - using var scope = _netAppBucketBucketsClientDiagnostics.CreateScope("NetAppBucketResource.GenerateCredentials"); - scope.Start(); - try - { - var response = _netAppBucketBucketsRestClient.GenerateCredentials(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, body, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoCollection.cs index f8ccaa870c6b..c0ebaa2a3c02 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string subvolumeName, C /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string subvolumeName, Canc /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string subvolumeName, CancellationToken can /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoData.cs index ef117a59f328..7a142252a479 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoData.cs @@ -15,6 +15,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the NetAppSubvolumeInfo data model. /// Subvolume Information properties + /// Serialized Name: SubvolumeInfo /// public partial class NetAppSubvolumeInfoData : ResourceData { @@ -60,10 +61,22 @@ public NetAppSubvolumeInfoData() /// The name. /// The resourceType. /// The systemData. - /// Path to the subvolume. - /// Truncate subvolume to the provided size in bytes. - /// parent path to the subvolume. - /// Azure lifecycle management. + /// + /// Path to the subvolume + /// Serialized Name: SubvolumeInfo.properties.path + /// + /// + /// Truncate subvolume to the provided size in bytes + /// Serialized Name: SubvolumeInfo.properties.size + /// + /// + /// parent path to the subvolume + /// Serialized Name: SubvolumeInfo.properties.parentPath + /// + /// + /// Azure lifecycle management + /// Serialized Name: SubvolumeInfo.properties.provisioningState + /// /// Keeps track of any properties unknown to the library. internal NetAppSubvolumeInfoData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string path, long? size, string parentPath, string provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -74,13 +87,25 @@ internal NetAppSubvolumeInfoData(ResourceIdentifier id, string name, ResourceTyp _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Path to the subvolume. + /// + /// Path to the subvolume + /// Serialized Name: SubvolumeInfo.properties.path + /// public string Path { get; set; } - /// Truncate subvolume to the provided size in bytes. + /// + /// Truncate subvolume to the provided size in bytes + /// Serialized Name: SubvolumeInfo.properties.size + /// public long? Size { get; set; } - /// parent path to the subvolume. + /// + /// parent path to the subvolume + /// Serialized Name: SubvolumeInfo.properties.parentPath + /// public string ParentPath { get; set; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: SubvolumeInfo.properties.provisioningState + /// public string ProvisioningState { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoResource.cs index 6cab514da01b..0dc8b09e2627 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppSubvolumeInfoResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual ArmOperation Update(WaitUntil waitUn /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual async Task> GetMetadataAsyn /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeCollection.cs index 983a692b9191..a37d44d0e8db 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string volume /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string volumeName, Cancellatio /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string volumeName, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string volumeName, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.Serialization.cs index 3a1721520f76..36554803a3cb 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.Serialization.cs @@ -249,18 +249,6 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("ldapEnabled"u8); writer.WriteBooleanValue(IsLdapEnabled.Value); } - if (Optional.IsDefined(LdapServerType)) - { - if (LdapServerType != null) - { - writer.WritePropertyName("ldapServerType"u8); - writer.WriteStringValue(LdapServerType.Value.ToString()); - } - else - { - writer.WriteNull("ldapServerType"); - } - } if (Optional.IsDefined(IsCoolAccessEnabled)) { writer.WritePropertyName("coolAccess"u8); @@ -436,18 +424,6 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteNull("inheritedSizeInBytes"); } } - if (Optional.IsDefined(Language)) - { - if (Language != null) - { - writer.WritePropertyName("language"u8); - writer.WriteStringValue(Language.Value.ToString()); - } - else - { - writer.WriteNull("language"); - } - } writer.WriteEndObject(); } @@ -512,7 +488,6 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element NetAppEncryptionKeySource? encryptionKeySource = default; ResourceIdentifier keyVaultPrivateEndpointResourceId = default; bool? ldapEnabled = default; - LdapServerType? ldapServerType = default; bool? coolAccess = default; int? coolnessPeriod = default; CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = default; @@ -538,7 +513,6 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element bool? isLargeVolume = default; ResourceIdentifier originatingResourceId = default; long? inheritedSizeInBytes = default; - NetAppVolumeLanguage? language = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -905,16 +879,6 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element ldapEnabled = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("ldapServerType"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - ldapServerType = null; - continue; - } - ldapServerType = new LdapServerType(property0.Value.GetString()); - continue; - } if (property0.NameEquals("coolAccess"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -1150,16 +1114,6 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element inheritedSizeInBytes = property0.Value.GetInt64(); continue; } - if (property0.NameEquals("language"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - language = null; - continue; - } - language = new NetAppVolumeLanguage(property0.Value.GetString()); - continue; - } } continue; } @@ -1211,7 +1165,6 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element encryptionKeySource, keyVaultPrivateEndpointResourceId, ldapEnabled, - ldapServerType, coolAccess, coolnessPeriod, coolAccessRetrievalPolicy, @@ -1237,7 +1190,6 @@ internal static NetAppVolumeData DeserializeNetAppVolumeData(JsonElement element isLargeVolume, originatingResourceId, inheritedSizeInBytes, - language, serializedAdditionalRawData); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs index 315df9560eaa..621e7ca1bab8 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the NetAppVolume data model. /// Volume resource + /// Serialized Name: Volume /// public partial class NetAppVolumeData : TrackedResourceData { @@ -53,9 +54,18 @@ public partial class NetAppVolumeData : TrackedResourceData /// Initializes a new instance of . /// The location. - /// A unique file path for the volume. Used when creating mount targets. - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. + /// + /// A unique file path for the volume. Used when creating mount targets + /// Serialized Name: Volume.properties.creationToken + /// + /// + /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// Serialized Name: Volume.properties.usageThreshold + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: Volume.properties.subnetId + /// /// or is null. public NetAppVolumeData(AzureLocation location, string creationToken, long usageThreshold, ResourceIdentifier subnetId) : base(location) { @@ -79,75 +89,251 @@ public NetAppVolumeData(AzureLocation location, string creationToken, long usage /// The systemData. /// The tags. /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// Availability Zone. - /// Unique FileSystem Identifier. - /// A unique file path for the volume. Used when creating mount targets. - /// The service level of the file system. - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. - /// Set of export policy rules. - /// Set of protocol types, default NFSv3, CIFS for SMB protocol. - /// Azure lifecycle management. - /// Resource identifier used to identify the Snapshot. - /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false. - /// Resource identifier used to identify the Backup. - /// Unique Baremetal Tenant Identifier. - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. - /// The original value of the network features type available to the volume at the time it was created. - /// The effective value of the network features type available to the volume, or current effective state of update. - /// Network Sibling Set ID for the the group of volumes sharing networking resources. - /// Provides storage to network proximity information for the volume. - /// List of mount targets. - /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone. - /// DataProtection type volumes include an object containing details of the replication. - /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. - /// Restoring. - /// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (defaults to true). - /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. - /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. - /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - /// Enables continuously available share property for smb volume. Only applicable for SMB volume. - /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume. - /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. - /// Source of key used to encrypt data in volume. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'. - /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - /// Specifies whether LDAP is enabled or not for a given NFS volume. - /// Specifies the type of LDAP server for a given NFS volume. - /// Specifies whether Cool Access(tiering) is enabled for the volume. - /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: Volume.etag + /// + /// + /// The availability zones. + /// Serialized Name: Volume.zones + /// + /// + /// Unique FileSystem Identifier. + /// Serialized Name: Volume.properties.fileSystemId + /// + /// + /// A unique file path for the volume. Used when creating mount targets + /// Serialized Name: Volume.properties.creationToken + /// + /// + /// The service level of the file system + /// Serialized Name: Volume.properties.serviceLevel + /// + /// + /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// Serialized Name: Volume.properties.usageThreshold + /// + /// + /// Set of export policy rules + /// Serialized Name: Volume.properties.exportPolicy + /// + /// + /// Set of protocol types, default NFSv3, CIFS for SMB protocol + /// Serialized Name: Volume.properties.protocolTypes + /// + /// + /// Azure lifecycle management + /// Serialized Name: Volume.properties.provisioningState + /// + /// + /// Resource identifier used to identify the Snapshot. + /// Serialized Name: Volume.properties.snapshotId + /// + /// + /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false + /// Serialized Name: Volume.properties.deleteBaseSnapshot + /// + /// + /// Resource identifier used to identify the Backup. + /// Serialized Name: Volume.properties.backupId + /// + /// + /// Unique Baremetal Tenant Identifier. + /// Serialized Name: Volume.properties.baremetalTenantId + /// + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: Volume.properties.subnetId + /// + /// + /// The original value of the network features type available to the volume at the time it was created. + /// Serialized Name: Volume.properties.networkFeatures + /// + /// + /// The effective value of the network features type available to the volume, or current effective state of update. + /// Serialized Name: Volume.properties.effectiveNetworkFeatures + /// + /// + /// Network Sibling Set ID for the the group of volumes sharing networking resources. + /// Serialized Name: Volume.properties.networkSiblingSetId + /// + /// + /// Provides storage to network proximity information for the volume. + /// Serialized Name: Volume.properties.storageToNetworkProximity + /// + /// + /// List of mount targets + /// Serialized Name: Volume.properties.mountTargets + /// + /// + /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone + /// Serialized Name: Volume.properties.volumeType + /// + /// + /// DataProtection type volumes include an object containing details of the replication + /// Serialized Name: Volume.properties.dataProtection + /// + /// + /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. + /// Serialized Name: Volume.properties.acceptGrowCapacityPoolForShortTermCloneSplit + /// + /// + /// Restoring + /// Serialized Name: Volume.properties.isRestoring + /// + /// + /// 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). + /// Serialized Name: Volume.properties.snapshotDirectoryVisible + /// + /// + /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later + /// Serialized Name: Volume.properties.kerberosEnabled + /// + /// + /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol + /// Serialized Name: Volume.properties.securityStyle + /// + /// + /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later + /// Serialized Name: Volume.properties.smbEncryption + /// + /// + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: Volume.properties.smbAccessBasedEnumeration + /// + /// + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: Volume.properties.smbNonBrowsable + /// + /// + /// Enables continuously available share property for smb volume. Only applicable for SMB volume + /// Serialized Name: Volume.properties.smbContinuouslyAvailable + /// + /// + /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume + /// Serialized Name: Volume.properties.throughputMibps + /// + /// + /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel + /// Serialized Name: Volume.properties.actualThroughputMibps + /// + /// + /// 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' + /// Serialized Name: Volume.properties.encryptionKeySource + /// + /// + /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. + /// Serialized Name: Volume.properties.keyVaultPrivateEndpointResourceId + /// + /// + /// Specifies whether LDAP is enabled or not for a given NFS volume. + /// Serialized Name: Volume.properties.ldapEnabled + /// + /// + /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// Serialized Name: Volume.properties.coolAccess + /// + /// + /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// Serialized Name: Volume.properties.coolnessPeriod + /// /// /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: - /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. - /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. - /// Never - No client-driven data is pulled from cool tier to standard storage. - /// - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. - /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain as its last saved value only. - /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. - /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. - /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - /// Data store resource unique identifier. - /// Specifies if default quota is enabled for the volume. - /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . - /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. - /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. - /// Volume Group Name. - /// Pool Resource Id used in case of creating a volume through volume group. - /// Proximity placement group associated with the volume. - /// T2 network information. - /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log. - /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. - /// Application specific placement rules for the particular volume. - /// Flag indicating whether subvolume operations are enabled on the volume. - /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. - /// Specifies whether volume is a Large Volume or Regular Volume. - /// Id of the snapshot or backup that the volume is restored from. - /// Space shared by short term clone volume with parent volume in bytes. - /// Language supported for volume. + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Serialized Name: Volume.properties.coolAccessRetrievalPolicy + /// + /// + /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// Serialized Name: Volume.properties.coolAccessTieringPolicy + /// + /// + /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. + /// Serialized Name: Volume.properties.unixPermissions + /// + /// + /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. + /// Serialized Name: Volume.properties.cloneProgress + /// + /// + /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// Serialized Name: Volume.properties.fileAccessLogs + /// + /// + /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose + /// Serialized Name: Volume.properties.avsDataStore + /// + /// + /// Data store resource unique identifier + /// Serialized Name: Volume.properties.dataStoreResourceId + /// + /// + /// Specifies if default quota is enabled for the volume. + /// Serialized Name: Volume.properties.isDefaultQuotaEnabled + /// + /// + /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// Serialized Name: Volume.properties.defaultUserQuotaInKiBs + /// + /// + /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// Serialized Name: Volume.properties.defaultGroupQuotaInKiBs + /// + /// + /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. + /// Serialized Name: Volume.properties.maximumNumberOfFiles + /// + /// + /// Volume Group Name + /// Serialized Name: Volume.properties.volumeGroupName + /// + /// + /// Pool Resource Id used in case of creating a volume through volume group + /// Serialized Name: Volume.properties.capacityPoolResourceId + /// + /// + /// Proximity placement group associated with the volume + /// Serialized Name: Volume.properties.proximityPlacementGroup + /// + /// + /// T2 network information + /// Serialized Name: Volume.properties.t2Network + /// + /// + /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log + /// Serialized Name: Volume.properties.volumeSpecName + /// + /// + /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. + /// Serialized Name: Volume.properties.encrypted + /// + /// + /// Application specific placement rules for the particular volume + /// Serialized Name: Volume.properties.placementRules + /// + /// + /// Flag indicating whether subvolume operations are enabled on the volume + /// Serialized Name: Volume.properties.enableSubvolumes + /// + /// + /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + /// Serialized Name: Volume.properties.provisionedAvailabilityZone + /// + /// + /// Specifies whether volume is a Large Volume or Regular Volume. + /// Serialized Name: Volume.properties.isLargeVolume + /// + /// + /// Id of the snapshot or backup that the volume is restored from. + /// Serialized Name: Volume.properties.originatingResourceId + /// + /// + /// Space shared by short term clone volume with parent volume in bytes. + /// Serialized Name: Volume.properties.inheritedSizeInBytes + /// /// Keeps track of any properties unknown to the library. - 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, NetAppNetworkFeature? effectiveNetworkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IReadOnlyList mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit, 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, LdapServerType? ldapServerType, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, CoolAccessTieringPolicy? coolAccessTieringPolicy, 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, long? inheritedSizeInBytes, NetAppVolumeLanguage? language, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, IList zones, Guid? fileSystemId, string creationToken, NetAppFileServiceLevel? serviceLevel, long usageThreshold, VolumePropertiesExportPolicy exportPolicy, IList protocolTypes, string provisioningState, string snapshotId, bool? deleteBaseSnapshot, string backupId, string baremetalTenantId, ResourceIdentifier subnetId, NetAppNetworkFeature? networkFeatures, NetAppNetworkFeature? effectiveNetworkFeatures, Guid? networkSiblingSetId, NetAppVolumeStorageToNetworkProximity? storageToNetworkProximity, IReadOnlyList mountTargets, string volumeType, NetAppVolumeDataProtection dataProtection, AcceptGrowCapacityPoolForShortTermCloneSplit? acceptGrowCapacityPoolForShortTermCloneSplit, bool? isRestoring, bool? isSnapshotDirectoryVisible, bool? isKerberosEnabled, NetAppVolumeSecurityStyle? securityStyle, bool? isSmbEncryptionEnabled, SmbAccessBasedEnumeration? smbAccessBasedEnumeration, SmbNonBrowsable? smbNonBrowsable, bool? isSmbContinuouslyAvailable, float? throughputMibps, float? actualThroughputMibps, NetAppEncryptionKeySource? encryptionKeySource, ResourceIdentifier keyVaultPrivateEndpointResourceId, bool? isLdapEnabled, bool? isCoolAccessEnabled, int? coolnessPeriod, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy, CoolAccessTieringPolicy? coolAccessTieringPolicy, 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, long? inheritedSizeInBytes, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; Zones = zones; @@ -184,7 +370,6 @@ internal NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resou EncryptionKeySource = encryptionKeySource; KeyVaultPrivateEndpointResourceId = keyVaultPrivateEndpointResourceId; IsLdapEnabled = isLdapEnabled; - LdapServerType = ldapServerType; IsCoolAccessEnabled = isCoolAccessEnabled; CoolnessPeriod = coolnessPeriod; CoolAccessRetrievalPolicy = coolAccessRetrievalPolicy; @@ -210,7 +395,6 @@ internal NetAppVolumeData(ResourceIdentifier id, string name, ResourceType resou IsLargeVolume = isLargeVolume; OriginatingResourceId = originatingResourceId; InheritedSizeInBytes = inheritedSizeInBytes; - Language = language; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -219,21 +403,45 @@ internal NetAppVolumeData() { } - /// A unique read-only string that changes whenever the resource is updated. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: Volume.etag + /// public ETag? ETag { get; } - /// Availability Zone. + /// + /// The availability zones. + /// Serialized Name: Volume.zones + /// public IList Zones { get; } - /// Unique FileSystem Identifier. + /// + /// Unique FileSystem Identifier. + /// Serialized Name: Volume.properties.fileSystemId + /// public Guid? FileSystemId { get; } - /// A unique file path for the volume. Used when creating mount targets. + /// + /// A unique file path for the volume. Used when creating mount targets + /// Serialized Name: Volume.properties.creationToken + /// public string CreationToken { get; set; } - /// The service level of the file system. + /// + /// The service level of the file system + /// Serialized Name: Volume.properties.serviceLevel + /// public NetAppFileServiceLevel? ServiceLevel { get; set; } - /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// + /// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. + /// Serialized Name: Volume.properties.usageThreshold + /// public long UsageThreshold { get; set; } - /// Set of export policy rules. + /// + /// Set of export policy rules + /// Serialized Name: Volume.properties.exportPolicy + /// internal VolumePropertiesExportPolicy ExportPolicy { get; set; } - /// Export policy rule. + /// + /// Export policy rule + /// Serialized Name: VolumePropertiesExportPolicy.rules + /// public IList ExportRules { get @@ -244,118 +452,268 @@ public IList ExportRules } } - /// Set of protocol types, default NFSv3, CIFS for SMB protocol. + /// + /// Set of protocol types, default NFSv3, CIFS for SMB protocol + /// Serialized Name: Volume.properties.protocolTypes + /// public IList ProtocolTypes { get; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: Volume.properties.provisioningState + /// public string ProvisioningState { get; } - /// Resource identifier used to identify the Snapshot. + /// + /// Resource identifier used to identify the Snapshot. + /// Serialized Name: Volume.properties.snapshotId + /// public string SnapshotId { get; set; } - /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false. + /// + /// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation has finished. Defaults to false + /// Serialized Name: Volume.properties.deleteBaseSnapshot + /// public bool? DeleteBaseSnapshot { get; set; } - /// Resource identifier used to identify the Backup. + /// + /// Resource identifier used to identify the Backup. + /// Serialized Name: Volume.properties.backupId + /// public string BackupId { get; set; } - /// Unique Baremetal Tenant Identifier. + /// + /// Unique Baremetal Tenant Identifier. + /// Serialized Name: Volume.properties.baremetalTenantId + /// public string BaremetalTenantId { get; } - /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes + /// Serialized Name: Volume.properties.subnetId + /// public ResourceIdentifier SubnetId { get; set; } - /// The original value of the network features type available to the volume at the time it was created. + /// + /// The original value of the network features type available to the volume at the time it was created. + /// Serialized Name: Volume.properties.networkFeatures + /// public NetAppNetworkFeature? NetworkFeatures { get; set; } - /// The effective value of the network features type available to the volume, or current effective state of update. + /// + /// The effective value of the network features type available to the volume, or current effective state of update. + /// Serialized Name: Volume.properties.effectiveNetworkFeatures + /// public NetAppNetworkFeature? EffectiveNetworkFeatures { get; } - /// Network Sibling Set ID for the the group of volumes sharing networking resources. + /// + /// Network Sibling Set ID for the the group of volumes sharing networking resources. + /// Serialized Name: Volume.properties.networkSiblingSetId + /// public Guid? NetworkSiblingSetId { get; } - /// Provides storage to network proximity information for the volume. + /// + /// Provides storage to network proximity information for the volume. + /// Serialized Name: Volume.properties.storageToNetworkProximity + /// public NetAppVolumeStorageToNetworkProximity? StorageToNetworkProximity { get; } - /// List of mount targets. + /// + /// List of mount targets + /// Serialized Name: Volume.properties.mountTargets + /// public IReadOnlyList MountTargets { get; } - /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone. + /// + /// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone + /// Serialized Name: Volume.properties.volumeType + /// public string VolumeType { get; set; } - /// DataProtection type volumes include an object containing details of the replication. + /// + /// DataProtection type volumes include an object containing details of the replication + /// Serialized Name: Volume.properties.dataProtection + /// public NetAppVolumeDataProtection DataProtection { get; set; } - /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. + /// + /// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. + /// Serialized Name: Volume.properties.acceptGrowCapacityPoolForShortTermCloneSplit + /// public AcceptGrowCapacityPoolForShortTermCloneSplit? AcceptGrowCapacityPoolForShortTermCloneSplit { get; set; } - /// 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). + /// + /// 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). + /// Serialized Name: Volume.properties.snapshotDirectoryVisible + /// public bool? IsSnapshotDirectoryVisible { get; set; } - /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later. + /// + /// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later + /// Serialized Name: Volume.properties.kerberosEnabled + /// public bool? IsKerberosEnabled { get; set; } - /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. + /// + /// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol + /// Serialized Name: Volume.properties.securityStyle + /// public NetAppVolumeSecurityStyle? SecurityStyle { get; set; } - /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. + /// + /// Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later + /// Serialized Name: Volume.properties.smbEncryption + /// public bool? IsSmbEncryptionEnabled { get; set; } - /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// + /// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: Volume.properties.smbAccessBasedEnumeration + /// public SmbAccessBasedEnumeration? SmbAccessBasedEnumeration { get; set; } - /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + /// + /// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume + /// Serialized Name: Volume.properties.smbNonBrowsable + /// public SmbNonBrowsable? SmbNonBrowsable { get; set; } - /// Enables continuously available share property for smb volume. Only applicable for SMB volume. + /// + /// Enables continuously available share property for smb volume. Only applicable for SMB volume + /// Serialized Name: Volume.properties.smbContinuouslyAvailable + /// 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. + /// + /// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume + /// Serialized Name: Volume.properties.throughputMibps + /// public float? ThroughputMibps { get; set; } - /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. + /// + /// Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel + /// Serialized Name: Volume.properties.actualThroughputMibps + /// 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'. + /// + /// 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' + /// Serialized Name: Volume.properties.encryptionKeySource + /// 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'. + /// + /// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. + /// Serialized Name: Volume.properties.keyVaultPrivateEndpointResourceId + /// public ResourceIdentifier KeyVaultPrivateEndpointResourceId { get; set; } - /// Specifies whether LDAP is enabled or not for a given NFS volume. + /// + /// Specifies whether LDAP is enabled or not for a given NFS volume. + /// Serialized Name: Volume.properties.ldapEnabled + /// public bool? IsLdapEnabled { get; set; } - /// Specifies the type of LDAP server for a given NFS volume. - public LdapServerType? LdapServerType { get; set; } - /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// + /// Specifies whether Cool Access(tiering) is enabled for the volume. + /// Serialized Name: Volume.properties.coolAccess + /// public bool? IsCoolAccessEnabled { get; set; } - /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// + /// Specifies the number of days after which data that is not accessed by clients will be tiered. + /// Serialized Name: Volume.properties.coolnessPeriod + /// public int? CoolnessPeriod { get; set; } /// /// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: - /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. - /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. - /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + /// OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + /// Never - No client-driven data is pulled from cool tier to standard storage. + /// Serialized Name: Volume.properties.coolAccessRetrievalPolicy /// public CoolAccessRetrievalPolicy? CoolAccessRetrievalPolicy { get; set; } - /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// + /// coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + /// Serialized Name: Volume.properties.coolAccessTieringPolicy + /// public CoolAccessTieringPolicy? CoolAccessTieringPolicy { get; set; } - /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain as its last saved value only. + /// + /// UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. + /// Serialized Name: Volume.properties.unixPermissions + /// public string UnixPermissions { get; set; } - /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. + /// + /// When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. + /// Serialized Name: Volume.properties.cloneProgress + /// public int? CloneProgress { get; } - /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// + /// Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + /// Serialized Name: Volume.properties.fileAccessLogs + /// public NetAppFileAccessLog? FileAccessLogs { get; } - /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + /// + /// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose + /// Serialized Name: Volume.properties.avsDataStore + /// public NetAppAvsDataStore? AvsDataStore { get; set; } - /// Data store resource unique identifier. + /// + /// Data store resource unique identifier + /// Serialized Name: Volume.properties.dataStoreResourceId + /// public IReadOnlyList DataStoreResourceId { get; } - /// Specifies if default quota is enabled for the volume. + /// + /// Specifies if default quota is enabled for the volume. + /// Serialized Name: Volume.properties.isDefaultQuotaEnabled + /// public bool? IsDefaultQuotaEnabled { get; set; } - /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// + /// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + /// Serialized Name: Volume.properties.defaultUserQuotaInKiBs + /// public long? DefaultUserQuotaInKiBs { get; set; } - /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// + /// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + /// Serialized Name: Volume.properties.defaultGroupQuotaInKiBs + /// public long? DefaultGroupQuotaInKiBs { get; set; } - /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. + /// + /// Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed if volume quota is more than 4TiB. + /// Serialized Name: Volume.properties.maximumNumberOfFiles + /// public long? MaximumNumberOfFiles { get; } - /// Volume Group Name. + /// + /// Volume Group Name + /// Serialized Name: Volume.properties.volumeGroupName + /// public string VolumeGroupName { get; } - /// Pool Resource Id used in case of creating a volume through volume group. + /// + /// Pool Resource Id used in case of creating a volume through volume group + /// Serialized Name: Volume.properties.capacityPoolResourceId + /// public ResourceIdentifier CapacityPoolResourceId { get; set; } - /// Proximity placement group associated with the volume. + /// + /// Proximity placement group associated with the volume + /// Serialized Name: Volume.properties.proximityPlacementGroup + /// public ResourceIdentifier ProximityPlacementGroupId { get; set; } - /// T2 network information. + /// + /// T2 network information + /// Serialized Name: Volume.properties.t2Network + /// public string T2Network { get; } - /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log. + /// + /// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log + /// Serialized Name: Volume.properties.volumeSpecName + /// public string VolumeSpecName { get; set; } - /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. + /// + /// Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01. + /// Serialized Name: Volume.properties.encrypted + /// public bool? IsEncrypted { get; } - /// Application specific placement rules for the particular volume. + /// + /// Application specific placement rules for the particular volume + /// Serialized Name: Volume.properties.placementRules + /// public IList PlacementRules { get; } - /// Flag indicating whether subvolume operations are enabled on the volume. + /// + /// Flag indicating whether subvolume operations are enabled on the volume + /// Serialized Name: Volume.properties.enableSubvolumes + /// public EnableNetAppSubvolume? EnableSubvolumes { get; set; } - /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + /// + /// The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + /// Serialized Name: Volume.properties.provisionedAvailabilityZone + /// public string ProvisionedAvailabilityZone { get; } - /// Specifies whether volume is a Large Volume or Regular Volume. + /// + /// Specifies whether volume is a Large Volume or Regular Volume. + /// Serialized Name: Volume.properties.isLargeVolume + /// public bool? IsLargeVolume { get; set; } - /// Id of the snapshot or backup that the volume is restored from. + /// + /// Id of the snapshot or backup that the volume is restored from. + /// Serialized Name: Volume.properties.originatingResourceId + /// public ResourceIdentifier OriginatingResourceId { get; } - /// Space shared by short term clone volume with parent volume in bytes. + /// + /// Space shared by short term clone volume with parent volume in bytes. + /// Serialized Name: Volume.properties.inheritedSizeInBytes + /// public long? InheritedSizeInBytes { get; } - /// Language supported for volume. - public NetAppVolumeLanguage? Language { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupCollection.cs index f12ec95bb93b..f5beaa6f743e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -159,7 +159,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -204,7 +204,7 @@ public virtual async Task> GetAsync(string v /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -249,7 +249,7 @@ public virtual Response Get(string volumeGroupName, C /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -292,7 +292,7 @@ public virtual async Task> ExistsAsync(string volumeGroupName, Ca /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -335,7 +335,7 @@ public virtual Response Exists(string volumeGroupName, CancellationToken c /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs index 09fabf3c71d1..65975bb66eaa 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the NetAppVolumeGroup data model. /// Volume group resource for create + /// Serialized Name: VolumeGroupDetails /// public partial class NetAppVolumeGroupData : ResourceData { @@ -62,10 +63,22 @@ public NetAppVolumeGroupData() /// The name. /// The resourceType. /// The systemData. - /// Resource location. - /// Azure lifecycle management. - /// Volume group details. - /// List of volumes from group. + /// + /// Resource location + /// Serialized Name: VolumeGroupDetails.location + /// + /// + /// Azure lifecycle management + /// Serialized Name: VolumeGroupDetails.properties.provisioningState + /// + /// + /// Volume group details + /// Serialized Name: VolumeGroupDetails.properties.groupMetaData + /// + /// + /// List of volumes from group + /// Serialized Name: VolumeGroupDetails.properties.volumes + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, string provisioningState, NetAppVolumeGroupMetadata groupMetaData, IList volumes, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -76,13 +89,25 @@ internal NetAppVolumeGroupData(ResourceIdentifier id, string name, ResourceType _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Resource location. + /// + /// Resource location + /// Serialized Name: VolumeGroupDetails.location + /// public AzureLocation? Location { get; set; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: VolumeGroupDetails.properties.provisioningState + /// public string ProvisioningState { get; } - /// Volume group details. + /// + /// Volume group details + /// Serialized Name: VolumeGroupDetails.properties.groupMetaData + /// public NetAppVolumeGroupMetadata GroupMetaData { get; set; } - /// List of volumes from group. + /// + /// List of volumes from group + /// Serialized Name: VolumeGroupDetails.properties.volumes + /// public IList Volumes { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupResource.cs index 294a05d17017..25eb829847b8 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeGroupResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(W /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleCollection.cs index cb61ac7c5bec..aa7c1206643a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string volumeQuotaRul /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -265,7 +265,8 @@ public virtual Response Get(string volumeQuotaRul public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeQuotaRuleVolumeQuotaRulesRestClient.CreateListByVolumeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new NetAppVolumeQuotaRuleResource(Client, NetAppVolumeQuotaRuleData.DeserializeNetAppVolumeQuotaRuleData(e)), _netAppVolumeQuotaRuleVolumeQuotaRulesClientDiagnostics, Pipeline, "NetAppVolumeQuotaRuleCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppVolumeQuotaRuleVolumeQuotaRulesRestClient.CreateListByVolumeNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetAppVolumeQuotaRuleResource(Client, NetAppVolumeQuotaRuleData.DeserializeNetAppVolumeQuotaRuleData(e)), _netAppVolumeQuotaRuleVolumeQuotaRulesClientDiagnostics, Pipeline, "NetAppVolumeQuotaRuleCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -294,7 +295,8 @@ public virtual AsyncPageable GetAllAsync(Cancella public virtual Pageable GetAll(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeQuotaRuleVolumeQuotaRulesRestClient.CreateListByVolumeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => new NetAppVolumeQuotaRuleResource(Client, NetAppVolumeQuotaRuleData.DeserializeNetAppVolumeQuotaRuleData(e)), _netAppVolumeQuotaRuleVolumeQuotaRulesClientDiagnostics, Pipeline, "NetAppVolumeQuotaRuleCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppVolumeQuotaRuleVolumeQuotaRulesRestClient.CreateListByVolumeNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetAppVolumeQuotaRuleResource(Client, NetAppVolumeQuotaRuleData.DeserializeNetAppVolumeQuotaRuleData(e)), _netAppVolumeQuotaRuleVolumeQuotaRulesClientDiagnostics, Pipeline, "NetAppVolumeQuotaRuleCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -310,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -353,7 +355,7 @@ public virtual async Task> ExistsAsync(string volumeQuotaRuleName /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -396,7 +398,7 @@ public virtual Response Exists(string volumeQuotaRuleName, CancellationTok /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -441,7 +443,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs index 3607b08f6245..5d79e850e63c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the NetAppVolumeQuotaRule data model. /// Quota Rule of a Volume + /// Serialized Name: VolumeQuotaRule /// public partial class NetAppVolumeQuotaRuleData : TrackedResourceData { @@ -64,10 +65,22 @@ public NetAppVolumeQuotaRuleData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// Provisioning state of the resource. - /// Size of quota. - /// Type of quota. - /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. + /// + /// Gets the status of the VolumeQuotaRule at the time the operation was called. + /// Serialized Name: VolumeQuotaRule.properties.provisioningState + /// + /// + /// Size of quota + /// Serialized Name: VolumeQuotaRule.properties.quotaSizeInKiBs + /// + /// + /// Type of quota + /// Serialized Name: VolumeQuotaRule.properties.quotaType + /// + /// + /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid> + /// Serialized Name: VolumeQuotaRule.properties.quotaTarget + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeQuotaRuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, NetAppProvisioningState? provisioningState, long? quotaSizeInKiBs, NetAppVolumeQuotaType? quotaType, string quotaTarget, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -83,13 +96,25 @@ internal NetAppVolumeQuotaRuleData() { } - /// Provisioning state of the resource. + /// + /// Gets the status of the VolumeQuotaRule at the time the operation was called. + /// Serialized Name: VolumeQuotaRule.properties.provisioningState + /// public NetAppProvisioningState? ProvisioningState { get; } - /// Size of quota. + /// + /// Size of quota + /// Serialized Name: VolumeQuotaRule.properties.quotaSizeInKiBs + /// public long? QuotaSizeInKiBs { get; set; } - /// Type of quota. + /// + /// Type of quota + /// Serialized Name: VolumeQuotaRule.properties.quotaType + /// public NetAppVolumeQuotaType? QuotaType { get; set; } - /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>. + /// + /// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid> + /// Serialized Name: VolumeQuotaRule.properties.quotaTarget + /// public string QuotaTarget { get; set; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleResource.cs index 5af96ea1c779..18ddd0cf5bae 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeQuotaRuleResource.cs @@ -105,7 +105,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -361,7 +361,7 @@ public virtual ArmOperation Update(WaitUntil wait /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -423,7 +423,7 @@ public virtual async Task> AddTagAsync(s /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -485,7 +485,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -542,7 +542,7 @@ public virtual async Task> SetTagsAsync( /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -599,7 +599,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -659,7 +659,7 @@ public virtual async Task> RemoveTagAsyn /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs index d4bdfa398c0e..b263f1b98653 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeResource.cs @@ -121,7 +121,7 @@ public virtual NetAppVolumeSnapshotCollection GetNetAppVolumeSnapshots() /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -152,7 +152,7 @@ public virtual async Task> GetNetAppVolum /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -170,75 +170,6 @@ public virtual Response GetNetAppVolumeSnapshot(st return GetNetAppVolumeSnapshots().Get(snapshotName, cancellationToken); } - /// Gets a collection of NetAppVolumeQuotaRuleResources in the NetAppVolume. - /// An object representing collection of NetAppVolumeQuotaRuleResources and their operations over a NetAppVolumeQuotaRuleResource. - public virtual NetAppVolumeQuotaRuleCollection GetNetAppVolumeQuotaRules() - { - return GetCachedClient(client => new NetAppVolumeQuotaRuleCollection(client, Id)); - } - - /// - /// Get details of the specified quota rule - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName} - /// - /// - /// Operation Id - /// VolumeQuotaRules_Get - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of volume quota rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetNetAppVolumeQuotaRuleAsync(string volumeQuotaRuleName, CancellationToken cancellationToken = default) - { - return await GetNetAppVolumeQuotaRules().GetAsync(volumeQuotaRuleName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get details of the specified quota rule - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName} - /// - /// - /// Operation Id - /// VolumeQuotaRules_Get - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of volume quota rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetNetAppVolumeQuotaRule(string volumeQuotaRuleName, CancellationToken cancellationToken = default) - { - return GetNetAppVolumeQuotaRules().Get(volumeQuotaRuleName, cancellationToken); - } - /// Gets a collection of NetAppSubvolumeInfoResources in the NetAppVolume. /// An object representing collection of NetAppSubvolumeInfoResources and their operations over a NetAppSubvolumeInfoResource. public virtual NetAppSubvolumeInfoCollection GetNetAppSubvolumeInfos() @@ -259,7 +190,7 @@ public virtual NetAppSubvolumeInfoCollection GetNetAppSubvolumeInfos() /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -290,7 +221,7 @@ public virtual async Task> GetNetAppSubvol /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -308,73 +239,73 @@ public virtual Response GetNetAppSubvolumeInfo(stri return GetNetAppSubvolumeInfos().Get(subvolumeName, cancellationToken); } - /// Gets a collection of NetAppBucketResources in the NetAppVolume. - /// An object representing collection of NetAppBucketResources and their operations over a NetAppBucketResource. - public virtual NetAppBucketCollection GetNetAppBuckets() + /// Gets a collection of NetAppVolumeQuotaRuleResources in the NetAppVolume. + /// An object representing collection of NetAppVolumeQuotaRuleResources and their operations over a NetAppVolumeQuotaRuleResource. + public virtual NetAppVolumeQuotaRuleCollection GetNetAppVolumeQuotaRules() { - return GetCachedClient(client => new NetAppBucketCollection(client, Id)); + return GetCachedClient(client => new NetAppVolumeQuotaRuleCollection(client, Id)); } /// - /// Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. + /// Get details of the specified quota rule /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName} /// /// /// Operation Id - /// Buckets_Get + /// VolumeQuotaRules_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the bucket. + /// The name of volume quota rule. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetNetAppBucketAsync(string bucketName, CancellationToken cancellationToken = default) + public virtual async Task> GetNetAppVolumeQuotaRuleAsync(string volumeQuotaRuleName, CancellationToken cancellationToken = default) { - return await GetNetAppBuckets().GetAsync(bucketName, cancellationToken).ConfigureAwait(false); + return await GetNetAppVolumeQuotaRules().GetAsync(volumeQuotaRuleName, cancellationToken).ConfigureAwait(false); } /// - /// Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. + /// Get details of the specified quota rule /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName} /// /// /// Operation Id - /// Buckets_Get + /// VolumeQuotaRules_Get /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the bucket. + /// The name of volume quota rule. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetNetAppBucket(string bucketName, CancellationToken cancellationToken = default) + public virtual Response GetNetAppVolumeQuotaRule(string volumeQuotaRuleName, CancellationToken cancellationToken = default) { - return GetNetAppBuckets().Get(bucketName, cancellationToken); + return GetNetAppVolumeQuotaRules().Get(volumeQuotaRuleName, cancellationToken); } /// @@ -390,7 +321,7 @@ public virtual Response GetNetAppBucket(string bucketName, /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -430,7 +361,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -470,7 +401,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -513,7 +444,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -556,7 +487,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? forceDelete = null /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -602,7 +533,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -636,39 +567,35 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Ne } /// - /// This operation will populate availability zone information for a volume + /// Get the latest status of the backup for a volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current /// /// /// Operation Id - /// Volumes_PopulateAvailabilityZone + /// Backups_GetLatestStatus /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task> PopulateAvailabilityZoneAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> GetLatestStatusBackupAsync(CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PopulateAvailabilityZone"); + using var scope = _netAppBackupVaultBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetLatestStatusBackup"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.PopulateAvailabilityZoneAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(new NetAppVolumeOperationSource(Client), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePopulateAvailabilityZoneRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; + var response = await _netAppBackupVaultBackupBackupsRestClient.GetLatestStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return response; } catch (Exception e) { @@ -678,39 +605,35 @@ public virtual async Task> PopulateAvailabili } /// - /// This operation will populate availability zone information for a volume + /// Get the latest status of the backup for a volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current /// /// /// Operation Id - /// Volumes_PopulateAvailabilityZone + /// Backups_GetLatestStatus /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation PopulateAvailabilityZone(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual Response GetLatestStatusBackup(CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PopulateAvailabilityZone"); + using var scope = _netAppBackupVaultBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetLatestStatusBackup"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.PopulateAvailabilityZone(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(new NetAppVolumeOperationSource(Client), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePopulateAvailabilityZoneRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; + var response = _netAppBackupVaultBackupBackupsRestClient.GetLatestStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + return response; } catch (Exception e) { @@ -720,43 +643,35 @@ public virtual ArmOperation PopulateAvailabilityZone(WaitU } /// - /// Revert a volume to the snapshot specified in the body + /// Get the latest status of the restore for a volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestRestoreStatus/current /// /// /// Operation Id - /// Volumes_Revert + /// Backups_GetVolumeLatestRestoreStatus /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// 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. - /// Object for snapshot to revert supplied in the body of the operation. /// The cancellation token to use. - /// is null. - public virtual async Task RevertAsync(WaitUntil waitUntil, NetAppVolumeRevertContent content, CancellationToken cancellationToken = default) + public virtual async Task> GetVolumeLatestRestoreStatusBackupAsync(CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.Revert"); + using var scope = _netAppBackupVaultBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetVolumeLatestRestoreStatusBackup"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.RevertAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateRevertRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; + var response = await _netAppBackupVaultBackupBackupsRestClient.GetVolumeLatestRestoreStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return response; } catch (Exception e) { @@ -766,43 +681,35 @@ public virtual async Task RevertAsync(WaitUntil waitUntil, NetAppV } /// - /// Revert a volume to the snapshot specified in the body + /// Get the latest status of the restore for a volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestRestoreStatus/current /// /// /// Operation Id - /// Volumes_Revert + /// Backups_GetVolumeLatestRestoreStatus /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// - /// 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. - /// Object for snapshot to revert supplied in the body of the operation. /// The cancellation token to use. - /// is null. - public virtual ArmOperation Revert(WaitUntil waitUntil, NetAppVolumeRevertContent content, CancellationToken cancellationToken = default) + public virtual Response GetVolumeLatestRestoreStatusBackup(CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.Revert"); + using var scope = _netAppBackupVaultBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetVolumeLatestRestoreStatusBackup"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.Revert(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateRevertRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; + var response = _netAppBackupVaultBackupBackupsRestClient.GetVolumeLatestRestoreStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + return response; } catch (Exception e) { @@ -812,19 +719,19 @@ public virtual ArmOperation Revert(WaitUntil waitUntil, NetAppVolumeRevertConten } /// - /// Reset cifs password from volume + /// Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeExternalReplication /// /// /// Operation Id - /// Volumes_ResetCifsPassword + /// Volumes_AuthorizeExternalReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -834,16 +741,16 @@ public virtual ArmOperation Revert(WaitUntil waitUntil, NetAppVolumeRevertConten /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task ResetCifsPasswordAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> AuthorizeExternalReplicationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ResetCifsPassword"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.AuthorizeExternalReplication"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.ResetCifsPasswordAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateResetCifsPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.AuthorizeExternalReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(new SvmPeerCommandResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateAuthorizeExternalReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -854,19 +761,19 @@ public virtual async Task ResetCifsPasswordAsync(WaitUntil waitUnt } /// - /// Reset cifs password from volume + /// Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeExternalReplication /// /// /// Operation Id - /// Volumes_ResetCifsPassword + /// Volumes_AuthorizeExternalReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -876,16 +783,16 @@ public virtual async Task ResetCifsPasswordAsync(WaitUntil waitUnt /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation ResetCifsPassword(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation AuthorizeExternalReplication(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ResetCifsPassword"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.AuthorizeExternalReplication"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.ResetCifsPassword(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateResetCifsPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.AuthorizeExternalReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(new SvmPeerCommandResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateAuthorizeExternalReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -896,19 +803,19 @@ public virtual ArmOperation ResetCifsPassword(WaitUntil waitUntil, CancellationT } /// - /// Split operation to convert clone volume to an independent volume. + /// Authorize the replication connection on the source volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication /// /// /// Operation Id - /// Volumes_SplitCloneFromParent + /// Volumes_AuthorizeReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -917,17 +824,21 @@ public virtual ArmOperation ResetCifsPassword(WaitUntil waitUntil, CancellationT /// /// /// 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. + /// Authorize request object supplied in the body of the operation. /// The cancellation token to use. - public virtual async Task> SplitCloneFromParentAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task AuthorizeReplicationAsync(WaitUntil waitUntil, NetAppVolumeAuthorizeReplicationContent content, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.SplitCloneFromParent"); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.AuthorizeReplication"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.SplitCloneFromParentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(new NetAppVolumeOperationSource(Client), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateSplitCloneFromParentRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.AuthorizeReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateAuthorizeReplicationRequest(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); + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -938,19 +849,19 @@ public virtual async Task> SplitCloneFromPare } /// - /// Split operation to convert clone volume to an independent volume. + /// Authorize the replication connection on the source volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication /// /// /// Operation Id - /// Volumes_SplitCloneFromParent + /// Volumes_AuthorizeReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -959,17 +870,21 @@ public virtual async Task> SplitCloneFromPare /// /// /// 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. + /// Authorize request object supplied in the body of the operation. /// The cancellation token to use. - public virtual ArmOperation SplitCloneFromParent(WaitUntil waitUntil, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation AuthorizeReplication(WaitUntil waitUntil, NetAppVolumeAuthorizeReplicationContent content, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.SplitCloneFromParent"); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.AuthorizeReplication"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.SplitCloneFromParent(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(new NetAppVolumeOperationSource(Client), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateSplitCloneFromParentRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.AuthorizeReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateAuthorizeReplicationRequest(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); + operation.WaitForCompletionResponse(cancellationToken); return operation; } catch (Exception e) @@ -992,7 +907,7 @@ public virtual ArmOperation SplitCloneFromParent(WaitUntil /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1035,7 +950,7 @@ public virtual async Task BreakFileLocksAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1066,19 +981,19 @@ public virtual ArmOperation BreakFileLocks(WaitUntil waitUntil, NetAppVolumeBrea } /// - /// Returns the list of group Ids for a specific LDAP User + /// Break the replication connection on the destination volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication /// /// /// Operation Id - /// Volumes_ListGetGroupIdListForLdapUser + /// Volumes_BreakReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1087,21 +1002,18 @@ public virtual ArmOperation BreakFileLocks(WaitUntil waitUntil, NetAppVolumeBrea /// /// /// 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. + /// Optional body to force break the replication. /// The cancellation token to use. - /// is null. - public virtual async Task> GetGetGroupIdListForLdapUserAsync(WaitUntil waitUntil, GetGroupIdListForLdapUserContent content, CancellationToken cancellationToken = default) + public virtual async Task BreakReplicationAsync(WaitUntil waitUntil, NetAppVolumeBreakReplicationContent content = null, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetGetGroupIdListForLdapUser"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.BreakReplication"); 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); + var response = await _netAppVolumeVolumesRestClient.BreakReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateBreakReplicationRequest(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); + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -1112,19 +1024,19 @@ public virtual async Task> GetGetG } /// - /// Returns the list of group Ids for a specific LDAP User + /// Break the replication connection on the destination volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication /// /// /// Operation Id - /// Volumes_ListGetGroupIdListForLdapUser + /// Volumes_BreakReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1133,21 +1045,18 @@ public virtual async Task> GetGetG /// /// /// 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. + /// Optional body to force break the replication. /// The cancellation token to use. - /// is null. - public virtual ArmOperation GetGetGroupIdListForLdapUser(WaitUntil waitUntil, GetGroupIdListForLdapUserContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation BreakReplication(WaitUntil waitUntil, NetAppVolumeBreakReplicationContent content = null, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetGetGroupIdListForLdapUser"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.BreakReplication"); 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); + var response = _netAppVolumeVolumesRestClient.BreakReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateBreakReplicationRequest(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); + operation.WaitForCompletionResponse(cancellationToken); return operation; } catch (Exception e) @@ -1158,19 +1067,19 @@ public virtual ArmOperation GetGetGroupIdListFo } /// - /// Returns report of quotas for the volume + /// Delete the replication connection on the destination volume, and send release to the source replication /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listQuotaReport + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication /// /// /// Operation Id - /// Volumes_ListQuotaReport + /// Volumes_DeleteReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1180,16 +1089,16 @@ public virtual ArmOperation GetGetGroupIdListFo /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task> GetQuotaReportAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task DeleteReplicationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetQuotaReport"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.DeleteReplication"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.ListQuotaReportAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(new NetAppVolumeQuotaReportListResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateListQuotaReportRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.DeleteReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateDeleteReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -1200,19 +1109,19 @@ public virtual async Task> GetQu } /// - /// Returns report of quotas for the volume + /// Delete the replication connection on the destination volume, and send release to the source replication /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listQuotaReport + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication /// /// /// Operation Id - /// Volumes_ListQuotaReport + /// Volumes_DeleteReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1222,16 +1131,16 @@ public virtual async Task> GetQu /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation GetQuotaReport(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation DeleteReplication(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetQuotaReport"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.DeleteReplication"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.ListQuotaReport(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(new NetAppVolumeQuotaReportListResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateListQuotaReportRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.DeleteReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateDeleteReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); + operation.WaitForCompletionResponse(cancellationToken); return operation; } catch (Exception e) @@ -1242,19 +1151,19 @@ public virtual ArmOperation GetQuotaReport(Wa } /// - /// Break the replication connection on the destination volume + /// Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeExternalReplication /// /// /// Operation Id - /// Volumes_BreakReplication + /// Volumes_FinalizeExternalReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1263,16 +1172,15 @@ public virtual ArmOperation GetQuotaReport(Wa /// /// /// 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. - /// Optional body to force break the replication. /// The cancellation token to use. - public virtual async Task BreakReplicationAsync(WaitUntil waitUntil, NetAppVolumeBreakReplicationContent content = null, CancellationToken cancellationToken = default) + public virtual async Task FinalizeExternalReplicationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.BreakReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.FinalizeExternalReplication"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.BreakReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateBreakReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.FinalizeExternalReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateFinalizeExternalReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -1285,19 +1193,19 @@ public virtual async Task BreakReplicationAsync(WaitUntil waitUnti } /// - /// Break the replication connection on the destination volume + /// Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeExternalReplication /// /// /// Operation Id - /// Volumes_BreakReplication + /// Volumes_FinalizeExternalReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1306,16 +1214,15 @@ public virtual async Task BreakReplicationAsync(WaitUntil waitUnti /// /// /// 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. - /// Optional body to force break the replication. /// The cancellation token to use. - public virtual ArmOperation BreakReplication(WaitUntil waitUntil, NetAppVolumeBreakReplicationContent content = null, CancellationToken cancellationToken = default) + public virtual ArmOperation FinalizeExternalReplication(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.BreakReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.FinalizeExternalReplication"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.BreakReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateBreakReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.FinalizeExternalReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateFinalizeExternalReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -1328,19 +1235,19 @@ public virtual ArmOperation BreakReplication(WaitUntil waitUntil, NetAppVolumeBr } /// - /// Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots + /// Finalizes the relocation of the volume and cleans up the old volume. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation /// /// /// Operation Id - /// Volumes_ReestablishReplication + /// Volumes_FinalizeRelocation /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1349,19 +1256,15 @@ public virtual ArmOperation BreakReplication(WaitUntil waitUntil, NetAppVolumeBr /// /// /// 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. - /// body for the id of the source volume. /// The cancellation token to use. - /// is null. - public virtual async Task ReestablishReplicationAsync(WaitUntil waitUntil, NetAppVolumeReestablishReplicationContent content, CancellationToken cancellationToken = default) + public virtual async Task FinalizeRelocationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ReestablishReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.FinalizeRelocation"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.ReestablishReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateReestablishReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.FinalizeRelocationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateFinalizeRelocationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -1374,19 +1277,19 @@ public virtual async Task ReestablishReplicationAsync(WaitUntil wa } /// - /// Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots + /// Finalizes the relocation of the volume and cleans up the old volume. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation /// /// /// Operation Id - /// Volumes_ReestablishReplication + /// Volumes_FinalizeRelocation /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1395,19 +1298,15 @@ public virtual async Task ReestablishReplicationAsync(WaitUntil wa /// /// /// 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. - /// body for the id of the source volume. /// The cancellation token to use. - /// is null. - public virtual ArmOperation ReestablishReplication(WaitUntil waitUntil, NetAppVolumeReestablishReplicationContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation FinalizeRelocation(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ReestablishReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.FinalizeRelocation"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.ReestablishReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateReestablishReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.FinalizeRelocation(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateFinalizeRelocationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -1420,19 +1319,19 @@ public virtual ArmOperation ReestablishReplication(WaitUntil waitUntil, NetAppVo } /// - /// Get the status of the replication + /// 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}/replicationStatus + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser /// /// /// Operation Id - /// Volumes_ReplicationStatus + /// Volumes_ListGetGroupIdListForLdapUser /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1440,15 +1339,23 @@ public virtual ArmOperation ReestablishReplication(WaitUntil waitUntil, NetAppVo /// /// /// + /// 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. - public virtual async Task> GetReplicationStatusAsync(CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> GetGetGroupIdListForLdapUserAsync(WaitUntil waitUntil, GetGroupIdListForLdapUserContent content, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetReplicationStatus"); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetGetGroupIdListForLdapUser"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.ReplicationStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return response; + 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.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; } catch (Exception e) { @@ -1458,19 +1365,19 @@ public virtual async Task> GetReplicatio } /// - /// Get the status of the replication + /// 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}/replicationStatus + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser /// /// /// Operation Id - /// Volumes_ReplicationStatus + /// Volumes_ListGetGroupIdListForLdapUser /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1478,15 +1385,23 @@ public virtual async Task> GetReplicatio /// /// /// + /// 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. - public virtual Response GetReplicationStatus(CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation GetGetGroupIdListForLdapUser(WaitUntil waitUntil, GetGroupIdListForLdapUserContent content, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetReplicationStatus"); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetGetGroupIdListForLdapUser"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.ReplicationStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - return response; + 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.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; } catch (Exception e) { @@ -1508,7 +1423,7 @@ public virtual Response GetReplicationStatus(Canc /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1516,12 +1431,14 @@ public virtual Response GetReplicationStatus(Canc /// /// /// + /// The content of the action request. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetReplicationsAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetReplicationsAsync(ListReplicationsContent content = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeVolumesRestClient.CreateListReplicationsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => NetAppVolumeReplication.DeserializeNetAppVolumeReplication(e), _netAppVolumeVolumesClientDiagnostics, Pipeline, "NetAppVolumeResource.GetReplications", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeVolumesRestClient.CreateListReplicationsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppVolumeVolumesRestClient.CreateListReplicationsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => NetAppVolumeReplication.DeserializeNetAppVolumeReplication(e), _netAppVolumeVolumesClientDiagnostics, Pipeline, "NetAppVolumeResource.GetReplications", "value", "nextLink", cancellationToken); } /// @@ -1537,7 +1454,7 @@ public virtual AsyncPageable GetReplicationsAsync(Cance /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1545,28 +1462,30 @@ public virtual AsyncPageable GetReplicationsAsync(Cance /// /// /// + /// The content of the action request. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetReplications(CancellationToken cancellationToken = default) + public virtual Pageable GetReplications(ListReplicationsContent content = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeVolumesRestClient.CreateListReplicationsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => NetAppVolumeReplication.DeserializeNetAppVolumeReplication(e), _netAppVolumeVolumesClientDiagnostics, Pipeline, "NetAppVolumeResource.GetReplications", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeVolumesRestClient.CreateListReplicationsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppVolumeVolumesRestClient.CreateListReplicationsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => NetAppVolumeReplication.DeserializeNetAppVolumeReplication(e), _netAppVolumeVolumesClientDiagnostics, Pipeline, "NetAppVolumeResource.GetReplications", "value", "nextLink", cancellationToken); } /// - /// Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. + /// Starts peering the external cluster for this migration volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/peerExternalCluster /// /// /// Operation Id - /// Volumes_ResyncReplication + /// Volumes_PeerExternalCluster /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1575,17 +1494,21 @@ public virtual Pageable GetReplications(CancellationTok /// /// /// 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. + /// Cluster peer request object supplied in the body of the operation. /// The cancellation token to use. - public virtual async Task ResyncReplicationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> PeerExternalClusterAsync(WaitUntil waitUntil, PeerClusterForVolumeMigrationContent content, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ResyncReplication"); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PeerExternalCluster"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.ResyncReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateResyncReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.PeerExternalClusterAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(new ClusterPeerCommandResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePeerExternalClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -1596,19 +1519,19 @@ public virtual async Task ResyncReplicationAsync(WaitUntil waitUnt } /// - /// Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. + /// Starts peering the external cluster for this migration volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/peerExternalCluster /// /// /// Operation Id - /// Volumes_ResyncReplication + /// Volumes_PeerExternalCluster /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1617,17 +1540,21 @@ public virtual async Task ResyncReplicationAsync(WaitUntil waitUnt /// /// /// 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. + /// Cluster peer request object supplied in the body of the operation. /// The cancellation token to use. - public virtual ArmOperation ResyncReplication(WaitUntil waitUntil, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation PeerExternalCluster(WaitUntil waitUntil, PeerClusterForVolumeMigrationContent content, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ResyncReplication"); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PeerExternalCluster"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.ResyncReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateResyncReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.PeerExternalCluster(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new NetAppArmOperation(new ClusterPeerCommandResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePeerExternalClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -1638,19 +1565,19 @@ public virtual ArmOperation ResyncReplication(WaitUntil waitUntil, CancellationT } /// - /// Delete the replication connection on the destination volume, and send release to the source replication + /// Performs an adhoc replication transfer on a volume with volumeType Migration /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/performReplicationTransfer /// /// /// Operation Id - /// Volumes_DeleteReplication + /// Volumes_PerformReplicationTransfer /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1660,14 +1587,14 @@ public virtual ArmOperation ResyncReplication(WaitUntil waitUntil, CancellationT /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task DeleteReplicationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task PerformReplicationTransferAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.DeleteReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PerformReplicationTransfer"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.DeleteReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateDeleteReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.PerformReplicationTransferAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePerformReplicationTransferRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -1680,19 +1607,19 @@ public virtual async Task DeleteReplicationAsync(WaitUntil waitUnt } /// - /// Delete the replication connection on the destination volume, and send release to the source replication + /// Performs an adhoc replication transfer on a volume with volumeType Migration /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/performReplicationTransfer /// /// /// Operation Id - /// Volumes_DeleteReplication + /// Volumes_PerformReplicationTransfer /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1702,14 +1629,14 @@ public virtual async Task DeleteReplicationAsync(WaitUntil waitUnt /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation DeleteReplication(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation PerformReplicationTransfer(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.DeleteReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PerformReplicationTransfer"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.DeleteReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateDeleteReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.PerformReplicationTransfer(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePerformReplicationTransferRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -1722,19 +1649,19 @@ public virtual ArmOperation DeleteReplication(WaitUntil waitUntil, CancellationT } /// - /// Authorize the replication connection on the source volume + /// Moves volume to another pool /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange /// /// /// Operation Id - /// Volumes_AuthorizeReplication + /// Volumes_PoolChange /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1743,19 +1670,19 @@ public virtual ArmOperation DeleteReplication(WaitUntil waitUntil, CancellationT /// /// /// 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. - /// Authorize request object supplied in the body of the operation. + /// Move volume to the pool supplied in the body of the operation. /// The cancellation token to use. /// is null. - public virtual async Task AuthorizeReplicationAsync(WaitUntil waitUntil, NetAppVolumeAuthorizeReplicationContent content, CancellationToken cancellationToken = default) + public virtual async Task PoolChangeAsync(WaitUntil waitUntil, NetAppVolumePoolChangeContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.AuthorizeReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PoolChange"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.AuthorizeReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateAuthorizeReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.PoolChangeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePoolChangeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -1768,19 +1695,19 @@ public virtual async Task AuthorizeReplicationAsync(WaitUntil wait } /// - /// Authorize the replication connection on the source volume + /// Moves volume to another pool /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange /// /// /// Operation Id - /// Volumes_AuthorizeReplication + /// Volumes_PoolChange /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1789,20 +1716,20 @@ public virtual async Task AuthorizeReplicationAsync(WaitUntil wait /// /// /// 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. - /// Authorize request object supplied in the body of the operation. + /// Move volume to the pool supplied in the body of the operation. /// The cancellation token to use. /// is null. - public virtual ArmOperation AuthorizeReplication(WaitUntil waitUntil, NetAppVolumeAuthorizeReplicationContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation PoolChange(WaitUntil waitUntil, NetAppVolumePoolChangeContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.AuthorizeReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PoolChange"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.AuthorizeReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateAuthorizeReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) + var response = _netAppVolumeVolumesRestClient.PoolChange(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePoolChangeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; } @@ -1814,19 +1741,19 @@ public virtual ArmOperation AuthorizeReplication(WaitUntil waitUntil, NetAppVolu } /// - /// Re-Initializes the replication connection on the destination volume + /// This operation will populate availability zone information for a volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone /// /// /// Operation Id - /// Volumes_ReInitializeReplication + /// Volumes_PopulateAvailabilityZone /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1836,16 +1763,16 @@ public virtual ArmOperation AuthorizeReplication(WaitUntil waitUntil, NetAppVolu /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task ReInitializeReplicationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> PopulateAvailabilityZoneAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ReInitializeReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PopulateAvailabilityZone"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.ReInitializeReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateReInitializeReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.PopulateAvailabilityZoneAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(new NetAppVolumeOperationSource(Client), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePopulateAvailabilityZoneRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -1856,19 +1783,19 @@ public virtual async Task ReInitializeReplicationAsync(WaitUntil w } /// - /// Re-Initializes the replication connection on the destination volume + /// This operation will populate availability zone information for a volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone /// /// /// Operation Id - /// Volumes_ReInitializeReplication + /// Volumes_PopulateAvailabilityZone /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1878,16 +1805,16 @@ public virtual async Task ReInitializeReplicationAsync(WaitUntil w /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation ReInitializeReplication(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation PopulateAvailabilityZone(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ReInitializeReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PopulateAvailabilityZone"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.ReInitializeReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateReInitializeReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.PopulateAvailabilityZone(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(new NetAppVolumeOperationSource(Client), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePopulateAvailabilityZoneRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -1898,19 +1825,19 @@ public virtual ArmOperation ReInitializeReplication(WaitUntil waitUntil, Cancell } /// - /// Starts peering the external cluster for this migration volume + /// Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/peerExternalCluster + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication /// /// /// Operation Id - /// Volumes_PeerExternalCluster + /// Volumes_ReestablishReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1919,21 +1846,21 @@ public virtual ArmOperation ReInitializeReplication(WaitUntil waitUntil, Cancell /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Cluster peer request object supplied in the body of the operation. + /// body for the id of the source volume. /// The cancellation token to use. /// is null. - public virtual async Task> PeerExternalClusterAsync(WaitUntil waitUntil, PeerClusterForVolumeMigrationContent content, CancellationToken cancellationToken = default) + public virtual async Task ReestablishReplicationAsync(WaitUntil waitUntil, NetAppVolumeReestablishReplicationContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PeerExternalCluster"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ReestablishReplication"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.PeerExternalClusterAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(new ClusterPeerCommandResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePeerExternalClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.ReestablishReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateReestablishReplicationRequest(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); + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -1944,19 +1871,19 @@ public virtual async Task> PeerExternalCl } /// - /// Starts peering the external cluster for this migration volume + /// Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/peerExternalCluster + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication /// /// /// Operation Id - /// Volumes_PeerExternalCluster + /// Volumes_ReestablishReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -1965,21 +1892,21 @@ public virtual async Task> PeerExternalCl /// /// /// 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. - /// Cluster peer request object supplied in the body of the operation. + /// body for the id of the source volume. /// The cancellation token to use. /// is null. - public virtual ArmOperation PeerExternalCluster(WaitUntil waitUntil, PeerClusterForVolumeMigrationContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation ReestablishReplication(WaitUntil waitUntil, NetAppVolumeReestablishReplicationContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PeerExternalCluster"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ReestablishReplication"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.PeerExternalCluster(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new NetAppArmOperation(new ClusterPeerCommandResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePeerExternalClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.ReestablishReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateReestablishReplicationRequest(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); + operation.WaitForCompletionResponse(cancellationToken); return operation; } catch (Exception e) @@ -1990,19 +1917,19 @@ public virtual ArmOperation PeerExternalCluster(WaitUn } /// - /// Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created + /// Re-Initializes the replication connection on the destination volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeExternalReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication /// /// /// Operation Id - /// Volumes_AuthorizeExternalReplication + /// Volumes_ReInitializeReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2012,16 +1939,16 @@ public virtual ArmOperation PeerExternalCluster(WaitUn /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task> AuthorizeExternalReplicationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task ReInitializeReplicationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.AuthorizeExternalReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ReInitializeReplication"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.AuthorizeExternalReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(new SvmPeerCommandResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateAuthorizeExternalReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.ReInitializeReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateReInitializeReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -2032,19 +1959,19 @@ public virtual async Task> AuthorizeExternalR } /// - /// Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created + /// Re-Initializes the replication connection on the destination volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeExternalReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication /// /// /// Operation Id - /// Volumes_AuthorizeExternalReplication + /// Volumes_ReInitializeReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2054,16 +1981,16 @@ public virtual async Task> AuthorizeExternalR /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation AuthorizeExternalReplication(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation ReInitializeReplication(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.AuthorizeExternalReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ReInitializeReplication"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.AuthorizeExternalReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(new SvmPeerCommandResultOperationSource(), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateAuthorizeExternalReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.ReInitializeReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateReInitializeReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); + operation.WaitForCompletionResponse(cancellationToken); return operation; } catch (Exception e) @@ -2074,19 +2001,19 @@ public virtual ArmOperation AuthorizeExternalReplication(W } /// - /// Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. + /// Relocates volume to a new stamp /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeExternalReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate /// /// /// Operation Id - /// Volumes_FinalizeExternalReplication + /// Volumes_Relocate /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2095,15 +2022,16 @@ public virtual ArmOperation AuthorizeExternalReplication(W /// /// /// 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. + /// Relocate volume request. /// The cancellation token to use. - public virtual async Task FinalizeExternalReplicationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task RelocateAsync(WaitUntil waitUntil, RelocateVolumeContent content = null, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.FinalizeExternalReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.Relocate"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.FinalizeExternalReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateFinalizeExternalReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.RelocateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateRelocateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -2116,19 +2044,19 @@ public virtual async Task FinalizeExternalReplicationAsync(WaitUnt } /// - /// Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. + /// Relocates volume to a new stamp /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeExternalReplication + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate /// /// /// Operation Id - /// Volumes_FinalizeExternalReplication + /// Volumes_Relocate /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2137,15 +2065,16 @@ public virtual async Task FinalizeExternalReplicationAsync(WaitUnt /// /// /// 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. + /// Relocate volume request. /// The cancellation token to use. - public virtual ArmOperation FinalizeExternalReplication(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Relocate(WaitUntil waitUntil, RelocateVolumeContent content = null, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.FinalizeExternalReplication"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.Relocate"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.FinalizeExternalReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateFinalizeExternalReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.Relocate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateRelocateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -2158,19 +2087,19 @@ public virtual ArmOperation FinalizeExternalReplication(WaitUntil waitUntil, Can } /// - /// Performs an adhoc replication transfer on a volume with volumeType Migration + /// Get the status of the replication /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/performReplicationTransfer + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus /// /// /// Operation Id - /// Volumes_PerformReplicationTransfer + /// Volumes_ReplicationStatus /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2178,19 +2107,15 @@ public virtual ArmOperation FinalizeExternalReplication(WaitUntil waitUntil, Can /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task PerformReplicationTransferAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> GetReplicationStatusAsync(CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PerformReplicationTransfer"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetReplicationStatus"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.PerformReplicationTransferAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePerformReplicationTransferRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; + var response = await _netAppVolumeVolumesRestClient.ReplicationStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return response; } catch (Exception e) { @@ -2200,19 +2125,19 @@ public virtual async Task PerformReplicationTransferAsync(WaitUnti } /// - /// Performs an adhoc replication transfer on a volume with volumeType Migration + /// Get the status of the replication /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/performReplicationTransfer + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus /// /// /// Operation Id - /// Volumes_PerformReplicationTransfer + /// Volumes_ReplicationStatus /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2220,19 +2145,15 @@ public virtual async Task PerformReplicationTransferAsync(WaitUnti /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation PerformReplicationTransfer(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual Response GetReplicationStatus(CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PerformReplicationTransfer"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.GetReplicationStatus"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.PerformReplicationTransfer(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePerformReplicationTransferRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; + var response = _netAppVolumeVolumesRestClient.ReplicationStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + return response; } catch (Exception e) { @@ -2242,19 +2163,19 @@ public virtual ArmOperation PerformReplicationTransfer(WaitUntil waitUntil, Canc } /// - /// Moves volume to another pool + /// Reset cifs password from volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword /// /// /// Operation Id - /// Volumes_PoolChange + /// Volumes_ResetCifsPassword /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2263,19 +2184,15 @@ public virtual ArmOperation PerformReplicationTransfer(WaitUntil waitUntil, Canc /// /// /// 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. - /// Move volume to the pool supplied in the body of the operation. /// The cancellation token to use. - /// is null. - public virtual async Task PoolChangeAsync(WaitUntil waitUntil, NetAppVolumePoolChangeContent content, CancellationToken cancellationToken = default) + public virtual async Task ResetCifsPasswordAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PoolChange"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ResetCifsPassword"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.PoolChangeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePoolChangeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.ResetCifsPasswordAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateResetCifsPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -2288,19 +2205,19 @@ public virtual async Task PoolChangeAsync(WaitUntil waitUntil, Net } /// - /// Moves volume to another pool + /// Reset cifs password from volume /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword /// /// /// Operation Id - /// Volumes_PoolChange + /// Volumes_ResetCifsPassword /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2309,19 +2226,15 @@ public virtual async Task PoolChangeAsync(WaitUntil waitUntil, Net /// /// /// 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. - /// Move volume to the pool supplied in the body of the operation. /// The cancellation token to use. - /// is null. - public virtual ArmOperation PoolChange(WaitUntil waitUntil, NetAppVolumePoolChangeContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation ResetCifsPassword(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.PoolChange"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ResetCifsPassword"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.PoolChange(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreatePoolChangeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.ResetCifsPassword(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateResetCifsPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -2334,19 +2247,19 @@ public virtual ArmOperation PoolChange(WaitUntil waitUntil, NetAppVolumePoolChan } /// - /// Relocates volume to a new stamp + /// Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication /// /// /// Operation Id - /// Volumes_Relocate + /// Volumes_ResyncReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2355,16 +2268,15 @@ public virtual ArmOperation PoolChange(WaitUntil waitUntil, NetAppVolumePoolChan /// /// /// 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. - /// Relocate volume request. /// The cancellation token to use. - public virtual async Task RelocateAsync(WaitUntil waitUntil, RelocateVolumeContent content = null, CancellationToken cancellationToken = default) + public virtual async Task ResyncReplicationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.Relocate"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ResyncReplication"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.RelocateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateRelocateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.ResyncReplicationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateResyncReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -2377,19 +2289,19 @@ public virtual async Task RelocateAsync(WaitUntil waitUntil, Reloc } /// - /// Relocates volume to a new stamp + /// Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication /// /// /// Operation Id - /// Volumes_Relocate + /// Volumes_ResyncReplication /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2398,16 +2310,15 @@ public virtual async Task RelocateAsync(WaitUntil waitUntil, Reloc /// /// /// 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. - /// Relocate volume request. /// The cancellation token to use. - public virtual ArmOperation Relocate(WaitUntil waitUntil, RelocateVolumeContent content = null, CancellationToken cancellationToken = default) + public virtual ArmOperation ResyncReplication(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.Relocate"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.ResyncReplication"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.Relocate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateRelocateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.ResyncReplication(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateResyncReplicationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -2420,19 +2331,19 @@ public virtual ArmOperation Relocate(WaitUntil waitUntil, RelocateVolumeContent } /// - /// Finalizes the relocation of the volume and cleans up the old volume. + /// Revert a volume to the snapshot specified in the body /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert /// /// /// Operation Id - /// Volumes_FinalizeRelocation + /// Volumes_Revert /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2441,15 +2352,19 @@ public virtual ArmOperation Relocate(WaitUntil waitUntil, RelocateVolumeContent /// /// /// 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. + /// Object for snapshot to revert supplied in the body of the operation. /// The cancellation token to use. - public virtual async Task FinalizeRelocationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task RevertAsync(WaitUntil waitUntil, NetAppVolumeRevertContent content, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.FinalizeRelocation"); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.Revert"); scope.Start(); try { - var response = await _netAppVolumeVolumesRestClient.FinalizeRelocationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateFinalizeRelocationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _netAppVolumeVolumesRestClient.RevertAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateRevertRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -2462,19 +2377,19 @@ public virtual async Task FinalizeRelocationAsync(WaitUntil waitUn } /// - /// Finalizes the relocation of the volume and cleans up the old volume. + /// Revert a volume to the snapshot specified in the body /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert /// /// /// Operation Id - /// Volumes_FinalizeRelocation + /// Volumes_Revert /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2483,15 +2398,19 @@ public virtual async Task FinalizeRelocationAsync(WaitUntil waitUn /// /// /// 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. + /// Object for snapshot to revert supplied in the body of the operation. /// The cancellation token to use. - public virtual ArmOperation FinalizeRelocation(WaitUntil waitUntil, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation Revert(WaitUntil waitUntil, NetAppVolumeRevertContent content, CancellationToken cancellationToken = default) { - using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.FinalizeRelocation"); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.Revert"); scope.Start(); try { - var response = _netAppVolumeVolumesRestClient.FinalizeRelocation(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateFinalizeRelocationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _netAppVolumeVolumesRestClient.Revert(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new NetAppArmOperation(_netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateRevertRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -2516,7 +2435,7 @@ public virtual ArmOperation FinalizeRelocation(WaitUntil waitUntil, Cancellation /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2558,7 +2477,7 @@ public virtual async Task RevertRelocationAsync(WaitUntil waitUnti /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2588,111 +2507,39 @@ public virtual ArmOperation RevertRelocation(WaitUntil waitUntil, CancellationTo } /// - /// Get the latest status of the backup for a volume + /// Split operation to convert clone volume to an independent volume. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current - /// - /// - /// Operation Id - /// Backups_GetLatestStatus - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetLatestStatusBackupAsync(CancellationToken cancellationToken = default) - { - using var scope = _netAppBackupVaultBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetLatestStatusBackup"); - scope.Start(); - try - { - var response = await _netAppBackupVaultBackupBackupsRestClient.GetLatestStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Get the latest status of the backup for a volume - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current - /// - /// - /// Operation Id - /// Backups_GetLatestStatus - /// - /// - /// Default Api Version - /// 2025-07-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response GetLatestStatusBackup(CancellationToken cancellationToken = default) - { - using var scope = _netAppBackupVaultBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetLatestStatusBackup"); - scope.Start(); - try - { - var response = _netAppBackupVaultBackupBackupsRestClient.GetLatestStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Get the latest status of the restore for a volume - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestRestoreStatus/current + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent /// /// /// Operation Id - /// Backups_GetVolumeLatestRestoreStatus + /// Volumes_SplitCloneFromParent /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task> GetVolumeLatestRestoreStatusBackupAsync(CancellationToken cancellationToken = default) + public virtual async Task> SplitCloneFromParentAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppBackupVaultBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetVolumeLatestRestoreStatusBackup"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.SplitCloneFromParent"); scope.Start(); try { - var response = await _netAppBackupVaultBackupBackupsRestClient.GetVolumeLatestRestoreStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return response; + var response = await _netAppVolumeVolumesRestClient.SplitCloneFromParentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetAppArmOperation(new NetAppVolumeOperationSource(Client), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateSplitCloneFromParentRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; } catch (Exception e) { @@ -2702,35 +2549,39 @@ public virtual async Task> GetVolumeLatestRestoreS } /// - /// Get the latest status of the restore for a volume + /// Split operation to convert clone volume to an independent volume. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestRestoreStatus/current + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent /// /// /// Operation Id - /// Backups_GetVolumeLatestRestoreStatus + /// Volumes_SplitCloneFromParent /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource - /// + /// /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual Response GetVolumeLatestRestoreStatusBackup(CancellationToken cancellationToken = default) + public virtual ArmOperation SplitCloneFromParent(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _netAppBackupVaultBackupBackupsClientDiagnostics.CreateScope("NetAppVolumeResource.GetVolumeLatestRestoreStatusBackup"); + using var scope = _netAppVolumeVolumesClientDiagnostics.CreateScope("NetAppVolumeResource.SplitCloneFromParent"); scope.Start(); try { - var response = _netAppBackupVaultBackupBackupsRestClient.GetVolumeLatestRestoreStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - return response; + var response = _netAppVolumeVolumesRestClient.SplitCloneFromParent(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetAppArmOperation(new NetAppVolumeOperationSource(Client), _netAppVolumeVolumesClientDiagnostics, Pipeline, _netAppVolumeVolumesRestClient.CreateSplitCloneFromParentRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; } catch (Exception e) { @@ -2752,7 +2603,7 @@ public virtual Response GetVolumeLatestRestoreStatusBackup( /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// @@ -2794,7 +2645,7 @@ public virtual async Task MigrateBackupsBackupsUnderVolumeAsync(Wa /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// @@ -2836,7 +2687,7 @@ public virtual ArmOperation MigrateBackupsBackupsUnderVolume(WaitUntil waitUntil /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2898,7 +2749,7 @@ public virtual async Task> AddTagAsync(string key /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -2960,7 +2811,7 @@ public virtual Response AddTag(string key, string value, C /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -3017,7 +2868,7 @@ public virtual async Task> SetTagsAsync(IDictiona /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -3074,7 +2925,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -3134,7 +2985,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotCollection.cs index 0cfdcd542337..64477096027f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string snapshotName, C /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -265,7 +265,8 @@ public virtual Response Get(string snapshotName, C public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeSnapshotSnapshotsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new NetAppVolumeSnapshotResource(Client, NetAppVolumeSnapshotData.DeserializeNetAppVolumeSnapshotData(e)), _netAppVolumeSnapshotSnapshotsClientDiagnostics, Pipeline, "NetAppVolumeSnapshotCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppVolumeSnapshotSnapshotsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetAppVolumeSnapshotResource(Client, NetAppVolumeSnapshotData.DeserializeNetAppVolumeSnapshotData(e)), _netAppVolumeSnapshotSnapshotsClientDiagnostics, Pipeline, "NetAppVolumeSnapshotCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -281,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -294,7 +295,8 @@ public virtual AsyncPageable GetAllAsync(Cancellat public virtual Pageable GetAll(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _netAppVolumeSnapshotSnapshotsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => new NetAppVolumeSnapshotResource(Client, NetAppVolumeSnapshotData.DeserializeNetAppVolumeSnapshotData(e)), _netAppVolumeSnapshotSnapshotsClientDiagnostics, Pipeline, "NetAppVolumeSnapshotCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _netAppVolumeSnapshotSnapshotsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetAppVolumeSnapshotResource(Client, NetAppVolumeSnapshotData.DeserializeNetAppVolumeSnapshotData(e)), _netAppVolumeSnapshotSnapshotsClientDiagnostics, Pipeline, "NetAppVolumeSnapshotCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -310,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -353,7 +355,7 @@ public virtual async Task> ExistsAsync(string snapshotName, Cance /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -396,7 +398,7 @@ public virtual Response Exists(string snapshotName, CancellationToken canc /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -441,7 +443,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotData.cs index 0a10393e5064..0473eda7973c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotData.cs @@ -15,6 +15,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the NetAppVolumeSnapshot data model. /// Snapshot of a Volume + /// Serialized Name: Snapshot /// public partial class NetAppVolumeSnapshotData : ResourceData { @@ -51,7 +52,10 @@ public partial class NetAppVolumeSnapshotData : ResourceData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Resource location. + /// + /// Resource location + /// Serialized Name: Snapshot.location + /// public NetAppVolumeSnapshotData(AzureLocation location) { Location = location; @@ -62,10 +66,22 @@ public NetAppVolumeSnapshotData(AzureLocation location) /// The name. /// The resourceType. /// The systemData. - /// Resource location. - /// UUID v4 used to identify the Snapshot. - /// The creation date of the snapshot. - /// Azure lifecycle management. + /// + /// Resource location + /// Serialized Name: Snapshot.location + /// + /// + /// UUID v4 used to identify the Snapshot + /// Serialized Name: Snapshot.properties.snapshotId + /// + /// + /// The creation date of the snapshot + /// Serialized Name: Snapshot.properties.created + /// + /// + /// Azure lifecycle management + /// Serialized Name: Snapshot.properties.provisioningState + /// /// Keeps track of any properties unknown to the library. internal NetAppVolumeSnapshotData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation location, string snapshotId, DateTimeOffset? created, string provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -81,13 +97,25 @@ internal NetAppVolumeSnapshotData() { } - /// Resource location. + /// + /// Resource location + /// Serialized Name: Snapshot.location + /// public AzureLocation Location { get; set; } - /// UUID v4 used to identify the Snapshot. + /// + /// UUID v4 used to identify the Snapshot + /// Serialized Name: Snapshot.properties.snapshotId + /// public string SnapshotId { get; } - /// The creation date of the snapshot. + /// + /// The creation date of the snapshot + /// Serialized Name: Snapshot.properties.created + /// public DateTimeOffset? Created { get; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: Snapshot.properties.provisioningState + /// public string ProvisioningState { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotResource.cs index 9ddbbdc572e0..bd49d82d3776 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/NetAppVolumeSnapshotResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual ArmOperation Update(WaitUntil waitU /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual async Task RestoreFilesAsync(WaitUntil waitUntil, N /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResource.cs index aa76c3cd9b34..8acf9a7cc8e2 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(CancellationTok /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResourceCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResourceCollection.cs index 2f59b4b13a9e..1b08ace36728 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResourceCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResourceCollection.cs @@ -68,7 +68,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -108,7 +108,7 @@ public virtual async Task> GetAsync(CancellationTok /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual Response Get(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -178,7 +178,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -246,7 +246,7 @@ public virtual async Task> ExistsAsync(CancellationToken cancella /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual Response Exists(CancellationToken cancellationToken = defau /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -324,7 +324,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResourceData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResourceData.cs index 4094a23f3bcb..77a2bbca4cf8 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResourceData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RegionInfoResourceData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the RegionInfoResource data model. /// Information regarding regionInfo Item. + /// Serialized Name: RegionInfoResource /// public partial class RegionInfoResourceData : ResourceData { @@ -62,8 +63,14 @@ public RegionInfoResourceData() /// The name. /// The resourceType. /// The systemData. - /// Provides storage to network proximity information in the region. - /// Provides logical availability zone mappings for the subscription for a region. + /// + /// Provides storage to network proximity information in the region. + /// Serialized Name: RegionInfoResource.properties.storageToNetworkProximity + /// + /// + /// Provides logical availability zone mappings for the subscription for a region. + /// Serialized Name: RegionInfoResource.properties.availabilityZoneMappings + /// /// Keeps track of any properties unknown to the library. internal RegionInfoResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RegionStorageToNetworkProximity? storageToNetworkProximity, IList availabilityZoneMappings, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -72,9 +79,15 @@ internal RegionInfoResourceData(ResourceIdentifier id, string name, ResourceType _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Provides storage to network proximity information in the region. + /// + /// Provides storage to network proximity information in the region. + /// Serialized Name: RegionInfoResource.properties.storageToNetworkProximity + /// public RegionStorageToNetworkProximity? StorageToNetworkProximity { get; set; } - /// Provides logical availability zone mappings for the subscription for a region. + /// + /// Provides logical availability zone mappings for the subscription for a region. + /// Serialized Name: RegionInfoResource.properties.availabilityZoneMappings + /// public IList AvailabilityZoneMappings { get; } } } 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 477d7c330efc..3a640ff1caaa 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountsRestOperations.cs @@ -32,7 +32,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 ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -388,7 +388,7 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } - internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountPatch patch) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -402,11 +402,11 @@ internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Delete; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -418,61 +418,69 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } - /// Delete the specified NetApp account. + /// Patch the specified NetApp account. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. + /// NetApp Account object supplied in the body of the operation. /// The cancellation token to use. - /// , or is null. + /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, accountName); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, accountName, patch); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: - case 204: return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Delete the specified NetApp account. + /// Patch the specified NetApp account. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. + /// NetApp Account object supplied in the body of the operation. /// The cancellation token to use. - /// , or is null. + /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, accountName); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, accountName, patch); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: - case 204: return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountPatch patch) + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -486,11 +494,11 @@ internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountPatch patch) + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Patch; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -502,69 +510,61 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); - request.Content = content; _userAgent.Apply(message); return message; } - /// Patch the specified NetApp account. + /// Delete the specified NetApp account. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. - /// NetApp Account object supplied in the body of the operation. /// The cancellation token to use. - /// , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountPatch patch, CancellationToken cancellationToken = default) + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, accountName, patch); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, accountName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 200: case 202: + case 204: return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Patch the specified NetApp account. + /// Delete the specified NetApp account. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. - /// NetApp Account object supplied in the body of the operation. /// The cancellation token to use. - /// , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountPatch patch, CancellationToken cancellationToken = default) + public Response Delete(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, accountName, patch); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, accountName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 200: case 202: + case 204: return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateRenewCredentialsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + internal RequestUriBuilder CreateChangeKeyVaultRequestUri(string subscriptionId, string resourceGroupName, string accountName, NetAppChangeKeyVault body) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -574,12 +574,12 @@ internal RequestUriBuilder CreateRenewCredentialsRequestUri(string subscriptionI uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); uri.AppendPath(accountName, true); - uri.AppendPath("/renewCredentials", false); + uri.AppendPath("/changeKeyVault", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateRenewCredentialsRequest(string subscriptionId, string resourceGroupName, string accountName) + internal HttpMessage CreateChangeKeyVaultRequest(string subscriptionId, string resourceGroupName, string accountName, NetAppChangeKeyVault body) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -592,32 +592,39 @@ internal HttpMessage CreateRenewCredentialsRequest(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); uri.AppendPath(accountName, true); - uri.AppendPath("/renewCredentials", false); + uri.AppendPath("/changeKeyVault", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + if (body != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(body, ModelSerializationExtensions.WireOptions); + request.Content = content; + } _userAgent.Apply(message); return message; } - /// Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. + /// Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. + /// The required parameters to perform encryption migration. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task RenewCredentialsAsync(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + public async Task ChangeKeyVaultAsync(string subscriptionId, string resourceGroupName, string accountName, NetAppChangeKeyVault body = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - using var message = CreateRenewCredentialsRequest(subscriptionId, resourceGroupName, accountName); + using var message = CreateChangeKeyVaultRequest(subscriptionId, resourceGroupName, accountName, body); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 200: case 202: return message.Response; default: @@ -625,24 +632,24 @@ public async Task RenewCredentialsAsync(string subscriptionId, string } } - /// Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. + /// Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. + /// The required parameters to perform encryption migration. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response RenewCredentials(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + public Response ChangeKeyVault(string subscriptionId, string resourceGroupName, string accountName, NetAppChangeKeyVault body = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - using var message = CreateRenewCredentialsRequest(subscriptionId, resourceGroupName, accountName); + using var message = CreateChangeKeyVaultRequest(subscriptionId, resourceGroupName, accountName, body); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 200: case 202: return message.Response; default: @@ -650,7 +657,7 @@ public Response RenewCredentials(string subscriptionId, string resourceGroupName } } - internal RequestUriBuilder CreateTransitionToCmkRequestUri(string subscriptionId, string resourceGroupName, string accountName, NetAppEncryptionTransitionContent content) + internal RequestUriBuilder CreateGetChangeKeyVaultInformationRequestUri(string subscriptionId, string resourceGroupName, string accountName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -660,12 +667,12 @@ internal RequestUriBuilder CreateTransitionToCmkRequestUri(string subscriptionId uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); uri.AppendPath(accountName, true); - uri.AppendPath("/transitiontocmk", false); + uri.AppendPath("/getKeyVaultStatus", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateTransitionToCmkRequest(string subscriptionId, string resourceGroupName, string accountName, NetAppEncryptionTransitionContent content) + internal HttpMessage CreateGetChangeKeyVaultInformationRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -678,39 +685,32 @@ internal HttpMessage CreateTransitionToCmkRequest(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); uri.AppendPath(accountName, true); - uri.AppendPath("/transitiontocmk", false); + uri.AppendPath("/getKeyVaultStatus", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - if (content != null) - { - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; - } _userAgent.Apply(message); return message; } - /// Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. + /// Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. - /// The required parameters to perform encryption transition. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task TransitionToCmkAsync(string subscriptionId, string resourceGroupName, string accountName, NetAppEncryptionTransitionContent content = null, CancellationToken cancellationToken = default) + public async Task GetChangeKeyVaultInformationAsync(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - using var message = CreateTransitionToCmkRequest(subscriptionId, resourceGroupName, accountName, content); + using var message = CreateGetChangeKeyVaultInformationRequest(subscriptionId, resourceGroupName, accountName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: return message.Response; default: @@ -718,24 +718,24 @@ public async Task TransitionToCmkAsync(string subscriptionId, string r } } - /// Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. + /// Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. - /// The required parameters to perform encryption transition. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response TransitionToCmk(string subscriptionId, string resourceGroupName, string accountName, NetAppEncryptionTransitionContent content = null, CancellationToken cancellationToken = default) + public Response GetChangeKeyVaultInformation(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - using var message = CreateTransitionToCmkRequest(subscriptionId, resourceGroupName, accountName, content); + using var message = CreateGetChangeKeyVaultInformationRequest(subscriptionId, resourceGroupName, accountName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: return message.Response; default: @@ -743,7 +743,7 @@ public Response TransitionToCmk(string subscriptionId, string resourceGroupName, } } - internal RequestUriBuilder CreateGetChangeKeyVaultInformationRequestUri(string subscriptionId, string resourceGroupName, string accountName) + internal RequestUriBuilder CreateRenewCredentialsRequestUri(string subscriptionId, string resourceGroupName, string accountName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -753,12 +753,12 @@ internal RequestUriBuilder CreateGetChangeKeyVaultInformationRequestUri(string s uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); uri.AppendPath(accountName, true); - uri.AppendPath("/getKeyVaultStatus", false); + uri.AppendPath("/renewCredentials", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetChangeKeyVaultInformationRequest(string subscriptionId, string resourceGroupName, string accountName) + internal HttpMessage CreateRenewCredentialsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -771,7 +771,7 @@ internal HttpMessage CreateGetChangeKeyVaultInformationRequest(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); uri.AppendPath(accountName, true); - uri.AppendPath("/getKeyVaultStatus", false); + uri.AppendPath("/renewCredentials", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -779,20 +779,20 @@ internal HttpMessage CreateGetChangeKeyVaultInformationRequest(string subscripti return message; } - /// Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. + /// Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task GetChangeKeyVaultInformationAsync(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + public async Task RenewCredentialsAsync(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - using var message = CreateGetChangeKeyVaultInformationRequest(subscriptionId, resourceGroupName, accountName); + using var message = CreateRenewCredentialsRequest(subscriptionId, resourceGroupName, accountName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -804,20 +804,20 @@ public async Task GetChangeKeyVaultInformationAsync(string subscriptio } } - /// Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. + /// Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response GetChangeKeyVaultInformation(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + public Response RenewCredentials(string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - using var message = CreateGetChangeKeyVaultInformationRequest(subscriptionId, resourceGroupName, accountName); + using var message = CreateRenewCredentialsRequest(subscriptionId, resourceGroupName, accountName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -829,7 +829,7 @@ public Response GetChangeKeyVaultInformation(string subscriptionId, string resou } } - internal RequestUriBuilder CreateChangeKeyVaultRequestUri(string subscriptionId, string resourceGroupName, string accountName, NetAppChangeKeyVault body) + internal RequestUriBuilder CreateTransitionToCmkRequestUri(string subscriptionId, string resourceGroupName, string accountName, NetAppEncryptionTransitionContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -839,12 +839,12 @@ internal RequestUriBuilder CreateChangeKeyVaultRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); uri.AppendPath(accountName, true); - uri.AppendPath("/changeKeyVault", false); + uri.AppendPath("/transitiontocmk", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateChangeKeyVaultRequest(string subscriptionId, string resourceGroupName, string accountName, NetAppChangeKeyVault body) + internal HttpMessage CreateTransitionToCmkRequest(string subscriptionId, string resourceGroupName, string accountName, NetAppEncryptionTransitionContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -857,36 +857,36 @@ internal HttpMessage CreateChangeKeyVaultRequest(string subscriptionId, string r uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); uri.AppendPath(accountName, true); - uri.AppendPath("/changeKeyVault", false); + uri.AppendPath("/transitiontocmk", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - if (body != null) + if (content != null) { request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(body, ModelSerializationExtensions.WireOptions); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; } _userAgent.Apply(message); return message; } - /// Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + /// Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. - /// The required parameters to perform encryption migration. + /// The required parameters to perform encryption transition. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task ChangeKeyVaultAsync(string subscriptionId, string resourceGroupName, string accountName, NetAppChangeKeyVault body = null, CancellationToken cancellationToken = default) + public async Task TransitionToCmkAsync(string subscriptionId, string resourceGroupName, string accountName, NetAppEncryptionTransitionContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - using var message = CreateChangeKeyVaultRequest(subscriptionId, resourceGroupName, accountName, body); + using var message = CreateTransitionToCmkRequest(subscriptionId, resourceGroupName, accountName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -897,21 +897,21 @@ public async Task ChangeKeyVaultAsync(string subscriptionId, string re } } - /// Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + /// Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. - /// The required parameters to perform encryption migration. + /// The required parameters to perform encryption transition. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ChangeKeyVault(string subscriptionId, string resourceGroupName, string accountName, NetAppChangeKeyVault body = null, CancellationToken cancellationToken = default) + public Response TransitionToCmk(string subscriptionId, string resourceGroupName, string accountName, NetAppEncryptionTransitionContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - using var message = CreateChangeKeyVaultRequest(subscriptionId, resourceGroupName, accountName, body); + using var message = CreateTransitionToCmkRequest(subscriptionId, resourceGroupName, accountName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { 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 5f546e001e1c..59f0d7e8c2c1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupPoliciesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public BackupPoliciesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -529,5 +529,89 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a throw new RequestFailedException(message.Response); } } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List backup policies for Netapp Account. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + BackupPoliciesList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = BackupPoliciesList.DeserializeBackupPoliciesList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List backup policies for Netapp Account. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + BackupPoliciesList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = BackupPoliciesList.DeserializeBackupPoliciesList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupVaultsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupVaultsRestOperations.cs index 316e1b913641..65edb984c879 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupVaultsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupVaultsRestOperations.cs @@ -32,7 +32,7 @@ public BackupVaultsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-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 723453069574..96c225703580 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs @@ -32,230 +32,10 @@ public BackupsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateGetLatestStatusRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) - { - 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("/latestBackupStatus/current", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetLatestStatusRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/latestBackupStatus/current", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Get the latest status of the backup for a volume. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetLatestStatusAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateGetLatestStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - NetAppVolumeBackupStatus value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NetAppVolumeBackupStatus.DeserializeNetAppVolumeBackupStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Get the latest status of the backup for a volume. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response GetLatestStatus(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateGetLatestStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - NetAppVolumeBackupStatus value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NetAppVolumeBackupStatus.DeserializeNetAppVolumeBackupStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetVolumeLatestRestoreStatusRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) - { - 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("/latestRestoreStatus/current", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetVolumeLatestRestoreStatusRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/latestRestoreStatus/current", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Get the latest status of the restore for a volume. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetVolumeLatestRestoreStatusAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateGetVolumeLatestRestoreStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - NetAppRestoreStatus value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NetAppRestoreStatus.DeserializeNetAppRestoreStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Get the latest status of the restore for a volume. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response GetVolumeLatestRestoreStatus(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateGetVolumeLatestRestoreStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - NetAppRestoreStatus value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NetAppRestoreStatus.DeserializeNetAppRestoreStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - internal RequestUriBuilder CreateListByVaultRequestUri(string subscriptionId, string resourceGroupName, string accountName, string backupVaultName, string filter) { var uri = new RawRequestUriBuilder(); @@ -269,11 +49,11 @@ internal RequestUriBuilder CreateListByVaultRequestUri(string subscriptionId, st uri.AppendPath("/backupVaults/", false); uri.AppendPath(backupVaultName, true); uri.AppendPath("/backups", false); + uri.AppendQuery("api-version", _apiVersion, true); if (filter != null) { uri.AppendQuery("$filter", filter, true); } - uri.AppendQuery("api-version", _apiVersion, true); return uri; } @@ -769,6 +549,226 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetLatestStatusRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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("/latestBackupStatus/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetLatestStatusRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/latestBackupStatus/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get the latest status of the backup for a volume. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetLatestStatusAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreateGetLatestStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NetAppVolumeBackupStatus value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = NetAppVolumeBackupStatus.DeserializeNetAppVolumeBackupStatus(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get the latest status of the backup for a volume. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response GetLatestStatus(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreateGetLatestStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NetAppVolumeBackupStatus value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = NetAppVolumeBackupStatus.DeserializeNetAppVolumeBackupStatus(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetVolumeLatestRestoreStatusRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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("/latestRestoreStatus/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetVolumeLatestRestoreStatusRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/latestRestoreStatus/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get the latest status of the restore for a volume. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetVolumeLatestRestoreStatusAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreateGetVolumeLatestRestoreStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NetAppRestoreStatus value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = NetAppRestoreStatus.DeserializeNetAppRestoreStatus(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get the latest status of the restore for a volume. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response GetVolumeLatestRestoreStatus(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreateGetVolumeLatestRestoreStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NetAppRestoreStatus value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = NetAppRestoreStatus.DeserializeNetAppRestoreStatus(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateListByVaultNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string backupVaultName, string filter) { var uri = new RawRequestUriBuilder(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderAccountRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderAccountRestOperations.cs index c509516e5494..c6c8c7cafa2a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderAccountRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderAccountRestOperations.cs @@ -31,7 +31,7 @@ public BackupsUnderAccountRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderBackupVaultRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderBackupVaultRestOperations.cs index 859d3bd05461..a52a788b9754 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderBackupVaultRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderBackupVaultRestOperations.cs @@ -31,7 +31,7 @@ public BackupsUnderBackupVaultRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderVolumeRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderVolumeRestOperations.cs index 191b35942b2c..9d0758dd4fe2 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderVolumeRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsUnderVolumeRestOperations.cs @@ -31,7 +31,7 @@ public BackupsUnderVolumeRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BucketsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BucketsRestOperations.cs deleted file mode 100644 index e7946b672a5c..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BucketsRestOperations.cs +++ /dev/null @@ -1,827 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.NetApp.Models; - -namespace Azure.ResourceManager.NetApp -{ - internal partial class BucketsRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of BucketsRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public BucketsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) - { - 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("/buckets", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/buckets", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to the volume data contained in those buckets. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateListRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - NetAppBucketList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NetAppBucketList.DeserializeNetAppBucketList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to the volume data contained in those buckets. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateListRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - NetAppBucketList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NetAppBucketList.DeserializeNetAppBucketList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName) - { - 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("/buckets/", false); - uri.AppendPath(bucketName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/buckets/", false); - uri.AppendPath(bucketName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the bucket. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - NetAppBucketData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NetAppBucketData.DeserializeNetAppBucketData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((NetAppBucketData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the bucket. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - NetAppBucketData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NetAppBucketData.DeserializeNetAppBucketData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((NetAppBucketData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketData data) - { - 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("/buckets/", false); - uri.AppendPath(bucketName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/buckets/", false); - uri.AppendPath(bucketName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the bucket. - /// The bucket details including user details, and the volume path that should be mounted inside the bucket. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName, data); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 201: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the bucket. - /// The bucket details including user details, and the volume path that should be mounted inside the bucket. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName, data); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 201: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketPatch patch) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/buckets/", false); - uri.AppendPath(bucketName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketPatch patch) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Patch; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/buckets/", false); - uri.AppendPath(bucketName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Updates the details of a volume bucket. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the bucket. - /// The bucket details including user details, and the volume path that should be mounted inside the bucket. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - Argument.AssertNotNull(patch, nameof(patch)); - - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName, patch); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Updates the details of a volume bucket. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the bucket. - /// The bucket details including user details, and the volume path that should be mounted inside the bucket. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - Argument.AssertNotNull(patch, nameof(patch)); - - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName, patch); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName) - { - 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("/buckets/", false); - uri.AppendPath(bucketName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/buckets/", false); - uri.AppendPath(bucketName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Delete a volume's bucket. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the bucket. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Delete a volume's bucket. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the bucket. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGenerateCredentialsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketCredentialsExpiry body) - { - 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("/buckets/", false); - uri.AppendPath(bucketName, true); - uri.AppendPath("/generateCredentials", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGenerateCredentialsRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketCredentialsExpiry body) - { - 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("/buckets/", false); - uri.AppendPath(bucketName, true); - uri.AppendPath("/generateCredentials", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(body, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date and time of key pair (in UTC). - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the bucket. - /// The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public async Task> GenerateCredentialsAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketCredentialsExpiry body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - Argument.AssertNotNull(body, nameof(body)); - - using var message = CreateGenerateCredentialsRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName, body); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - NetAppBucketGenerateCredentials value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NetAppBucketGenerateCredentials.DeserializeNetAppBucketGenerateCredentials(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date and time of key pair (in UTC). - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The name of the bucket. - /// The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , or is an empty string, and was expected to be non-empty. - public Response GenerateCredentials(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string bucketName, NetAppBucketCredentialsExpiry body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNullOrEmpty(bucketName, nameof(bucketName)); - Argument.AssertNotNull(body, nameof(body)); - - using var message = CreateGenerateCredentialsRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName, body); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - NetAppBucketGenerateCredentials value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NetAppBucketGenerateCredentials.DeserializeNetAppBucketGenerateCredentials(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to the volume data contained in those buckets. - /// The URL to the next page of results. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName, volumeName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - NetAppBucketList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NetAppBucketList.DeserializeNetAppBucketList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to the volume data contained in those buckets. - /// The URL to the next page of results. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the NetApp account. - /// The name of the capacity pool. - /// The name of the volume. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); - Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName, volumeName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - NetAppBucketList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NetAppBucketList.DeserializeNetAppBucketList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsAccountRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsAccountRestOperations.cs index de4f5a6db29f..6bb4cb6ca2b1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsAccountRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsAccountRestOperations.cs @@ -32,7 +32,7 @@ public NetAppResourceQuotaLimitsAccountRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-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 08e064732b16..7c83f09b3a37 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsRestOperations.cs @@ -32,7 +32,7 @@ public NetAppResourceQuotaLimitsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -154,7 +154,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation locat return message; } - /// Get the default and current subscription quota limit. + /// Get the default and current quota limit. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. /// The name of the Quota Limit. @@ -182,7 +182,7 @@ public async Task> GetAsync(string subscri } } - /// Get the default and current subscription quota limit. + /// Get the default and current quota limit. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. /// The name of the Quota Limit. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRegionInfosRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRegionInfosRestOperations.cs index eae2857f2694..1b2e65d5e8fc 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRegionInfosRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRegionInfosRestOperations.cs @@ -32,7 +32,7 @@ public NetAppResourceRegionInfosRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-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 60742e66bde1..9e90a442ff0e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRestOperations.cs @@ -32,11 +32,11 @@ public NetAppResourceRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, NetAppNameAvailabilityContent content) + internal RequestUriBuilder CreateCheckFilePathAvailabilityRequestUri(string subscriptionId, AzureLocation location, NetAppFilePathAvailabilityContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,12 +44,12 @@ internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscrip uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/checkNameAvailability", false); + uri.AppendPath("/checkFilePathAvailability", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, NetAppNameAvailabilityContent content) + internal HttpMessage CreateCheckFilePathAvailabilityRequest(string subscriptionId, AzureLocation location, NetAppFilePathAvailabilityContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -60,7 +60,7 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, A uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/checkNameAvailability", false); + uri.AppendPath("/checkFilePathAvailability", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -72,19 +72,19 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, A return message; } - /// Check if a resource name is available. + /// Check if a file path is available. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. - /// Name availability request. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> CheckNameAvailabilityAsync(string subscriptionId, AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) + public async Task> CheckFilePathAvailabilityAsync(string subscriptionId, AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateCheckNameAvailabilityRequest(subscriptionId, location, content); + using var message = CreateCheckFilePathAvailabilityRequest(subscriptionId, location, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -100,19 +100,19 @@ public async Task> CheckNameAvailability } } - /// Check if a resource name is available. + /// Check if a file path is available. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. - /// Name availability request. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response CheckNameAvailability(string subscriptionId, AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) + public Response CheckFilePathAvailability(string subscriptionId, AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateCheckNameAvailabilityRequest(subscriptionId, location, content); + using var message = CreateCheckFilePathAvailabilityRequest(subscriptionId, location, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -128,7 +128,7 @@ public Response CheckNameAvailability(string subs } } - internal RequestUriBuilder CreateCheckFilePathAvailabilityRequestUri(string subscriptionId, AzureLocation location, NetAppFilePathAvailabilityContent content) + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, NetAppNameAvailabilityContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -136,12 +136,12 @@ internal RequestUriBuilder CreateCheckFilePathAvailabilityRequestUri(string subs uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/checkFilePathAvailability", false); + uri.AppendPath("/checkNameAvailability", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCheckFilePathAvailabilityRequest(string subscriptionId, AzureLocation location, NetAppFilePathAvailabilityContent content) + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, NetAppNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -152,7 +152,7 @@ internal HttpMessage CreateCheckFilePathAvailabilityRequest(string subscriptionI uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/checkFilePathAvailability", false); + uri.AppendPath("/checkNameAvailability", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -164,19 +164,19 @@ internal HttpMessage CreateCheckFilePathAvailabilityRequest(string subscriptionI return message; } - /// Check if a file path is available. + /// Check if a resource name is available. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. - /// File path availability request. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> CheckFilePathAvailabilityAsync(string subscriptionId, AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) + public async Task> CheckNameAvailabilityAsync(string subscriptionId, AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateCheckFilePathAvailabilityRequest(subscriptionId, location, content); + using var message = CreateCheckNameAvailabilityRequest(subscriptionId, location, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -192,19 +192,19 @@ public async Task> CheckFilePathAvailabi } } - /// Check if a file path is available. + /// Check if a resource name is available. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. - /// File path availability request. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response CheckFilePathAvailability(string subscriptionId, AzureLocation location, NetAppFilePathAvailabilityContent content, CancellationToken cancellationToken = default) + public Response CheckNameAvailability(string subscriptionId, AzureLocation location, NetAppNameAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateCheckFilePathAvailabilityRequest(subscriptionId, location, content); + using var message = CreateCheckNameAvailabilityRequest(subscriptionId, location, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -259,7 +259,7 @@ internal HttpMessage CreateCheckQuotaAvailabilityRequest(string subscriptionId, /// Check if a quota is available. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. - /// Quota availability request. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -287,7 +287,7 @@ public async Task> CheckQuotaAvailabilit /// Check if a quota is available. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. - /// Quota availability request. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -312,7 +312,7 @@ public Response CheckQuotaAvailability(string sub } } - internal RequestUriBuilder CreateQueryRegionInfoRequestUri(string subscriptionId, AzureLocation location) + internal RequestUriBuilder CreateQueryNetworkSiblingSetRequestUri(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -320,49 +320,55 @@ internal RequestUriBuilder CreateQueryRegionInfoRequestUri(string subscriptionId uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/regionInfo", false); + uri.AppendPath("/queryNetworkSiblingSet", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateQueryRegionInfoRequest(string subscriptionId, AzureLocation location) + internal HttpMessage CreateQueryNetworkSiblingSetRequest(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/regionInfo", false); + uri.AppendPath("/queryNetworkSiblingSet", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; _userAgent.Apply(message); return message; } - /// Provides storage to network proximity and logical zone mapping information. + /// Get details of the specified network sibling set. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. + /// The request body. /// The cancellation token to use. - /// is null. + /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> QueryRegionInfoAsync(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) + public async Task> QueryNetworkSiblingSetAsync(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateQueryRegionInfoRequest(subscriptionId, location); + using var message = CreateQueryNetworkSiblingSetRequest(subscriptionId, location, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - NetAppRegionInfo value = default; + NetworkSiblingSet value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NetAppRegionInfo.DeserializeNetAppRegionInfo(document.RootElement); + value = NetworkSiblingSet.DeserializeNetworkSiblingSet(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -370,25 +376,27 @@ public async Task> QueryRegionInfoAsync(string subscr } } - /// Provides storage to network proximity and logical zone mapping information. + /// Get details of the specified network sibling set. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. + /// The request body. /// The cancellation token to use. - /// is null. + /// or is null. /// is an empty string, and was expected to be non-empty. - public Response QueryRegionInfo(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) + public Response QueryNetworkSiblingSet(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateQueryRegionInfoRequest(subscriptionId, location); + using var message = CreateQueryNetworkSiblingSetRequest(subscriptionId, location, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - NetAppRegionInfo value = default; + NetworkSiblingSet value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NetAppRegionInfo.DeserializeNetAppRegionInfo(document.RootElement); + value = NetworkSiblingSet.DeserializeNetworkSiblingSet(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -396,7 +404,7 @@ public Response QueryRegionInfo(string subscriptionId, AzureLo } } - internal RequestUriBuilder CreateQueryNetworkSiblingSetRequestUri(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content) + internal RequestUriBuilder CreateQueryRegionInfoRequestUri(string subscriptionId, AzureLocation location) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -404,55 +412,49 @@ internal RequestUriBuilder CreateQueryNetworkSiblingSetRequestUri(string subscri uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/queryNetworkSiblingSet", false); + uri.AppendPath("/regionInfo", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateQueryNetworkSiblingSetRequest(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content) + internal HttpMessage CreateQueryRegionInfoRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Post; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/queryNetworkSiblingSet", false); + uri.AppendPath("/regionInfo", 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, ModelSerializationExtensions.WireOptions); - request.Content = content0; _userAgent.Apply(message); return message; } - /// Get details of the specified network sibling set. + /// Provides storage to network proximity and logical zone mapping information. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. - /// Network sibling set to query. /// The cancellation token to use. - /// or is null. + /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> QueryNetworkSiblingSetAsync(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + public async Task> QueryRegionInfoAsync(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(content, nameof(content)); - using var message = CreateQueryNetworkSiblingSetRequest(subscriptionId, location, content); + using var message = CreateQueryRegionInfoRequest(subscriptionId, location); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - NetworkSiblingSet value = default; + NetAppRegionInfo value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NetworkSiblingSet.DeserializeNetworkSiblingSet(document.RootElement); + value = NetAppRegionInfo.DeserializeNetAppRegionInfo(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -460,27 +462,25 @@ public async Task> QueryNetworkSiblingSetAsync(strin } } - /// Get details of the specified network sibling set. + /// Provides storage to network proximity and logical zone mapping information. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. - /// Network sibling set to query. /// The cancellation token to use. - /// or is null. + /// is null. /// is an empty string, and was expected to be non-empty. - public Response QueryNetworkSiblingSet(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content, CancellationToken cancellationToken = default) + public Response QueryRegionInfo(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(content, nameof(content)); - using var message = CreateQueryNetworkSiblingSetRequest(subscriptionId, location, content); + using var message = CreateQueryRegionInfoRequest(subscriptionId, location); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - NetworkSiblingSet value = default; + NetAppRegionInfo value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NetworkSiblingSet.DeserializeNetworkSiblingSet(document.RootElement); + value = NetAppRegionInfo.DeserializeNetAppRegionInfo(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -527,7 +527,7 @@ internal HttpMessage CreateUpdateNetworkSiblingSetRequest(string subscriptionId, /// Update the network features of the specified network sibling set. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. - /// Update for the specified network sibling set. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -551,7 +551,7 @@ public async Task UpdateNetworkSiblingSetAsync(string subscriptionId, /// Update the network features of the specified network sibling set. /// The ID of the target subscription. The value must be an UUID. /// The name of the Azure region. - /// Update for the specified network sibling set. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceUsagesRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceUsagesRestOperations.cs index 1a006575bc0a..24c20ffd600b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceUsagesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceUsagesRestOperations.cs @@ -32,7 +32,7 @@ public NetAppResourceUsagesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-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 ef2f3f72eabe..f42e8e89877d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/PoolsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/PoolsRestOperations.cs @@ -32,7 +32,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 ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-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 37fd378dac05..4d85bf41e2cd 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotPoliciesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public SnapshotPoliciesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -639,5 +639,89 @@ public Response ListVolumes(string subscriptionId, str throw new RequestFailedException(message.Response); } } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List snapshot policy. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SnapshotPoliciesList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = SnapshotPoliciesList.DeserializeSnapshotPoliciesList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List snapshot policy. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SnapshotPoliciesList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = SnapshotPoliciesList.DeserializeSnapshotPoliciesList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } } } 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 782d2abc3ac0..54cff2efdb2d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotsRestOperations.cs @@ -32,7 +32,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 ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -341,6 +341,7 @@ public async Task CreateAsync(string subscriptionId, string resourceGr await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 201: case 202: return message.Response; @@ -374,6 +375,7 @@ public Response Create(string subscriptionId, string resourceGroupName, string a _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 201: case 202: return message.Response; @@ -609,5 +611,97 @@ public Response RestoreFiles(string subscriptionId, string resourceGroupName, st throw new RequestFailedException(message.Response); } } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List all snapshots associated with the volume. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName, volumeName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SnapshotsList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = SnapshotsList.DeserializeSnapshotsList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List all snapshots associated with the volume. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName, volumeName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SnapshotsList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = SnapshotsList.DeserializeSnapshotsList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } } } 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 dbc97f031fc5..fb48e08a61a6 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SubvolumesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SubvolumesRestOperations.cs @@ -32,7 +32,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 ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-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 a0841756eeda..3570d5594f27 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeGroupsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeGroupsRestOperations.cs @@ -32,7 +32,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 ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -297,6 +297,7 @@ public async Task CreateAsync(string subscriptionId, string resourceGr await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 201: return message.Response; default: @@ -325,6 +326,7 @@ public Response Create(string subscriptionId, string resourceGroupName, string a _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 201: return message.Response; default: @@ -425,5 +427,89 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a throw new RequestFailedException(message.Response); } } + + internal RequestUriBuilder CreateListByNetAppAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByNetAppAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List all volume groups for given account. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByNetAppAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + + using var message = CreateListByNetAppAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + VolumeGroupList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = VolumeGroupList.DeserializeVolumeGroupList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List all volume groups for given account. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByNetAppAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string accountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + + using var message = CreateListByNetAppAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + VolumeGroupList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = VolumeGroupList.DeserializeVolumeGroupList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } } } 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 8feec21e1a98..222e92aa0899 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeQuotaRulesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeQuotaRulesRestOperations.cs @@ -32,7 +32,7 @@ public VolumeQuotaRulesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -607,5 +607,97 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a throw new RequestFailedException(message.Response); } } + + internal RequestUriBuilder CreateListByVolumeNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByVolumeNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List all quota rules associated with the volume. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListByVolumeNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreateListByVolumeNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName, volumeName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + VolumeQuotaRulesList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = VolumeQuotaRulesList.DeserializeVolumeQuotaRulesList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List all quota rules associated with the volume. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the NetApp account. + /// The name of the capacity pool. + /// The name of the volume. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response ListByVolumeNextPage(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); + + using var message = CreateListByVolumeNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName, volumeName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + VolumeQuotaRulesList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = VolumeQuotaRulesList.DeserializeVolumeQuotaRulesList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } } } 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 a51a992913fe..ca250712249f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumesRestOperations.cs @@ -32,7 +32,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 ?? "2025-07-01-preview"; + _apiVersion = apiVersion ?? "2025-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -482,11 +482,11 @@ internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); if (forceDelete != null) { uri.AppendQuery("forceDelete", forceDelete.Value, true); } - uri.AppendQuery("api-version", _apiVersion, true); return uri; } @@ -507,11 +507,11 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); if (forceDelete != null) { uri.AppendQuery("forceDelete", forceDelete.Value, true); } - uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -578,7 +578,7 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } - internal RequestUriBuilder CreatePopulateAvailabilityZoneRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreateAuthorizeExternalReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -592,12 +592,12 @@ internal RequestUriBuilder CreatePopulateAvailabilityZoneRequestUri(string subsc uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/populateAvailabilityZone", false); + uri.AppendPath("/authorizeExternalReplication", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreatePopulateAvailabilityZoneRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreateAuthorizeExternalReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -614,7 +614,7 @@ internal HttpMessage CreatePopulateAvailabilityZoneRequest(string subscriptionId uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/populateAvailabilityZone", false); + uri.AppendPath("/authorizeExternalReplication", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -622,7 +622,7 @@ internal HttpMessage CreatePopulateAvailabilityZoneRequest(string subscriptionId return message; } - /// This operation will populate availability zone information for a volume. + /// Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -631,7 +631,7 @@ internal HttpMessage CreatePopulateAvailabilityZoneRequest(string subscriptionId /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task PopulateAvailabilityZoneAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task AuthorizeExternalReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -639,7 +639,7 @@ public async Task PopulateAvailabilityZoneAsync(string subscriptionId, Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreatePopulateAvailabilityZoneRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateAuthorizeExternalReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -651,7 +651,7 @@ public async Task PopulateAvailabilityZoneAsync(string subscriptionId, } } - /// This operation will populate availability zone information for a volume. + /// Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -660,7 +660,7 @@ public async Task PopulateAvailabilityZoneAsync(string subscriptionId, /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response PopulateAvailabilityZone(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response AuthorizeExternalReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -668,7 +668,7 @@ public Response PopulateAvailabilityZone(string subscriptionId, string resourceG Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreatePopulateAvailabilityZoneRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateAuthorizeExternalReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -680,7 +680,7 @@ public Response PopulateAvailabilityZone(string subscriptionId, string resourceG } } - internal RequestUriBuilder CreateRevertRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeRevertContent content) + internal RequestUriBuilder CreateAuthorizeReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeAuthorizeReplicationContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -694,12 +694,12 @@ internal RequestUriBuilder CreateRevertRequestUri(string subscriptionId, string uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/revert", false); + uri.AppendPath("/authorizeReplication", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateRevertRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeRevertContent content) + internal HttpMessage CreateAuthorizeReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeAuthorizeReplicationContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -716,7 +716,7 @@ internal HttpMessage CreateRevertRequest(string subscriptionId, string resourceG uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/revert", false); + uri.AppendPath("/authorizeReplication", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -728,17 +728,17 @@ internal HttpMessage CreateRevertRequest(string subscriptionId, string resourceG return message; } - /// Revert a volume to the snapshot specified in the body. + /// Authorize the replication connection on the source volume. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Object for snapshot to revert supplied in the body of the operation. + /// Authorize request object supplied in the body of the operation. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task RevertAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeRevertContent content, CancellationToken cancellationToken = default) + public async Task AuthorizeReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeAuthorizeReplicationContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -747,7 +747,7 @@ public async Task RevertAsync(string subscriptionId, string resourceGr Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateRevertRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateAuthorizeReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -759,17 +759,17 @@ public async Task RevertAsync(string subscriptionId, string resourceGr } } - /// Revert a volume to the snapshot specified in the body. + /// Authorize the replication connection on the source volume. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Object for snapshot to revert supplied in the body of the operation. + /// Authorize request object supplied in the body of the operation. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Revert(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeRevertContent content, CancellationToken cancellationToken = default) + public Response AuthorizeReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeAuthorizeReplicationContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -778,7 +778,7 @@ public Response Revert(string subscriptionId, string resourceGroupName, string a Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateRevertRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateAuthorizeReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -790,7 +790,7 @@ public Response Revert(string subscriptionId, string resourceGroupName, string a } } - internal RequestUriBuilder CreateResetCifsPasswordRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreateBreakFileLocksRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakFileLocksContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -804,12 +804,12 @@ internal RequestUriBuilder CreateResetCifsPasswordRequestUri(string subscription uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/resetCifsPassword", false); + uri.AppendPath("/breakFileLocks", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateResetCifsPasswordRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreateBreakFileLocksRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakFileLocksContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -826,24 +826,32 @@ internal HttpMessage CreateResetCifsPasswordRequest(string subscriptionId, strin uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/resetCifsPassword", false); + uri.AppendPath("/breakFileLocks", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + if (content != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; + } _userAgent.Apply(message); return message; } - /// Reset cifs password from volume. + /// Break all the file locks on a volume. /// The ID of the target subscription. The value must be an UUID. /// 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. + /// Optional body to provide the ability to clear file locks with selected options. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task ResetCifsPasswordAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task BreakFileLocksAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakFileLocksContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -851,10 +859,11 @@ public async Task ResetCifsPasswordAsync(string subscriptionId, string Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateResetCifsPasswordRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateBreakFileLocksRequest(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: @@ -862,16 +871,17 @@ public async Task ResetCifsPasswordAsync(string subscriptionId, string } } - /// Reset cifs password from volume. + /// Break all the file locks on a volume. /// The ID of the target subscription. The value must be an UUID. /// 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. + /// Optional body to provide the ability to clear file locks with selected options. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response ResetCifsPassword(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response BreakFileLocks(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakFileLocksContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -879,10 +889,11 @@ public Response ResetCifsPassword(string subscriptionId, string resourceGroupNam Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateResetCifsPasswordRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateBreakFileLocksRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: return message.Response; default: @@ -890,7 +901,7 @@ public Response ResetCifsPassword(string subscriptionId, string resourceGroupNam } } - internal RequestUriBuilder CreateSplitCloneFromParentRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreateBreakReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakReplicationContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -904,12 +915,12 @@ internal RequestUriBuilder CreateSplitCloneFromParentRequestUri(string subscript uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/splitCloneFromParent", false); + uri.AppendPath("/breakReplication", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateSplitCloneFromParentRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreateBreakReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakReplicationContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -926,24 +937,32 @@ internal HttpMessage CreateSplitCloneFromParentRequest(string subscriptionId, st uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/splitCloneFromParent", false); + uri.AppendPath("/breakReplication", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + if (content != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; + } _userAgent.Apply(message); return message; } - /// Split operation to convert clone volume to an independent volume. + /// Break the replication connection on the destination volume. /// The ID of the target subscription. The value must be an UUID. /// 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. + /// Optional body to force break the replication. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task SplitCloneFromParentAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task BreakReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakReplicationContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -951,7 +970,7 @@ public async Task SplitCloneFromParentAsync(string subscriptionId, str Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateSplitCloneFromParentRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateBreakReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -963,16 +982,17 @@ public async Task SplitCloneFromParentAsync(string subscriptionId, str } } - /// Split operation to convert clone volume to an independent volume. + /// Break the replication connection on the destination volume. /// The ID of the target subscription. The value must be an UUID. /// 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. + /// Optional body to force break the replication. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response SplitCloneFromParent(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response BreakReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakReplicationContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -980,7 +1000,7 @@ public Response SplitCloneFromParent(string subscriptionId, string resourceGroup Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateSplitCloneFromParentRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateBreakReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -992,7 +1012,7 @@ public Response SplitCloneFromParent(string subscriptionId, string resourceGroup } } - internal RequestUriBuilder CreateBreakFileLocksRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakFileLocksContent content) + internal RequestUriBuilder CreateDeleteReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1006,12 +1026,12 @@ internal RequestUriBuilder CreateBreakFileLocksRequestUri(string subscriptionId, uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/breakFileLocks", false); + uri.AppendPath("/deleteReplication", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateBreakFileLocksRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakFileLocksContent content) + internal HttpMessage CreateDeleteReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1028,32 +1048,24 @@ internal HttpMessage CreateBreakFileLocksRequest(string subscriptionId, string r uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/breakFileLocks", false); + uri.AppendPath("/deleteReplication", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - if (content != null) - { - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; - } _userAgent.Apply(message); return message; } - /// Break all the file locks on a volume. + /// Delete the replication connection on the destination volume, and send release to the source replication. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Optional body to provide the ability to clear file locks with selected options. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task BreakFileLocksAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakFileLocksContent content = null, CancellationToken cancellationToken = default) + public async Task DeleteReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1061,7 +1073,7 @@ public async Task BreakFileLocksAsync(string subscriptionId, string re Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateBreakFileLocksRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateDeleteReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1073,17 +1085,16 @@ public async Task BreakFileLocksAsync(string subscriptionId, string re } } - /// Break all the file locks on a volume. + /// Delete the replication connection on the destination volume, and send release to the source replication. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Optional body to provide the ability to clear file locks with selected options. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response BreakFileLocks(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakFileLocksContent content = null, CancellationToken cancellationToken = default) + public Response DeleteReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1091,7 +1102,7 @@ public Response BreakFileLocks(string subscriptionId, string resourceGroupName, Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateBreakFileLocksRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateDeleteReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1103,7 +1114,7 @@ public Response BreakFileLocks(string subscriptionId, string resourceGroupName, } } - internal RequestUriBuilder CreateListGetGroupIdListForLdapUserRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, GetGroupIdListForLdapUserContent content) + internal RequestUriBuilder CreateFinalizeExternalReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1117,12 +1128,12 @@ internal RequestUriBuilder CreateListGetGroupIdListForLdapUserRequestUri(string uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/getGroupIdListForLdapUser", false); + uri.AppendPath("/finalizeExternalReplication", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListGetGroupIdListForLdapUserRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, GetGroupIdListForLdapUserContent content) + internal HttpMessage CreateFinalizeExternalReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1139,42 +1150,35 @@ internal HttpMessage CreateListGetGroupIdListForLdapUserRequest(string subscript uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/getGroupIdListForLdapUser", false); + uri.AppendPath("/finalizeExternalReplication", 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, ModelSerializationExtensions.WireOptions); - request.Content = content0; _userAgent.Apply(message); return message; } - /// Returns the list of group Ids for a specific LDAP User. + /// Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. /// The ID of the target subscription. The value must be an UUID. /// 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 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) + public async Task FinalizeExternalReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNull(content, nameof(content)); - using var message = CreateListGetGroupIdListForLdapUserRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateFinalizeExternalReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 200: case 202: return message.Response; default: @@ -1182,30 +1186,27 @@ public async Task ListGetGroupIdListForLdapUserAsync(string subscripti } } - /// Returns the list of group Ids for a specific LDAP User. + /// Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. /// The ID of the target subscription. The value must be an UUID. /// 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 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) + public Response FinalizeExternalReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - Argument.AssertNotNull(content, nameof(content)); - using var message = CreateListGetGroupIdListForLdapUserRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateFinalizeExternalReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 200: case 202: return message.Response; default: @@ -1213,7 +1214,7 @@ public Response ListGetGroupIdListForLdapUser(string subscriptionId, string reso } } - internal RequestUriBuilder CreateListQuotaReportRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreateFinalizeRelocationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1227,12 +1228,12 @@ internal RequestUriBuilder CreateListQuotaReportRequestUri(string subscriptionId uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/listQuotaReport", false); + uri.AppendPath("/finalizeRelocation", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListQuotaReportRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreateFinalizeRelocationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1249,7 +1250,7 @@ internal HttpMessage CreateListQuotaReportRequest(string subscriptionId, string uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/listQuotaReport", false); + uri.AppendPath("/finalizeRelocation", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1257,7 +1258,7 @@ internal HttpMessage CreateListQuotaReportRequest(string subscriptionId, string return message; } - /// Returns report of quotas for the volume. + /// Finalizes the relocation of the volume and cleans up the old volume. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -1266,7 +1267,7 @@ internal HttpMessage CreateListQuotaReportRequest(string subscriptionId, string /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task ListQuotaReportAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task FinalizeRelocationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1274,7 +1275,7 @@ public async Task ListQuotaReportAsync(string subscriptionId, string r Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateListQuotaReportRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateFinalizeRelocationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1286,7 +1287,7 @@ public async Task ListQuotaReportAsync(string subscriptionId, string r } } - /// Returns report of quotas for the volume. + /// Finalizes the relocation of the volume and cleans up the old volume. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -1295,7 +1296,7 @@ public async Task ListQuotaReportAsync(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response ListQuotaReport(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response FinalizeRelocation(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1303,7 +1304,7 @@ public Response ListQuotaReport(string subscriptionId, string resourceGroupName, Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateListQuotaReportRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateFinalizeRelocationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1315,7 +1316,7 @@ public Response ListQuotaReport(string subscriptionId, string resourceGroupName, } } - internal RequestUriBuilder CreateBreakReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakReplicationContent content) + internal RequestUriBuilder CreateListGetGroupIdListForLdapUserRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, GetGroupIdListForLdapUserContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1329,12 +1330,12 @@ internal RequestUriBuilder CreateBreakReplicationRequestUri(string subscriptionI uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/breakReplication", false); + uri.AppendPath("/getGroupIdListForLdapUser", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateBreakReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakReplicationContent content) + internal HttpMessage CreateListGetGroupIdListForLdapUserRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, GetGroupIdListForLdapUserContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1351,40 +1352,38 @@ internal HttpMessage CreateBreakReplicationRequest(string subscriptionId, string uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/breakReplication", false); + uri.AppendPath("/getGroupIdListForLdapUser", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - if (content != null) - { - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; - } + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; _userAgent.Apply(message); return message; } - /// Break the replication connection on the destination volume. + /// Returns the list of group Ids for a specific LDAP User. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Optional body to force break the replication. + /// Returns group Id list for a specific LDAP user. /// The cancellation token to use. - /// , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task BreakReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakReplicationContent content = null, CancellationToken cancellationToken = default) + 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 = CreateBreakReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateListGetGroupIdListForLdapUserRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1396,25 +1395,26 @@ public async Task BreakReplicationAsync(string subscriptionId, string } } - /// Break the replication connection on the destination volume. + /// Returns the list of group Ids for a specific LDAP User. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Optional body to force break the replication. + /// Returns group Id list for a specific LDAP user. /// The cancellation token to use. - /// , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response BreakReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakReplicationContent content = null, CancellationToken cancellationToken = default) + 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 = CreateBreakReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateListGetGroupIdListForLdapUserRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1426,7 +1426,7 @@ public Response BreakReplication(string subscriptionId, string resourceGroupName } } - internal RequestUriBuilder CreateReestablishReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeReestablishReplicationContent content) + internal RequestUriBuilder CreateListReplicationsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, ListReplicationsContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1440,12 +1440,12 @@ internal RequestUriBuilder CreateReestablishReplicationRequestUri(string subscri uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/reestablishReplication", false); + uri.AppendPath("/listReplications", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateReestablishReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeReestablishReplicationContent content) + internal HttpMessage CreateListReplicationsRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, ListReplicationsContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1462,79 +1462,90 @@ internal HttpMessage CreateReestablishReplicationRequest(string subscriptionId, uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/reestablishReplication", false); + uri.AppendPath("/listReplications", 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, ModelSerializationExtensions.WireOptions); - request.Content = content0; + if (content != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; + } _userAgent.Apply(message); return message; } - /// Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots. + /// List all replications for a specified volume. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// body for the id of the source volume. + /// The content of the action request. /// The cancellation token to use. - /// , , , , or is null. + /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task ReestablishReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeReestablishReplicationContent content, CancellationToken cancellationToken = default) + public async Task> ListReplicationsAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, ListReplicationsContent content = null, 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 = CreateReestablishReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateListReplicationsRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 202: - return message.Response; + case 200: + { + ListReplications value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = Models.ListReplications.DeserializeListReplications(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots. + /// List all replications for a specified volume. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// body for the id of the source volume. + /// The content of the action request. /// The cancellation token to use. - /// , , , , or is null. + /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response ReestablishReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeReestablishReplicationContent content, CancellationToken cancellationToken = default) + public Response ListReplications(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, ListReplicationsContent content = null, 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 = CreateReestablishReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateListReplicationsRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 202: - return message.Response; + case 200: + { + ListReplications value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = Models.ListReplications.DeserializeListReplications(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateReplicationStatusRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreatePeerExternalClusterRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, PeerClusterForVolumeMigrationContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1548,16 +1559,16 @@ internal RequestUriBuilder CreateReplicationStatusRequestUri(string subscription uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/replicationStatus", false); + uri.AppendPath("/peerExternalCluster", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateReplicationStatusRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreatePeerExternalClusterRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, PeerClusterForVolumeMigrationContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -1570,81 +1581,81 @@ internal HttpMessage CreateReplicationStatusRequest(string subscriptionId, strin uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/replicationStatus", false); + uri.AppendPath("/peerExternalCluster", 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, ModelSerializationExtensions.WireOptions); + request.Content = content0; _userAgent.Apply(message); return message; } - /// Get the status of the replication. + /// Starts peering the external cluster for this migration volume. /// The ID of the target subscription. The value must be an UUID. /// 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. + /// Cluster peer request object supplied in the body of the operation. /// The cancellation token to use. - /// , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> ReplicationStatusAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task PeerExternalClusterAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, PeerClusterForVolumeMigrationContent 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 = CreateReplicationStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreatePeerExternalClusterRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - NetAppVolumeReplicationStatus value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NetAppVolumeReplicationStatus.DeserializeNetAppVolumeReplicationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Get the status of the replication. + /// Starts peering the external cluster for this migration volume. /// The ID of the target subscription. The value must be an UUID. /// 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. + /// Cluster peer request object supplied in the body of the operation. /// The cancellation token to use. - /// , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response ReplicationStatus(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response PeerExternalCluster(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, PeerClusterForVolumeMigrationContent 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 = CreateReplicationStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreatePeerExternalClusterRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - NetAppVolumeReplicationStatus value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NetAppVolumeReplicationStatus.DeserializeNetAppVolumeReplicationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateListReplicationsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreatePerformReplicationTransferRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1658,12 +1669,12 @@ internal RequestUriBuilder CreateListReplicationsRequestUri(string subscriptionI uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/listReplications", false); + uri.AppendPath("/performReplicationTransfer", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListReplicationsRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreatePerformReplicationTransferRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1680,7 +1691,7 @@ internal HttpMessage CreateListReplicationsRequest(string subscriptionId, string uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/listReplications", false); + uri.AppendPath("/performReplicationTransfer", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1688,7 +1699,7 @@ internal HttpMessage CreateListReplicationsRequest(string subscriptionId, string return message; } - /// List all replications for a specified volume. + /// Performs an adhoc replication transfer on a volume with volumeType Migration. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -1697,7 +1708,7 @@ internal HttpMessage CreateListReplicationsRequest(string subscriptionId, string /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> ListReplicationsAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task PerformReplicationTransferAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1705,23 +1716,18 @@ public async Task> ListReplicationsAsync(string subsc Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateListReplicationsRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreatePerformReplicationTransferRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 200: - { - ListReplications value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = Models.ListReplications.DeserializeListReplications(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// List all replications for a specified volume. + /// Performs an adhoc replication transfer on a volume with volumeType Migration. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -1730,7 +1736,7 @@ public async Task> ListReplicationsAsync(string subsc /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response ListReplications(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response PerformReplicationTransfer(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1738,23 +1744,18 @@ public Response ListReplications(string subscriptionId, string Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateListReplicationsRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreatePerformReplicationTransferRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 200: - { - ListReplications value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = Models.ListReplications.DeserializeListReplications(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateResyncReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreatePoolChangeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePoolChangeContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1768,12 +1769,12 @@ internal RequestUriBuilder CreateResyncReplicationRequestUri(string subscription uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/resyncReplication", false); + uri.AppendPath("/poolChange", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateResyncReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreatePoolChangeRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePoolChangeContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1790,32 +1791,38 @@ internal HttpMessage CreateResyncReplicationRequest(string subscriptionId, strin uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/resyncReplication", false); + uri.AppendPath("/poolChange", 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, ModelSerializationExtensions.WireOptions); + request.Content = content0; _userAgent.Apply(message); return message; } - /// Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. + /// Moves volume to another pool. /// The ID of the target subscription. The value must be an UUID. /// 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. + /// Move volume to the pool supplied in the body of the operation. /// The cancellation token to use. - /// , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task ResyncReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task PoolChangeAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePoolChangeContent 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 = CreateResyncReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreatePoolChangeRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1827,24 +1834,26 @@ public async Task ResyncReplicationAsync(string subscriptionId, string } } - /// Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. + /// Moves volume to another pool. /// The ID of the target subscription. The value must be an UUID. /// 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. + /// Move volume to the pool supplied in the body of the operation. /// The cancellation token to use. - /// , , , or is null. + /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response ResyncReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response PoolChange(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePoolChangeContent 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 = CreateResyncReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreatePoolChangeRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1856,7 +1865,7 @@ public Response ResyncReplication(string subscriptionId, string resourceGroupNam } } - internal RequestUriBuilder CreateDeleteReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreatePopulateAvailabilityZoneRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1870,12 +1879,12 @@ internal RequestUriBuilder CreateDeleteReplicationRequestUri(string subscription uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/deleteReplication", false); + uri.AppendPath("/populateAvailabilityZone", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateDeleteReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreatePopulateAvailabilityZoneRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1892,7 +1901,7 @@ internal HttpMessage CreateDeleteReplicationRequest(string subscriptionId, strin uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/deleteReplication", false); + uri.AppendPath("/populateAvailabilityZone", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1900,7 +1909,7 @@ internal HttpMessage CreateDeleteReplicationRequest(string subscriptionId, strin return message; } - /// Delete the replication connection on the destination volume, and send release to the source replication. + /// This operation will populate availability zone information for a volume. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -1909,7 +1918,7 @@ internal HttpMessage CreateDeleteReplicationRequest(string subscriptionId, strin /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task DeleteReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task PopulateAvailabilityZoneAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1917,7 +1926,7 @@ public async Task DeleteReplicationAsync(string subscriptionId, string Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateDeleteReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreatePopulateAvailabilityZoneRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1929,7 +1938,7 @@ public async Task DeleteReplicationAsync(string subscriptionId, string } } - /// Delete the replication connection on the destination volume, and send release to the source replication. + /// This operation will populate availability zone information for a volume. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -1938,7 +1947,7 @@ public async Task DeleteReplicationAsync(string subscriptionId, string /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response DeleteReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response PopulateAvailabilityZone(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1946,7 +1955,7 @@ public Response DeleteReplication(string subscriptionId, string resourceGroupNam Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateDeleteReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreatePopulateAvailabilityZoneRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1958,7 +1967,7 @@ public Response DeleteReplication(string subscriptionId, string resourceGroupNam } } - internal RequestUriBuilder CreateAuthorizeReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeAuthorizeReplicationContent content) + internal RequestUriBuilder CreateReestablishReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeReestablishReplicationContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1972,12 +1981,12 @@ internal RequestUriBuilder CreateAuthorizeReplicationRequestUri(string subscript uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/authorizeReplication", false); + uri.AppendPath("/reestablishReplication", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateAuthorizeReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeAuthorizeReplicationContent content) + internal HttpMessage CreateReestablishReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeReestablishReplicationContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1994,7 +2003,7 @@ internal HttpMessage CreateAuthorizeReplicationRequest(string subscriptionId, st uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/authorizeReplication", false); + uri.AppendPath("/reestablishReplication", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2006,17 +2015,17 @@ internal HttpMessage CreateAuthorizeReplicationRequest(string subscriptionId, st return message; } - /// Authorize the replication connection on the source volume. + /// Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Authorize request object supplied in the body of the operation. + /// body for the id of the source volume. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task AuthorizeReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeAuthorizeReplicationContent content, CancellationToken cancellationToken = default) + public async Task ReestablishReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeReestablishReplicationContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2025,11 +2034,10 @@ public async Task AuthorizeReplicationAsync(string subscriptionId, str Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateAuthorizeReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateReestablishReplicationRequest(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: @@ -2037,17 +2045,17 @@ public async Task AuthorizeReplicationAsync(string subscriptionId, str } } - /// Authorize the replication connection on the source volume. + /// Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Authorize request object supplied in the body of the operation. + /// body for the id of the source volume. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response AuthorizeReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeAuthorizeReplicationContent content, CancellationToken cancellationToken = default) + public Response ReestablishReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeReestablishReplicationContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2056,11 +2064,10 @@ public Response AuthorizeReplication(string subscriptionId, string resourceGroup Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateAuthorizeReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateReestablishReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 200: case 202: return message.Response; default: @@ -2170,7 +2177,7 @@ public Response ReInitializeReplication(string subscriptionId, string resourceGr } } - internal RequestUriBuilder CreatePeerExternalClusterRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, PeerClusterForVolumeMigrationContent content) + internal RequestUriBuilder CreateRelocateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, RelocateVolumeContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2184,12 +2191,12 @@ internal RequestUriBuilder CreatePeerExternalClusterRequestUri(string subscripti uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/peerExternalCluster", false); + uri.AppendPath("/relocate", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreatePeerExternalClusterRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, PeerClusterForVolumeMigrationContent content) + internal HttpMessage CreateRelocateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, RelocateVolumeContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2206,38 +2213,40 @@ internal HttpMessage CreatePeerExternalClusterRequest(string subscriptionId, str uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/peerExternalCluster", false); + uri.AppendPath("/relocate", 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, ModelSerializationExtensions.WireOptions); - request.Content = content0; + if (content != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; + } _userAgent.Apply(message); return message; } - /// Starts peering the external cluster for this migration volume. + /// Relocates volume to a new stamp. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Cluster peer request object supplied in the body of the operation. + /// Relocate volume request. /// The cancellation token to use. - /// , , , , or is null. + /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task PeerExternalClusterAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, PeerClusterForVolumeMigrationContent content, CancellationToken cancellationToken = default) + public async Task RelocateAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, RelocateVolumeContent content = null, 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 = CreatePeerExternalClusterRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateRelocateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -2249,26 +2258,25 @@ public async Task PeerExternalClusterAsync(string subscriptionId, stri } } - /// Starts peering the external cluster for this migration volume. + /// Relocates volume to a new stamp. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Cluster peer request object supplied in the body of the operation. + /// Relocate volume request. /// The cancellation token to use. - /// , , , , or is null. + /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response PeerExternalCluster(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, PeerClusterForVolumeMigrationContent content, CancellationToken cancellationToken = default) + public Response Relocate(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, RelocateVolumeContent content = null, 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 = CreatePeerExternalClusterRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateRelocateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -2280,7 +2288,7 @@ public Response PeerExternalCluster(string subscriptionId, string resourceGroupN } } - internal RequestUriBuilder CreateAuthorizeExternalReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreateReplicationStatusRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2294,16 +2302,16 @@ internal RequestUriBuilder CreateAuthorizeExternalReplicationRequestUri(string s uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/authorizeExternalReplication", false); + uri.AppendPath("/replicationStatus", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateAuthorizeExternalReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreateReplicationStatusRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Post; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -2316,7 +2324,7 @@ internal HttpMessage CreateAuthorizeExternalReplicationRequest(string subscripti uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/authorizeExternalReplication", false); + uri.AppendPath("/replicationStatus", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2324,7 +2332,7 @@ internal HttpMessage CreateAuthorizeExternalReplicationRequest(string subscripti return message; } - /// Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created. + /// Get the status of the replication. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -2333,7 +2341,7 @@ internal HttpMessage CreateAuthorizeExternalReplicationRequest(string subscripti /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task AuthorizeExternalReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task> ReplicationStatusAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2341,19 +2349,23 @@ public async Task AuthorizeExternalReplicationAsync(string subscriptio Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateAuthorizeExternalReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateReplicationStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + NetAppVolumeReplicationStatus value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = NetAppVolumeReplicationStatus.DeserializeNetAppVolumeReplicationStatus(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created. + /// Get the status of the replication. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -2362,7 +2374,7 @@ public async Task AuthorizeExternalReplicationAsync(string subscriptio /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response AuthorizeExternalReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response ReplicationStatus(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2370,19 +2382,23 @@ public Response AuthorizeExternalReplication(string subscriptionId, string resou Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateAuthorizeExternalReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateReplicationStatusRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + NetAppVolumeReplicationStatus value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = NetAppVolumeReplicationStatus.DeserializeNetAppVolumeReplicationStatus(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateFinalizeExternalReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreateResetCifsPasswordRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2396,12 +2412,12 @@ internal RequestUriBuilder CreateFinalizeExternalReplicationRequestUri(string su uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/finalizeExternalReplication", false); + uri.AppendPath("/resetCifsPassword", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateFinalizeExternalReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreateResetCifsPasswordRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2418,7 +2434,7 @@ internal HttpMessage CreateFinalizeExternalReplicationRequest(string subscriptio uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/finalizeExternalReplication", false); + uri.AppendPath("/resetCifsPassword", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2426,7 +2442,7 @@ internal HttpMessage CreateFinalizeExternalReplicationRequest(string subscriptio return message; } - /// Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. + /// Reset cifs password from volume. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -2435,7 +2451,7 @@ internal HttpMessage CreateFinalizeExternalReplicationRequest(string subscriptio /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task FinalizeExternalReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task ResetCifsPasswordAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2443,7 +2459,7 @@ public async Task FinalizeExternalReplicationAsync(string subscription Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateFinalizeExternalReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateResetCifsPasswordRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -2454,7 +2470,7 @@ public async Task FinalizeExternalReplicationAsync(string subscription } } - /// Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. + /// Reset cifs password from volume. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -2463,7 +2479,7 @@ public async Task FinalizeExternalReplicationAsync(string subscription /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response FinalizeExternalReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response ResetCifsPassword(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2471,7 +2487,7 @@ public Response FinalizeExternalReplication(string subscriptionId, string resour Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateFinalizeExternalReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateResetCifsPasswordRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -2482,7 +2498,7 @@ public Response FinalizeExternalReplication(string subscriptionId, string resour } } - internal RequestUriBuilder CreatePerformReplicationTransferRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreateResyncReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2496,12 +2512,12 @@ internal RequestUriBuilder CreatePerformReplicationTransferRequestUri(string sub uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/performReplicationTransfer", false); + uri.AppendPath("/resyncReplication", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreatePerformReplicationTransferRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreateResyncReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2518,7 +2534,7 @@ internal HttpMessage CreatePerformReplicationTransferRequest(string subscription uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/performReplicationTransfer", false); + uri.AppendPath("/resyncReplication", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2526,7 +2542,7 @@ internal HttpMessage CreatePerformReplicationTransferRequest(string subscription return message; } - /// Performs an adhoc replication transfer on a volume with volumeType Migration. + /// Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -2535,7 +2551,7 @@ internal HttpMessage CreatePerformReplicationTransferRequest(string subscription /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task PerformReplicationTransferAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task ResyncReplicationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2543,10 +2559,11 @@ public async Task PerformReplicationTransferAsync(string subscriptionI Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreatePerformReplicationTransferRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateResyncReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: return message.Response; default: @@ -2554,7 +2571,7 @@ public async Task PerformReplicationTransferAsync(string subscriptionI } } - /// Performs an adhoc replication transfer on a volume with volumeType Migration. + /// Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -2563,7 +2580,7 @@ public async Task PerformReplicationTransferAsync(string subscriptionI /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response PerformReplicationTransfer(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response ResyncReplication(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2571,10 +2588,11 @@ public Response PerformReplicationTransfer(string subscriptionId, string resourc Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreatePerformReplicationTransferRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateResyncReplicationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: return message.Response; default: @@ -2582,7 +2600,7 @@ public Response PerformReplicationTransfer(string subscriptionId, string resourc } } - internal RequestUriBuilder CreatePoolChangeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePoolChangeContent content) + internal RequestUriBuilder CreateRevertRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeRevertContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2596,12 +2614,12 @@ internal RequestUriBuilder CreatePoolChangeRequestUri(string subscriptionId, str uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/poolChange", false); + uri.AppendPath("/revert", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreatePoolChangeRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePoolChangeContent content) + internal HttpMessage CreateRevertRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeRevertContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2618,7 +2636,7 @@ internal HttpMessage CreatePoolChangeRequest(string subscriptionId, string resou uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/poolChange", false); + uri.AppendPath("/revert", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2630,17 +2648,17 @@ internal HttpMessage CreatePoolChangeRequest(string subscriptionId, string resou return message; } - /// Moves volume to another pool. + /// Revert a volume to the snapshot specified in the body. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Move volume to the pool supplied in the body of the operation. + /// Object for snapshot to revert supplied in the body of the operation. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task PoolChangeAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePoolChangeContent content, CancellationToken cancellationToken = default) + public async Task RevertAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeRevertContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2649,7 +2667,7 @@ public async Task PoolChangeAsync(string subscriptionId, string resour Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreatePoolChangeRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateRevertRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -2661,17 +2679,17 @@ public async Task PoolChangeAsync(string subscriptionId, string resour } } - /// Moves volume to another pool. + /// Revert a volume to the snapshot specified in the body. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Move volume to the pool supplied in the body of the operation. + /// Object for snapshot to revert supplied in the body of the operation. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response PoolChange(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePoolChangeContent content, CancellationToken cancellationToken = default) + public Response Revert(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeRevertContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2680,7 +2698,7 @@ public Response PoolChange(string subscriptionId, string resourceGroupName, stri Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreatePoolChangeRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateRevertRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -2692,7 +2710,7 @@ public Response PoolChange(string subscriptionId, string resourceGroupName, stri } } - internal RequestUriBuilder CreateRelocateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, RelocateVolumeContent content) + internal RequestUriBuilder CreateRevertRelocationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2706,12 +2724,12 @@ internal RequestUriBuilder CreateRelocateRequestUri(string subscriptionId, strin uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/relocate", false); + uri.AppendPath("/revertRelocation", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateRelocateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, RelocateVolumeContent content) + internal HttpMessage CreateRevertRelocationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2728,32 +2746,24 @@ internal HttpMessage CreateRelocateRequest(string subscriptionId, string resourc uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/relocate", false); + uri.AppendPath("/revertRelocation", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - if (content != null) - { - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; - } _userAgent.Apply(message); return message; } - /// Relocates volume to a new stamp. + /// Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Relocate volume request. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task RelocateAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, RelocateVolumeContent content = null, CancellationToken cancellationToken = default) + public async Task RevertRelocationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2761,7 +2771,7 @@ public async Task RelocateAsync(string subscriptionId, string resource Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateRelocateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateRevertRelocationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -2773,17 +2783,16 @@ public async Task RelocateAsync(string subscriptionId, string resource } } - /// Relocates volume to a new stamp. + /// Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. /// The ID of the target subscription. The value must be an UUID. /// 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. - /// Relocate volume request. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Relocate(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, RelocateVolumeContent content = null, CancellationToken cancellationToken = default) + public Response RevertRelocation(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2791,7 +2800,7 @@ public Response Relocate(string subscriptionId, string resourceGroupName, string Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateRelocateRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); + using var message = CreateRevertRelocationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -2803,7 +2812,7 @@ public Response Relocate(string subscriptionId, string resourceGroupName, string } } - internal RequestUriBuilder CreateFinalizeRelocationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreateSplitCloneFromParentRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2817,12 +2826,12 @@ internal RequestUriBuilder CreateFinalizeRelocationRequestUri(string subscriptio uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/finalizeRelocation", false); + uri.AppendPath("/splitCloneFromParent", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateFinalizeRelocationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreateSplitCloneFromParentRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2839,7 +2848,7 @@ internal HttpMessage CreateFinalizeRelocationRequest(string subscriptionId, stri uri.AppendPath(poolName, true); uri.AppendPath("/volumes/", false); uri.AppendPath(volumeName, true); - uri.AppendPath("/finalizeRelocation", false); + uri.AppendPath("/splitCloneFromParent", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2847,7 +2856,7 @@ internal HttpMessage CreateFinalizeRelocationRequest(string subscriptionId, stri return message; } - /// Finalizes the relocation of the volume and cleans up the old volume. + /// Split operation to convert clone volume to an independent volume. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -2856,7 +2865,7 @@ internal HttpMessage CreateFinalizeRelocationRequest(string subscriptionId, stri /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task FinalizeRelocationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public async Task SplitCloneFromParentAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2864,7 +2873,7 @@ public async Task FinalizeRelocationAsync(string subscriptionId, strin Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateFinalizeRelocationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateSplitCloneFromParentRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -2876,7 +2885,7 @@ public async Task FinalizeRelocationAsync(string subscriptionId, strin } } - /// Finalizes the relocation of the volume and cleans up the old volume. + /// Split operation to convert clone volume to an independent volume. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. @@ -2885,7 +2894,7 @@ public async Task FinalizeRelocationAsync(string subscriptionId, strin /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response FinalizeRelocation(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + public Response SplitCloneFromParent(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2893,7 +2902,7 @@ public Response FinalizeRelocation(string subscriptionId, string resourceGroupNa Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateFinalizeRelocationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateSplitCloneFromParentRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -2905,109 +2914,95 @@ public Response FinalizeRelocation(string subscriptionId, string resourceGroupNa } } - internal RequestUriBuilder CreateRevertRelocationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName) { 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("/revertRelocation", false); - uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendRawNextLink(nextLink, false); return uri; } - internal HttpMessage CreateRevertRelocationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Post; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); - uri.AppendPath(accountName, true); - uri.AppendPath("/capacityPools/", false); - uri.AppendPath(poolName, true); - uri.AppendPath("/volumes/", false); - uri.AppendPath(volumeName, true); - uri.AppendPath("/revertRelocation", false); - uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendRawNextLink(nextLink, false); request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); return message; } - /// Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. + /// List all volumes within the capacity pool. + /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. /// The name of the capacity pool. - /// The name of the volume. /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task RevertRelocationAsync(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, CancellationToken cancellationToken = default) { + Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateRevertRelocationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + VolumeList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = VolumeList.DeserializeVolumeList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. + /// List all volumes within the capacity pool. + /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. /// The name of the capacity pool. - /// The name of the volume. /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response RevertRelocation(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, CancellationToken cancellationToken = default) { + Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); - Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateRevertRelocationRequest(subscriptionId, resourceGroupName, accountName, poolName, volumeName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + VolumeList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = VolumeList.DeserializeVolumeList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName) + internal RequestUriBuilder CreateListReplicationsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, ListReplicationsContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -3015,7 +3010,7 @@ internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string return uri; } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName) + internal HttpMessage CreateListReplicationsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, ListReplicationsContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -3029,32 +3024,35 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List all volumes within the capacity pool. + /// List all replications for a specified volume. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. /// The name of the capacity pool. + /// The name of the volume. + /// The content of the action request. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, CancellationToken cancellationToken = default) + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListReplicationsNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, ListReplicationsContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName); + using var message = CreateListReplicationsNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - VolumeList value = default; + ListReplications value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = VolumeList.DeserializeVolumeList(document.RootElement); + value = Models.ListReplications.DeserializeListReplications(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -3062,32 +3060,35 @@ public async Task> ListNextPageAsync(string nextLink, strin } } - /// List all volumes within the capacity pool. + /// List all replications for a specified volume. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the NetApp account. /// The name of the capacity pool. + /// The name of the volume. + /// The content of the action request. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, CancellationToken cancellationToken = default) + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response ListReplicationsNextPage(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, ListReplicationsContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(accountName, nameof(accountName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(volumeName, nameof(volumeName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName); + using var message = CreateListReplicationsNextPageRequest(nextLink, subscriptionId, resourceGroupName, accountName, poolName, volumeName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - VolumeList value = default; + ListReplications value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = VolumeList.DeserializeVolumeList(document.RootElement); + value = Models.ListReplications.DeserializeListReplications(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyCollection.cs index 94e871f34fcc..ed4a4a34f39a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string snap /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string snapshotPolicyName, C /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -269,7 +269,8 @@ public virtual Response Get(string snapshotPolicyName, C public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _snapshotPolicyRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new SnapshotPolicyResource(Client, SnapshotPolicyData.DeserializeSnapshotPolicyData(e)), _snapshotPolicyClientDiagnostics, Pipeline, "SnapshotPolicyCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _snapshotPolicyRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SnapshotPolicyResource(Client, SnapshotPolicyData.DeserializeSnapshotPolicyData(e)), _snapshotPolicyClientDiagnostics, Pipeline, "SnapshotPolicyCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -285,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -298,7 +299,8 @@ public virtual AsyncPageable GetAllAsync(CancellationTok public virtual Pageable GetAll(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _snapshotPolicyRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => new SnapshotPolicyResource(Client, SnapshotPolicyData.DeserializeSnapshotPolicyData(e)), _snapshotPolicyClientDiagnostics, Pipeline, "SnapshotPolicyCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _snapshotPolicyRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SnapshotPolicyResource(Client, SnapshotPolicyData.DeserializeSnapshotPolicyData(e)), _snapshotPolicyClientDiagnostics, Pipeline, "SnapshotPolicyCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -314,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -357,7 +359,7 @@ public virtual async Task> ExistsAsync(string snapshotPolicyName, /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -400,7 +402,7 @@ public virtual Response Exists(string snapshotPolicyName, CancellationToke /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -445,7 +447,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs index c700f270419b..0cb670d48c64 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NetApp /// /// A class representing the SnapshotPolicy data model. /// Snapshot policy information + /// Serialized Name: SnapshotPolicy /// public partial class SnapshotPolicyData : TrackedResourceData { @@ -64,13 +65,34 @@ public SnapshotPolicyData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// A unique read-only string that changes whenever the resource is updated. - /// Schedule for hourly snapshots. - /// Schedule for daily snapshots. - /// Schedule for weekly snapshots. - /// Schedule for monthly snapshots. - /// The property to decide policy is enabled or not. - /// Azure lifecycle management. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: SnapshotPolicy.etag + /// + /// + /// Schedule for hourly snapshots + /// Serialized Name: SnapshotPolicy.properties.hourlySchedule + /// + /// + /// Schedule for daily snapshots + /// Serialized Name: SnapshotPolicy.properties.dailySchedule + /// + /// + /// Schedule for weekly snapshots + /// Serialized Name: SnapshotPolicy.properties.weeklySchedule + /// + /// + /// Schedule for monthly snapshots + /// Serialized Name: SnapshotPolicy.properties.monthlySchedule + /// + /// + /// The property to decide policy is enabled or not + /// Serialized Name: SnapshotPolicy.properties.enabled + /// + /// + /// Azure lifecycle management + /// Serialized Name: SnapshotPolicy.properties.provisioningState + /// /// Keeps track of any properties unknown to the library. internal SnapshotPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, SnapshotPolicyHourlySchedule hourlySchedule, SnapshotPolicyDailySchedule dailySchedule, SnapshotPolicyWeeklySchedule weeklySchedule, SnapshotPolicyMonthlySchedule monthlySchedule, bool? isEnabled, string provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -89,19 +111,40 @@ internal SnapshotPolicyData() { } - /// A unique read-only string that changes whenever the resource is updated. + /// + /// "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.") + /// Serialized Name: SnapshotPolicy.etag + /// public ETag? ETag { get; } - /// Schedule for hourly snapshots. + /// + /// Schedule for hourly snapshots + /// Serialized Name: SnapshotPolicy.properties.hourlySchedule + /// public SnapshotPolicyHourlySchedule HourlySchedule { get; set; } - /// Schedule for daily snapshots. + /// + /// Schedule for daily snapshots + /// Serialized Name: SnapshotPolicy.properties.dailySchedule + /// public SnapshotPolicyDailySchedule DailySchedule { get; set; } - /// Schedule for weekly snapshots. + /// + /// Schedule for weekly snapshots + /// Serialized Name: SnapshotPolicy.properties.weeklySchedule + /// public SnapshotPolicyWeeklySchedule WeeklySchedule { get; set; } - /// Schedule for monthly snapshots. + /// + /// Schedule for monthly snapshots + /// Serialized Name: SnapshotPolicy.properties.monthlySchedule + /// public SnapshotPolicyMonthlySchedule MonthlySchedule { get; set; } - /// The property to decide policy is enabled or not. + /// + /// The property to decide policy is enabled or not + /// Serialized Name: SnapshotPolicy.properties.enabled + /// public bool? IsEnabled { get; set; } - /// Azure lifecycle management. + /// + /// Azure lifecycle management + /// Serialized Name: SnapshotPolicy.properties.provisioningState + /// public string ProvisioningState { get; } } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyResource.cs index 400401844d2f..45cf815730db 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual async Task> UpdateAsync(Wait /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -389,7 +389,7 @@ public virtual AsyncPageable GetVolumesAsync(CancellationT /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -418,7 +418,7 @@ public virtual Pageable GetVolumes(CancellationToken cance /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -480,7 +480,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -542,7 +542,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -599,7 +599,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -656,7 +656,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource @@ -716,7 +716,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2025-07-01-preview + /// 2025-09-01 /// /// /// Resource diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/autorest.md b/sdk/netapp/Azure.ResourceManager.NetApp/src/autorest.md index f9ba0bd90473..803f1b170b44 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/autorest.md +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/autorest.md @@ -8,8 +8,8 @@ azure-arm: true csharp: true library-name: NetApp namespace: Azure.ResourceManager.NetApp -require: https://github.com/Azure/azure-rest-api-specs/blob/c2c7ee70dea80830fe9ea94aed2cec6182c4e9e6/specification/netapp/resource-manager/readme.md -tag: package-preview-2025-07-01-preview +require: https://github.com/Azure/azure-rest-api-specs/blob/dbdbc75c548071c0f5f0bdfae18dd1b31a7ab95a/specification/netapp/resource-manager/Microsoft.NetApp/NetApp/readme.md +tag: package-2025-09-01 output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: @@ -20,8 +20,8 @@ modelerfour: flatten-payloads: false use-model-reader-writer: true -# mgmt-debug: -# show-serialized-names: true +mgmt-debug: + show-serialized-names: true format-by-name-rules: 'tenantId': 'uuid' @@ -277,6 +277,11 @@ rename-mapping: NfsUser: NetAppBucketNfsUser FileSystemUser: NetAppBucketFileSystemUser CredentialsStatus: NetAppBucketCredentialStatus + CapacityPool.properties.customThroughputMibps: CustomThroughputMibpsInt + CapacityPoolPatch.properties.customThroughputMibps: CustomThroughputMibpsInt + PoolPropertiesEncryptionType: CapacityPoolEncryptionType + RestoreStatus.relationshipStatus: VolumeRestoreRelationshipStatus + BackupStatus.relationshipStatus: VolumeBackupRelationshipStatus models-to-treat-empty-string-as-null: - VolumeSnapshotProperties diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_CapacityPoolCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_CapacityPoolCollection.cs index 75c84d96b959..cc95d6f9b18b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_CapacityPoolCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_CapacityPoolCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_CapacityPoolCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PoolsCreateOrUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_CreateOrUpdate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_PoolsCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PoolsCreateOrUpdateCustomThroughput() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_CreateOrUpdate_CustomThroughput.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Pools_CreateOrUpdate_CustomThroughput.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 @@ -82,7 +82,7 @@ public async Task CreateOrUpdate_PoolsCreateOrUpdateCustomThroughput() string poolName = "customPool1"; CapacityPoolData data = new CapacityPoolData(new AzureLocation("eastus"), 4398046511104L, NetAppFileServiceLevel.Flexible) { - CustomThroughputMibps = 128, + CustomThroughputMibpsInt = 128, QosType = CapacityPoolQosType.Manual, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, poolName, data); @@ -99,7 +99,7 @@ public async Task CreateOrUpdate_PoolsCreateOrUpdateCustomThroughput() [Ignore("Only validating compilation of examples")] public async Task Get_PoolsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -133,7 +133,7 @@ public async Task Get_PoolsGet() [Ignore("Only validating compilation of examples")] public async Task Get_PoolsGetCustomThroughput() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Get_CustomThroughput.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Pools_Get_CustomThroughput.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 @@ -167,7 +167,7 @@ public async Task Get_PoolsGetCustomThroughput() [Ignore("Only validating compilation of examples")] public async Task GetAll_PoolsList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -203,7 +203,7 @@ public async Task GetAll_PoolsList() [Ignore("Only validating compilation of examples")] public async Task Exists_PoolsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -233,7 +233,7 @@ public async Task Exists_PoolsGet() [Ignore("Only validating compilation of examples")] public async Task Exists_PoolsGetCustomThroughput() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Get_CustomThroughput.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Pools_Get_CustomThroughput.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 @@ -263,7 +263,7 @@ public async Task Exists_PoolsGetCustomThroughput() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_PoolsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -305,7 +305,7 @@ public async Task GetIfExists_PoolsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_PoolsGetCustomThroughput() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Get_CustomThroughput.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Pools_Get_CustomThroughput.json // this example is just showing the usage of "Pools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_CapacityPoolResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_CapacityPoolResource.cs index 8860e9ff20c1..d7c9114b27a1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_CapacityPoolResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_CapacityPoolResource.cs @@ -20,7 +20,7 @@ public partial class Sample_CapacityPoolResource [Ignore("Only validating compilation of examples")] public async Task Get_PoolsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -51,7 +51,7 @@ public async Task Get_PoolsGet() [Ignore("Only validating compilation of examples")] public async Task Get_PoolsGetCustomThroughput() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Get_CustomThroughput.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Pools_Get_CustomThroughput.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 @@ -82,7 +82,7 @@ public async Task Get_PoolsGetCustomThroughput() [Ignore("Only validating compilation of examples")] public async Task Delete_PoolsDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -109,7 +109,7 @@ public async Task Delete_PoolsDelete() [Ignore("Only validating compilation of examples")] public async Task Update_PoolsUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -142,7 +142,7 @@ public async Task Update_PoolsUpdate() [Ignore("Only validating compilation of examples")] public async Task Update_PoolsUpdateCustomThroughput() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Update_CustomThroughput.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Pools_Update_CustomThroughput.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 diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppAccountCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppAccountCollection.cs index cbe16bbac14b..025d2ec0967e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppAccountCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppAccountCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetAppAccountCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_AccountsCreateOrUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_CreateOrUpdate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -56,7 +56,7 @@ public async Task CreateOrUpdate_AccountsCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_AccountsCreateOrUpdateWithActiveDirectory() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_CreateOrUpdateAD.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -81,7 +81,7 @@ public async Task CreateOrUpdate_AccountsCreateOrUpdateWithActiveDirectory() ActiveDirectories = {new NetAppAccountActiveDirectory { Username = "ad_user_name", -Password = "", +Password = "ad_password", Domain = "10.10.10.3", Dns = "10.10.10.3", SmbServerName = "SMBServer", @@ -106,7 +106,7 @@ public async Task CreateOrUpdate_AccountsCreateOrUpdateWithActiveDirectory() [Ignore("Only validating compilation of examples")] public async Task Get_AccountsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -139,7 +139,7 @@ public async Task Get_AccountsGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_AccountsList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -174,7 +174,7 @@ public async Task GetAll_AccountsList() [Ignore("Only validating compilation of examples")] public async Task Exists_AccountsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -203,7 +203,7 @@ public async Task Exists_AccountsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_AccountsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Accounts_Get.json // this example is just showing the usage of "Accounts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppAccountResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppAccountResource.cs index 85a80f3e8582..c587d9fbd1e0 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppAccountResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppAccountResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetAppAccountResource [Ignore("Only validating compilation of examples")] public async Task Get_AccountsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -50,7 +50,7 @@ public async Task Get_AccountsGet() [Ignore("Only validating compilation of examples")] public async Task Delete_AccountsDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -76,7 +76,7 @@ public async Task Delete_AccountsDelete() [Ignore("Only validating compilation of examples")] public async Task Update_AccountsUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -112,10 +112,10 @@ public async Task Update_AccountsUpdate() [Test] [Ignore("Only validating compilation of examples")] - public async Task RenewCredentials_AccountsRenewCredentials() + public async Task ChangeKeyVault_AccountsChangeKeyVault() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Accounts_ChangeKeyVault.json + // this example is just showing the usage of "Accounts_ChangeKeyVault" 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(); @@ -131,17 +131,28 @@ public async Task RenewCredentials_AccountsRenewCredentials() NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); // invoke the operation - await netAppAccount.RenewCredentialsAsync(WaitUntil.Completed); + NetAppChangeKeyVault body = new NetAppChangeKeyVault(new Uri("https://my-key-vault.managedhsm.azure.net"), "rsakey", new NetAppKeyVaultPrivateEndpoint[] + { +new NetAppKeyVaultPrivateEndpoint +{ +VirtualNetworkId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1"), +PrivateEndpointId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"), +} + }) + { + KeyVaultResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.KeyVault/managedHSMs/my-hsm"), + }; + await netAppAccount.ChangeKeyVaultAsync(WaitUntil.Completed, body: body); Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task TransitionToCmk_AccountsMigrateEncryptionKey() + public async Task GetChangeKeyVaultInformation_AccountsGetChangeKeyVaultInformation() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_TransitionEncryptionKey.json - // this example is just showing the usage of "Accounts_TransitionToCmk" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Accounts_GetChangeKeyVaultInformation.json + // this example is just showing the usage of "Accounts_GetChangeKeyVaultInformation" 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(); @@ -157,18 +168,18 @@ public async Task TransitionToCmk_AccountsMigrateEncryptionKey() NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); // invoke the operation - NetAppEncryptionTransitionContent content = new NetAppEncryptionTransitionContent(new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1"), new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1")); - await netAppAccount.TransitionToCmkAsync(WaitUntil.Completed, content: content); + ArmOperation lro = await netAppAccount.GetChangeKeyVaultInformationAsync(WaitUntil.Completed); + NetAppKeyVaultStatusResult result = lro.Value; - Console.WriteLine("Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetChangeKeyVaultInformation_AccountsGetChangeKeyVaultInformation() + public async Task RenewCredentials_AccountsRenewCredentials() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_GetChangeKeyVaultInformation.json - // this example is just showing the usage of "Accounts_GetChangeKeyVaultInformation" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -184,18 +195,17 @@ public async Task GetChangeKeyVaultInformation_AccountsGetChangeKeyVaultInformat NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); // invoke the operation - ArmOperation lro = await netAppAccount.GetChangeKeyVaultInformationAsync(WaitUntil.Completed); - NetAppKeyVaultStatusResult result = lro.Value; + await netAppAccount.RenewCredentialsAsync(WaitUntil.Completed); - Console.WriteLine($"Succeeded: {result}"); + Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task ChangeKeyVault_AccountsChangeKeyVault() + public async Task TransitionToCmk_AccountsMigrateEncryptionKey() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_ChangeKeyVault.json - // this example is just showing the usage of "Accounts_ChangeKeyVault" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Accounts_TransitionEncryptionKey.json + // this example is just showing the usage of "Accounts_TransitionToCmk" 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(); @@ -211,28 +221,18 @@ public async Task ChangeKeyVault_AccountsChangeKeyVault() NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); // invoke the operation - NetAppChangeKeyVault body = new NetAppChangeKeyVault(new Uri("https://my-key-vault.managedhsm.azure.net"), "rsakey", new NetAppKeyVaultPrivateEndpoint[] - { -new NetAppKeyVaultPrivateEndpoint -{ -VirtualNetworkId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1"), -PrivateEndpointId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"), -} - }) - { - KeyVaultResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.KeyVault/managedHSMs/my-hsm"), - }; - await netAppAccount.ChangeKeyVaultAsync(WaitUntil.Completed, body: body); + NetAppEncryptionTransitionContent content = new NetAppEncryptionTransitionContent(new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1"), new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1")); + await netAppAccount.TransitionToCmkAsync(WaitUntil.Completed, content: content); Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetVolumeGroups_VolumeGroupsListOracle() + public async Task MigrateBackupsBackupsUnderAccount_BackupsUnderAccountMigrate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_List_Oracle.json - // this example is just showing the usage of "VolumeGroups_ListByNetAppAccount" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupsUnderAccount_Migrate.json + // this example is just showing the usage of "BackupsUnderAccount_MigrateBackups" 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(); @@ -247,21 +247,19 @@ public async Task GetVolumeGroups_VolumeGroupsListOracle() ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); - // invoke the operation and iterate over the result - await foreach (NetAppVolumeGroupResult item in netAppAccount.GetVolumeGroupsAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } + // invoke the operation + BackupsMigrationContent content = new BackupsMigrationContent("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"); + await netAppAccount.MigrateBackupsBackupsUnderAccountAsync(WaitUntil.Completed, content); Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetVolumeGroups_VolumeGroupsListSapHana() + public async Task GetNetAppResourceQuotaLimitsAccounts_QuotaLimits() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_List_SapHana.json - // this example is just showing the usage of "VolumeGroups_ListByNetAppAccount" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/NetAppResourceQuotaLimitsAccount_List.json + // this example is just showing the usage of "NetAppResourceQuotaLimitsAccount_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -270,14 +268,14 @@ public async Task GetVolumeGroups_VolumeGroupsListSapHana() // this example assumes you already have this NetAppAccountResource created on azure // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; string resourceGroupName = "myRG"; - string accountName = "account1"; + string accountName = "myAccount"; ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); // invoke the operation and iterate over the result - await foreach (NetAppVolumeGroupResult item in netAppAccount.GetVolumeGroupsAsync()) + await foreach (NetAppSubscriptionQuotaItem item in netAppAccount.GetNetAppResourceQuotaLimitsAccountsAsync()) { Console.WriteLine($"Succeeded: {item}"); } @@ -287,10 +285,10 @@ public async Task GetVolumeGroups_VolumeGroupsListSapHana() [Test] [Ignore("Only validating compilation of examples")] - public async Task GetNetAppResourceQuotaLimitsAccounts_QuotaLimitsAccountList() + public async Task GetNetAppResourceQuotaLimitsAccount_QuotaLimits() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/QuotaLimitsAccount_List.json - // this example is just showing the usage of "NetAppResourceQuotaLimitsAccount_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/NetAppResourceQuotaLimitsAccount_Get.json + // this example is just showing the usage of "NetAppResourceQuotaLimitsAccount_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -305,21 +303,19 @@ public async Task GetNetAppResourceQuotaLimitsAccounts_QuotaLimitsAccountList() ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); - // invoke the operation and iterate over the result - await foreach (NetAppSubscriptionQuotaItem item in netAppAccount.GetNetAppResourceQuotaLimitsAccountsAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } + // invoke the operation + string quotaLimitName = "poolsPerAccount"; + NetAppSubscriptionQuotaItem result = await netAppAccount.GetNetAppResourceQuotaLimitsAccountAsync(quotaLimitName); - Console.WriteLine("Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetNetAppResourceQuotaLimitsAccount_VolumesRestoreStatus() + public async Task GetVolumeGroups_VolumeGroupsListOracle() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/QuotaLimitsAccount_Get.json - // this example is just showing the usage of "NetAppResourceQuotaLimitsAccount_Get" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_List_Oracle.json + // this example is just showing the usage of "VolumeGroups_ListByNetAppAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -328,25 +324,27 @@ public async Task GetNetAppResourceQuotaLimitsAccount_VolumesRestoreStatus() // this example assumes you already have this NetAppAccountResource created on azure // for more information of creating NetAppAccountResource, please refer to the document of NetAppAccountResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "myRG"; - string accountName = "myAccount"; + string accountName = "account1"; ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); - // invoke the operation - string quotaLimitName = "poolsPerAccount"; - NetAppSubscriptionQuotaItem result = await netAppAccount.GetNetAppResourceQuotaLimitsAccountAsync(quotaLimitName); + // invoke the operation and iterate over the result + await foreach (NetAppVolumeGroupResult item in netAppAccount.GetVolumeGroupsAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } - Console.WriteLine($"Succeeded: {result}"); + Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task MigrateBackupsBackupsUnderAccount_BackupsUnderAccountMigrate() + public async Task GetVolumeGroups_VolumeGroupsListSapHana() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupsUnderAccount_Migrate.json - // this example is just showing the usage of "BackupsUnderAccount_MigrateBackups" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_List_SapHana.json + // this example is just showing the usage of "VolumeGroups_ListByNetAppAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -361,9 +359,11 @@ public async Task MigrateBackupsBackupsUnderAccount_BackupsUnderAccountMigrate() ResourceIdentifier netAppAccountResourceId = NetAppAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); NetAppAccountResource netAppAccount = client.GetNetAppAccountResource(netAppAccountResourceId); - // invoke the operation - BackupsMigrationContent content = new BackupsMigrationContent("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"); - await netAppAccount.MigrateBackupsBackupsUnderAccountAsync(WaitUntil.Completed, content); + // invoke the operation and iterate over the result + await foreach (NetAppVolumeGroupResult item in netAppAccount.GetVolumeGroupsAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } Console.WriteLine("Succeeded"); } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs index dd295843a893..30c4402ce0bc 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupPolicyCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetAppBackupPolicyCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_BackupPoliciesCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_BackupPoliciesCreate() [Ignore("Only validating compilation of examples")] public async Task Get_BackupsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -95,7 +95,7 @@ public async Task Get_BackupsGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_BackupPoliciesList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -131,7 +131,7 @@ public async Task GetAll_BackupPoliciesList() [Ignore("Only validating compilation of examples")] public async Task Exists_BackupsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -161,7 +161,7 @@ public async Task Exists_BackupsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_BackupsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupPolicies_Get.json // this example is just showing the usage of "BackupPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupPolicyResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupPolicyResource.cs index e5e4448710da..63adbc5a0fbf 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupPolicyResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupPolicyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetAppBackupPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_BackupsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -51,7 +51,7 @@ public async Task Get_BackupsGet() [Ignore("Only validating compilation of examples")] public async Task Delete_BackupPoliciesDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -78,7 +78,7 @@ public async Task Delete_BackupPoliciesDelete() [Ignore("Only validating compilation of examples")] public async Task Update_BackupPoliciesUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultBackupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultBackupCollection.cs index 0e5bb0f9ac53..536d85302f18 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultBackupCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultBackupCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetAppBackupVaultBackupCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_BackupsUnderBackupVaultCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupsUnderBackupVault_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupsUnderBackupVault_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 @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_BackupsUnderBackupVaultCreate() [Ignore("Only validating compilation of examples")] public async Task Get_BackupsUnderBackupVaultGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupsUnderBackupVault_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupsUnderBackupVault_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 @@ -94,7 +94,7 @@ public async Task Get_BackupsUnderBackupVaultGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_BackupsList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupsUnderBackupVault_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupsUnderBackupVault_List.json // this example is just showing the usage of "Backups_ListByVault" 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 GetAll_BackupsList() [Ignore("Only validating compilation of examples")] public async Task Exists_BackupsUnderBackupVaultGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupsUnderBackupVault_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupsUnderBackupVault_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 @@ -162,7 +162,7 @@ public async Task Exists_BackupsUnderBackupVaultGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_BackupsUnderBackupVaultGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupsUnderBackupVault_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupsUnderBackupVault_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 diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultBackupResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultBackupResource.cs index 37455696a6af..5012e94843c1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultBackupResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultBackupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetAppBackupVaultBackupResource [Ignore("Only validating compilation of examples")] public async Task Get_BackupsUnderBackupVaultGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupsUnderBackupVault_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupsUnderBackupVault_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 @@ -52,7 +52,7 @@ public async Task Get_BackupsUnderBackupVaultGet() [Ignore("Only validating compilation of examples")] public async Task Delete_BackupsUnderBackupVaultDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupsUnderBackupVault_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupsUnderBackupVault_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 @@ -80,7 +80,7 @@ public async Task Delete_BackupsUnderBackupVaultDelete() [Ignore("Only validating compilation of examples")] public async Task Update_BackupsUnderBackupVaultUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupsUnderBackupVault_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupsUnderBackupVault_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 @@ -114,7 +114,7 @@ public async Task Update_BackupsUnderBackupVaultUpdate() [Ignore("Only validating compilation of examples")] public async Task RestoreFilesBackupsUnderBackupVault_BackupsSingleFileRestore() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupsUnderBackupVault_SingleFileRestore.json // this example is just showing the usage of "BackupsUnderBackupVault_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/tests/Generated/Samples/Sample_NetAppBackupVaultCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultCollection.cs index 28c00cc03a9b..66eac95254a1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetAppBackupVaultCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_BackupVaultCreateOrUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupVaults_Create.json // this example is just showing the usage of "BackupVaults_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 @@ -55,7 +55,7 @@ public async Task CreateOrUpdate_BackupVaultCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_BackupVaultsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupVaults_Get.json // this example is just showing the usage of "BackupVaults_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 Get_BackupVaultsGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_BackupVaultsList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupVaults_List.json // this example is just showing the usage of "BackupVaults_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 @@ -125,7 +125,7 @@ public async Task GetAll_BackupVaultsList() [Ignore("Only validating compilation of examples")] public async Task Exists_BackupVaultsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupVaults_Get.json // this example is just showing the usage of "BackupVaults_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 @@ -155,7 +155,7 @@ public async Task Exists_BackupVaultsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_BackupVaultsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupVaults_Get.json // this example is just showing the usage of "BackupVaults_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/tests/Generated/Samples/Sample_NetAppBackupVaultResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultResource.cs index ba794e9247ee..8bf0f7d37211 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBackupVaultResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetAppBackupVaultResource [Ignore("Only validating compilation of examples")] public async Task Get_BackupVaultsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupVaults_Get.json // this example is just showing the usage of "BackupVaults_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 @@ -51,7 +51,7 @@ public async Task Get_BackupVaultsGet() [Ignore("Only validating compilation of examples")] public async Task Delete_BackupVaultsDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupVaults_Delete.json // this example is just showing the usage of "BackupVaults_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 @@ -78,7 +78,7 @@ public async Task Delete_BackupVaultsDelete() [Ignore("Only validating compilation of examples")] public async Task Update_BackupVaultsUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupVaults_Update.json // this example is just showing the usage of "BackupVaults_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 diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBucketCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBucketCollection.cs deleted file mode 100644 index f311dd9e4902..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBucketCollection.cs +++ /dev/null @@ -1,224 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager.NetApp.Models; -using NUnit.Framework; - -namespace Azure.ResourceManager.NetApp.Samples -{ - public partial class Sample_NetAppBucketCollection - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task CreateOrUpdate_BucketsCreateOrUpdate() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_CreateOrUpdate.json - // this example is just showing the usage of "Buckets_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 - 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 = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppBucketResource - NetAppBucketCollection collection = netAppVolume.GetNetAppBuckets(); - - // invoke the operation - string bucketName = "bucket1"; - NetAppBucketData data = new NetAppBucketData - { - Path = "/path", - FileSystemUser = new NetAppBucketFileSystemUser - { - NfsUser = new NetAppBucketNfsUser - { - UserId = 1001L, - GroupId = 1000L, - }, - }, - Server = new NetAppBucketServerProperties - { - Fqdn = "fullyqualified.domainname.com", - CertificateObject = "", - }, - Permissions = NetAppBucketPermission.ReadOnly, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, bucketName, data); - NetAppBucketResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBucketData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_BucketsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Get.json - // this example is just showing the usage of "Buckets_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppBucketResource - NetAppBucketCollection collection = netAppVolume.GetNetAppBuckets(); - - // invoke the operation - string bucketName = "bucket1"; - NetAppBucketResource result = await collection.GetAsync(bucketName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBucketData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAll_BucketsList() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_List.json - // this example is just showing the usage of "Buckets_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppBucketResource - NetAppBucketCollection collection = netAppVolume.GetNetAppBuckets(); - - // invoke the operation and iterate over the result - await foreach (NetAppBucketResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBucketData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Exists_BucketsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Get.json - // this example is just showing the usage of "Buckets_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppBucketResource - NetAppBucketCollection collection = netAppVolume.GetNetAppBuckets(); - - // invoke the operation - string bucketName = "bucket1"; - bool result = await collection.ExistsAsync(bucketName); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetIfExists_BucketsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Get.json - // this example is just showing the usage of "Buckets_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppVolumeResource created on azure - // for more information of creating NetAppVolumeResource, please refer to the document of NetAppVolumeResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // get the collection of this NetAppBucketResource - NetAppBucketCollection collection = netAppVolume.GetNetAppBuckets(); - - // invoke the operation - string bucketName = "bucket1"; - NullableResponse response = await collection.GetIfExistsAsync(bucketName); - NetAppBucketResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine("Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBucketData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBucketResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBucketResource.cs deleted file mode 100644 index 5b9742e3d73f..000000000000 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppBucketResource.cs +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager.NetApp.Models; -using NUnit.Framework; - -namespace Azure.ResourceManager.NetApp.Samples -{ - public partial class Sample_NetAppBucketResource - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_BucketsGet() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Get.json - // this example is just showing the usage of "Buckets_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppBucketResource created on azure - // for more information of creating NetAppBucketResource, please refer to the document of NetAppBucketResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - string bucketName = "bucket1"; - ResourceIdentifier netAppBucketResourceId = NetAppBucketResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName); - NetAppBucketResource netAppBucket = client.GetNetAppBucketResource(netAppBucketResourceId); - - // invoke the operation - NetAppBucketResource result = await netAppBucket.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBucketData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Delete_BucketsDelete() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Delete.json - // this example is just showing the usage of "Buckets_Delete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppBucketResource created on azure - // for more information of creating NetAppBucketResource, please refer to the document of NetAppBucketResource - string subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - string bucketName = "bucket1"; - ResourceIdentifier netAppBucketResourceId = NetAppBucketResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName); - NetAppBucketResource netAppBucket = client.GetNetAppBucketResource(netAppBucketResourceId); - - // invoke the operation - await netAppBucket.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Update_BucketsUpdate() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Update.json - // this example is just showing the usage of "Buckets_Update" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this NetAppBucketResource created on azure - // for more information of creating NetAppBucketResource, please refer to the document of NetAppBucketResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - string bucketName = "bucket1"; - ResourceIdentifier netAppBucketResourceId = NetAppBucketResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName); - NetAppBucketResource netAppBucket = client.GetNetAppBucketResource(netAppBucketResourceId); - - // invoke the operation - NetAppBucketPatch patch = new NetAppBucketPatch - { - Server = new NetAppBucketServerPatchProperties - { - Fqdn = "fullyqualified.domainname.com", - CertificateObject = "", - }, - Permissions = NetAppBucketPatchPermission.ReadWrite, - }; - ArmOperation lro = await netAppBucket.UpdateAsync(WaitUntil.Completed, patch); - NetAppBucketResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppBucketData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GenerateCredentials_BucketsGenerateCredentials() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_GenerateCredentials.json - // this example is just showing the usage of "Buckets_GenerateCredentials" 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 NetAppBucketResource created on azure - // for more information of creating NetAppBucketResource, please refer to the document of NetAppBucketResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - string bucketName = "bucket1"; - ResourceIdentifier netAppBucketResourceId = NetAppBucketResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName, bucketName); - NetAppBucketResource netAppBucket = client.GetNetAppBucketResource(netAppBucketResourceId); - - // invoke the operation - NetAppBucketCredentialsExpiry body = new NetAppBucketCredentialsExpiry - { - KeyPairExpiryDays = 3, - }; - NetAppBucketGenerateCredentials result = await netAppBucket.GenerateCredentialsAsync(body); - - Console.WriteLine($"Succeeded: {result}"); - } - } -} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs index 9090162849b7..25d90b5edb4d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppSubvolumeInfoCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetAppSubvolumeInfoCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_SubvolumesCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_SubvolumesCreate() [Ignore("Only validating compilation of examples")] public async Task Get_SubvolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -96,7 +96,7 @@ public async Task Get_SubvolumesGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_SubvolumesList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -134,7 +134,7 @@ public async Task GetAll_SubvolumesList() [Ignore("Only validating compilation of examples")] public async Task Exists_SubvolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -166,7 +166,7 @@ public async Task Exists_SubvolumesGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_SubvolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Subvolumes_Get.json // this example is just showing the usage of "Subvolumes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppSubvolumeInfoResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppSubvolumeInfoResource.cs index a44302fd5339..ef4d708ac2c5 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppSubvolumeInfoResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppSubvolumeInfoResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetAppSubvolumeInfoResource [Ignore("Only validating compilation of examples")] public async Task Get_SubvolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -53,7 +53,7 @@ public async Task Get_SubvolumesGet() [Ignore("Only validating compilation of examples")] public async Task Delete_SubvolumesDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -82,7 +82,7 @@ public async Task Delete_SubvolumesDelete() [Ignore("Only validating compilation of examples")] public async Task Update_SubvolumesUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -120,7 +120,7 @@ public async Task Update_SubvolumesUpdate() [Ignore("Only validating compilation of examples")] public async Task GetMetadata_SubvolumesMetadata() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Metadata.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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/tests/Generated/Samples/Sample_NetAppVolumeCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeCollection.cs index d3864997b473..2211abb38ce9 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetAppVolumeCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VolumesCreateOrUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_CreateOrUpdate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -42,7 +42,7 @@ public async Task CreateOrUpdate_VolumesCreateOrUpdate() // invoke the operation string volumeName = "volume1"; - NetAppVolumeData data = new NetAppVolumeData(new AzureLocation("eastus"), "my-unique-file-path", 107374182400L, new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) + NetAppVolumeData data = new NetAppVolumeData(new AzureLocation("eastus"), "my-unique-file-path", 107374182400L, new ResourceIdentifier("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { ServiceLevel = NetAppFileServiceLevel.Premium, }; @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_VolumesCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_VolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -95,7 +95,7 @@ public async Task Get_VolumesGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_VolumesList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -132,7 +132,7 @@ public async Task GetAll_VolumesList() [Ignore("Only validating compilation of examples")] public async Task Exists_VolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -163,7 +163,7 @@ public async Task Exists_VolumesGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Volumes_Get.json // this example is just showing the usage of "Volumes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs index d8ab1b0f1368..533767e9d3ed 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetAppVolumeGroupCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VolumeGroupsCreateOracle() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Create_Oracle.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Create_Oracle.json // this example is just showing the usage of "VolumeGroups_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -378,7 +378,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VolumeGroupsCreateSapHana() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Create_SapHana.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Create_SapHana.json // this example is just showing the usage of "VolumeGroups_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -554,7 +554,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateSapHana() [Ignore("Only validating compilation of examples")] public async Task Get_VolumeGroupsGetOracle() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Get_Oracle.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Get_Oracle.json // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -588,7 +588,7 @@ public async Task Get_VolumeGroupsGetOracle() [Ignore("Only validating compilation of examples")] public async Task Get_VolumeGroupsGetSapHana() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Get_SapHana.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Get_SapHana.json // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -622,7 +622,7 @@ public async Task Get_VolumeGroupsGetSapHana() [Ignore("Only validating compilation of examples")] public async Task Exists_VolumeGroupsGetOracle() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Get_Oracle.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Get_Oracle.json // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -652,7 +652,7 @@ public async Task Exists_VolumeGroupsGetOracle() [Ignore("Only validating compilation of examples")] public async Task Exists_VolumeGroupsGetSapHana() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Get_SapHana.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Get_SapHana.json // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -682,7 +682,7 @@ public async Task Exists_VolumeGroupsGetSapHana() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VolumeGroupsGetOracle() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Get_Oracle.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Get_Oracle.json // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -724,7 +724,7 @@ public async Task GetIfExists_VolumeGroupsGetOracle() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VolumeGroupsGetSapHana() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Get_SapHana.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Get_SapHana.json // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeGroupResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeGroupResource.cs index 8587b4129fba..a7b45b158a9e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeGroupResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetAppVolumeGroupResource [Ignore("Only validating compilation of examples")] public async Task Get_VolumeGroupsGetOracle() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Get_Oracle.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Get_Oracle.json // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_VolumeGroupsGetOracle() [Ignore("Only validating compilation of examples")] public async Task Get_VolumeGroupsGetSapHana() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Get_SapHana.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Get_SapHana.json // this example is just showing the usage of "VolumeGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_VolumeGroupsGetSapHana() [Ignore("Only validating compilation of examples")] public async Task Delete_VolumeGroupsDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -109,7 +109,7 @@ public async Task Delete_VolumeGroupsDelete() [Ignore("Only validating compilation of examples")] public async Task Update_VolumeGroupsCreateOracle() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Create_Oracle.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Create_Oracle.json // this example is just showing the usage of "VolumeGroups_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -464,7 +464,7 @@ public async Task Update_VolumeGroupsCreateOracle() [Ignore("Only validating compilation of examples")] public async Task Update_VolumeGroupsCreateSapHana() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Create_SapHana.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeGroups_Create_SapHana.json // this example is just showing the usage of "VolumeGroups_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs index ec896a585e25..a305a09f5bdf 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetAppVolumeQuotaRuleCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VolumeQuotaRulesCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_VolumeQuotaRulesCreate() [Ignore("Only validating compilation of examples")] public async Task Get_VolumeQuotaRulesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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() [Ignore("Only validating compilation of examples")] public async Task GetAll_VolumeQuotaRulesList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -137,7 +137,7 @@ public async Task GetAll_VolumeQuotaRulesList() [Ignore("Only validating compilation of examples")] public async Task Exists_VolumeQuotaRulesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -169,7 +169,7 @@ public async Task Exists_VolumeQuotaRulesGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VolumeQuotaRulesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/VolumeQuotaRules_Get.json // this example is just showing the usage of "VolumeQuotaRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs index ffd3d0abd90e..afe6f009b703 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetAppVolumeQuotaRuleResource [Ignore("Only validating compilation of examples")] public async Task Get_VolumeQuotaRulesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -53,7 +53,7 @@ public async Task Get_VolumeQuotaRulesGet() [Ignore("Only validating compilation of examples")] public async Task Delete_VolumeQuotaRulesDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -82,7 +82,7 @@ public async Task Delete_VolumeQuotaRulesDelete() [Ignore("Only validating compilation of examples")] public async Task Update_VolumeQuotaRulesUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeResource.cs index c0782c61730b..984be24f5307 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetAppVolumeResource [Ignore("Only validating compilation of examples")] public async Task Get_VolumesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -53,7 +53,7 @@ public async Task Get_VolumesGet() [Ignore("Only validating compilation of examples")] public async Task Delete_VolumesDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -81,7 +81,7 @@ public async Task Delete_VolumesDelete() [Ignore("Only validating compilation of examples")] public async Task Update_VolumesUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -113,10 +113,10 @@ public async Task Update_VolumesUpdate() [Test] [Ignore("Only validating compilation of examples")] - public async Task PopulateAvailabilityZone_VolumesPopulateAvailabilityZones() + public async Task GetLatestStatusBackup_VolumesBackupStatus() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_PopulateAvailabilityZones.json - // this example is just showing the usage of "Volumes_PopulateAvailabilityZone" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Volumes_LatestBackupStatus.json + // this example is just showing the usage of "Backups_GetLatestStatus" 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(); @@ -134,22 +134,17 @@ public async Task PopulateAvailabilityZone_VolumesPopulateAvailabilityZones() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - ArmOperation lro = await netAppVolume.PopulateAvailabilityZoneAsync(WaitUntil.Completed); - NetAppVolumeResource result = lro.Value; + NetAppVolumeBackupStatus result = await netAppVolume.GetLatestStatusBackupAsync(); - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppVolumeData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Revert_VolumesRevert() + public async Task GetVolumeLatestRestoreStatusBackup_VolumesRestoreStatus() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Volumes_LatestRestoreStatus.json + // this example is just showing the usage of "Backups_GetVolumeLatestRestoreStatus" 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(); @@ -167,21 +162,17 @@ public async Task Revert_VolumesRevert() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - NetAppVolumeRevertContent content = new NetAppVolumeRevertContent - { - SnapshotId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", - }; - await netAppVolume.RevertAsync(WaitUntil.Completed, content); + NetAppRestoreStatus result = await netAppVolume.GetVolumeLatestRestoreStatusBackupAsync(); - Console.WriteLine("Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task ResetCifsPassword_VolumesResetCifsPassword() + public async Task AuthorizeExternalReplication_VolumesAuthorizeExternalReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Volumes_AuthorizeExternalReplication.json + // this example is just showing the usage of "Volumes_AuthorizeExternalReplication" 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(); @@ -199,17 +190,18 @@ public async Task ResetCifsPassword_VolumesResetCifsPassword() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - await netAppVolume.ResetCifsPasswordAsync(WaitUntil.Completed); + ArmOperation lro = await netAppVolume.AuthorizeExternalReplicationAsync(WaitUntil.Completed); + SvmPeerCommandResult result = lro.Value; - Console.WriteLine("Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task SplitCloneFromParent_VolumesSplitClone() + public async Task AuthorizeReplication_VolumesAuthorizeReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_SplitClone.json - // this example is just showing the usage of "Volumes_SplitCloneFromParent" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -227,21 +219,20 @@ public async Task SplitCloneFromParent_VolumesSplitClone() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - ArmOperation lro = await netAppVolume.SplitCloneFromParentAsync(WaitUntil.Completed); - NetAppVolumeResource result = lro.Value; + NetAppVolumeAuthorizeReplicationContent content = new NetAppVolumeAuthorizeReplicationContent + { + RemoteVolumeResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"), + }; + await netAppVolume.AuthorizeReplicationAsync(WaitUntil.Completed, content); - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - NetAppVolumeData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] public async Task BreakFileLocks_VolumesBreakFileLocks() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_BreakFileLocks.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -272,10 +263,10 @@ public async Task BreakFileLocks_VolumesBreakFileLocks() [Test] [Ignore("Only validating compilation of examples")] - public async Task GetGetGroupIdListForLdapUser_GetGroupIdListForUser() + public async Task BreakReplication_VolumesBreakReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -293,19 +284,21 @@ public async Task GetGetGroupIdListForLdapUser_GetGroupIdListForUser() 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; + NetAppVolumeBreakReplicationContent content = new NetAppVolumeBreakReplicationContent + { + ForceBreakReplication = false, + }; + await netAppVolume.BreakReplicationAsync(WaitUntil.Completed, content: content); - Console.WriteLine($"Succeeded: {result}"); + Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetQuotaReport_ListQuotaReport() + public async Task DeleteReplication_VolumesDeleteReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_ListQuotaReport.json - // this example is just showing the usage of "Volumes_ListQuotaReport" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -323,18 +316,17 @@ public async Task GetQuotaReport_ListQuotaReport() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - ArmOperation lro = await netAppVolume.GetQuotaReportAsync(WaitUntil.Completed); - NetAppVolumeQuotaReportListResult result = lro.Value; + await netAppVolume.DeleteReplicationAsync(WaitUntil.Completed); - Console.WriteLine($"Succeeded: {result}"); + Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task BreakReplication_VolumesBreakReplication() + public async Task FinalizeExternalReplication_VolumesFinalizeExternalReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Volumes_FinalizeExternalReplication.json + // this example is just showing the usage of "Volumes_FinalizeExternalReplication" 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(); @@ -352,21 +344,17 @@ public async Task BreakReplication_VolumesBreakReplication() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - NetAppVolumeBreakReplicationContent content = new NetAppVolumeBreakReplicationContent - { - ForceBreakReplication = false, - }; - await netAppVolume.BreakReplicationAsync(WaitUntil.Completed, content: content); + await netAppVolume.FinalizeExternalReplicationAsync(WaitUntil.Completed); Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task ReestablishReplication_VolumesReestablishReplication() + public async Task FinalizeRelocation_VolumesFinalizeRelocation() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -384,21 +372,17 @@ public async Task ReestablishReplication_VolumesReestablishReplication() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - NetAppVolumeReestablishReplicationContent content = new NetAppVolumeReestablishReplicationContent - { - SourceVolumeId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1"), - }; - await netAppVolume.ReestablishReplicationAsync(WaitUntil.Completed, content); + await netAppVolume.FinalizeRelocationAsync(WaitUntil.Completed); Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetReplicationStatus_VolumesReplicationStatus() + public async Task GetGetGroupIdListForLdapUser_GetGroupIdListForUser() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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(); @@ -416,7 +400,9 @@ public async Task GetReplicationStatus_VolumesReplicationStatus() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - NetAppVolumeReplicationStatus result = await netAppVolume.GetReplicationStatusAsync(); + GetGroupIdListForLdapUserContent content = new GetGroupIdListForLdapUserContent("user1"); + ArmOperation lro = await netAppVolume.GetGetGroupIdListForLdapUserAsync(WaitUntil.Completed, content); + GetGroupIdListForLdapUserResult result = lro.Value; Console.WriteLine($"Succeeded: {result}"); } @@ -425,7 +411,7 @@ public async Task GetReplicationStatus_VolumesReplicationStatus() [Ignore("Only validating compilation of examples")] public async Task GetReplications_VolumesListReplications() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_ListReplications.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -444,7 +430,11 @@ public async Task GetReplications_VolumesListReplications() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation and iterate over the result - await foreach (NetAppVolumeReplication item in netAppVolume.GetReplicationsAsync()) + ListReplicationsContent content = new ListReplicationsContent + { + Exclude = Exclude.None, + }; + await foreach (NetAppVolumeReplication item in netAppVolume.GetReplicationsAsync(content: content)) { Console.WriteLine($"Succeeded: {item}"); } @@ -454,10 +444,10 @@ public async Task GetReplications_VolumesListReplications() [Test] [Ignore("Only validating compilation of examples")] - public async Task ResyncReplication_VolumesResyncReplication() + public async Task PeerExternalCluster_VolumesPeerExternalCluster() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Volumes_PeerExternalCluster.json + // this example is just showing the usage of "Volumes_PeerExternalCluster" 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(); @@ -475,17 +465,19 @@ public async Task ResyncReplication_VolumesResyncReplication() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - await netAppVolume.ResyncReplicationAsync(WaitUntil.Completed); + PeerClusterForVolumeMigrationContent content = new PeerClusterForVolumeMigrationContent(new string[] { "0.0.0.1", "0.0.0.2", "0.0.0.3", "0.0.0.4", "0.0.0.5", "0.0.0.6" }); + ArmOperation lro = await netAppVolume.PeerExternalClusterAsync(WaitUntil.Completed, content); + ClusterPeerCommandResult result = lro.Value; - Console.WriteLine("Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task DeleteReplication_VolumesDeleteReplication() + public async Task PerformReplicationTransfer_VolumesPerformReplicationTransfer() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Volumes_PerformReplicationTransfer.json + // this example is just showing the usage of "Volumes_PerformReplicationTransfer" 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(); @@ -503,17 +495,17 @@ public async Task DeleteReplication_VolumesDeleteReplication() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - await netAppVolume.DeleteReplicationAsync(WaitUntil.Completed); + await netAppVolume.PerformReplicationTransferAsync(WaitUntil.Completed); Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task AuthorizeReplication_VolumesAuthorizeReplication() + public async Task PoolChange_VolumesAuthorizeReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -531,21 +523,18 @@ public async Task AuthorizeReplication_VolumesAuthorizeReplication() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - NetAppVolumeAuthorizeReplicationContent content = new NetAppVolumeAuthorizeReplicationContent - { - RemoteVolumeResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"), - }; - await netAppVolume.AuthorizeReplicationAsync(WaitUntil.Completed, content); + NetAppVolumePoolChangeContent content = new NetAppVolumePoolChangeContent(new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")); + await netAppVolume.PoolChangeAsync(WaitUntil.Completed, content); Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task ReInitializeReplication_VolumesReInitializeReplication() + public async Task PopulateAvailabilityZone_VolumesPopulateAvailabilityZones() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Volumes_PopulateAvailabilityZones.json + // this example is just showing the usage of "Volumes_PopulateAvailabilityZone" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -563,17 +552,22 @@ public async Task ReInitializeReplication_VolumesReInitializeReplication() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - await netAppVolume.ReInitializeReplicationAsync(WaitUntil.Completed); + ArmOperation lro = await netAppVolume.PopulateAvailabilityZoneAsync(WaitUntil.Completed); + NetAppVolumeResource result = lro.Value; - Console.WriteLine("Succeeded"); + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetAppVolumeData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task PeerExternalCluster_VolumesPeerExternalCluster() + public async Task ReestablishReplication_VolumesReestablishReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_PeerExternalCluster.json - // this example is just showing the usage of "Volumes_PeerExternalCluster" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -591,19 +585,21 @@ public async Task PeerExternalCluster_VolumesPeerExternalCluster() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - PeerClusterForVolumeMigrationContent content = new PeerClusterForVolumeMigrationContent(new string[] { "0.0.0.1", "0.0.0.2", "0.0.0.3", "0.0.0.4", "0.0.0.5", "0.0.0.6" }); - ArmOperation lro = await netAppVolume.PeerExternalClusterAsync(WaitUntil.Completed, content); - ClusterPeerCommandResult result = lro.Value; + NetAppVolumeReestablishReplicationContent content = new NetAppVolumeReestablishReplicationContent + { + SourceVolumeId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1"), + }; + await netAppVolume.ReestablishReplicationAsync(WaitUntil.Completed, content); - Console.WriteLine($"Succeeded: {result}"); + Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task AuthorizeExternalReplication_VolumesAuthorizeExternalReplication() + public async Task ReInitializeReplication_VolumesReInitializeReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_AuthorizeExternalReplication.json - // this example is just showing the usage of "Volumes_AuthorizeExternalReplication" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -621,18 +617,17 @@ public async Task AuthorizeExternalReplication_VolumesAuthorizeExternalReplicati NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - ArmOperation lro = await netAppVolume.AuthorizeExternalReplicationAsync(WaitUntil.Completed); - SvmPeerCommandResult result = lro.Value; + await netAppVolume.ReInitializeReplicationAsync(WaitUntil.Completed); - Console.WriteLine($"Succeeded: {result}"); + Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task FinalizeExternalReplication_VolumesFinalizeExternalReplication() + public async Task Relocate_VolumesRelocate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_FinalizeExternalReplication.json - // this example is just showing the usage of "Volumes_FinalizeExternalReplication" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -650,17 +645,18 @@ public async Task FinalizeExternalReplication_VolumesFinalizeExternalReplication NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - await netAppVolume.FinalizeExternalReplicationAsync(WaitUntil.Completed); + RelocateVolumeContent content = new RelocateVolumeContent(); + await netAppVolume.RelocateAsync(WaitUntil.Completed, content: content); Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task PerformReplicationTransfer_VolumesPerformReplicationTransfer() + public async Task GetReplicationStatus_VolumesReplicationStatus() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_PerformReplicationTransfer.json - // this example is just showing the usage of "Volumes_PerformReplicationTransfer" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -678,17 +674,17 @@ public async Task PerformReplicationTransfer_VolumesPerformReplicationTransfer() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - await netAppVolume.PerformReplicationTransferAsync(WaitUntil.Completed); + NetAppVolumeReplicationStatus result = await netAppVolume.GetReplicationStatusAsync(); - Console.WriteLine("Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task PoolChange_VolumesAuthorizeReplication() + public async Task ResetCifsPassword_VolumesResetCifsPassword() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -706,18 +702,17 @@ public async Task PoolChange_VolumesAuthorizeReplication() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - NetAppVolumePoolChangeContent content = new NetAppVolumePoolChangeContent(new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")); - await netAppVolume.PoolChangeAsync(WaitUntil.Completed, content); + await netAppVolume.ResetCifsPasswordAsync(WaitUntil.Completed); Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Relocate_VolumesRelocate() + public async Task ResyncReplication_VolumesResyncReplication() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -735,18 +730,17 @@ public async Task Relocate_VolumesRelocate() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - RelocateVolumeContent content = new RelocateVolumeContent(); - await netAppVolume.RelocateAsync(WaitUntil.Completed, content: content); + await netAppVolume.ResyncReplicationAsync(WaitUntil.Completed); Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task FinalizeRelocation_VolumesFinalizeRelocation() + public async Task Revert_VolumesRevert() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -764,7 +758,11 @@ public async Task FinalizeRelocation_VolumesFinalizeRelocation() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - await netAppVolume.FinalizeRelocationAsync(WaitUntil.Completed); + NetAppVolumeRevertContent content = new NetAppVolumeRevertContent + { + SnapshotId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", + }; + await netAppVolume.RevertAsync(WaitUntil.Completed, content); Console.WriteLine("Succeeded"); } @@ -773,7 +771,7 @@ public async Task FinalizeRelocation_VolumesFinalizeRelocation() [Ignore("Only validating compilation of examples")] public async Task RevertRelocation_VolumesRevertRelocation() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_RevertRelocation.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -799,38 +797,10 @@ public async Task RevertRelocation_VolumesRevertRelocation() [Test] [Ignore("Only validating compilation of examples")] - public async Task GetLatestStatusBackup_VolumesBackupStatus() - { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_LatestBackupStatus.json - // this example is just showing the usage of "Backups_GetLatestStatus" 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 = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string accountName = "account1"; - string poolName = "pool1"; - string volumeName = "volume1"; - ResourceIdentifier netAppVolumeResourceId = NetAppVolumeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, poolName, volumeName); - NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); - - // invoke the operation - NetAppVolumeBackupStatus result = await netAppVolume.GetLatestStatusBackupAsync(); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetVolumeLatestRestoreStatusBackup_VolumesRestoreStatus() + public async Task SplitCloneFromParent_VolumesSplitClone() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_LatestRestoreStatus.json - // this example is just showing the usage of "Backups_GetVolumeLatestRestoreStatus" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Volumes_SplitClone.json + // this example is just showing the usage of "Volumes_SplitCloneFromParent" 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(); @@ -848,16 +818,21 @@ public async Task GetVolumeLatestRestoreStatusBackup_VolumesRestoreStatus() NetAppVolumeResource netAppVolume = client.GetNetAppVolumeResource(netAppVolumeResourceId); // invoke the operation - NetAppRestoreStatus result = await netAppVolume.GetVolumeLatestRestoreStatusBackupAsync(); + ArmOperation lro = await netAppVolume.SplitCloneFromParentAsync(WaitUntil.Completed); + NetAppVolumeResource result = lro.Value; - Console.WriteLine($"Succeeded: {result}"); + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + NetAppVolumeData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } [Test] [Ignore("Only validating compilation of examples")] public async Task MigrateBackupsBackupsUnderVolume_BackupsUnderVolumeMigrate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupsUnderVolume_Migrate.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/BackupsUnderVolume_Migrate.json // this example is just showing the usage of "BackupsUnderVolume_MigrateBackups" 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/tests/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs index c28933eadbe4..e27fa99bcacf 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeSnapshotCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetAppVolumeSnapshotCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_SnapshotsCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -57,7 +57,7 @@ public async Task CreateOrUpdate_SnapshotsCreate() [Ignore("Only validating compilation of examples")] public async Task Get_SnapshotsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -93,7 +93,7 @@ public async Task Get_SnapshotsGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_SnapshotsList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -131,7 +131,7 @@ public async Task GetAll_SnapshotsList() [Ignore("Only validating compilation of examples")] public async Task Exists_SnapshotsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -163,7 +163,7 @@ public async Task Exists_SnapshotsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_SnapshotsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Snapshots_Get.json // this example is just showing the usage of "Snapshots_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeSnapshotResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeSnapshotResource.cs index 6d072f5d285e..9acffdf7c7f2 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeSnapshotResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_NetAppVolumeSnapshotResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetAppVolumeSnapshotResource [Ignore("Only validating compilation of examples")] public async Task Get_SnapshotsGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -53,7 +53,7 @@ public async Task Get_SnapshotsGet() [Ignore("Only validating compilation of examples")] public async Task Delete_SnapshotsDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -82,7 +82,7 @@ public async Task Delete_SnapshotsDelete() [Ignore("Only validating compilation of examples")] public async Task Update_SnapshotsCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -117,7 +117,7 @@ public async Task Update_SnapshotsCreate() [Ignore("Only validating compilation of examples")] public async Task RestoreFiles_SnapshotsSingleFileRestore() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_SingleFileRestore.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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/tests/Generated/Samples/Sample_RegionInfoResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_RegionInfoResource.cs index 0edb178899ff..264364cca1e0 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_RegionInfoResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_RegionInfoResource.cs @@ -19,7 +19,7 @@ public partial class Sample_RegionInfoResource [Ignore("Only validating compilation of examples")] public async Task Get_RegionInfosGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/RegionInfos_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/RegionInfos_Get.json // this example is just showing the usage of "NetAppResourceRegionInfos_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/tests/Generated/Samples/Sample_RegionInfoResourceCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_RegionInfoResourceCollection.cs index 9c0c3f4e02f9..dd7671752403 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_RegionInfoResourceCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_RegionInfoResourceCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_RegionInfoResourceCollection [Ignore("Only validating compilation of examples")] public async Task Get_RegionInfosGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/RegionInfos_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/RegionInfos_Get.json // this example is just showing the usage of "NetAppResourceRegionInfos_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 @@ -52,7 +52,7 @@ public async Task Get_RegionInfosGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_RegionInfosList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/RegionInfos_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/RegionInfos_List.json // this example is just showing the usage of "NetAppResourceRegionInfos_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 @@ -87,7 +87,7 @@ public async Task GetAll_RegionInfosList() [Ignore("Only validating compilation of examples")] public async Task Exists_RegionInfosGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/RegionInfos_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/RegionInfos_Get.json // this example is just showing the usage of "NetAppResourceRegionInfos_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 @@ -115,7 +115,7 @@ public async Task Exists_RegionInfosGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_RegionInfosGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/RegionInfos_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/RegionInfos_Get.json // this example is just showing the usage of "NetAppResourceRegionInfos_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/tests/Generated/Samples/Sample_SnapshotPolicyCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_SnapshotPolicyCollection.cs index 2d76bcf05123..53d90cf4099e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_SnapshotPolicyCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_SnapshotPolicyCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SnapshotPolicyCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_SnapshotPoliciesCreate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_Create.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -84,7 +84,7 @@ public async Task CreateOrUpdate_SnapshotPoliciesCreate() [Ignore("Only validating compilation of examples")] public async Task Get_SnapshotPoliciesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -118,7 +118,7 @@ public async Task Get_SnapshotPoliciesGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_SnapshotPoliciesList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_List.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -154,7 +154,7 @@ public async Task GetAll_SnapshotPoliciesList() [Ignore("Only validating compilation of examples")] public async Task Exists_SnapshotPoliciesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -184,7 +184,7 @@ public async Task Exists_SnapshotPoliciesGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_SnapshotPoliciesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_SnapshotPolicyResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_SnapshotPolicyResource.cs index 8f74e579ba21..013055471b04 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_SnapshotPolicyResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_SnapshotPolicyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SnapshotPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_SnapshotPoliciesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_Get.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -51,7 +51,7 @@ public async Task Get_SnapshotPoliciesGet() [Ignore("Only validating compilation of examples")] public async Task Delete_SnapshotPoliciesDelete() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_Delete.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -78,7 +78,7 @@ public async Task Delete_SnapshotPoliciesDelete() [Ignore("Only validating compilation of examples")] public async Task Update_SnapshotPoliciesUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -139,7 +139,7 @@ public async Task Update_SnapshotPoliciesUpdate() [Ignore("Only validating compilation of examples")] public async Task GetVolumes_SnapshotPoliciesListVolumes() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_ListVolumes.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 52b587d48fc6..35e371bda610 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -19,10 +19,10 @@ public partial class Sample_SubscriptionResourceExtensions { [Test] [Ignore("Only validating compilation of examples")] - public async Task CheckNetAppNameAvailability_CheckNameAvailability() + public async Task CheckNetAppFilePathAvailability_CheckFilePathAvailability() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -37,18 +37,18 @@ public async Task CheckNetAppNameAvailability_CheckNameAvailability() // invoke the operation AzureLocation location = new AzureLocation("eastus"); - NetAppNameAvailabilityContent content = new NetAppNameAvailabilityContent("accName", NetAppNameAvailabilityResourceType.MicrosoftNetAppNetAppAccounts, "myRG"); - NetAppCheckAvailabilityResult result = await subscriptionResource.CheckNetAppNameAvailabilityAsync(location, content); + NetAppFilePathAvailabilityContent content = new NetAppFilePathAvailabilityContent("my-exact-filepth", new ResourceIdentifier("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")); + NetAppCheckAvailabilityResult result = await subscriptionResource.CheckNetAppFilePathAvailabilityAsync(location, content); Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task CheckNetAppFilePathAvailability_CheckFilePathAvailability() + public async Task CheckNetAppNameAvailability_CheckNameAvailability() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -63,8 +63,8 @@ public async Task CheckNetAppFilePathAvailability_CheckFilePathAvailability() // invoke the operation AzureLocation location = new AzureLocation("eastus"); - NetAppFilePathAvailabilityContent content = new NetAppFilePathAvailabilityContent("my-exact-filepth", new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")); - NetAppCheckAvailabilityResult result = await subscriptionResource.CheckNetAppFilePathAvailabilityAsync(location, content); + NetAppNameAvailabilityContent content = new NetAppNameAvailabilityContent("accName", NetAppNameAvailabilityResourceType.MicrosoftNetAppNetAppAccounts, "myRG"); + NetAppCheckAvailabilityResult result = await subscriptionResource.CheckNetAppNameAvailabilityAsync(location, content); Console.WriteLine($"Succeeded: {result}"); } @@ -73,7 +73,7 @@ public async Task CheckNetAppFilePathAvailability_CheckFilePathAvailability() [Ignore("Only validating compilation of examples")] public async Task CheckNetAppQuotaAvailability_CheckQuotaAvailability() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/CheckQuotaAvailability.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 @@ -97,10 +97,10 @@ public async Task CheckNetAppQuotaAvailability_CheckQuotaAvailability() [Test] [Ignore("Only validating compilation of examples")] - public async Task QueryRegionInfoNetAppResource_RegionInfoQuery() + public async Task QueryNetworkSiblingSetNetAppResource_NetworkSiblingSetQuery() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/NetworkSiblingSet_Query.json + // this example is just showing the usage of "NetAppResource_QueryNetworkSiblingSet" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -115,17 +115,18 @@ public async Task QueryRegionInfoNetAppResource_RegionInfoQuery() // invoke the operation AzureLocation location = new AzureLocation("eastus"); - NetAppRegionInfo result = await subscriptionResource.QueryRegionInfoNetAppResourceAsync(location); + QueryNetworkSiblingSetContent content = new QueryNetworkSiblingSetContent("9760acf5-4638-11e7-9bdb-020073ca3333", new ResourceIdentifier("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet")); + NetworkSiblingSet result = await subscriptionResource.QueryNetworkSiblingSetNetAppResourceAsync(location, content); Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task QueryNetworkSiblingSetNetAppResource_NetworkSiblingSetQuery() + public async Task QueryRegionInfoNetAppResource_RegionInfoQuery() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/NetworkSiblingSet_Query.json - // this example is just showing the usage of "NetAppResource_QueryNetworkSiblingSet" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-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 TokenCredential cred = new DefaultAzureCredential(); @@ -140,8 +141,7 @@ public async Task QueryNetworkSiblingSetNetAppResource_NetworkSiblingSetQuery() // invoke the operation AzureLocation location = new AzureLocation("eastus"); - QueryNetworkSiblingSetContent content = new QueryNetworkSiblingSetContent("9760acf5-4638-11e7-9bdb-020073ca3333", new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet")); - NetworkSiblingSet result = await subscriptionResource.QueryNetworkSiblingSetNetAppResourceAsync(location, content); + NetAppRegionInfo result = await subscriptionResource.QueryRegionInfoNetAppResourceAsync(location); Console.WriteLine($"Succeeded: {result}"); } @@ -150,7 +150,7 @@ public async Task QueryNetworkSiblingSetNetAppResource_NetworkSiblingSetQuery() [Ignore("Only validating compilation of examples")] public async Task UpdateNetworkSiblingSetNetAppResource_NetworkFeaturesUpdate() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/NetworkSiblingSet_Update.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/NetworkSiblingSet_Update.json // this example is just showing the usage of "NetAppResource_UpdateNetworkSiblingSet" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task UpdateNetworkSiblingSetNetAppResource_NetworkFeaturesUpdate() // invoke the operation AzureLocation location = new AzureLocation("eastus"); - UpdateNetworkSiblingSetContent content = new UpdateNetworkSiblingSetContent("9760acf5-4638-11e7-9bdb-020073ca3333", new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), "12345_44420.8001578125", NetAppNetworkFeature.Standard); + UpdateNetworkSiblingSetContent content = new UpdateNetworkSiblingSetContent("9760acf5-4638-11e7-9bdb-020073ca3333", new ResourceIdentifier("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), "12345_44420.8001578125", NetAppNetworkFeature.Standard); ArmOperation lro = await subscriptionResource.UpdateNetworkSiblingSetNetAppResourceAsync(WaitUntil.Completed, location, content); NetworkSiblingSet result = lro.Value; @@ -175,10 +175,10 @@ public async Task UpdateNetworkSiblingSetNetAppResource_NetworkFeaturesUpdate() [Test] [Ignore("Only validating compilation of examples")] - public async Task GetNetAppResourceUsages_UsagesList() + public async Task GetNetAppQuotaLimits_QuotaLimits() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Usages_List.json - // this example is just showing the usage of "NetAppResourceUsages_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/NetAppResourceQuotaLimits_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 TokenCredential cred = new DefaultAzureCredential(); @@ -193,7 +193,7 @@ public async Task GetNetAppResourceUsages_UsagesList() // invoke the operation and iterate over the result AzureLocation location = new AzureLocation("eastus"); - await foreach (NetAppUsageResult item in subscriptionResource.GetNetAppResourceUsagesAsync(location)) + await foreach (NetAppSubscriptionQuotaItem item in subscriptionResource.GetNetAppQuotaLimitsAsync(location)) { Console.WriteLine($"Succeeded: {item}"); } @@ -203,10 +203,10 @@ public async Task GetNetAppResourceUsages_UsagesList() [Test] [Ignore("Only validating compilation of examples")] - public async Task GetNetAppResourceUsage_UsagesGet() + public async Task GetNetAppQuotaLimit_QuotaLimits() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Usages_Get.json - // this example is just showing the usage of "NetAppResourceUsages_Get" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/NetAppResourceQuotaLimits_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 TokenCredential cred = new DefaultAzureCredential(); @@ -221,18 +221,18 @@ public async Task GetNetAppResourceUsage_UsagesGet() // invoke the operation AzureLocation location = new AzureLocation("eastus"); - string usageType = "totalTibsPerSubscription"; - NetAppUsageResult result = await subscriptionResource.GetNetAppResourceUsageAsync(location, usageType); + string quotaLimitName = "totalCoolAccessVolumesPerSubscription"; + NetAppSubscriptionQuotaItem result = await subscriptionResource.GetNetAppQuotaLimitAsync(location, quotaLimitName); Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetNetAppQuotaLimits_QuotaLimits() + public async Task GetNetAppResourceUsages_UsagesList() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Usages_List.json + // this example is just showing the usage of "NetAppResourceUsages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -247,7 +247,7 @@ public async Task GetNetAppQuotaLimits_QuotaLimits() // invoke the operation and iterate over the result AzureLocation location = new AzureLocation("eastus"); - await foreach (NetAppSubscriptionQuotaItem item in subscriptionResource.GetNetAppQuotaLimitsAsync(location)) + await foreach (NetAppUsageResult item in subscriptionResource.GetNetAppResourceUsagesAsync(location)) { Console.WriteLine($"Succeeded: {item}"); } @@ -257,10 +257,10 @@ public async Task GetNetAppQuotaLimits_QuotaLimits() [Test] [Ignore("Only validating compilation of examples")] - public async Task GetNetAppQuotaLimit_QuotaLimits() + public async Task GetNetAppResourceUsage_UsagesGet() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/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. + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Usages_Get.json + // this example is just showing the usage of "NetAppResourceUsages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -275,17 +275,17 @@ public async Task GetNetAppQuotaLimit_QuotaLimits() // invoke the operation AzureLocation location = new AzureLocation("eastus"); - string quotaLimitName = "totalCoolAccessVolumesPerSubscription"; - NetAppSubscriptionQuotaItem result = await subscriptionResource.GetNetAppQuotaLimitAsync(location, quotaLimitName); + string usageType = "totalTibsPerSubscription"; + NetAppUsageResult result = await subscriptionResource.GetNetAppResourceUsageAsync(location, usageType); Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetNetAppAccounts_AccountsList() + public async Task GetNetAppAccounts_AccountsListBySubscription() { - // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_ListBySubscription.json + // Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/NetApp/stable/2025-09-01/examples/Accounts_ListBySubscription.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 diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBucketTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBucketTests.cs index 0afa8d702b91..a88755032162 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBucketTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/ANFBucketTests.cs @@ -1,377 +1,378 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Security.Cryptography; -using System.Security.Cryptography.X509Certificates; - -using System.Text; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.TestFramework; -using Azure.ResourceManager.NetApp.Models; -using Azure.ResourceManager.NetApp.Tests.Helpers; -using Azure.ResourceManager.Resources; -using FluentAssertions; -using NUnit.Framework; - -namespace Azure.ResourceManager.NetApp.Tests -{ - public class ANFBucketTests : NetAppTestBase - { - private string _pool1Name = "pool1"; - private NetAppAccountCollection _netAppAccountCollection { get => _resourceGroup.GetNetAppAccounts(); } - internal NetAppBucketCollection _bucketCollection; - internal NetAppVolumeResource _volumeResource; - internal string _selfSignedCertificate; - - //private NetAppBucketCollection _netAppBucketCollection { get => _resourceGroup.GetNetAppBuckets(); } - public ANFBucketTests(bool isAsync) : base(isAsync) - { - } - - [SetUp] - public async Task SetUp() - { - Console.WriteLine("ANFBucketTests Setup"); - string volumeName = Recording.GenerateAssetName("volumeName-"); - _resourceGroup = await CreateResourceGroupAsync(); - string accountName = await CreateValidAccountNameAsync(_accountNamePrefix, _resourceGroup, DefaultLocation); - _selfSignedCertificate = CreateSelfSignedCertificate(); - _netAppAccount = (await _netAppAccountCollection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, GetDefaultNetAppAccountParameters())).Value; - - CapacityPoolData capactiyPoolData = new(DefaultLocation, _poolSize.Value, NetAppFileServiceLevel.Premium); - capactiyPoolData.Tags.InitializeFrom(DefaultTags); - _capacityPool = (await _capacityPoolCollection.CreateOrUpdateAsync(WaitUntil.Completed, _pool1Name, capactiyPoolData)).Value; - - _volumeCollection = _capacityPool.GetNetAppVolumes(); - - await CreateVirtualNetwork(); - _volumeResource = await CreateVolume(DefaultLocation, NetAppFileServiceLevel.Premium, _defaultUsageThreshold, subnetId: DefaultSubnetId, volumeName: volumeName); - Console.WriteLine("VolumeTEST Setup create vnet"); - _bucketCollection = _volumeResource.GetNetAppBuckets(); - Console.WriteLine("ANFBucketTests Setup complete"); - } - - [TearDown] - public async Task ClearBuckets() - { - //remove all buckets under current netAppAccount and remove netAppAccount - if (_resourceGroup != null) - { - await foreach (NetAppBucketResource bucket in _bucketCollection.GetAllAsync()) - { - // invoke the operation - await bucket.DeleteAsync(WaitUntil.Completed); - } - //remove volumes - await foreach (NetAppVolumeResource volume in _volumeCollection.GetAllAsync()) - { - // invoke the operation - await volume.DeleteAsync(WaitUntil.Completed); - } - //remove capacityPools - await LiveDelay(40000); - await foreach (CapacityPoolResource capacityPool in _capacityPoolCollection.GetAllAsync()) - { - // invoke the operation - await capacityPool.DeleteAsync(WaitUntil.Completed); - } - //remove account - await LiveDelay(40000); - await _netAppAccount.DeleteAsync(WaitUntil.Completed); - } - _resourceGroup = null; - } - - [RecordedTest] - public async Task CreateGetDeleteBucket() - { - //create snapshot - var bucketName = Recording.GenerateAssetName("bucket-"); - //await SetUp(); - - NetAppBucketData data = new NetAppBucketData - { - Path = "/", - FileSystemUser = new NetAppBucketFileSystemUser - { - NfsUser = new NetAppBucketNfsUser - { - UserId = 1001L, - GroupId = 1000L, - }, - }, - Server = new NetAppBucketServerProperties - { - Fqdn = "www.acme.com", - CertificateObject = _selfSignedCertificate, - }, - Permissions = NetAppBucketPermission.ReadOnly, - }; - ArmOperation lro = await _bucketCollection.CreateOrUpdateAsync(WaitUntil.Completed, bucketName, data); - NetAppBucketResource result = lro.Value; - - // the variable result is a resource - Assert.IsNotNull(result.Data); - Assert.AreEqual($"{_volumeResource.Data.Name}/{bucketName}", result.Data.Name); - Console.WriteLine($"Create Succeeded on id: {result.Data.Id}"); - - // get the created resource - NetAppBucketResource netAppBucket = Client.GetNetAppBucketResource(result.Data.Id); - // invoke the operation - NetAppBucketResource bucketResult = await netAppBucket.GetAsync(); - string bucketResourceName = bucketResult.Data.Name; - - Assert.IsNotNull(bucketResult.Data); - Assert.AreEqual($"{_volumeResource.Data.Name}/{bucketName}", bucketResult.Data.Name); - Console.WriteLine($"GET Succeeded on id: {bucketResult.Data.Id}"); - - // invoke the delete operation - await netAppBucket.DeleteAsync(WaitUntil.Completed); - Console.WriteLine($"Delete Succeeded on id: {bucketResult.Data.Id}"); - - Console.WriteLine($"Check if exists: {bucketResourceName}"); - //check if the bucket exists - await LiveDelay(30000); - bool existsResult = await _bucketCollection.ExistsAsync(bucketName); - existsResult.Should().BeFalse(); - Console.WriteLine($"Succeeded: {existsResult}"); - } - - [RecordedTest] - public async Task ListBuckets() - { - //create bucket - var bucketName = Recording.GenerateAssetName("bucket-"); - var bucket2Name = Recording.GenerateAssetName("bucket-2"); - await SetUp(); - - NetAppBucketData data = new NetAppBucketData - { - Path = "/", - FileSystemUser = new NetAppBucketFileSystemUser - { - NfsUser = new NetAppBucketNfsUser - { - UserId = 1001L, - GroupId = 1000L, - }, - }, - Server = new NetAppBucketServerProperties - { - Fqdn = "www.acme.com", - CertificateObject = _selfSignedCertificate, - }, - Permissions = NetAppBucketPermission.ReadOnly, - }; - - NetAppBucketData data2 = new NetAppBucketData - { - Path = "/", - FileSystemUser = new NetAppBucketFileSystemUser - { - NfsUser = new NetAppBucketNfsUser - { - UserId = 1001L, - GroupId = 1000L, - }, - }, - Server = new NetAppBucketServerProperties - { - Fqdn = "www.acme.com", - CertificateObject = _selfSignedCertificate, - }, - Permissions = NetAppBucketPermission.ReadOnly, - }; - ArmOperation lro = await _bucketCollection.CreateOrUpdateAsync(WaitUntil.Completed, bucketName, data); - NetAppBucketResource result = lro.Value; - - ArmOperation lro2 = await _bucketCollection.CreateOrUpdateAsync(WaitUntil.Completed, bucket2Name, data2); - NetAppBucketResource result2 = lro2.Value; - - // Define a list to store results - List buckets = []; - // invoke the List operation and iterate over the result - await foreach (NetAppBucketResource item in _bucketCollection.GetAllAsync()) - { - buckets.Add(item); - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {item.Id}"); - } - Assert.GreaterOrEqual(buckets.Count, 2); - Assert.IsTrue(buckets.Any(r => r.Data.Name.Split('/').Last() == bucketName)); - Assert.IsTrue(buckets.Any(r => r.Data.Name.Split('/').Last() == bucket2Name)); - } - - [RecordedTest] - public async Task PatchBucket() - { - //create snapshot - var bucketName = Recording.GenerateAssetName("bucket-"); - await SetUp(); - - NetAppBucketData data = new NetAppBucketData - { - Path = "/", - FileSystemUser = new NetAppBucketFileSystemUser - { - NfsUser = new NetAppBucketNfsUser - { - UserId = 1001L, - GroupId = 1000L, - }, - }, - Server = new NetAppBucketServerProperties - { - Fqdn = "www.acme.com", - CertificateObject = _selfSignedCertificate, - }, - Permissions = NetAppBucketPermission.ReadOnly, - }; - ArmOperation lro = await _bucketCollection.CreateOrUpdateAsync(WaitUntil.Completed, bucketName, data); - NetAppBucketResource result = lro.Value; - - // the variable result is a resource - Assert.IsNotNull(result.Data); - Assert.AreEqual(bucketName, result.Data.Name.Split('/').Last()); - Console.WriteLine($"Create Succeeded on id: {result.Data.Id}"); - - // get the created resource - NetAppBucketResource netAppBucket = Client.GetNetAppBucketResource(result.Data.Id); - // invoke the operation - NetAppBucketResource bucketResult = await netAppBucket.GetAsync(); - Assert.IsNotNull(bucketResult.Data); - Assert.AreEqual(bucketName, bucketResult.Data.Name.Split('/').Last()); - Console.WriteLine($"GET Succeeded on id: {bucketResult.Data.Id}"); - - // invoke the operation - NetAppBucketPatch patch = new NetAppBucketPatch - { - Permissions = NetAppBucketPatchPermission.ReadWrite - }; - ArmOperation lroUpdate = await netAppBucket.UpdateAsync(WaitUntil.Completed, patch); - NetAppBucketResource updateResult = lroUpdate.Value; - Assert.IsNotNull(updateResult.Data); - await LiveDelay(30000); - NetAppBucketResource updateResultData = await netAppBucket.GetAsync(); - - updateResultData.Id.Should().Be(bucketResult.Data.Id); - updateResult.Data.Name.Should().Be(bucketResult.Data.Name); - updateResult.Data.ProvisioningState.Should().Be(NetAppProvisioningState.Succeeded); - //updateResultData.Data.Permissions.Should().Be(NetAppBucketPatchPermission.ReadWrite); - } - - [RecordedTest] - public async Task GenerateCredentialsForBucket() - { - //create snapshot - var bucketName = Recording.GenerateAssetName("bucket-"); - await SetUp(); - - NetAppBucketData data = new NetAppBucketData - { - Path = "/", - FileSystemUser = new NetAppBucketFileSystemUser - { - NfsUser = new NetAppBucketNfsUser - { - UserId = 1001L, - GroupId = 1000L, - }, - }, - Server = new NetAppBucketServerProperties - { - Fqdn = "www.acme.com", - CertificateObject = _selfSignedCertificate, - }, - Permissions = NetAppBucketPermission.ReadOnly, - }; - ArmOperation lro = await _bucketCollection.CreateOrUpdateAsync(WaitUntil.Completed, bucketName, data); - NetAppBucketResource result = lro.Value; - - // the variable result is a resource - Assert.IsNotNull(result.Data); - Assert.AreEqual(bucketName, result.Data.Name.Split('/').Last()); - Console.WriteLine($"Create Succeeded on id: {result.Data.Id}"); - - // get the created resource - NetAppBucketResource netAppBucket = Client.GetNetAppBucketResource(result.Data.Id); - NetAppBucketResource resultData = await netAppBucket.GetAsync(); - Assert.IsNotNull(resultData.Data); - Assert.AreEqual(bucketName, resultData.Data.Name.Split('/').Last()); - Console.WriteLine($"GET Succeeded on id: {resultData.Data.Id}"); - - // invoke the operation - NetAppBucketCredentialsExpiry body = new NetAppBucketCredentialsExpiry - { - KeyPairExpiryDays = 3, - }; - NetAppBucketGenerateCredentials GenerateCredentialsResult = await netAppBucket.GenerateCredentialsAsync(body); - - NetAppBucketGenerateCredentials credentials = GenerateCredentialsResult; - credentials.Should().NotBeNull(); - credentials.AccessKey.Should().NotBeNullOrEmpty(); - credentials.SecretKey.Should().NotBeNullOrEmpty(); - } - - private string CreateSelfSignedCertificate(string subjectName = "CN=TestCertificate", int validityPeriodInYears = 1) - { - return @"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZEekNDQXZlZ0F3SUJBZ0lVTTF2bUZFNHZNU1k4MUFDaTBMNVBqbFlmWXgwd0RRWUpLb1pJaHZjTkFRRUwKQlFBd0Z6RVZNQk1HQTFVRUF3d01kM2QzTG1GamJXVXVZMjl0TUI0WERUSTFNRFl4TWpFMU5ESTBObG9YRFRJMgpNRFl4TWpFMU5ESTBObG93RnpFVk1CTUdBMVVFQXd3TWQzZDNMbUZqYldVdVkyOXRNSUlDSWpBTkJna3Foa2lHCjl3MEJBUUVGQUFPQ0FnOEFNSUlDQ2dLQ0FnRUFzanQ1ZHdvWkx0YWpWT2VtTWtBSFVyMys3U0llVFBORzJvVU4KbERBVXRHRVRzOUgwY2VMMGhzZlA4bmxHbUNEZzFiM3NjcjdHekpTMmEyMm9FR0g3VVFhbmhNeFBhdGVrd2FJRwovSmh1VjVWMURkZjdLa1dibUFwQVNDUWZPMTNUOFlXTDY0UnZaQ3F1K0VMMi9WeWRmSEx4ejNXNXBNMHB2K3JhClFLK0lXVDJQTzZYRjBqNTlQcE9wV1l1bGVSQXpjOE9HVDNEUmtEY25oU2ZIRWQ5bG1jWGhhSHVnc1JualFUVWYKdmpDZHVHZEFtcHFheEx4cERReWtGbmI1VlpsNUFNN3lNTW9mUkVVVEo0a1FVUVlWdjliQ1p5V2s1MTNqR0pvTQpZZEs3d2xQRTNtaTZObEtuV0REYkhmU1FUdzhtUjFiaTBodnNnd3o2Vm80SWI2YTFHTFdZT3lJcHI1V2o0MVRJCm9aWXA2UDdDVDY3Unhud2s1aWY2ejU1R1hxTDhHQkNhR0IxNHoxcUtZR0x4QkZ1S2MzYjBCbEYreUE0TDRRRlEKVkJsRThSR3FvMWlOeDdJeEQydk9xQzc5TnlJdXNCYThMbFovdExjQUp4V1VEOTVQVFlhbnpVZHBVZ3BIODkvVQpYc2lBdUVDb2NIYUNwNkxhdFU3SCtRQXQ3bTh6NEtTTHpnWk5tR0dwK24vWlhGYjB0c3gzRkxkUjZXMk9FRmFtClpXdHN6QkY0NjVBa0wwcVhxMEZOZzFwekNsUitwalNTOGhHWGRDS3NIWldMakFmNU5CUE5PVDJRTW1zL1dFZVYKMUwrOGIrTDBlVGZXV3dJa0lLV1dkT0ZmRUxFbmFqYVBuZXJzSlRoZTRIT1dJMGtlRDJmaG1YTVQ3Ynp6ZGZKTgpKcWxHWjlrQ0F3RUFBYU5UTUZFd0hRWURWUjBPQkJZRUZOa3A5a05ISzZmaEtKNnRaK2kzUlpCWmxoTUFNQjhHCkExVWRJd1FZTUJhQUZOa3A5a05ISzZmaEtKNnRaK2kzUlpCWmxoTUFNQThHQTFVZEV3RUIvd1FGTUFNQkFmOHcKRFFZSktvWklodmNOQVFFTEJRQURnZ0lCQUZFSGUxRHFpNXNRS0wvSmR2MTNIcEhyVkNoR0x6dGtxTHFwT0MyVgpyMWJUSzVUSWJCbW5CcEdQS3poQkU3bVF5MlFlWkZkT2c3RTRGblRVNzQ4eEtsWE04WkwrOFNWbDFLdlZaRkxjCkV0QWpqLzIwZE12N3JUVyt0UVhvVnBkZ1Q3OVVzMHpyVTJ2cVFJVFBWRE9GNjhickFtVkpsSzQyV1NELzh5YWcKL2VWSGpPUGkrQ3hodWJFOFR3NlBtVzkxOFM0QmNFQVF6Z0h3OVF0UWJxTzBlVWJ1OGdyV1lYbmlDcllhVmlVVApRY0VBTzF4cStpeFhtQ2o1VkFVQzlab211Z1VHNWlNZmM4dGdPQ0NpV092MldOM2NNNzNYV3IyekhLblBQOEZWCmJRVTZUM1Vwa3FDVGR4UnVkY3AyN1UvZ1ZkZ0szcVdIUTlOSnBhSmVRVDhKSTdMMDVFVFlObjRMeXYzSzVaWDUKRWJuZmxPNUljY1QzSG5Gby8vSk5aU2s1NTJmUHc0Q0d1blcrU3JNRE1iYk4rSzRTS3FMOXV6VEc5ZXBmN1NLZwpwRktyVmtQTDFPa3dmNDdmdy9LK1lTY0tWaGpWL1RTWVFjOUlNTUxpUXNsTExrMkFCQm41NDJwdjdqWGRqcllvCk50YTlnMjY5SzZjaG0zcXN1RG1lRkczSFYrRE9wUGh4dmRkdzRHUVdQNmZXLzZFeW45Y1RIZjZuZFdieEVGSWMKZ2VHYWF3SjlQR2ZKZnpPRDFPVkpDMTZsMEVrK3NiWVY3M0ZJM3VaR2pFYUVxTGZLanNMYjludUU5Q2JwbE1QMQp4c3F0WWpKWFJvSkdLVFpkOGNIVE5CbysxYzN6NzNjWEp6UDFwN1VWQUtmaDdGZ1NOWkJrbnB5YnZEeGVkOExuCkxCRFoKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQotLS0tLUJFR0lOIFBSSVZBVEUgS0VZLS0tLS0KTUlJSlF3SUJBREFOQmdrcWhraUc5dzBCQVFFRkFBU0NDUzB3Z2drcEFnRUFBb0lDQVFDeU8zbDNDaGt1MXFOVQo1Nll5UUFkU3ZmN3RJaDVNODBiYWhRMlVNQlMwWVJPejBmUng0dlNHeDgveWVVYVlJT0RWdmV4eXZzYk1sTFpyCmJhZ1FZZnRSQnFlRXpFOXExNlRCb2diOG1HNVhsWFVOMS9zcVJadVlDa0JJSkI4N1hkUHhoWXZyaEc5a0txNzQKUXZiOVhKMThjdkhQZGJta3pTbS82dHBBcjRoWlBZODdwY1hTUG4wK2s2bFppNlY1RUROenc0WlBjTkdRTnllRgpKOGNSMzJXWnhlRm9lNkN4R2VOQk5SKytNSjI0WjBDYW1wckV2R2tOREtRV2R2bFZtWGtBenZJd3loOUVSUk1uCmlSQlJCaFcvMXNKbkphVG5YZU1ZbWd4aDBydkNVOFRlYUxvMlVxZFlNTnNkOUpCUER5WkhWdUxTRyt5RERQcFcKamdodnByVVl0Wmc3SWltdmxhUGpWTWlobGluby9zSlBydEhHZkNUbUovclBua1plb3Z3WUVKb1lIWGpQV29wZwpZdkVFVzRwemR2UUdVWDdJRGd2aEFWQlVHVVR4RWFxaldJM0hzakVQYTg2b0x2MDNJaTZ3RnJ3dVZuKzB0d0FuCkZaUVAzazlOaHFmTlIybFNDa2Z6MzlSZXlJQzRRS2h3ZG9Lbm90cTFUc2Y1QUMzdWJ6UGdwSXZPQmsyWVlhbjYKZjlsY1Z2UzJ6SGNVdDFIcGJZNFFWcVpsYTJ6TUVYanJrQ1F2U3BlclFVMkRXbk1LVkg2bU5KTHlFWmQwSXF3ZApsWXVNQi9rMEU4MDVQWkF5YXo5WVI1WFV2N3h2NHZSNU45WmJBaVFncFpaMDRWOFFzU2RxTm8rZDZ1d2xPRjdnCmM1WWpTUjRQWitHWmN4UHR2UE4xOGswbXFVWm4yUUlEQVFBQkFvSUNBQnZtTGhWRzEyVDY1RER6aHozR2JWOEoKQS92MVRlNURCb3hJMTRuNEhNV1U0ZWltck5wRzZjLzU1eFhRTmc5ZmdOSkp4ZGE3QU9qS2srT0NhV204YkswNgpSVzZ4Z2ZKUGlkSzY4aTBJRDFNQkZObWQ2QXNEUDdVdnBacjZvZDVCSHdsbmNOemxBTlZ2emxrVGpSQzJpL3NNCll4MnBFcGpoZWUrT0ZsYVp6aXRwOU1uT3k5c2xQUHNCVWprRXl3VGJBYkxWU3hPVVdBN052ZzlITXJvY0pnMzAKRTdJRWtzVjdoVDg5SkVMajNxSEc4b05BNnQ1dzZtRElqSEdYeUxVYTJQNGFFWDgyK2IzNHNnN2c2RlR4TVpFSQpwUUJRWnQwYlYrTzUrWERoU1NnYUdobXIwR1RySmV3cXp2Y3V3OTF4bWFSV2VCcm1Qc0lrMDBCSlFMak96UG9BCktsMHZNNXNKdVB6STJTeWF6RnlVM1ovaWw2MzJHM2pMa2l0c1hBdHlmTTN5VEF2KzhCT1RSSTY4aXpOQmptbHYKQVNkRlZLQTF4cndmUFF2VXlYWnUwd2JUU0MwU2oxcmlUcERJMUl6NnQ1bndlUlVRNm1qSHg0OTAyS0liM2NjYQpoVEE0dnRtUjdackN0blE3YUpNa3o2REcxbUk1N0NiS0JKV2h6S0JtNTEwQVV5UGZsTFdGSGhXM1Z0N3BnVFo2CjRibjRaM1p1K1NBOFh4cUtDMmEyTENPRlkvZWY2UXhmUTlyekFHSWRzbzJzKzJsTENCV09kNXAvVyt2aC9oTU8KTWZYS0piRWYwSGpBTVVId3FvbUNUZmdSRU0xVkZ4U3JOeXRGUGs1NFdiOE5rOUh1Q1hQczlSazA1bUE0c2k5UQorOXR4U0psYzU0L3BQYnJqOXVFaEFvSUJBUUMyalBqUzFtYzJWVUhjaFVCdWVVZUFuMFRLdCswR3JlWTlwd0doCnduVFE5TEhvYU9xUUt0Vkc2VTUyYVQ4UUdpVHBpR3dNakJsSkQzNGlsN0o0cnBjNk9xRytkeTZYM29lcnl4TVIKRnlBN3VxWncvbTBzaEZORzNnK2t5R1hybE1KOU5yUnE4OHN5QlM1eVBvb2JHRkNORW9VQS9QT2lVaWROSm9mYQpVaDJzMmNuMnZWUzlDV1lwMGY0SWxTRXdYRm5VdStuc1dpYlVLSXFSam85SlRtRHcrdU5OZFFtNXhIb3ZpSlRkCnlYR3NONTFDdDFpVS9US3Q2ZnZBUHNrRXF2Q3VtcElQMjFEeXI0ejhsZ2Jyd3l4bXJoUW5yVVJkRUc1SmREcDUKVHdGL24xaktHK202bDJ4ejZEYmE2eVVValFDKzk4TzFjRjZ5bHVxQkJHcENidGN2QW9JQkFRRDU4YlNIZUVybQpzV3ZhM2lrNWJ2ZE9QRmdsRDJOVVd5VUJSeStsSjQyZ0RBdmdteWttN0RtK1lab3ViYkNkREZqL2V5YVZ0QTd2CklxdEJZUHNtejI3YzI1b3FoRUdIQTNpOFltWW1uYjRsbjZSTUIzdE8zSFlVT2J2MnY4Yy91WGlIbzBVN1lEMngKSnhxN05xRjFINlA5ZzlBbHNGVUl3a3hmTFA4UUc4YjBtWG0weWs5TGNxYVBkZVRvRkZ5dUpSdGlpQUY3UnZwbgpPM3hRL09tclFPL0hjeldzUE9WenkxMlVsMzROeUFOUGxzNGhXQlVacm9tUGxKZFB5R09CZmxEdU9RSXRPRzBECklzZFpwOWdwUFZvT2ZQZ25COG9KaEZCcUZEbVFlNk1YUFo1aU11YW1mMlVYMGI0SzNzVkVBdnVNZkdQeitON1MKK1FGNVZCUWgvVzkzQW9JQkFRQ2c4T3BTWDRwQllhc2VNekNaOVR5dnpqc0ZDbURqT1orNmpTbW9KbHQ4K2E1NworenVKZk9ucGlibU9OYjNPZ1c0M29mbTRtaStVdFI3OGVvZHpWR0dwaVpXZDZVOWZ2MllYZElOTDF2cXBEaWE5CmllSlFsQjBqWnBXZUxydUVsZk5lRjBPNjQxTXF0MXk2aGg2V1FycUpsV0ZEZkwrRFJUQzNHUmcreDVTNEZvNnoKaFRwWEt4a3lGNXdDancvaXBoamdzQWROUkRIbGJCUzJ2VnZnUWtTL1VFSGp3U0tnNy9MVlEzSVRrdzB2eXh4UApmSHVSWnlVdUpSSzU2K0NueDlsSDVxaU5hRXNXbXVVT3IycE1veGJiTS9BN0JzdzF6RTJmWHVSS25QZnlQMWMxCllLU1F4LzFxdHJqZUN0LzNIVlVpQ0NnNEoyaWx4TjNjZnpyN2RPTXJBb0lCQVFDWXJHdjUxQ0RzaWJPNEhieFEKdU5lWGtvVEZIb0V1SmY2VXFVY1JPdmZucTNRVjNyRmtkU2RRZzQ0S2pqWXp1RGNrMTdUWi9RS2lVQ3NMNUpHRgpRM0FVdUkrVEtQWmQ0bUQ5c1oxME9TYk5GSmJuV2lxWUlWSi9TRVRvbEh6QkVDbnZzR3U1dVMvMTVrME56bkVSCmVpSlIyUkpyOHluK0Q3Rlc4Y1Zic1p2MkRVbXFoV21xVEg0eFkzSlAwU0JMdjU3YXNQazJ0RVNBaW5XRmd2ZTUKQkJGelk0eUZpUzBmYmpuYmFpNDFmTmVJNWpWRGFPcDZwWUtoa2NKYm1hd3VqVm9pS2ZDS2JzMG4vVGFJTFY1OAowbDBRUElYWVVZbTRCbnFZVVlKWUh5MmdKS042bUYwTGx3WEpadlVPN3NUUXBvSEJicm9mYlFXdkdTc3RVWTU2CnRMUkJBb0lCQURUblFPWEszdHhYbkdMMERMU1k4QXE1TDdkT3lUUDdzSllzMHRGcFhnTDRkRXpyVEV0bHYrd1MKMEtKSnZKWWt5RjlzcmpCWGI4TjBmNFhvWi9jL3d4c2d4TUtKRXVrOHFNZHFzeUxBelZpaHNhNU4vcW90MUR4SgpMcTc5aVBIVk1FOFV1bXFiWldUSDVyVWFBTE5RQnY4azdJQkIydUNzRTl0dFlFWk5WcThtWHZGZklteXhkN1k2CkxnNVVIeEg3a2RkQjNkZzlDdExBM3ZsQUNMcEVyTlk4SDNrakIzaGVxM0RzdXJVNlVxTGdad1Qvc0JPSWl3b1QKVmdZbEFFUE1GbmsrNE10Z1BVcG9UUEVMQ21YQjkwM3VpQ0p1NlEyd0VrN3ZvU0VtWlBZR1JwSkRobjVrSnFQVwozM3BlT3Q3K2lTQVV0eHZHNFVzc1hZdFh6ZS9hQmNBPQotLS0tLUVORCBQUklWQVRFIEtFWS0tLS0t"; - } - - // // Generate RSA key pair - // using (RSA rsa = RSA.Create()) - // { - // rsa.KeySize = 2048; - // var certificateRequest = new CertificateRequest( - // subjectName, - // rsa, - // HashAlgorithmName.SHA256, - // RSASignaturePadding.Pkcs1); - - // // Add basic constraints (self-signed, no CA) - // certificateRequest.CertificateExtensions.Add( - // new X509BasicConstraintsExtension(false, false, 0, false)); - - // // Add key usage (digital signature, key encipherment) - // certificateRequest.CertificateExtensions.Add( - // new X509KeyUsageExtension( - // X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.KeyEncipherment, - // false)); - - // // Add subject key identifier - // certificateRequest.CertificateExtensions.Add( - // new X509SubjectKeyIdentifierExtension(certificateRequest.PublicKey, false)); - - // // Create the self-signed certificate - // var certificate = certificateRequest.CreateSelfSigned( - // DateTimeOffset.Now, - // DateTimeOffset.Now.AddYears(validityPeriodInYears)); - - // // Export certificate as PEM - // certificateString = ExportToPem(certificate); - // } - // return certificateString; - // } - - // private static string ExportToPem(X509Certificate2 certificate) - // { - // // Export the certificate as Base64 - // byte[] certBytes = certificate.Export(X509ContentType.Cert); - // string base64Cert = Convert.ToBase64String(certBytes); - - // // Format as PEM - // StringBuilder pem = new StringBuilder(); - // pem.AppendLine("-----BEGIN CERTIFICATE-----"); - // for (int i = 0; i < base64Cert.Length; i += 64) - // { - // pem.AppendLine(base64Cert.Substring(i, Math.Min(64, base64Cert.Length - i))); - // } - // pem.AppendLine("-----END CERTIFICATE-----"); - - // return pem.ToString(); - // } - } -} + +// using System; +// using System.Collections.Generic; +// using System.Linq; +// using System.Security.Cryptography; +// using System.Security.Cryptography.X509Certificates; + +// using System.Text; +// using System.Threading.Tasks; +// using Azure.Core; +// using Azure.Core.TestFramework; +// using Azure.ResourceManager.NetApp.Models; +// using Azure.ResourceManager.NetApp.Tests.Helpers; +// using Azure.ResourceManager.Resources; +// using FluentAssertions; +// using NUnit.Framework; + +// namespace Azure.ResourceManager.NetApp.Tests +// { +// public class ANFBucketTests : NetAppTestBase +// { +// private string _pool1Name = "pool1"; +// private NetAppAccountCollection _netAppAccountCollection { get => _resourceGroup.GetNetAppAccounts(); } +// internal NetAppBucketCollection _bucketCollection; +// internal NetAppVolumeResource _volumeResource; +// internal string _selfSignedCertificate; + +// //private NetAppBucketCollection _netAppBucketCollection { get => _resourceGroup.GetNetAppBuckets(); } +// public ANFBucketTests(bool isAsync) : base(isAsync) +// { +// } + +// [SetUp] +// public async Task SetUp() +// { +// Console.WriteLine("ANFBucketTests Setup"); +// string volumeName = Recording.GenerateAssetName("volumeName-"); +// _resourceGroup = await CreateResourceGroupAsync(); +// string accountName = await CreateValidAccountNameAsync(_accountNamePrefix, _resourceGroup, DefaultLocation); +// _selfSignedCertificate = CreateSelfSignedCertificate(); +// _netAppAccount = (await _netAppAccountCollection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, GetDefaultNetAppAccountParameters())).Value; + +// CapacityPoolData capactiyPoolData = new(DefaultLocation, _poolSize.Value, NetAppFileServiceLevel.Premium); +// capactiyPoolData.Tags.InitializeFrom(DefaultTags); +// _capacityPool = (await _capacityPoolCollection.CreateOrUpdateAsync(WaitUntil.Completed, _pool1Name, capactiyPoolData)).Value; + +// _volumeCollection = _capacityPool.GetNetAppVolumes(); + +// await CreateVirtualNetwork(); +// _volumeResource = await CreateVolume(DefaultLocation, NetAppFileServiceLevel.Premium, _defaultUsageThreshold, subnetId: DefaultSubnetId, volumeName: volumeName); +// Console.WriteLine("VolumeTEST Setup create vnet"); +// _bucketCollection = _volumeResource.GetNetAppBuckets(); +// Console.WriteLine("ANFBucketTests Setup complete"); +// } + +// [TearDown] +// public async Task ClearBuckets() +// { +// //remove all buckets under current netAppAccount and remove netAppAccount +// if (_resourceGroup != null) +// { +// await foreach (NetAppBucketResource bucket in _bucketCollection.GetAllAsync()) +// { +// // invoke the operation +// await bucket.DeleteAsync(WaitUntil.Completed); +// } +// //remove volumes +// await foreach (NetAppVolumeResource volume in _volumeCollection.GetAllAsync()) +// { +// // invoke the operation +// await volume.DeleteAsync(WaitUntil.Completed); +// } +// //remove capacityPools +// await LiveDelay(40000); +// await foreach (CapacityPoolResource capacityPool in _capacityPoolCollection.GetAllAsync()) +// { +// // invoke the operation +// await capacityPool.DeleteAsync(WaitUntil.Completed); +// } +// //remove account +// await LiveDelay(40000); +// await _netAppAccount.DeleteAsync(WaitUntil.Completed); +// } +// _resourceGroup = null; +// } + +// [RecordedTest] +// public async Task CreateGetDeleteBucket() +// { +// //create snapshot +// var bucketName = Recording.GenerateAssetName("bucket-"); +// //await SetUp(); + +// NetAppBucketData data = new NetAppBucketData +// { +// Path = "/", +// FileSystemUser = new NetAppBucketFileSystemUser +// { +// NfsUser = new NetAppBucketNfsUser +// { +// UserId = 1001L, +// GroupId = 1000L, +// }, +// }, +// Server = new NetAppBucketServerProperties +// { +// Fqdn = "www.acme.com", +// CertificateObject = _selfSignedCertificate, +// }, +// Permissions = NetAppBucketPermission.ReadOnly, +// }; +// ArmOperation lro = await _bucketCollection.CreateOrUpdateAsync(WaitUntil.Completed, bucketName, data); +// NetAppBucketResource result = lro.Value; + +// // the variable result is a resource +// Assert.IsNotNull(result.Data); +// Assert.AreEqual($"{_volumeResource.Data.Name}/{bucketName}", result.Data.Name); +// Console.WriteLine($"Create Succeeded on id: {result.Data.Id}"); + +// // get the created resource +// NetAppBucketResource netAppBucket = Client.GetNetAppBucketResource(result.Data.Id); +// // invoke the operation +// NetAppBucketResource bucketResult = await netAppBucket.GetAsync(); +// string bucketResourceName = bucketResult.Data.Name; + +// Assert.IsNotNull(bucketResult.Data); +// Assert.AreEqual($"{_volumeResource.Data.Name}/{bucketName}", bucketResult.Data.Name); +// Console.WriteLine($"GET Succeeded on id: {bucketResult.Data.Id}"); + +// // invoke the delete operation +// await netAppBucket.DeleteAsync(WaitUntil.Completed); +// Console.WriteLine($"Delete Succeeded on id: {bucketResult.Data.Id}"); + +// Console.WriteLine($"Check if exists: {bucketResourceName}"); +// //check if the bucket exists +// await LiveDelay(30000); +// bool existsResult = await _bucketCollection.ExistsAsync(bucketName); +// existsResult.Should().BeFalse(); +// Console.WriteLine($"Succeeded: {existsResult}"); +// } + +// [RecordedTest] +// public async Task ListBuckets() +// { +// //create bucket +// var bucketName = Recording.GenerateAssetName("bucket-"); +// var bucket2Name = Recording.GenerateAssetName("bucket-2"); +// await SetUp(); + +// NetAppBucketData data = new NetAppBucketData +// { +// Path = "/", +// FileSystemUser = new NetAppBucketFileSystemUser +// { +// NfsUser = new NetAppBucketNfsUser +// { +// UserId = 1001L, +// GroupId = 1000L, +// }, +// }, +// Server = new NetAppBucketServerProperties +// { +// Fqdn = "www.acme.com", +// CertificateObject = _selfSignedCertificate, +// }, +// Permissions = NetAppBucketPermission.ReadOnly, +// }; + +// NetAppBucketData data2 = new NetAppBucketData +// { +// Path = "/", +// FileSystemUser = new NetAppBucketFileSystemUser +// { +// NfsUser = new NetAppBucketNfsUser +// { +// UserId = 1001L, +// GroupId = 1000L, +// }, +// }, +// Server = new NetAppBucketServerProperties +// { +// Fqdn = "www.acme.com", +// CertificateObject = _selfSignedCertificate, +// }, +// Permissions = NetAppBucketPermission.ReadOnly, +// }; +// ArmOperation lro = await _bucketCollection.CreateOrUpdateAsync(WaitUntil.Completed, bucketName, data); +// NetAppBucketResource result = lro.Value; + +// ArmOperation lro2 = await _bucketCollection.CreateOrUpdateAsync(WaitUntil.Completed, bucket2Name, data2); +// NetAppBucketResource result2 = lro2.Value; + +// // Define a list to store results +// List buckets = []; +// // invoke the List operation and iterate over the result +// await foreach (NetAppBucketResource item in _bucketCollection.GetAllAsync()) +// { +// buckets.Add(item); +// // for demo we just print out the id +// Console.WriteLine($"Succeeded on id: {item.Id}"); +// } +// Assert.GreaterOrEqual(buckets.Count, 2); +// Assert.IsTrue(buckets.Any(r => r.Data.Name.Split('/').Last() == bucketName)); +// Assert.IsTrue(buckets.Any(r => r.Data.Name.Split('/').Last() == bucket2Name)); +// } + +// [RecordedTest] +// public async Task PatchBucket() +// { +// //create snapshot +// var bucketName = Recording.GenerateAssetName("bucket-"); +// await SetUp(); + +// NetAppBucketData data = new NetAppBucketData +// { +// Path = "/", +// FileSystemUser = new NetAppBucketFileSystemUser +// { +// NfsUser = new NetAppBucketNfsUser +// { +// UserId = 1001L, +// GroupId = 1000L, +// }, +// }, +// Server = new NetAppBucketServerProperties +// { +// Fqdn = "www.acme.com", +// CertificateObject = _selfSignedCertificate, +// }, +// Permissions = NetAppBucketPermission.ReadOnly, +// }; +// ArmOperation lro = await _bucketCollection.CreateOrUpdateAsync(WaitUntil.Completed, bucketName, data); +// NetAppBucketResource result = lro.Value; + +// // the variable result is a resource +// Assert.IsNotNull(result.Data); +// Assert.AreEqual(bucketName, result.Data.Name.Split('/').Last()); +// Console.WriteLine($"Create Succeeded on id: {result.Data.Id}"); + +// // get the created resource +// NetAppBucketResource netAppBucket = Client.GetNetAppBucketResource(result.Data.Id); +// // invoke the operation +// NetAppBucketResource bucketResult = await netAppBucket.GetAsync(); +// Assert.IsNotNull(bucketResult.Data); +// Assert.AreEqual(bucketName, bucketResult.Data.Name.Split('/').Last()); +// Console.WriteLine($"GET Succeeded on id: {bucketResult.Data.Id}"); + +// // invoke the operation +// NetAppBucketPatch patch = new NetAppBucketPatch +// { +// Permissions = NetAppBucketPatchPermission.ReadWrite +// }; +// ArmOperation lroUpdate = await netAppBucket.UpdateAsync(WaitUntil.Completed, patch); +// NetAppBucketResource updateResult = lroUpdate.Value; +// Assert.IsNotNull(updateResult.Data); +// await LiveDelay(30000); +// NetAppBucketResource updateResultData = await netAppBucket.GetAsync(); + +// updateResultData.Id.Should().Be(bucketResult.Data.Id); +// updateResult.Data.Name.Should().Be(bucketResult.Data.Name); +// updateResult.Data.ProvisioningState.Should().Be(NetAppProvisioningState.Succeeded); +// //updateResultData.Data.Permissions.Should().Be(NetAppBucketPatchPermission.ReadWrite); +// } + +// [RecordedTest] +// public async Task GenerateCredentialsForBucket() +// { +// //create snapshot +// var bucketName = Recording.GenerateAssetName("bucket-"); +// await SetUp(); + +// NetAppBucketData data = new NetAppBucketData +// { +// Path = "/", +// FileSystemUser = new NetAppBucketFileSystemUser +// { +// NfsUser = new NetAppBucketNfsUser +// { +// UserId = 1001L, +// GroupId = 1000L, +// }, +// }, +// Server = new NetAppBucketServerProperties +// { +// Fqdn = "www.acme.com", +// CertificateObject = _selfSignedCertificate, +// }, +// Permissions = NetAppBucketPermission.ReadOnly, +// }; +// ArmOperation lro = await _bucketCollection.CreateOrUpdateAsync(WaitUntil.Completed, bucketName, data); +// NetAppBucketResource result = lro.Value; + +// // the variable result is a resource +// Assert.IsNotNull(result.Data); +// Assert.AreEqual(bucketName, result.Data.Name.Split('/').Last()); +// Console.WriteLine($"Create Succeeded on id: {result.Data.Id}"); + +// // get the created resource +// NetAppBucketResource netAppBucket = Client.GetNetAppBucketResource(result.Data.Id); +// NetAppBucketResource resultData = await netAppBucket.GetAsync(); +// Assert.IsNotNull(resultData.Data); +// Assert.AreEqual(bucketName, resultData.Data.Name.Split('/').Last()); +// Console.WriteLine($"GET Succeeded on id: {resultData.Data.Id}"); + +// // invoke the operation +// NetAppBucketCredentialsExpiry body = new NetAppBucketCredentialsExpiry +// { +// KeyPairExpiryDays = 3, +// }; +// NetAppBucketGenerateCredentials GenerateCredentialsResult = await netAppBucket.GenerateCredentialsAsync(body); + +// NetAppBucketGenerateCredentials credentials = GenerateCredentialsResult; +// credentials.Should().NotBeNull(); +// credentials.AccessKey.Should().NotBeNullOrEmpty(); +// credentials.SecretKey.Should().NotBeNullOrEmpty(); +// } + +// private string CreateSelfSignedCertificate(string subjectName = "CN=TestCertificate", int validityPeriodInYears = 1) +// { +// return @"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZEekNDQXZlZ0F3SUJBZ0lVTTF2bUZFNHZNU1k4MUFDaTBMNVBqbFlmWXgwd0RRWUpLb1pJaHZjTkFRRUwKQlFBd0Z6RVZNQk1HQTFVRUF3d01kM2QzTG1GamJXVXVZMjl0TUI0WERUSTFNRFl4TWpFMU5ESTBObG9YRFRJMgpNRFl4TWpFMU5ESTBObG93RnpFVk1CTUdBMVVFQXd3TWQzZDNMbUZqYldVdVkyOXRNSUlDSWpBTkJna3Foa2lHCjl3MEJBUUVGQUFPQ0FnOEFNSUlDQ2dLQ0FnRUFzanQ1ZHdvWkx0YWpWT2VtTWtBSFVyMys3U0llVFBORzJvVU4KbERBVXRHRVRzOUgwY2VMMGhzZlA4bmxHbUNEZzFiM3NjcjdHekpTMmEyMm9FR0g3VVFhbmhNeFBhdGVrd2FJRwovSmh1VjVWMURkZjdLa1dibUFwQVNDUWZPMTNUOFlXTDY0UnZaQ3F1K0VMMi9WeWRmSEx4ejNXNXBNMHB2K3JhClFLK0lXVDJQTzZYRjBqNTlQcE9wV1l1bGVSQXpjOE9HVDNEUmtEY25oU2ZIRWQ5bG1jWGhhSHVnc1JualFUVWYKdmpDZHVHZEFtcHFheEx4cERReWtGbmI1VlpsNUFNN3lNTW9mUkVVVEo0a1FVUVlWdjliQ1p5V2s1MTNqR0pvTQpZZEs3d2xQRTNtaTZObEtuV0REYkhmU1FUdzhtUjFiaTBodnNnd3o2Vm80SWI2YTFHTFdZT3lJcHI1V2o0MVRJCm9aWXA2UDdDVDY3Unhud2s1aWY2ejU1R1hxTDhHQkNhR0IxNHoxcUtZR0x4QkZ1S2MzYjBCbEYreUE0TDRRRlEKVkJsRThSR3FvMWlOeDdJeEQydk9xQzc5TnlJdXNCYThMbFovdExjQUp4V1VEOTVQVFlhbnpVZHBVZ3BIODkvVQpYc2lBdUVDb2NIYUNwNkxhdFU3SCtRQXQ3bTh6NEtTTHpnWk5tR0dwK24vWlhGYjB0c3gzRkxkUjZXMk9FRmFtClpXdHN6QkY0NjVBa0wwcVhxMEZOZzFwekNsUitwalNTOGhHWGRDS3NIWldMakFmNU5CUE5PVDJRTW1zL1dFZVYKMUwrOGIrTDBlVGZXV3dJa0lLV1dkT0ZmRUxFbmFqYVBuZXJzSlRoZTRIT1dJMGtlRDJmaG1YTVQ3Ynp6ZGZKTgpKcWxHWjlrQ0F3RUFBYU5UTUZFd0hRWURWUjBPQkJZRUZOa3A5a05ISzZmaEtKNnRaK2kzUlpCWmxoTUFNQjhHCkExVWRJd1FZTUJhQUZOa3A5a05ISzZmaEtKNnRaK2kzUlpCWmxoTUFNQThHQTFVZEV3RUIvd1FGTUFNQkFmOHcKRFFZSktvWklodmNOQVFFTEJRQURnZ0lCQUZFSGUxRHFpNXNRS0wvSmR2MTNIcEhyVkNoR0x6dGtxTHFwT0MyVgpyMWJUSzVUSWJCbW5CcEdQS3poQkU3bVF5MlFlWkZkT2c3RTRGblRVNzQ4eEtsWE04WkwrOFNWbDFLdlZaRkxjCkV0QWpqLzIwZE12N3JUVyt0UVhvVnBkZ1Q3OVVzMHpyVTJ2cVFJVFBWRE9GNjhickFtVkpsSzQyV1NELzh5YWcKL2VWSGpPUGkrQ3hodWJFOFR3NlBtVzkxOFM0QmNFQVF6Z0h3OVF0UWJxTzBlVWJ1OGdyV1lYbmlDcllhVmlVVApRY0VBTzF4cStpeFhtQ2o1VkFVQzlab211Z1VHNWlNZmM4dGdPQ0NpV092MldOM2NNNzNYV3IyekhLblBQOEZWCmJRVTZUM1Vwa3FDVGR4UnVkY3AyN1UvZ1ZkZ0szcVdIUTlOSnBhSmVRVDhKSTdMMDVFVFlObjRMeXYzSzVaWDUKRWJuZmxPNUljY1QzSG5Gby8vSk5aU2s1NTJmUHc0Q0d1blcrU3JNRE1iYk4rSzRTS3FMOXV6VEc5ZXBmN1NLZwpwRktyVmtQTDFPa3dmNDdmdy9LK1lTY0tWaGpWL1RTWVFjOUlNTUxpUXNsTExrMkFCQm41NDJwdjdqWGRqcllvCk50YTlnMjY5SzZjaG0zcXN1RG1lRkczSFYrRE9wUGh4dmRkdzRHUVdQNmZXLzZFeW45Y1RIZjZuZFdieEVGSWMKZ2VHYWF3SjlQR2ZKZnpPRDFPVkpDMTZsMEVrK3NiWVY3M0ZJM3VaR2pFYUVxTGZLanNMYjludUU5Q2JwbE1QMQp4c3F0WWpKWFJvSkdLVFpkOGNIVE5CbysxYzN6NzNjWEp6UDFwN1VWQUtmaDdGZ1NOWkJrbnB5YnZEeGVkOExuCkxCRFoKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQotLS0tLUJFR0lOIFBSSVZBVEUgS0VZLS0tLS0KTUlJSlF3SUJBREFOQmdrcWhraUc5dzBCQVFFRkFBU0NDUzB3Z2drcEFnRUFBb0lDQVFDeU8zbDNDaGt1MXFOVQo1Nll5UUFkU3ZmN3RJaDVNODBiYWhRMlVNQlMwWVJPejBmUng0dlNHeDgveWVVYVlJT0RWdmV4eXZzYk1sTFpyCmJhZ1FZZnRSQnFlRXpFOXExNlRCb2diOG1HNVhsWFVOMS9zcVJadVlDa0JJSkI4N1hkUHhoWXZyaEc5a0txNzQKUXZiOVhKMThjdkhQZGJta3pTbS82dHBBcjRoWlBZODdwY1hTUG4wK2s2bFppNlY1RUROenc0WlBjTkdRTnllRgpKOGNSMzJXWnhlRm9lNkN4R2VOQk5SKytNSjI0WjBDYW1wckV2R2tOREtRV2R2bFZtWGtBenZJd3loOUVSUk1uCmlSQlJCaFcvMXNKbkphVG5YZU1ZbWd4aDBydkNVOFRlYUxvMlVxZFlNTnNkOUpCUER5WkhWdUxTRyt5RERQcFcKamdodnByVVl0Wmc3SWltdmxhUGpWTWlobGluby9zSlBydEhHZkNUbUovclBua1plb3Z3WUVKb1lIWGpQV29wZwpZdkVFVzRwemR2UUdVWDdJRGd2aEFWQlVHVVR4RWFxaldJM0hzakVQYTg2b0x2MDNJaTZ3RnJ3dVZuKzB0d0FuCkZaUVAzazlOaHFmTlIybFNDa2Z6MzlSZXlJQzRRS2h3ZG9Lbm90cTFUc2Y1QUMzdWJ6UGdwSXZPQmsyWVlhbjYKZjlsY1Z2UzJ6SGNVdDFIcGJZNFFWcVpsYTJ6TUVYanJrQ1F2U3BlclFVMkRXbk1LVkg2bU5KTHlFWmQwSXF3ZApsWXVNQi9rMEU4MDVQWkF5YXo5WVI1WFV2N3h2NHZSNU45WmJBaVFncFpaMDRWOFFzU2RxTm8rZDZ1d2xPRjdnCmM1WWpTUjRQWitHWmN4UHR2UE4xOGswbXFVWm4yUUlEQVFBQkFvSUNBQnZtTGhWRzEyVDY1RER6aHozR2JWOEoKQS92MVRlNURCb3hJMTRuNEhNV1U0ZWltck5wRzZjLzU1eFhRTmc5ZmdOSkp4ZGE3QU9qS2srT0NhV204YkswNgpSVzZ4Z2ZKUGlkSzY4aTBJRDFNQkZObWQ2QXNEUDdVdnBacjZvZDVCSHdsbmNOemxBTlZ2emxrVGpSQzJpL3NNCll4MnBFcGpoZWUrT0ZsYVp6aXRwOU1uT3k5c2xQUHNCVWprRXl3VGJBYkxWU3hPVVdBN052ZzlITXJvY0pnMzAKRTdJRWtzVjdoVDg5SkVMajNxSEc4b05BNnQ1dzZtRElqSEdYeUxVYTJQNGFFWDgyK2IzNHNnN2c2RlR4TVpFSQpwUUJRWnQwYlYrTzUrWERoU1NnYUdobXIwR1RySmV3cXp2Y3V3OTF4bWFSV2VCcm1Qc0lrMDBCSlFMak96UG9BCktsMHZNNXNKdVB6STJTeWF6RnlVM1ovaWw2MzJHM2pMa2l0c1hBdHlmTTN5VEF2KzhCT1RSSTY4aXpOQmptbHYKQVNkRlZLQTF4cndmUFF2VXlYWnUwd2JUU0MwU2oxcmlUcERJMUl6NnQ1bndlUlVRNm1qSHg0OTAyS0liM2NjYQpoVEE0dnRtUjdackN0blE3YUpNa3o2REcxbUk1N0NiS0JKV2h6S0JtNTEwQVV5UGZsTFdGSGhXM1Z0N3BnVFo2CjRibjRaM1p1K1NBOFh4cUtDMmEyTENPRlkvZWY2UXhmUTlyekFHSWRzbzJzKzJsTENCV09kNXAvVyt2aC9oTU8KTWZYS0piRWYwSGpBTVVId3FvbUNUZmdSRU0xVkZ4U3JOeXRGUGs1NFdiOE5rOUh1Q1hQczlSazA1bUE0c2k5UQorOXR4U0psYzU0L3BQYnJqOXVFaEFvSUJBUUMyalBqUzFtYzJWVUhjaFVCdWVVZUFuMFRLdCswR3JlWTlwd0doCnduVFE5TEhvYU9xUUt0Vkc2VTUyYVQ4UUdpVHBpR3dNakJsSkQzNGlsN0o0cnBjNk9xRytkeTZYM29lcnl4TVIKRnlBN3VxWncvbTBzaEZORzNnK2t5R1hybE1KOU5yUnE4OHN5QlM1eVBvb2JHRkNORW9VQS9QT2lVaWROSm9mYQpVaDJzMmNuMnZWUzlDV1lwMGY0SWxTRXdYRm5VdStuc1dpYlVLSXFSam85SlRtRHcrdU5OZFFtNXhIb3ZpSlRkCnlYR3NONTFDdDFpVS9US3Q2ZnZBUHNrRXF2Q3VtcElQMjFEeXI0ejhsZ2Jyd3l4bXJoUW5yVVJkRUc1SmREcDUKVHdGL24xaktHK202bDJ4ejZEYmE2eVVValFDKzk4TzFjRjZ5bHVxQkJHcENidGN2QW9JQkFRRDU4YlNIZUVybQpzV3ZhM2lrNWJ2ZE9QRmdsRDJOVVd5VUJSeStsSjQyZ0RBdmdteWttN0RtK1lab3ViYkNkREZqL2V5YVZ0QTd2CklxdEJZUHNtejI3YzI1b3FoRUdIQTNpOFltWW1uYjRsbjZSTUIzdE8zSFlVT2J2MnY4Yy91WGlIbzBVN1lEMngKSnhxN05xRjFINlA5ZzlBbHNGVUl3a3hmTFA4UUc4YjBtWG0weWs5TGNxYVBkZVRvRkZ5dUpSdGlpQUY3UnZwbgpPM3hRL09tclFPL0hjeldzUE9WenkxMlVsMzROeUFOUGxzNGhXQlVacm9tUGxKZFB5R09CZmxEdU9RSXRPRzBECklzZFpwOWdwUFZvT2ZQZ25COG9KaEZCcUZEbVFlNk1YUFo1aU11YW1mMlVYMGI0SzNzVkVBdnVNZkdQeitON1MKK1FGNVZCUWgvVzkzQW9JQkFRQ2c4T3BTWDRwQllhc2VNekNaOVR5dnpqc0ZDbURqT1orNmpTbW9KbHQ4K2E1NworenVKZk9ucGlibU9OYjNPZ1c0M29mbTRtaStVdFI3OGVvZHpWR0dwaVpXZDZVOWZ2MllYZElOTDF2cXBEaWE5CmllSlFsQjBqWnBXZUxydUVsZk5lRjBPNjQxTXF0MXk2aGg2V1FycUpsV0ZEZkwrRFJUQzNHUmcreDVTNEZvNnoKaFRwWEt4a3lGNXdDancvaXBoamdzQWROUkRIbGJCUzJ2VnZnUWtTL1VFSGp3U0tnNy9MVlEzSVRrdzB2eXh4UApmSHVSWnlVdUpSSzU2K0NueDlsSDVxaU5hRXNXbXVVT3IycE1veGJiTS9BN0JzdzF6RTJmWHVSS25QZnlQMWMxCllLU1F4LzFxdHJqZUN0LzNIVlVpQ0NnNEoyaWx4TjNjZnpyN2RPTXJBb0lCQVFDWXJHdjUxQ0RzaWJPNEhieFEKdU5lWGtvVEZIb0V1SmY2VXFVY1JPdmZucTNRVjNyRmtkU2RRZzQ0S2pqWXp1RGNrMTdUWi9RS2lVQ3NMNUpHRgpRM0FVdUkrVEtQWmQ0bUQ5c1oxME9TYk5GSmJuV2lxWUlWSi9TRVRvbEh6QkVDbnZzR3U1dVMvMTVrME56bkVSCmVpSlIyUkpyOHluK0Q3Rlc4Y1Zic1p2MkRVbXFoV21xVEg0eFkzSlAwU0JMdjU3YXNQazJ0RVNBaW5XRmd2ZTUKQkJGelk0eUZpUzBmYmpuYmFpNDFmTmVJNWpWRGFPcDZwWUtoa2NKYm1hd3VqVm9pS2ZDS2JzMG4vVGFJTFY1OAowbDBRUElYWVVZbTRCbnFZVVlKWUh5MmdKS042bUYwTGx3WEpadlVPN3NUUXBvSEJicm9mYlFXdkdTc3RVWTU2CnRMUkJBb0lCQURUblFPWEszdHhYbkdMMERMU1k4QXE1TDdkT3lUUDdzSllzMHRGcFhnTDRkRXpyVEV0bHYrd1MKMEtKSnZKWWt5RjlzcmpCWGI4TjBmNFhvWi9jL3d4c2d4TUtKRXVrOHFNZHFzeUxBelZpaHNhNU4vcW90MUR4SgpMcTc5aVBIVk1FOFV1bXFiWldUSDVyVWFBTE5RQnY4azdJQkIydUNzRTl0dFlFWk5WcThtWHZGZklteXhkN1k2CkxnNVVIeEg3a2RkQjNkZzlDdExBM3ZsQUNMcEVyTlk4SDNrakIzaGVxM0RzdXJVNlVxTGdad1Qvc0JPSWl3b1QKVmdZbEFFUE1GbmsrNE10Z1BVcG9UUEVMQ21YQjkwM3VpQ0p1NlEyd0VrN3ZvU0VtWlBZR1JwSkRobjVrSnFQVwozM3BlT3Q3K2lTQVV0eHZHNFVzc1hZdFh6ZS9hQmNBPQotLS0tLUVORCBQUklWQVRFIEtFWS0tLS0t"; +// } + +// // // Generate RSA key pair +// // using (RSA rsa = RSA.Create()) +// // { +// // rsa.KeySize = 2048; +// // var certificateRequest = new CertificateRequest( +// // subjectName, +// // rsa, +// // HashAlgorithmName.SHA256, +// // RSASignaturePadding.Pkcs1); + +// // // Add basic constraints (self-signed, no CA) +// // certificateRequest.CertificateExtensions.Add( +// // new X509BasicConstraintsExtension(false, false, 0, false)); + +// // // Add key usage (digital signature, key encipherment) +// // certificateRequest.CertificateExtensions.Add( +// // new X509KeyUsageExtension( +// // X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.KeyEncipherment, +// // false)); + +// // // Add subject key identifier +// // certificateRequest.CertificateExtensions.Add( +// // new X509SubjectKeyIdentifierExtension(certificateRequest.PublicKey, false)); + +// // // Create the self-signed certificate +// // var certificate = certificateRequest.CreateSelfSigned( +// // DateTimeOffset.Now, +// // DateTimeOffset.Now.AddYears(validityPeriodInYears)); + +// // // Export certificate as PEM +// // certificateString = ExportToPem(certificate); +// // } +// // return certificateString; +// // } + +// // private static string ExportToPem(X509Certificate2 certificate) +// // { +// // // Export the certificate as Base64 +// // byte[] certBytes = certificate.Export(X509ContentType.Cert); +// // string base64Cert = Convert.ToBase64String(certBytes); + +// // // Format as PEM +// // StringBuilder pem = new StringBuilder(); +// // pem.AppendLine("-----BEGIN CERTIFICATE-----"); +// // for (int i = 0; i < base64Cert.Length; i += 64) +// // { +// // pem.AppendLine(base64Cert.Substring(i, Math.Min(64, base64Cert.Length - i))); +// // } +// // pem.AppendLine("-----END CERTIFICATE-----"); + +// // return pem.ToString(); +// // } +// } +// } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs index 5304f2fd34f4..e10185ecfa18 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/NetAppAccountTests.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.NetApp.Tests public class NetAppAccountTests: NetAppTestBase { private const string namePrefix = "testNetAppNetSDKmgmt"; - public static new AzureLocation DefaultLocation = "eastus2euap"; + //public static new AzureLocation DefaultLocation = "westus2"; public NetAppAccountTests(bool isAsync) : base(isAsync) { @@ -201,7 +201,7 @@ public async Task GetAllNetAppAccountsByResourceGroup() VerifyNetAppAccountProperties(account4, true); } - [Ignore("ARM issue with nextLink ignore temporarly")] + //[Ignore("ARM issue with nextLink ignore temporarly")] [RecordedTest] public async Task GetAllNetAppAccountsBySubscription() { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/VolumeTests.cs b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/VolumeTests.cs index 2052b3e82518..bda06f1d44ce 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/VolumeTests.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/VolumeTests.cs @@ -636,20 +636,22 @@ public async Task GetGetGroupIdListForLdapUserNonLDAPVolumeShouldReturnError() Assert.AreEqual(400, exception.Status); } - [RecordedTest] - public async Task ListQuotaReport() - { - //create volume - string volumeName = Recording.GenerateAssetName("volumeName-"); - NetAppVolumeResource volumeResource1 = await CreateVolume(DefaultLocation, NetAppFileServiceLevel.Premium, _defaultUsageThreshold, volumeName: volumeName); - //Check filePathAvailability, should be unavailable after volume creation - NetAppVolumeResource netAppVolume = Client.GetNetAppVolumeResource(volumeResource1.Id); - // invoke the operation - ArmOperation lro = await netAppVolume.GetQuotaReportAsync(WaitUntil.Completed); - NetAppVolumeQuotaReportListResult result = lro.Value; - result.Should().NotBeNull(); - result.Value.Should().BeEmpty(); - } + // TODO in preview, enable when GA + //[Ignore("Ignore for now due to CI pipeline issue.")] + //[RecordedTest] + //public async Task ListQuotaReport() + //{ + // //create volume + // string volumeName = Recording.GenerateAssetName("volumeName-"); + // NetAppVolumeResource volumeResource1 = await CreateVolume(DefaultLocation, NetAppFileServiceLevel.Premium, _defaultUsageThreshold, volumeName: volumeName); + // //Check filePathAvailability, should be unavailable after volume creation + // NetAppVolumeResource netAppVolume = Client.GetNetAppVolumeResource(volumeResource1.Id); + // // invoke the operation + // ArmOperation lro = await netAppVolume.GetQuotaReportAsync(WaitUntil.Completed); + // NetAppVolumeQuotaReportListResult result = lro.Value; + // result.Should().NotBeNull(); + // result.Value.Should().BeEmpty(); + //} private async Task WaitForReplicationStatus(NetAppVolumeResource volumeResource, NetAppMirrorState mirrorState) {