| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.ComponentModel; |
| | 10 | |
|
| | 11 | | namespace Azure.ResourceManager.Compute.Models |
| | 12 | | { |
| | 13 | | /// <summary> Specifies the storage account type for the managed disk. Managed OS disk storage account type can only |
| | 14 | | public readonly partial struct StorageAccountTypes : IEquatable<StorageAccountTypes> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="StorageAccountTypes"/> values are the same. </summary> |
| | 19 | | public StorageAccountTypes(string value) |
| | 20 | | { |
| 1060 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 1060 | 22 | | } |
| | 23 | |
|
| | 24 | | private const string StandardLRSValue = "Standard_LRS"; |
| | 25 | | private const string PremiumLRSValue = "Premium_LRS"; |
| | 26 | | private const string StandardSSDLRSValue = "StandardSSD_LRS"; |
| | 27 | | private const string UltraSSDLRSValue = "UltraSSD_LRS"; |
| | 28 | |
|
| | 29 | | /// <summary> Standard_LRS. </summary> |
| 74 | 30 | | public static StorageAccountTypes StandardLRS { get; } = new StorageAccountTypes(StandardLRSValue); |
| | 31 | | /// <summary> Premium_LRS. </summary> |
| 10 | 32 | | public static StorageAccountTypes PremiumLRS { get; } = new StorageAccountTypes(PremiumLRSValue); |
| | 33 | | /// <summary> StandardSSD_LRS. </summary> |
| 10 | 34 | | public static StorageAccountTypes StandardSSDLRS { get; } = new StorageAccountTypes(StandardSSDLRSValue); |
| | 35 | | /// <summary> UltraSSD_LRS. </summary> |
| 154 | 36 | | public static StorageAccountTypes UltraSSDLRS { get; } = new StorageAccountTypes(UltraSSDLRSValue); |
| | 37 | | /// <summary> Determines if two <see cref="StorageAccountTypes"/> values are the same. </summary> |
| 224 | 38 | | public static bool operator ==(StorageAccountTypes left, StorageAccountTypes right) => left.Equals(right); |
| | 39 | | /// <summary> Determines if two <see cref="StorageAccountTypes"/> values are not the same. </summary> |
| 0 | 40 | | public static bool operator !=(StorageAccountTypes left, StorageAccountTypes right) => !left.Equals(right); |
| | 41 | | /// <summary> Converts a string to a <see cref="StorageAccountTypes"/>. </summary> |
| 148 | 42 | | public static implicit operator StorageAccountTypes(string value) => new StorageAccountTypes(value); |
| | 43 | |
|
| | 44 | | /// <inheritdoc /> |
| | 45 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 46 | | public override bool Equals(object obj) => obj is StorageAccountTypes other && Equals(other); |
| | 47 | | /// <inheritdoc /> |
| 224 | 48 | | public bool Equals(StorageAccountTypes other) => string.Equals(_value, other._value, StringComparison.InvariantC |
| | 49 | |
|
| | 50 | | /// <inheritdoc /> |
| | 51 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 52 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 53 | | /// <inheritdoc /> |
| 168 | 54 | | public override string ToString() => _value; |
| | 55 | | } |
| | 56 | | } |