< Summary

Class:Azure.ResourceManager.Network.Models.VirtualNetworkGatewayConnectionType
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VirtualNetworkGatewayConnectionType.cs
Covered lines:5
Uncovered lines:8
Coverable lines:13
Total lines:56
Line coverage:38.4% (5 of 13)
Covered branches:1
Total branches:6
Branch coverage:16.6% (1 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%50%
get_IPsec()-100%100%
get_Vnet2Vnet()-0%100%
get_ExpressRoute()-0%100%
get_VPNClient()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-100%100%
GetHashCode()-0%0%
ToString()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VirtualNetworkGatewayConnectionType.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 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        {
 7221            _value = value ?? throw new ArgumentNullException(nameof(value));
 7222        }
 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>
 2630        public static VirtualNetworkGatewayConnectionType IPsec { get; } = new VirtualNetworkGatewayConnectionType(IPsec
 31        /// <summary> Vnet2Vnet. </summary>
 032        public static VirtualNetworkGatewayConnectionType Vnet2Vnet { get; } = new VirtualNetworkGatewayConnectionType(V
 33        /// <summary> ExpressRoute. </summary>
 034        public static VirtualNetworkGatewayConnectionType ExpressRoute { get; } = new VirtualNetworkGatewayConnectionTyp
 35        /// <summary> VPNClient. </summary>
 036        public static VirtualNetworkGatewayConnectionType VPNClient { get; } = new VirtualNetworkGatewayConnectionType(V
 37        /// <summary> Determines if two <see cref="VirtualNetworkGatewayConnectionType"/> values are the same. </summary
 038        public static bool operator ==(VirtualNetworkGatewayConnectionType left, VirtualNetworkGatewayConnectionType rig
 39        /// <summary> Determines if two <see cref="VirtualNetworkGatewayConnectionType"/> values are not the same. </sum
 040        public static bool operator !=(VirtualNetworkGatewayConnectionType left, VirtualNetworkGatewayConnectionType rig
 41        /// <summary> Converts a string to a <see cref="VirtualNetworkGatewayConnectionType"/>. </summary>
 042        public static implicit operator VirtualNetworkGatewayConnectionType(string value) => new VirtualNetworkGatewayCo
 43
 44        /// <inheritdoc />
 45        [EditorBrowsable(EditorBrowsableState.Never)]
 046        public override bool Equals(object obj) => obj is VirtualNetworkGatewayConnectionType other && Equals(other);
 47        /// <inheritdoc />
 1248        public bool Equals(VirtualNetworkGatewayConnectionType other) => string.Equals(_value, other._value, StringCompa
 49
 50        /// <inheritdoc />
 51        [EditorBrowsable(EditorBrowsableState.Never)]
 052        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 53        /// <inheritdoc />
 6054        public override string ToString() => _value;
 55    }
 56}