< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_IPMatch()-0%100%
get_Equal()-0%100%
get_Contains()-0%100%
get_LessThan()-0%100%
get_GreaterThan()-0%100%
get_LessThanOrEqual()-0%100%
get_GreaterThanOrEqual()-0%100%
get_BeginsWith()-0%100%
get_EndsWith()-0%100%
get_Regex()-0%100%
get_GeoMatch()-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\WebApplicationFirewallOperator.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 operator to be matched. </summary>
 14    public readonly partial struct WebApplicationFirewallOperator : IEquatable<WebApplicationFirewallOperator>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="WebApplicationFirewallOperator"/> values are the same. </summary>
 19        public WebApplicationFirewallOperator(string value)
 20        {
 021            _value = value ?? throw new ArgumentNullException(nameof(value));
 022        }
 23
 24        private const string IPMatchValue = "IPMatch";
 25        private const string EqualValue = "Equal";
 26        private const string ContainsValue = "Contains";
 27        private const string LessThanValue = "LessThan";
 28        private const string GreaterThanValue = "GreaterThan";
 29        private const string LessThanOrEqualValue = "LessThanOrEqual";
 30        private const string GreaterThanOrEqualValue = "GreaterThanOrEqual";
 31        private const string BeginsWithValue = "BeginsWith";
 32        private const string EndsWithValue = "EndsWith";
 33        private const string RegexValue = "Regex";
 34        private const string GeoMatchValue = "GeoMatch";
 35
 36        /// <summary> IPMatch. </summary>
 037        public static WebApplicationFirewallOperator IPMatch { get; } = new WebApplicationFirewallOperator(IPMatchValue)
 38        /// <summary> Equal. </summary>
 039        public static WebApplicationFirewallOperator Equal { get; } = new WebApplicationFirewallOperator(EqualValue);
 40        /// <summary> Contains. </summary>
 041        public static WebApplicationFirewallOperator Contains { get; } = new WebApplicationFirewallOperator(ContainsValu
 42        /// <summary> LessThan. </summary>
 043        public static WebApplicationFirewallOperator LessThan { get; } = new WebApplicationFirewallOperator(LessThanValu
 44        /// <summary> GreaterThan. </summary>
 045        public static WebApplicationFirewallOperator GreaterThan { get; } = new WebApplicationFirewallOperator(GreaterTh
 46        /// <summary> LessThanOrEqual. </summary>
 047        public static WebApplicationFirewallOperator LessThanOrEqual { get; } = new WebApplicationFirewallOperator(LessT
 48        /// <summary> GreaterThanOrEqual. </summary>
 049        public static WebApplicationFirewallOperator GreaterThanOrEqual { get; } = new WebApplicationFirewallOperator(Gr
 50        /// <summary> BeginsWith. </summary>
 051        public static WebApplicationFirewallOperator BeginsWith { get; } = new WebApplicationFirewallOperator(BeginsWith
 52        /// <summary> EndsWith. </summary>
 053        public static WebApplicationFirewallOperator EndsWith { get; } = new WebApplicationFirewallOperator(EndsWithValu
 54        /// <summary> Regex. </summary>
 055        public static WebApplicationFirewallOperator Regex { get; } = new WebApplicationFirewallOperator(RegexValue);
 56        /// <summary> GeoMatch. </summary>
 057        public static WebApplicationFirewallOperator GeoMatch { get; } = new WebApplicationFirewallOperator(GeoMatchValu
 58        /// <summary> Determines if two <see cref="WebApplicationFirewallOperator"/> values are the same. </summary>
 059        public static bool operator ==(WebApplicationFirewallOperator left, WebApplicationFirewallOperator right) => lef
 60        /// <summary> Determines if two <see cref="WebApplicationFirewallOperator"/> values are not the same. </summary>
 061        public static bool operator !=(WebApplicationFirewallOperator left, WebApplicationFirewallOperator right) => !le
 62        /// <summary> Converts a string to a <see cref="WebApplicationFirewallOperator"/>. </summary>
 063        public static implicit operator WebApplicationFirewallOperator(string value) => new WebApplicationFirewallOperat
 64
 65        /// <inheritdoc />
 66        [EditorBrowsable(EditorBrowsableState.Never)]
 067        public override bool Equals(object obj) => obj is WebApplicationFirewallOperator other && Equals(other);
 68        /// <inheritdoc />
 069        public bool Equals(WebApplicationFirewallOperator other) => string.Equals(_value, other._value, StringComparison
 70
 71        /// <inheritdoc />
 72        [EditorBrowsable(EditorBrowsableState.Never)]
 073        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 74        /// <inheritdoc />
 075        public override string ToString() => _value;
 76    }
 77}