| | 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> The type of issue. </summary> |
| | 14 | | public readonly partial struct IssueType : IEquatable<IssueType> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="IssueType"/> values are the same. </summary> |
| | 19 | | public IssueType(string value) |
| | 20 | | { |
| 0 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 0 | 22 | | } |
| | 23 | |
|
| | 24 | | private const string UnknownValue = "Unknown"; |
| | 25 | | private const string AgentStoppedValue = "AgentStopped"; |
| | 26 | | private const string GuestFirewallValue = "GuestFirewall"; |
| | 27 | | private const string DnsResolutionValue = "DnsResolution"; |
| | 28 | | private const string SocketBindValue = "SocketBind"; |
| | 29 | | private const string NetworkSecurityRuleValue = "NetworkSecurityRule"; |
| | 30 | | private const string UserDefinedRouteValue = "UserDefinedRoute"; |
| | 31 | | private const string PortThrottledValue = "PortThrottled"; |
| | 32 | | private const string PlatformValue = "Platform"; |
| | 33 | |
|
| | 34 | | /// <summary> Unknown. </summary> |
| 0 | 35 | | public static IssueType Unknown { get; } = new IssueType(UnknownValue); |
| | 36 | | /// <summary> AgentStopped. </summary> |
| 0 | 37 | | public static IssueType AgentStopped { get; } = new IssueType(AgentStoppedValue); |
| | 38 | | /// <summary> GuestFirewall. </summary> |
| 0 | 39 | | public static IssueType GuestFirewall { get; } = new IssueType(GuestFirewallValue); |
| | 40 | | /// <summary> DnsResolution. </summary> |
| 0 | 41 | | public static IssueType DnsResolution { get; } = new IssueType(DnsResolutionValue); |
| | 42 | | /// <summary> SocketBind. </summary> |
| 0 | 43 | | public static IssueType SocketBind { get; } = new IssueType(SocketBindValue); |
| | 44 | | /// <summary> NetworkSecurityRule. </summary> |
| 0 | 45 | | public static IssueType NetworkSecurityRule { get; } = new IssueType(NetworkSecurityRuleValue); |
| | 46 | | /// <summary> UserDefinedRoute. </summary> |
| 0 | 47 | | public static IssueType UserDefinedRoute { get; } = new IssueType(UserDefinedRouteValue); |
| | 48 | | /// <summary> PortThrottled. </summary> |
| 0 | 49 | | public static IssueType PortThrottled { get; } = new IssueType(PortThrottledValue); |
| | 50 | | /// <summary> Platform. </summary> |
| 0 | 51 | | public static IssueType Platform { get; } = new IssueType(PlatformValue); |
| | 52 | | /// <summary> Determines if two <see cref="IssueType"/> values are the same. </summary> |
| 0 | 53 | | public static bool operator ==(IssueType left, IssueType right) => left.Equals(right); |
| | 54 | | /// <summary> Determines if two <see cref="IssueType"/> values are not the same. </summary> |
| 0 | 55 | | public static bool operator !=(IssueType left, IssueType right) => !left.Equals(right); |
| | 56 | | /// <summary> Converts a string to a <see cref="IssueType"/>. </summary> |
| 0 | 57 | | public static implicit operator IssueType(string value) => new IssueType(value); |
| | 58 | |
|
| | 59 | | /// <inheritdoc /> |
| | 60 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 61 | | public override bool Equals(object obj) => obj is IssueType other && Equals(other); |
| | 62 | | /// <inheritdoc /> |
| 0 | 63 | | public bool Equals(IssueType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgno |
| | 64 | |
|
| | 65 | | /// <inheritdoc /> |
| | 66 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 67 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 68 | | /// <inheritdoc /> |
| 0 | 69 | | public override string ToString() => _value; |
| | 70 | | } |
| | 71 | | } |