< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_RemoteAddr()-0%100%
get_RequestMethod()-0%100%
get_QueryString()-0%100%
get_PostArgs()-0%100%
get_RequestUri()-0%100%
get_RequestHeaders()-0%100%
get_RequestBody()-0%100%
get_RequestCookies()-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\WebApplicationFirewallMatchVariable.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> Match Variable. </summary>
 14    public readonly partial struct WebApplicationFirewallMatchVariable : IEquatable<WebApplicationFirewallMatchVariable>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="WebApplicationFirewallMatchVariable"/> values are the same. </summary
 19        public WebApplicationFirewallMatchVariable(string value)
 20        {
 021            _value = value ?? throw new ArgumentNullException(nameof(value));
 022        }
 23
 24        private const string RemoteAddrValue = "RemoteAddr";
 25        private const string RequestMethodValue = "RequestMethod";
 26        private const string QueryStringValue = "QueryString";
 27        private const string PostArgsValue = "PostArgs";
 28        private const string RequestUriValue = "RequestUri";
 29        private const string RequestHeadersValue = "RequestHeaders";
 30        private const string RequestBodyValue = "RequestBody";
 31        private const string RequestCookiesValue = "RequestCookies";
 32
 33        /// <summary> RemoteAddr. </summary>
 034        public static WebApplicationFirewallMatchVariable RemoteAddr { get; } = new WebApplicationFirewallMatchVariable(
 35        /// <summary> RequestMethod. </summary>
 036        public static WebApplicationFirewallMatchVariable RequestMethod { get; } = new WebApplicationFirewallMatchVariab
 37        /// <summary> QueryString. </summary>
 038        public static WebApplicationFirewallMatchVariable QueryString { get; } = new WebApplicationFirewallMatchVariable
 39        /// <summary> PostArgs. </summary>
 040        public static WebApplicationFirewallMatchVariable PostArgs { get; } = new WebApplicationFirewallMatchVariable(Po
 41        /// <summary> RequestUri. </summary>
 042        public static WebApplicationFirewallMatchVariable RequestUri { get; } = new WebApplicationFirewallMatchVariable(
 43        /// <summary> RequestHeaders. </summary>
 044        public static WebApplicationFirewallMatchVariable RequestHeaders { get; } = new WebApplicationFirewallMatchVaria
 45        /// <summary> RequestBody. </summary>
 046        public static WebApplicationFirewallMatchVariable RequestBody { get; } = new WebApplicationFirewallMatchVariable
 47        /// <summary> RequestCookies. </summary>
 048        public static WebApplicationFirewallMatchVariable RequestCookies { get; } = new WebApplicationFirewallMatchVaria
 49        /// <summary> Determines if two <see cref="WebApplicationFirewallMatchVariable"/> values are the same. </summary
 050        public static bool operator ==(WebApplicationFirewallMatchVariable left, WebApplicationFirewallMatchVariable rig
 51        /// <summary> Determines if two <see cref="WebApplicationFirewallMatchVariable"/> values are not the same. </sum
 052        public static bool operator !=(WebApplicationFirewallMatchVariable left, WebApplicationFirewallMatchVariable rig
 53        /// <summary> Converts a string to a <see cref="WebApplicationFirewallMatchVariable"/>. </summary>
 054        public static implicit operator WebApplicationFirewallMatchVariable(string value) => new WebApplicationFirewallM
 55
 56        /// <inheritdoc />
 57        [EditorBrowsable(EditorBrowsableState.Never)]
 058        public override bool Equals(object obj) => obj is WebApplicationFirewallMatchVariable other && Equals(other);
 59        /// <inheritdoc />
 060        public bool Equals(WebApplicationFirewallMatchVariable other) => string.Equals(_value, other._value, StringCompa
 61
 62        /// <inheritdoc />
 63        [EditorBrowsable(EditorBrowsableState.Never)]
 064        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 65        /// <inheritdoc />
 066        public override string ToString() => _value;
 67    }
 68}