< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_StandardSmall()-0%100%
get_StandardMedium()-0%100%
get_StandardLarge()-0%100%
get_WAFMedium()-0%100%
get_WAFLarge()-0%100%
get_StandardV2()-0%100%
get_WAFV2()-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\ApplicationGatewaySkuName.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> Name of an application gateway SKU. </summary>
 14    public readonly partial struct ApplicationGatewaySkuName : IEquatable<ApplicationGatewaySkuName>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="ApplicationGatewaySkuName"/> values are the same. </summary>
 19        public ApplicationGatewaySkuName(string value)
 20        {
 021            _value = value ?? throw new ArgumentNullException(nameof(value));
 022        }
 23
 24        private const string StandardSmallValue = "Standard_Small";
 25        private const string StandardMediumValue = "Standard_Medium";
 26        private const string StandardLargeValue = "Standard_Large";
 27        private const string WAFMediumValue = "WAF_Medium";
 28        private const string WAFLargeValue = "WAF_Large";
 29        private const string StandardV2Value = "Standard_v2";
 30        private const string WAFV2Value = "WAF_v2";
 31
 32        /// <summary> Standard_Small. </summary>
 033        public static ApplicationGatewaySkuName StandardSmall { get; } = new ApplicationGatewaySkuName(StandardSmallValu
 34        /// <summary> Standard_Medium. </summary>
 035        public static ApplicationGatewaySkuName StandardMedium { get; } = new ApplicationGatewaySkuName(StandardMediumVa
 36        /// <summary> Standard_Large. </summary>
 037        public static ApplicationGatewaySkuName StandardLarge { get; } = new ApplicationGatewaySkuName(StandardLargeValu
 38        /// <summary> WAF_Medium. </summary>
 039        public static ApplicationGatewaySkuName WAFMedium { get; } = new ApplicationGatewaySkuName(WAFMediumValue);
 40        /// <summary> WAF_Large. </summary>
 041        public static ApplicationGatewaySkuName WAFLarge { get; } = new ApplicationGatewaySkuName(WAFLargeValue);
 42        /// <summary> Standard_v2. </summary>
 043        public static ApplicationGatewaySkuName StandardV2 { get; } = new ApplicationGatewaySkuName(StandardV2Value);
 44        /// <summary> WAF_v2. </summary>
 045        public static ApplicationGatewaySkuName WAFV2 { get; } = new ApplicationGatewaySkuName(WAFV2Value);
 46        /// <summary> Determines if two <see cref="ApplicationGatewaySkuName"/> values are the same. </summary>
 047        public static bool operator ==(ApplicationGatewaySkuName left, ApplicationGatewaySkuName right) => left.Equals(r
 48        /// <summary> Determines if two <see cref="ApplicationGatewaySkuName"/> values are not the same. </summary>
 049        public static bool operator !=(ApplicationGatewaySkuName left, ApplicationGatewaySkuName right) => !left.Equals(
 50        /// <summary> Converts a string to a <see cref="ApplicationGatewaySkuName"/>. </summary>
 051        public static implicit operator ApplicationGatewaySkuName(string value) => new ApplicationGatewaySkuName(value);
 52
 53        /// <inheritdoc />
 54        [EditorBrowsable(EditorBrowsableState.Never)]
 055        public override bool Equals(object obj) => obj is ApplicationGatewaySkuName other && Equals(other);
 56        /// <inheritdoc />
 057        public bool Equals(ApplicationGatewaySkuName other) => string.Equals(_value, other._value, StringComparison.Inva
 58
 59        /// <inheritdoc />
 60        [EditorBrowsable(EditorBrowsableState.Never)]
 061        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 62        /// <inheritdoc />
 063        public override string ToString() => _value;
 64    }
 65}