< Summary

Class:Azure.ResourceManager.Network.Models.VirtualNetworkGatewaySkuName
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VirtualNetworkGatewaySkuName.cs
Covered lines:5
Uncovered lines:21
Coverable lines:26
Total lines:95
Line coverage:19.2% (5 of 26)
Covered branches:1
Total branches:6
Branch coverage:16.6% (1 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%50%
get_Basic()-0%100%
get_HighPerformance()-0%100%
get_Standard()-100%100%
get_UltraPerformance()-0%100%
get_VpnGw1()-0%100%
get_VpnGw2()-0%100%
get_VpnGw3()-0%100%
get_VpnGw4()-0%100%
get_VpnGw5()-0%100%
get_VpnGw1AZ()-0%100%
get_VpnGw2AZ()-0%100%
get_VpnGw3AZ()-0%100%
get_VpnGw4AZ()-0%100%
get_VpnGw5AZ()-0%100%
get_ErGw1AZ()-0%100%
get_ErGw2AZ()-0%100%
get_ErGw3AZ()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-100%100%
Equals(...)-0%0%
Equals(...)-0%100%
GetHashCode()-0%0%
ToString()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VirtualNetworkGatewaySkuName.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> Gateway SKU name. </summary>
 14    public readonly partial struct VirtualNetworkGatewaySkuName : IEquatable<VirtualNetworkGatewaySkuName>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="VirtualNetworkGatewaySkuName"/> values are the same. </summary>
 19        public VirtualNetworkGatewaySkuName(string value)
 20        {
 7021            _value = value ?? throw new ArgumentNullException(nameof(value));
 7022        }
 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>
 043        public static VirtualNetworkGatewaySkuName Basic { get; } = new VirtualNetworkGatewaySkuName(BasicValue);
 44        /// <summary> HighPerformance. </summary>
 045        public static VirtualNetworkGatewaySkuName HighPerformance { get; } = new VirtualNetworkGatewaySkuName(HighPerfo
 46        /// <summary> Standard. </summary>
 647        public static VirtualNetworkGatewaySkuName Standard { get; } = new VirtualNetworkGatewaySkuName(StandardValue);
 48        /// <summary> UltraPerformance. </summary>
 049        public static VirtualNetworkGatewaySkuName UltraPerformance { get; } = new VirtualNetworkGatewaySkuName(UltraPer
 50        /// <summary> VpnGw1. </summary>
 051        public static VirtualNetworkGatewaySkuName VpnGw1 { get; } = new VirtualNetworkGatewaySkuName(VpnGw1Value);
 52        /// <summary> VpnGw2. </summary>
 053        public static VirtualNetworkGatewaySkuName VpnGw2 { get; } = new VirtualNetworkGatewaySkuName(VpnGw2Value);
 54        /// <summary> VpnGw3. </summary>
 055        public static VirtualNetworkGatewaySkuName VpnGw3 { get; } = new VirtualNetworkGatewaySkuName(VpnGw3Value);
 56        /// <summary> VpnGw4. </summary>
 057        public static VirtualNetworkGatewaySkuName VpnGw4 { get; } = new VirtualNetworkGatewaySkuName(VpnGw4Value);
 58        /// <summary> VpnGw5. </summary>
 059        public static VirtualNetworkGatewaySkuName VpnGw5 { get; } = new VirtualNetworkGatewaySkuName(VpnGw5Value);
 60        /// <summary> VpnGw1AZ. </summary>
 061        public static VirtualNetworkGatewaySkuName VpnGw1AZ { get; } = new VirtualNetworkGatewaySkuName(VpnGw1AZValue);
 62        /// <summary> VpnGw2AZ. </summary>
 063        public static VirtualNetworkGatewaySkuName VpnGw2AZ { get; } = new VirtualNetworkGatewaySkuName(VpnGw2AZValue);
 64        /// <summary> VpnGw3AZ. </summary>
 065        public static VirtualNetworkGatewaySkuName VpnGw3AZ { get; } = new VirtualNetworkGatewaySkuName(VpnGw3AZValue);
 66        /// <summary> VpnGw4AZ. </summary>
 067        public static VirtualNetworkGatewaySkuName VpnGw4AZ { get; } = new VirtualNetworkGatewaySkuName(VpnGw4AZValue);
 68        /// <summary> VpnGw5AZ. </summary>
 069        public static VirtualNetworkGatewaySkuName VpnGw5AZ { get; } = new VirtualNetworkGatewaySkuName(VpnGw5AZValue);
 70        /// <summary> ErGw1AZ. </summary>
 071        public static VirtualNetworkGatewaySkuName ErGw1AZ { get; } = new VirtualNetworkGatewaySkuName(ErGw1AZValue);
 72        /// <summary> ErGw2AZ. </summary>
 073        public static VirtualNetworkGatewaySkuName ErGw2AZ { get; } = new VirtualNetworkGatewaySkuName(ErGw2AZValue);
 74        /// <summary> ErGw3AZ. </summary>
 075        public static VirtualNetworkGatewaySkuName ErGw3AZ { get; } = new VirtualNetworkGatewaySkuName(ErGw3AZValue);
 76        /// <summary> Determines if two <see cref="VirtualNetworkGatewaySkuName"/> values are the same. </summary>
 077        public static bool operator ==(VirtualNetworkGatewaySkuName left, VirtualNetworkGatewaySkuName right) => left.Eq
 78        /// <summary> Determines if two <see cref="VirtualNetworkGatewaySkuName"/> values are not the same. </summary>
 079        public static bool operator !=(VirtualNetworkGatewaySkuName left, VirtualNetworkGatewaySkuName right) => !left.E
 80        /// <summary> Converts a string to a <see cref="VirtualNetworkGatewaySkuName"/>. </summary>
 481        public static implicit operator VirtualNetworkGatewaySkuName(string value) => new VirtualNetworkGatewaySkuName(v
 82
 83        /// <inheritdoc />
 84        [EditorBrowsable(EditorBrowsableState.Never)]
 085        public override bool Equals(object obj) => obj is VirtualNetworkGatewaySkuName other && Equals(other);
 86        /// <inheritdoc />
 087        public bool Equals(VirtualNetworkGatewaySkuName other) => string.Equals(_value, other._value, StringComparison.I
 88
 89        /// <inheritdoc />
 90        [EditorBrowsable(EditorBrowsableState.Never)]
 091        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 92        /// <inheritdoc />
 7293        public override string ToString() => _value;
 94    }
 95}