| | 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 connection type. </summary> |
| | 14 | | public readonly partial struct VirtualNetworkGatewayConnectionType : IEquatable<VirtualNetworkGatewayConnectionType> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="VirtualNetworkGatewayConnectionType"/> values are the same. </summary |
| | 19 | | public VirtualNetworkGatewayConnectionType(string value) |
| | 20 | | { |
| 72 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 72 | 22 | | } |
| | 23 | |
|
| | 24 | | private const string IPsecValue = "IPsec"; |
| | 25 | | private const string Vnet2VnetValue = "Vnet2Vnet"; |
| | 26 | | private const string ExpressRouteValue = "ExpressRoute"; |
| | 27 | | private const string VPNClientValue = "VPNClient"; |
| | 28 | |
|
| | 29 | | /// <summary> IPsec. </summary> |
| 26 | 30 | | public static VirtualNetworkGatewayConnectionType IPsec { get; } = new VirtualNetworkGatewayConnectionType(IPsec |
| | 31 | | /// <summary> Vnet2Vnet. </summary> |
| 0 | 32 | | public static VirtualNetworkGatewayConnectionType Vnet2Vnet { get; } = new VirtualNetworkGatewayConnectionType(V |
| | 33 | | /// <summary> ExpressRoute. </summary> |
| 0 | 34 | | public static VirtualNetworkGatewayConnectionType ExpressRoute { get; } = new VirtualNetworkGatewayConnectionTyp |
| | 35 | | /// <summary> VPNClient. </summary> |
| 0 | 36 | | public static VirtualNetworkGatewayConnectionType VPNClient { get; } = new VirtualNetworkGatewayConnectionType(V |
| | 37 | | /// <summary> Determines if two <see cref="VirtualNetworkGatewayConnectionType"/> values are the same. </summary |
| 0 | 38 | | public static bool operator ==(VirtualNetworkGatewayConnectionType left, VirtualNetworkGatewayConnectionType rig |
| | 39 | | /// <summary> Determines if two <see cref="VirtualNetworkGatewayConnectionType"/> values are not the same. </sum |
| 0 | 40 | | public static bool operator !=(VirtualNetworkGatewayConnectionType left, VirtualNetworkGatewayConnectionType rig |
| | 41 | | /// <summary> Converts a string to a <see cref="VirtualNetworkGatewayConnectionType"/>. </summary> |
| 0 | 42 | | public static implicit operator VirtualNetworkGatewayConnectionType(string value) => new VirtualNetworkGatewayCo |
| | 43 | |
|
| | 44 | | /// <inheritdoc /> |
| | 45 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 46 | | public override bool Equals(object obj) => obj is VirtualNetworkGatewayConnectionType other && Equals(other); |
| | 47 | | /// <inheritdoc /> |
| 12 | 48 | | public bool Equals(VirtualNetworkGatewayConnectionType other) => string.Equals(_value, other._value, StringCompa |
| | 49 | |
|
| | 50 | | /// <inheritdoc /> |
| | 51 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 52 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 53 | | /// <inheritdoc /> |
| 60 | 54 | | public override string ToString() => _value; |
| | 55 | | } |
| | 56 | | } |