| | 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.Network.Models |
| | 12 | | { |
| | 13 | | /// <summary> Gateway SKU tier. </summary> |
| | 14 | | public readonly partial struct VirtualNetworkGatewaySkuTier : IEquatable<VirtualNetworkGatewaySkuTier> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="VirtualNetworkGatewaySkuTier"/> values are the same. </summary> |
| | 19 | | public VirtualNetworkGatewaySkuTier(string value) |
| | 20 | | { |
| 70 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 70 | 22 | | } |
| | 23 | |
|
| | 24 | | private const string BasicValue = "Basic"; |
| | 25 | | private const string HighPerformanceValue = "HighPerformance"; |
| | 26 | | private const string StandardValue = "Standard"; |
| | 27 | | private const string UltraPerformanceValue = "UltraPerformance"; |
| | 28 | | private const string VpnGw1Value = "VpnGw1"; |
| | 29 | | private const string VpnGw2Value = "VpnGw2"; |
| | 30 | | private const string VpnGw3Value = "VpnGw3"; |
| | 31 | | private const string VpnGw4Value = "VpnGw4"; |
| | 32 | | private const string VpnGw5Value = "VpnGw5"; |
| | 33 | | private const string VpnGw1AZValue = "VpnGw1AZ"; |
| | 34 | | private const string VpnGw2AZValue = "VpnGw2AZ"; |
| | 35 | | private const string VpnGw3AZValue = "VpnGw3AZ"; |
| | 36 | | private const string VpnGw4AZValue = "VpnGw4AZ"; |
| | 37 | | private const string VpnGw5AZValue = "VpnGw5AZ"; |
| | 38 | | private const string ErGw1AZValue = "ErGw1AZ"; |
| | 39 | | private const string ErGw2AZValue = "ErGw2AZ"; |
| | 40 | | private const string ErGw3AZValue = "ErGw3AZ"; |
| | 41 | |
|
| | 42 | | /// <summary> Basic. </summary> |
| 0 | 43 | | public static VirtualNetworkGatewaySkuTier Basic { get; } = new VirtualNetworkGatewaySkuTier(BasicValue); |
| | 44 | | /// <summary> HighPerformance. </summary> |
| 0 | 45 | | public static VirtualNetworkGatewaySkuTier HighPerformance { get; } = new VirtualNetworkGatewaySkuTier(HighPerfo |
| | 46 | | /// <summary> Standard. </summary> |
| 6 | 47 | | public static VirtualNetworkGatewaySkuTier Standard { get; } = new VirtualNetworkGatewaySkuTier(StandardValue); |
| | 48 | | /// <summary> UltraPerformance. </summary> |
| 0 | 49 | | public static VirtualNetworkGatewaySkuTier UltraPerformance { get; } = new VirtualNetworkGatewaySkuTier(UltraPer |
| | 50 | | /// <summary> VpnGw1. </summary> |
| 0 | 51 | | public static VirtualNetworkGatewaySkuTier VpnGw1 { get; } = new VirtualNetworkGatewaySkuTier(VpnGw1Value); |
| | 52 | | /// <summary> VpnGw2. </summary> |
| 0 | 53 | | public static VirtualNetworkGatewaySkuTier VpnGw2 { get; } = new VirtualNetworkGatewaySkuTier(VpnGw2Value); |
| | 54 | | /// <summary> VpnGw3. </summary> |
| 0 | 55 | | public static VirtualNetworkGatewaySkuTier VpnGw3 { get; } = new VirtualNetworkGatewaySkuTier(VpnGw3Value); |
| | 56 | | /// <summary> VpnGw4. </summary> |
| 0 | 57 | | public static VirtualNetworkGatewaySkuTier VpnGw4 { get; } = new VirtualNetworkGatewaySkuTier(VpnGw4Value); |
| | 58 | | /// <summary> VpnGw5. </summary> |
| 0 | 59 | | public static VirtualNetworkGatewaySkuTier VpnGw5 { get; } = new VirtualNetworkGatewaySkuTier(VpnGw5Value); |
| | 60 | | /// <summary> VpnGw1AZ. </summary> |
| 0 | 61 | | public static VirtualNetworkGatewaySkuTier VpnGw1AZ { get; } = new VirtualNetworkGatewaySkuTier(VpnGw1AZValue); |
| | 62 | | /// <summary> VpnGw2AZ. </summary> |
| 0 | 63 | | public static VirtualNetworkGatewaySkuTier VpnGw2AZ { get; } = new VirtualNetworkGatewaySkuTier(VpnGw2AZValue); |
| | 64 | | /// <summary> VpnGw3AZ. </summary> |
| 0 | 65 | | public static VirtualNetworkGatewaySkuTier VpnGw3AZ { get; } = new VirtualNetworkGatewaySkuTier(VpnGw3AZValue); |
| | 66 | | /// <summary> VpnGw4AZ. </summary> |
| 0 | 67 | | public static VirtualNetworkGatewaySkuTier VpnGw4AZ { get; } = new VirtualNetworkGatewaySkuTier(VpnGw4AZValue); |
| | 68 | | /// <summary> VpnGw5AZ. </summary> |
| 0 | 69 | | public static VirtualNetworkGatewaySkuTier VpnGw5AZ { get; } = new VirtualNetworkGatewaySkuTier(VpnGw5AZValue); |
| | 70 | | /// <summary> ErGw1AZ. </summary> |
| 0 | 71 | | public static VirtualNetworkGatewaySkuTier ErGw1AZ { get; } = new VirtualNetworkGatewaySkuTier(ErGw1AZValue); |
| | 72 | | /// <summary> ErGw2AZ. </summary> |
| 0 | 73 | | public static VirtualNetworkGatewaySkuTier ErGw2AZ { get; } = new VirtualNetworkGatewaySkuTier(ErGw2AZValue); |
| | 74 | | /// <summary> ErGw3AZ. </summary> |
| 0 | 75 | | public static VirtualNetworkGatewaySkuTier ErGw3AZ { get; } = new VirtualNetworkGatewaySkuTier(ErGw3AZValue); |
| | 76 | | /// <summary> Determines if two <see cref="VirtualNetworkGatewaySkuTier"/> values are the same. </summary> |
| 0 | 77 | | public static bool operator ==(VirtualNetworkGatewaySkuTier left, VirtualNetworkGatewaySkuTier right) => left.Eq |
| | 78 | | /// <summary> Determines if two <see cref="VirtualNetworkGatewaySkuTier"/> values are not the same. </summary> |
| 0 | 79 | | public static bool operator !=(VirtualNetworkGatewaySkuTier left, VirtualNetworkGatewaySkuTier right) => !left.E |
| | 80 | | /// <summary> Converts a string to a <see cref="VirtualNetworkGatewaySkuTier"/>. </summary> |
| 4 | 81 | | public static implicit operator VirtualNetworkGatewaySkuTier(string value) => new VirtualNetworkGatewaySkuTier(v |
| | 82 | |
|
| | 83 | | /// <inheritdoc /> |
| | 84 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 85 | | public override bool Equals(object obj) => obj is VirtualNetworkGatewaySkuTier other && Equals(other); |
| | 86 | | /// <inheritdoc /> |
| 0 | 87 | | public bool Equals(VirtualNetworkGatewaySkuTier other) => string.Equals(_value, other._value, StringComparison.I |
| | 88 | |
|
| | 89 | | /// <inheritdoc /> |
| | 90 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 91 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 92 | | /// <inheritdoc /> |
| 72 | 93 | | public override string ToString() => _value; |
| | 94 | | } |
| | 95 | | } |