| | 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.Storage.Models |
| | 12 | | { |
| | 13 | | /// <summary> The SKU name. Required for account creation; optional for update. Note that in older versions, SKU nam |
| | 14 | | public readonly partial struct SkuName : IEquatable<SkuName> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="SkuName"/> values are the same. </summary> |
| | 19 | | public SkuName(string value) |
| | 20 | | { |
| 3348 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 3348 | 22 | | } |
| | 23 | |
|
| | 24 | | private const string StandardLRSValue = "Standard_LRS"; |
| | 25 | | private const string StandardGRSValue = "Standard_GRS"; |
| | 26 | | private const string StandardRagrsValue = "Standard_RAGRS"; |
| | 27 | | private const string StandardZRSValue = "Standard_ZRS"; |
| | 28 | | private const string PremiumLRSValue = "Premium_LRS"; |
| | 29 | | private const string PremiumZRSValue = "Premium_ZRS"; |
| | 30 | | private const string StandardGzrsValue = "Standard_GZRS"; |
| | 31 | | private const string StandardRagzrsValue = "Standard_RAGZRS"; |
| | 32 | |
|
| | 33 | | /// <summary> Standard_LRS. </summary> |
| 286 | 34 | | public static SkuName StandardLRS { get; } = new SkuName(StandardLRSValue); |
| | 35 | | /// <summary> Standard_GRS. </summary> |
| 180 | 36 | | public static SkuName StandardGRS { get; } = new SkuName(StandardGRSValue); |
| | 37 | | /// <summary> Standard_RAGRS. </summary> |
| 22 | 38 | | public static SkuName StandardRagrs { get; } = new SkuName(StandardRagrsValue); |
| | 39 | | /// <summary> Standard_ZRS. </summary> |
| 310 | 40 | | public static SkuName StandardZRS { get; } = new SkuName(StandardZRSValue); |
| | 41 | | /// <summary> Premium_LRS. </summary> |
| 318 | 42 | | public static SkuName PremiumLRS { get; } = new SkuName(PremiumLRSValue); |
| | 43 | | /// <summary> Premium_ZRS. </summary> |
| 0 | 44 | | public static SkuName PremiumZRS { get; } = new SkuName(PremiumZRSValue); |
| | 45 | | /// <summary> Standard_GZRS. </summary> |
| 0 | 46 | | public static SkuName StandardGzrs { get; } = new SkuName(StandardGzrsValue); |
| | 47 | | /// <summary> Standard_RAGZRS. </summary> |
| 150 | 48 | | public static SkuName StandardRagzrs { get; } = new SkuName(StandardRagzrsValue); |
| | 49 | | /// <summary> Determines if two <see cref="SkuName"/> values are the same. </summary> |
| 784 | 50 | | public static bool operator ==(SkuName left, SkuName right) => left.Equals(right); |
| | 51 | | /// <summary> Determines if two <see cref="SkuName"/> values are not the same. </summary> |
| 276 | 52 | | public static bool operator !=(SkuName left, SkuName right) => !left.Equals(right); |
| | 53 | | /// <summary> Converts a string to a <see cref="SkuName"/>. </summary> |
| 0 | 54 | | public static implicit operator SkuName(string value) => new SkuName(value); |
| | 55 | |
|
| | 56 | | /// <inheritdoc /> |
| | 57 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 58 | | public override bool Equals(object obj) => obj is SkuName other && Equals(other); |
| | 59 | | /// <inheritdoc /> |
| 1216 | 60 | | public bool Equals(SkuName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnore |
| | 61 | |
|
| | 62 | | /// <inheritdoc /> |
| | 63 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 64 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 65 | | /// <inheritdoc /> |
| 624 | 66 | | public override string ToString() => _value; |
| | 67 | | } |
| | 68 | | } |