< Summary

Class:Azure.ResourceManager.Network.Models.VirtualNetworkGatewaySkuTier
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VirtualNetworkGatewaySkuTier.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\VirtualNetworkGatewaySkuTier.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 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        {
 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 VirtualNetworkGatewaySkuTier Basic { get; } = new VirtualNetworkGatewaySkuTier(BasicValue);
 44        /// <summary> HighPerformance. </summary>
 045        public static VirtualNetworkGatewaySkuTier HighPerformance { get; } = new VirtualNetworkGatewaySkuTier(HighPerfo
 46        /// <summary> Standard. </summary>
 647        public static VirtualNetworkGatewaySkuTier Standard { get; } = new VirtualNetworkGatewaySkuTier(StandardValue);
 48        /// <summary> UltraPerformance. </summary>
 049        public static VirtualNetworkGatewaySkuTier UltraPerformance { get; } = new VirtualNetworkGatewaySkuTier(UltraPer
 50        /// <summary> VpnGw1. </summary>
 051        public static VirtualNetworkGatewaySkuTier VpnGw1 { get; } = new VirtualNetworkGatewaySkuTier(VpnGw1Value);
 52        /// <summary> VpnGw2. </summary>
 053        public static VirtualNetworkGatewaySkuTier VpnGw2 { get; } = new VirtualNetworkGatewaySkuTier(VpnGw2Value);
 54        /// <summary> VpnGw3. </summary>
 055        public static VirtualNetworkGatewaySkuTier VpnGw3 { get; } = new VirtualNetworkGatewaySkuTier(VpnGw3Value);
 56        /// <summary> VpnGw4. </summary>
 057        public static VirtualNetworkGatewaySkuTier VpnGw4 { get; } = new VirtualNetworkGatewaySkuTier(VpnGw4Value);
 58        /// <summary> VpnGw5. </summary>
 059        public static VirtualNetworkGatewaySkuTier VpnGw5 { get; } = new VirtualNetworkGatewaySkuTier(VpnGw5Value);
 60        /// <summary> VpnGw1AZ. </summary>
 061        public static VirtualNetworkGatewaySkuTier VpnGw1AZ { get; } = new VirtualNetworkGatewaySkuTier(VpnGw1AZValue);
 62        /// <summary> VpnGw2AZ. </summary>
 063        public static VirtualNetworkGatewaySkuTier VpnGw2AZ { get; } = new VirtualNetworkGatewaySkuTier(VpnGw2AZValue);
 64        /// <summary> VpnGw3AZ. </summary>
 065        public static VirtualNetworkGatewaySkuTier VpnGw3AZ { get; } = new VirtualNetworkGatewaySkuTier(VpnGw3AZValue);
 66        /// <summary> VpnGw4AZ. </summary>
 067        public static VirtualNetworkGatewaySkuTier VpnGw4AZ { get; } = new VirtualNetworkGatewaySkuTier(VpnGw4AZValue);
 68        /// <summary> VpnGw5AZ. </summary>
 069        public static VirtualNetworkGatewaySkuTier VpnGw5AZ { get; } = new VirtualNetworkGatewaySkuTier(VpnGw5AZValue);
 70        /// <summary> ErGw1AZ. </summary>
 071        public static VirtualNetworkGatewaySkuTier ErGw1AZ { get; } = new VirtualNetworkGatewaySkuTier(ErGw1AZValue);
 72        /// <summary> ErGw2AZ. </summary>
 073        public static VirtualNetworkGatewaySkuTier ErGw2AZ { get; } = new VirtualNetworkGatewaySkuTier(ErGw2AZValue);
 74        /// <summary> ErGw3AZ. </summary>
 075        public static VirtualNetworkGatewaySkuTier ErGw3AZ { get; } = new VirtualNetworkGatewaySkuTier(ErGw3AZValue);
 76        /// <summary> Determines if two <see cref="VirtualNetworkGatewaySkuTier"/> values are the same. </summary>
 077        public static bool operator ==(VirtualNetworkGatewaySkuTier left, VirtualNetworkGatewaySkuTier right) => left.Eq
 78        /// <summary> Determines if two <see cref="VirtualNetworkGatewaySkuTier"/> values are not the same. </summary>
 079        public static bool operator !=(VirtualNetworkGatewaySkuTier left, VirtualNetworkGatewaySkuTier right) => !left.E
 80        /// <summary> Converts a string to a <see cref="VirtualNetworkGatewaySkuTier"/>. </summary>
 481        public static implicit operator VirtualNetworkGatewaySkuTier(string value) => new VirtualNetworkGatewaySkuTier(v
 82
 83        /// <inheritdoc />
 84        [EditorBrowsable(EditorBrowsableState.Never)]
 085        public override bool Equals(object obj) => obj is VirtualNetworkGatewaySkuTier other && Equals(other);
 86        /// <inheritdoc />
 087        public bool Equals(VirtualNetworkGatewaySkuTier 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}