| | 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> Indicates the type of storage account. </summary> |
| | 14 | | public readonly partial struct Kind : IEquatable<Kind> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="Kind"/> values are the same. </summary> |
| | 19 | | public Kind(string value) |
| | 20 | | { |
| 3298 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 3298 | 22 | | } |
| | 23 | |
|
| | 24 | | private const string StorageValue = "Storage"; |
| | 25 | | private const string StorageV2Value = "StorageV2"; |
| | 26 | | private const string BlobStorageValue = "BlobStorage"; |
| | 27 | | private const string FileStorageValue = "FileStorage"; |
| | 28 | | private const string BlockBlobStorageValue = "BlockBlobStorage"; |
| | 29 | |
|
| | 30 | | /// <summary> Storage. </summary> |
| 180 | 31 | | public static Kind Storage { get; } = new Kind(StorageValue); |
| | 32 | | /// <summary> StorageV2. </summary> |
| 166 | 33 | | public static Kind StorageV2 { get; } = new Kind(StorageV2Value); |
| | 34 | | /// <summary> BlobStorage. </summary> |
| 38 | 35 | | public static Kind BlobStorage { get; } = new Kind(BlobStorageValue); |
| | 36 | | /// <summary> FileStorage. </summary> |
| 182 | 37 | | public static Kind FileStorage { get; } = new Kind(FileStorageValue); |
| | 38 | | /// <summary> BlockBlobStorage. </summary> |
| 10 | 39 | | public static Kind BlockBlobStorage { get; } = new Kind(BlockBlobStorageValue); |
| | 40 | | /// <summary> Determines if two <see cref="Kind"/> values are the same. </summary> |
| 240 | 41 | | public static bool operator ==(Kind left, Kind right) => left.Equals(right); |
| | 42 | | /// <summary> Determines if two <see cref="Kind"/> values are not the same. </summary> |
| 172 | 43 | | public static bool operator !=(Kind left, Kind right) => !left.Equals(right); |
| | 44 | | /// <summary> Converts a string to a <see cref="Kind"/>. </summary> |
| 0 | 45 | | public static implicit operator Kind(string value) => new Kind(value); |
| | 46 | |
|
| | 47 | | /// <inheritdoc /> |
| | 48 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 12 | 49 | | public override bool Equals(object obj) => obj is Kind other && Equals(other); |
| | 50 | | /// <inheritdoc /> |
| 520 | 51 | | public bool Equals(Kind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCas |
| | 52 | |
|
| | 53 | | /// <inheritdoc /> |
| | 54 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 55 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 56 | | /// <inheritdoc /> |
| 592 | 57 | | public override string ToString() => _value; |
| | 58 | | } |
| | 59 | | } |