| | 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> The sku name. </summary> |
| | 14 | | public readonly partial struct DiskStorageAccountTypes : IEquatable<DiskStorageAccountTypes> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="DiskStorageAccountTypes"/> values are the same. </summary> |
| | 19 | | public DiskStorageAccountTypes(string value) |
| | 20 | | { |
| 304 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 304 | 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 HDD locally redundant storage. Best for backup, non-critical, and infrequent access. </su |
| 0 | 30 | | public static DiskStorageAccountTypes StandardLRS { get; } = new DiskStorageAccountTypes(StandardLRSValue); |
| | 31 | | /// <summary> Premium SSD locally redundant storage. Best for production and performance sensitive workloads. </ |
| 0 | 32 | | public static DiskStorageAccountTypes PremiumLRS { get; } = new DiskStorageAccountTypes(PremiumLRSValue); |
| | 33 | | /// <summary> Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications |
| 0 | 34 | | public static DiskStorageAccountTypes StandardSSDLRS { get; } = new DiskStorageAccountTypes(StandardSSDLRSValue) |
| | 35 | | /// <summary> Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier da |
| 10 | 36 | | public static DiskStorageAccountTypes UltraSSDLRS { get; } = new DiskStorageAccountTypes(UltraSSDLRSValue); |
| | 37 | | /// <summary> Determines if two <see cref="DiskStorageAccountTypes"/> values are the same. </summary> |
| 0 | 38 | | public static bool operator ==(DiskStorageAccountTypes left, DiskStorageAccountTypes right) => left.Equals(right |
| | 39 | | /// <summary> Determines if two <see cref="DiskStorageAccountTypes"/> values are not the same. </summary> |
| 0 | 40 | | public static bool operator !=(DiskStorageAccountTypes left, DiskStorageAccountTypes right) => !left.Equals(righ |
| | 41 | | /// <summary> Converts a string to a <see cref="DiskStorageAccountTypes"/>. </summary> |
| 68 | 42 | | public static implicit operator DiskStorageAccountTypes(string value) => new DiskStorageAccountTypes(value); |
| | 43 | |
|
| | 44 | | /// <inheritdoc /> |
| | 45 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 46 | | public override bool Equals(object obj) => obj is DiskStorageAccountTypes other && Equals(other); |
| | 47 | | /// <inheritdoc /> |
| 96 | 48 | | public bool Equals(DiskStorageAccountTypes other) => string.Equals(_value, other._value, StringComparison.Invari |
| | 49 | |
|
| | 50 | | /// <inheritdoc /> |
| | 51 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 52 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 53 | | /// <inheritdoc /> |
| 188 | 54 | | public override string ToString() => _value; |
| | 55 | | } |
| | 56 | | } |