| | 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> 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 | | { |
| 0 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 0 | 22 | | } |
| | 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> |
| 0 | 37 | | public static WebApplicationFirewallOperator IPMatch { get; } = new WebApplicationFirewallOperator(IPMatchValue) |
| | 38 | | /// <summary> Equal. </summary> |
| 0 | 39 | | public static WebApplicationFirewallOperator Equal { get; } = new WebApplicationFirewallOperator(EqualValue); |
| | 40 | | /// <summary> Contains. </summary> |
| 0 | 41 | | public static WebApplicationFirewallOperator Contains { get; } = new WebApplicationFirewallOperator(ContainsValu |
| | 42 | | /// <summary> LessThan. </summary> |
| 0 | 43 | | public static WebApplicationFirewallOperator LessThan { get; } = new WebApplicationFirewallOperator(LessThanValu |
| | 44 | | /// <summary> GreaterThan. </summary> |
| 0 | 45 | | public static WebApplicationFirewallOperator GreaterThan { get; } = new WebApplicationFirewallOperator(GreaterTh |
| | 46 | | /// <summary> LessThanOrEqual. </summary> |
| 0 | 47 | | public static WebApplicationFirewallOperator LessThanOrEqual { get; } = new WebApplicationFirewallOperator(LessT |
| | 48 | | /// <summary> GreaterThanOrEqual. </summary> |
| 0 | 49 | | public static WebApplicationFirewallOperator GreaterThanOrEqual { get; } = new WebApplicationFirewallOperator(Gr |
| | 50 | | /// <summary> BeginsWith. </summary> |
| 0 | 51 | | public static WebApplicationFirewallOperator BeginsWith { get; } = new WebApplicationFirewallOperator(BeginsWith |
| | 52 | | /// <summary> EndsWith. </summary> |
| 0 | 53 | | public static WebApplicationFirewallOperator EndsWith { get; } = new WebApplicationFirewallOperator(EndsWithValu |
| | 54 | | /// <summary> Regex. </summary> |
| 0 | 55 | | public static WebApplicationFirewallOperator Regex { get; } = new WebApplicationFirewallOperator(RegexValue); |
| | 56 | | /// <summary> GeoMatch. </summary> |
| 0 | 57 | | public static WebApplicationFirewallOperator GeoMatch { get; } = new WebApplicationFirewallOperator(GeoMatchValu |
| | 58 | | /// <summary> Determines if two <see cref="WebApplicationFirewallOperator"/> values are the same. </summary> |
| 0 | 59 | | public static bool operator ==(WebApplicationFirewallOperator left, WebApplicationFirewallOperator right) => lef |
| | 60 | | /// <summary> Determines if two <see cref="WebApplicationFirewallOperator"/> values are not the same. </summary> |
| 0 | 61 | | public static bool operator !=(WebApplicationFirewallOperator left, WebApplicationFirewallOperator right) => !le |
| | 62 | | /// <summary> Converts a string to a <see cref="WebApplicationFirewallOperator"/>. </summary> |
| 0 | 63 | | public static implicit operator WebApplicationFirewallOperator(string value) => new WebApplicationFirewallOperat |
| | 64 | |
|
| | 65 | | /// <inheritdoc /> |
| | 66 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 67 | | public override bool Equals(object obj) => obj is WebApplicationFirewallOperator other && Equals(other); |
| | 68 | | /// <inheritdoc /> |
| 0 | 69 | | public bool Equals(WebApplicationFirewallOperator other) => string.Equals(_value, other._value, StringComparison |
| | 70 | |
|
| | 71 | | /// <inheritdoc /> |
| | 72 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 73 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 74 | | /// <inheritdoc /> |
| 0 | 75 | | public override string ToString() => _value; |
| | 76 | | } |
| | 77 | | } |