| | 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 | | using System.Globalization; |
| | 11 | |
|
| | 12 | | namespace Azure.ResourceManager.Compute.Models |
| | 13 | | { |
| | 14 | | /// <summary> Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The default |
| | 15 | | public readonly partial struct Enum27 : IEquatable<Enum27> |
| | 16 | | { |
| | 17 | | private readonly int _value; |
| | 18 | |
|
| | 19 | | /// <summary> Determines if two <see cref="Enum27"/> values are the same. </summary> |
| | 20 | | public Enum27(int value) |
| | 21 | | { |
| 0 | 22 | | _value = value; |
| 0 | 23 | | } |
| | 24 | |
|
| | 25 | | private const int OneValue = 1; |
| | 26 | | private const int ThreeValue = 3; |
| | 27 | | private const int FiveValue = 5; |
| | 28 | |
|
| | 29 | | /// <summary> 1. </summary> |
| 0 | 30 | | public static Enum27 One { get; } = new Enum27(OneValue); |
| | 31 | | /// <summary> 3. </summary> |
| 0 | 32 | | public static Enum27 Three { get; } = new Enum27(ThreeValue); |
| | 33 | | /// <summary> 5. </summary> |
| 0 | 34 | | public static Enum27 Five { get; } = new Enum27(FiveValue); |
| | 35 | | /// <summary> Determines if two <see cref="Enum27"/> values are the same. </summary> |
| 0 | 36 | | public static bool operator ==(Enum27 left, Enum27 right) => left.Equals(right); |
| | 37 | | /// <summary> Determines if two <see cref="Enum27"/> values are not the same. </summary> |
| 0 | 38 | | public static bool operator !=(Enum27 left, Enum27 right) => !left.Equals(right); |
| | 39 | | /// <summary> Converts a string to a <see cref="Enum27"/>. </summary> |
| 0 | 40 | | public static implicit operator Enum27(int value) => new Enum27(value); |
| | 41 | |
|
| | 42 | | /// <inheritdoc /> |
| | 43 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 44 | | public override bool Equals(object obj) => obj is Enum27 other && Equals(other); |
| | 45 | | /// <inheritdoc /> |
| 0 | 46 | | public bool Equals(Enum27 other) => Equals(_value, other._value); |
| | 47 | |
|
| | 48 | | /// <inheritdoc /> |
| | 49 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 50 | | public override int GetHashCode() => _value.GetHashCode(); |
| | 51 | | /// <inheritdoc /> |
| 0 | 52 | | public override string ToString() => _value.ToString(CultureInfo.InvariantCulture); |
| | 53 | | } |
| | 54 | | } |