| | 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 IPSec encryption algorithm (IKE phase 1). </summary> |
| | 14 | | public readonly partial struct IpsecEncryption : IEquatable<IpsecEncryption> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="IpsecEncryption"/> values are the same. </summary> |
| | 19 | | public IpsecEncryption(string value) |
| | 20 | | { |
| 34 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 34 | 22 | | } |
| | 23 | |
|
| | 24 | | private const string NoneValue = "None"; |
| | 25 | | private const string DESValue = "DES"; |
| | 26 | | private const string DES3Value = "DES3"; |
| | 27 | | private const string AES128Value = "AES128"; |
| | 28 | | private const string AES192Value = "AES192"; |
| | 29 | | private const string AES256Value = "AES256"; |
| | 30 | | private const string Gcmaes128Value = "GCMAES128"; |
| | 31 | | private const string Gcmaes192Value = "GCMAES192"; |
| | 32 | | private const string Gcmaes256Value = "GCMAES256"; |
| | 33 | |
|
| | 34 | | /// <summary> None. </summary> |
| 0 | 35 | | public static IpsecEncryption None { get; } = new IpsecEncryption(NoneValue); |
| | 36 | | /// <summary> DES. </summary> |
| 0 | 37 | | public static IpsecEncryption DES { get; } = new IpsecEncryption(DESValue); |
| | 38 | | /// <summary> DES3. </summary> |
| 0 | 39 | | public static IpsecEncryption DES3 { get; } = new IpsecEncryption(DES3Value); |
| | 40 | | /// <summary> AES128. </summary> |
| 6 | 41 | | public static IpsecEncryption AES128 { get; } = new IpsecEncryption(AES128Value); |
| | 42 | | /// <summary> AES192. </summary> |
| 0 | 43 | | public static IpsecEncryption AES192 { get; } = new IpsecEncryption(AES192Value); |
| | 44 | | /// <summary> AES256. </summary> |
| 0 | 45 | | public static IpsecEncryption AES256 { get; } = new IpsecEncryption(AES256Value); |
| | 46 | | /// <summary> GCMAES128. </summary> |
| 0 | 47 | | public static IpsecEncryption Gcmaes128 { get; } = new IpsecEncryption(Gcmaes128Value); |
| | 48 | | /// <summary> GCMAES192. </summary> |
| 0 | 49 | | public static IpsecEncryption Gcmaes192 { get; } = new IpsecEncryption(Gcmaes192Value); |
| | 50 | | /// <summary> GCMAES256. </summary> |
| 6 | 51 | | public static IpsecEncryption Gcmaes256 { get; } = new IpsecEncryption(Gcmaes256Value); |
| | 52 | | /// <summary> Determines if two <see cref="IpsecEncryption"/> values are the same. </summary> |
| 0 | 53 | | public static bool operator ==(IpsecEncryption left, IpsecEncryption right) => left.Equals(right); |
| | 54 | | /// <summary> Determines if two <see cref="IpsecEncryption"/> values are not the same. </summary> |
| 0 | 55 | | public static bool operator !=(IpsecEncryption left, IpsecEncryption right) => !left.Equals(right); |
| | 56 | | /// <summary> Converts a string to a <see cref="IpsecEncryption"/>. </summary> |
| 0 | 57 | | public static implicit operator IpsecEncryption(string value) => new IpsecEncryption(value); |
| | 58 | |
|
| | 59 | | /// <inheritdoc /> |
| | 60 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 61 | | public override bool Equals(object obj) => obj is IpsecEncryption other && Equals(other); |
| | 62 | | /// <inheritdoc /> |
| 8 | 63 | | public bool Equals(IpsecEncryption other) => string.Equals(_value, other._value, StringComparison.InvariantCultu |
| | 64 | |
|
| | 65 | | /// <inheritdoc /> |
| | 66 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 67 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 68 | | /// <inheritdoc /> |
| 16 | 69 | | public override string ToString() => _value; |
| | 70 | | } |
| | 71 | | } |