| | 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 Pfs Groups used in IKE Phase 2 for new child SA. </summary> |
| | 14 | | public readonly partial struct PfsGroup : IEquatable<PfsGroup> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="PfsGroup"/> values are the same. </summary> |
| | 19 | | public PfsGroup(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 PFS1Value = "PFS1"; |
| | 26 | | private const string PFS2Value = "PFS2"; |
| | 27 | | private const string PFS2048Value = "PFS2048"; |
| | 28 | | private const string ECP256Value = "ECP256"; |
| | 29 | | private const string ECP384Value = "ECP384"; |
| | 30 | | private const string PFS24Value = "PFS24"; |
| | 31 | | private const string PFS14Value = "PFS14"; |
| | 32 | | private const string PfsmmValue = "PFSMM"; |
| | 33 | |
|
| | 34 | | /// <summary> None. </summary> |
| 0 | 35 | | public static PfsGroup None { get; } = new PfsGroup(NoneValue); |
| | 36 | | /// <summary> PFS1. </summary> |
| 6 | 37 | | public static PfsGroup PFS1 { get; } = new PfsGroup(PFS1Value); |
| | 38 | | /// <summary> PFS2. </summary> |
| 0 | 39 | | public static PfsGroup PFS2 { get; } = new PfsGroup(PFS2Value); |
| | 40 | | /// <summary> PFS2048. </summary> |
| 0 | 41 | | public static PfsGroup PFS2048 { get; } = new PfsGroup(PFS2048Value); |
| | 42 | | /// <summary> ECP256. </summary> |
| 0 | 43 | | public static PfsGroup ECP256 { get; } = new PfsGroup(ECP256Value); |
| | 44 | | /// <summary> ECP384. </summary> |
| 6 | 45 | | public static PfsGroup ECP384 { get; } = new PfsGroup(ECP384Value); |
| | 46 | | /// <summary> PFS24. </summary> |
| 0 | 47 | | public static PfsGroup PFS24 { get; } = new PfsGroup(PFS24Value); |
| | 48 | | /// <summary> PFS14. </summary> |
| 0 | 49 | | public static PfsGroup PFS14 { get; } = new PfsGroup(PFS14Value); |
| | 50 | | /// <summary> PFSMM. </summary> |
| 0 | 51 | | public static PfsGroup Pfsmm { get; } = new PfsGroup(PfsmmValue); |
| | 52 | | /// <summary> Determines if two <see cref="PfsGroup"/> values are the same. </summary> |
| 0 | 53 | | public static bool operator ==(PfsGroup left, PfsGroup right) => left.Equals(right); |
| | 54 | | /// <summary> Determines if two <see cref="PfsGroup"/> values are not the same. </summary> |
| 0 | 55 | | public static bool operator !=(PfsGroup left, PfsGroup right) => !left.Equals(right); |
| | 56 | | /// <summary> Converts a string to a <see cref="PfsGroup"/>. </summary> |
| 0 | 57 | | public static implicit operator PfsGroup(string value) => new PfsGroup(value); |
| | 58 | |
|
| | 59 | | /// <inheritdoc /> |
| | 60 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 61 | | public override bool Equals(object obj) => obj is PfsGroup other && Equals(other); |
| | 62 | | /// <inheritdoc /> |
| 8 | 63 | | public bool Equals(PfsGroup other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnor |
| | 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 | | } |