| | 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.KeyVault.Models |
| | 12 | | { |
| | 13 | | /// <summary> The CertificatePermissions. </summary> |
| | 14 | | public readonly partial struct CertificatePermissions : IEquatable<CertificatePermissions> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="CertificatePermissions"/> values are the same. </summary> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> |
| | 20 | | public CertificatePermissions(string value) |
| | 21 | | { |
| 100 | 22 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 100 | 23 | | } |
| | 24 | |
|
| | 25 | | private const string GetValue = "get"; |
| | 26 | | private const string ListValue = "list"; |
| | 27 | | private const string DeleteValue = "delete"; |
| | 28 | | private const string CreateValue = "create"; |
| | 29 | | private const string ImportValue = "import"; |
| | 30 | | private const string UpdateValue = "update"; |
| | 31 | | private const string ManagecontactsValue = "managecontacts"; |
| | 32 | | private const string GetissuersValue = "getissuers"; |
| | 33 | | private const string ListissuersValue = "listissuers"; |
| | 34 | | private const string SetissuersValue = "setissuers"; |
| | 35 | | private const string DeleteissuersValue = "deleteissuers"; |
| | 36 | | private const string ManageissuersValue = "manageissuers"; |
| | 37 | | private const string RecoverValue = "recover"; |
| | 38 | | private const string PurgeValue = "purge"; |
| | 39 | | private const string BackupValue = "backup"; |
| | 40 | | private const string RestoreValue = "restore"; |
| | 41 | |
|
| | 42 | | /// <summary> get. </summary> |
| 0 | 43 | | public static CertificatePermissions Get { get; } = new CertificatePermissions(GetValue); |
| | 44 | | /// <summary> list. </summary> |
| 0 | 45 | | public static CertificatePermissions List { get; } = new CertificatePermissions(ListValue); |
| | 46 | | /// <summary> delete. </summary> |
| 0 | 47 | | public static CertificatePermissions Delete { get; } = new CertificatePermissions(DeleteValue); |
| | 48 | | /// <summary> create. </summary> |
| 0 | 49 | | public static CertificatePermissions Create { get; } = new CertificatePermissions(CreateValue); |
| | 50 | | /// <summary> import. </summary> |
| 0 | 51 | | public static CertificatePermissions Import { get; } = new CertificatePermissions(ImportValue); |
| | 52 | | /// <summary> update. </summary> |
| 0 | 53 | | public static CertificatePermissions Update { get; } = new CertificatePermissions(UpdateValue); |
| | 54 | | /// <summary> managecontacts. </summary> |
| 0 | 55 | | public static CertificatePermissions Managecontacts { get; } = new CertificatePermissions(ManagecontactsValue); |
| | 56 | | /// <summary> getissuers. </summary> |
| 0 | 57 | | public static CertificatePermissions Getissuers { get; } = new CertificatePermissions(GetissuersValue); |
| | 58 | | /// <summary> listissuers. </summary> |
| 0 | 59 | | public static CertificatePermissions Listissuers { get; } = new CertificatePermissions(ListissuersValue); |
| | 60 | | /// <summary> setissuers. </summary> |
| 0 | 61 | | public static CertificatePermissions Setissuers { get; } = new CertificatePermissions(SetissuersValue); |
| | 62 | | /// <summary> deleteissuers. </summary> |
| 0 | 63 | | public static CertificatePermissions Deleteissuers { get; } = new CertificatePermissions(DeleteissuersValue); |
| | 64 | | /// <summary> manageissuers. </summary> |
| 0 | 65 | | public static CertificatePermissions Manageissuers { get; } = new CertificatePermissions(ManageissuersValue); |
| | 66 | | /// <summary> recover. </summary> |
| 0 | 67 | | public static CertificatePermissions Recover { get; } = new CertificatePermissions(RecoverValue); |
| | 68 | | /// <summary> purge. </summary> |
| 0 | 69 | | public static CertificatePermissions Purge { get; } = new CertificatePermissions(PurgeValue); |
| | 70 | | /// <summary> backup. </summary> |
| 0 | 71 | | public static CertificatePermissions Backup { get; } = new CertificatePermissions(BackupValue); |
| | 72 | | /// <summary> restore. </summary> |
| 0 | 73 | | public static CertificatePermissions Restore { get; } = new CertificatePermissions(RestoreValue); |
| | 74 | | /// <summary> Determines if two <see cref="CertificatePermissions"/> values are the same. </summary> |
| 0 | 75 | | public static bool operator ==(CertificatePermissions left, CertificatePermissions right) => left.Equals(right); |
| | 76 | | /// <summary> Determines if two <see cref="CertificatePermissions"/> values are not the same. </summary> |
| 0 | 77 | | public static bool operator !=(CertificatePermissions left, CertificatePermissions right) => !left.Equals(right) |
| | 78 | | /// <summary> Converts a string to a <see cref="CertificatePermissions"/>. </summary> |
| 0 | 79 | | public static implicit operator CertificatePermissions(string value) => new CertificatePermissions(value); |
| | 80 | |
|
| | 81 | | /// <inheritdoc /> |
| | 82 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 83 | | public override bool Equals(object obj) => obj is CertificatePermissions other && Equals(other); |
| | 84 | | /// <inheritdoc /> |
| 28 | 85 | | public bool Equals(CertificatePermissions other) => string.Equals(_value, other._value, StringComparison.Invaria |
| | 86 | |
|
| | 87 | | /// <inheritdoc /> |
| | 88 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 89 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 90 | | /// <inheritdoc /> |
| 104 | 91 | | public override string ToString() => _value; |
| | 92 | | } |
| | 93 | | } |