| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.ComponentModel; |
| | 10 | |
|
| | 11 | | namespace 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 | | { |
| 0 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 0 | 22 | | } |
| | 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> |
| 0 | 34 | | public static WebApplicationFirewallMatchVariable RemoteAddr { get; } = new WebApplicationFirewallMatchVariable( |
| | 35 | | /// <summary> RequestMethod. </summary> |
| 0 | 36 | | public static WebApplicationFirewallMatchVariable RequestMethod { get; } = new WebApplicationFirewallMatchVariab |
| | 37 | | /// <summary> QueryString. </summary> |
| 0 | 38 | | public static WebApplicationFirewallMatchVariable QueryString { get; } = new WebApplicationFirewallMatchVariable |
| | 39 | | /// <summary> PostArgs. </summary> |
| 0 | 40 | | public static WebApplicationFirewallMatchVariable PostArgs { get; } = new WebApplicationFirewallMatchVariable(Po |
| | 41 | | /// <summary> RequestUri. </summary> |
| 0 | 42 | | public static WebApplicationFirewallMatchVariable RequestUri { get; } = new WebApplicationFirewallMatchVariable( |
| | 43 | | /// <summary> RequestHeaders. </summary> |
| 0 | 44 | | public static WebApplicationFirewallMatchVariable RequestHeaders { get; } = new WebApplicationFirewallMatchVaria |
| | 45 | | /// <summary> RequestBody. </summary> |
| 0 | 46 | | public static WebApplicationFirewallMatchVariable RequestBody { get; } = new WebApplicationFirewallMatchVariable |
| | 47 | | /// <summary> RequestCookies. </summary> |
| 0 | 48 | | public static WebApplicationFirewallMatchVariable RequestCookies { get; } = new WebApplicationFirewallMatchVaria |
| | 49 | | /// <summary> Determines if two <see cref="WebApplicationFirewallMatchVariable"/> values are the same. </summary |
| 0 | 50 | | public static bool operator ==(WebApplicationFirewallMatchVariable left, WebApplicationFirewallMatchVariable rig |
| | 51 | | /// <summary> Determines if two <see cref="WebApplicationFirewallMatchVariable"/> values are not the same. </sum |
| 0 | 52 | | public static bool operator !=(WebApplicationFirewallMatchVariable left, WebApplicationFirewallMatchVariable rig |
| | 53 | | /// <summary> Converts a string to a <see cref="WebApplicationFirewallMatchVariable"/>. </summary> |
| 0 | 54 | | public static implicit operator WebApplicationFirewallMatchVariable(string value) => new WebApplicationFirewallM |
| | 55 | |
|
| | 56 | | /// <inheritdoc /> |
| | 57 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 58 | | public override bool Equals(object obj) => obj is WebApplicationFirewallMatchVariable other && Equals(other); |
| | 59 | | /// <inheritdoc /> |
| 0 | 60 | | public bool Equals(WebApplicationFirewallMatchVariable other) => string.Equals(_value, other._value, StringCompa |
| | 61 | |
|
| | 62 | | /// <inheritdoc /> |
| | 63 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 64 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 65 | | /// <inheritdoc /> |
| 0 | 66 | | public override string ToString() => _value; |
| | 67 | | } |
| | 68 | | } |