< Summary

Class:Azure.ResourceManager.Network.Models.IssueType
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\IssueType.cs
Covered lines:0
Uncovered lines:18
Coverable lines:18
Total lines:71
Line coverage:0% (0 of 18)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_Unknown()-0%100%
get_AgentStopped()-0%100%
get_GuestFirewall()-0%100%
get_DnsResolution()-0%100%
get_SocketBind()-0%100%
get_NetworkSecurityRule()-0%100%
get_UserDefinedRoute()-0%100%
get_PortThrottled()-0%100%
get_Platform()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-0%100%
GetHashCode()-0%0%
ToString()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\IssueType.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.ComponentModel;
 10
 11namespace 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        {
 021            _value = value ?? throw new ArgumentNullException(nameof(value));
 022        }
 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>
 035        public static IssueType Unknown { get; } = new IssueType(UnknownValue);
 36        /// <summary> AgentStopped. </summary>
 037        public static IssueType AgentStopped { get; } = new IssueType(AgentStoppedValue);
 38        /// <summary> GuestFirewall. </summary>
 039        public static IssueType GuestFirewall { get; } = new IssueType(GuestFirewallValue);
 40        /// <summary> DnsResolution. </summary>
 041        public static IssueType DnsResolution { get; } = new IssueType(DnsResolutionValue);
 42        /// <summary> SocketBind. </summary>
 043        public static IssueType SocketBind { get; } = new IssueType(SocketBindValue);
 44        /// <summary> NetworkSecurityRule. </summary>
 045        public static IssueType NetworkSecurityRule { get; } = new IssueType(NetworkSecurityRuleValue);
 46        /// <summary> UserDefinedRoute. </summary>
 047        public static IssueType UserDefinedRoute { get; } = new IssueType(UserDefinedRouteValue);
 48        /// <summary> PortThrottled. </summary>
 049        public static IssueType PortThrottled { get; } = new IssueType(PortThrottledValue);
 50        /// <summary> Platform. </summary>
 051        public static IssueType Platform { get; } = new IssueType(PlatformValue);
 52        /// <summary> Determines if two <see cref="IssueType"/> values are the same. </summary>
 053        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>
 055        public static bool operator !=(IssueType left, IssueType right) => !left.Equals(right);
 56        /// <summary> Converts a string to a <see cref="IssueType"/>. </summary>
 057        public static implicit operator IssueType(string value) => new IssueType(value);
 58
 59        /// <inheritdoc />
 60        [EditorBrowsable(EditorBrowsableState.Never)]
 061        public override bool Equals(object obj) => obj is IssueType other && Equals(other);
 62        /// <inheritdoc />
 063        public bool Equals(IssueType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgno
 64
 65        /// <inheritdoc />
 66        [EditorBrowsable(EditorBrowsableState.Never)]
 067        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 68        /// <inheritdoc />
 069        public override string ToString() => _value;
 70    }
 71}