-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
RoleManagementScheduleStatus.cs
111 lines (102 loc) · 7.52 KB
/
RoleManagementScheduleStatus.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.ComponentModel;
namespace Azure.ResourceManager.Authorization.Models
{
/// <summary> The status of the role assignment schedule. </summary>
public readonly partial struct RoleManagementScheduleStatus : IEquatable<RoleManagementScheduleStatus>
{
private readonly string _value;
/// <summary> Initializes a new instance of <see cref="RoleManagementScheduleStatus"/>. </summary>
/// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
public RoleManagementScheduleStatus(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}
private const string AcceptedValue = "Accepted";
private const string PendingEvaluationValue = "PendingEvaluation";
private const string GrantedValue = "Granted";
private const string DeniedValue = "Denied";
private const string PendingProvisioningValue = "PendingProvisioning";
private const string ProvisionedValue = "Provisioned";
private const string PendingRevocationValue = "PendingRevocation";
private const string RevokedValue = "Revoked";
private const string CanceledValue = "Canceled";
private const string FailedValue = "Failed";
private const string PendingApprovalProvisioningValue = "PendingApprovalProvisioning";
private const string PendingApprovalValue = "PendingApproval";
private const string FailedAsResourceIsLockedValue = "FailedAsResourceIsLocked";
private const string PendingAdminDecisionValue = "PendingAdminDecision";
private const string AdminApprovedValue = "AdminApproved";
private const string AdminDeniedValue = "AdminDenied";
private const string TimedOutValue = "TimedOut";
private const string ProvisioningStartedValue = "ProvisioningStarted";
private const string InvalidValue = "Invalid";
private const string PendingScheduleCreationValue = "PendingScheduleCreation";
private const string ScheduleCreatedValue = "ScheduleCreated";
private const string PendingExternalProvisioningValue = "PendingExternalProvisioning";
/// <summary> Accepted. </summary>
public static RoleManagementScheduleStatus Accepted { get; } = new RoleManagementScheduleStatus(AcceptedValue);
/// <summary> PendingEvaluation. </summary>
public static RoleManagementScheduleStatus PendingEvaluation { get; } = new RoleManagementScheduleStatus(PendingEvaluationValue);
/// <summary> Granted. </summary>
public static RoleManagementScheduleStatus Granted { get; } = new RoleManagementScheduleStatus(GrantedValue);
/// <summary> Denied. </summary>
public static RoleManagementScheduleStatus Denied { get; } = new RoleManagementScheduleStatus(DeniedValue);
/// <summary> PendingProvisioning. </summary>
public static RoleManagementScheduleStatus PendingProvisioning { get; } = new RoleManagementScheduleStatus(PendingProvisioningValue);
/// <summary> Provisioned. </summary>
public static RoleManagementScheduleStatus Provisioned { get; } = new RoleManagementScheduleStatus(ProvisionedValue);
/// <summary> PendingRevocation. </summary>
public static RoleManagementScheduleStatus PendingRevocation { get; } = new RoleManagementScheduleStatus(PendingRevocationValue);
/// <summary> Revoked. </summary>
public static RoleManagementScheduleStatus Revoked { get; } = new RoleManagementScheduleStatus(RevokedValue);
/// <summary> Canceled. </summary>
public static RoleManagementScheduleStatus Canceled { get; } = new RoleManagementScheduleStatus(CanceledValue);
/// <summary> Failed. </summary>
public static RoleManagementScheduleStatus Failed { get; } = new RoleManagementScheduleStatus(FailedValue);
/// <summary> PendingApprovalProvisioning. </summary>
public static RoleManagementScheduleStatus PendingApprovalProvisioning { get; } = new RoleManagementScheduleStatus(PendingApprovalProvisioningValue);
/// <summary> PendingApproval. </summary>
public static RoleManagementScheduleStatus PendingApproval { get; } = new RoleManagementScheduleStatus(PendingApprovalValue);
/// <summary> FailedAsResourceIsLocked. </summary>
public static RoleManagementScheduleStatus FailedAsResourceIsLocked { get; } = new RoleManagementScheduleStatus(FailedAsResourceIsLockedValue);
/// <summary> PendingAdminDecision. </summary>
public static RoleManagementScheduleStatus PendingAdminDecision { get; } = new RoleManagementScheduleStatus(PendingAdminDecisionValue);
/// <summary> AdminApproved. </summary>
public static RoleManagementScheduleStatus AdminApproved { get; } = new RoleManagementScheduleStatus(AdminApprovedValue);
/// <summary> AdminDenied. </summary>
public static RoleManagementScheduleStatus AdminDenied { get; } = new RoleManagementScheduleStatus(AdminDeniedValue);
/// <summary> TimedOut. </summary>
public static RoleManagementScheduleStatus TimedOut { get; } = new RoleManagementScheduleStatus(TimedOutValue);
/// <summary> ProvisioningStarted. </summary>
public static RoleManagementScheduleStatus ProvisioningStarted { get; } = new RoleManagementScheduleStatus(ProvisioningStartedValue);
/// <summary> Invalid. </summary>
public static RoleManagementScheduleStatus Invalid { get; } = new RoleManagementScheduleStatus(InvalidValue);
/// <summary> PendingScheduleCreation. </summary>
public static RoleManagementScheduleStatus PendingScheduleCreation { get; } = new RoleManagementScheduleStatus(PendingScheduleCreationValue);
/// <summary> ScheduleCreated. </summary>
public static RoleManagementScheduleStatus ScheduleCreated { get; } = new RoleManagementScheduleStatus(ScheduleCreatedValue);
/// <summary> PendingExternalProvisioning. </summary>
public static RoleManagementScheduleStatus PendingExternalProvisioning { get; } = new RoleManagementScheduleStatus(PendingExternalProvisioningValue);
/// <summary> Determines if two <see cref="RoleManagementScheduleStatus"/> values are the same. </summary>
public static bool operator ==(RoleManagementScheduleStatus left, RoleManagementScheduleStatus right) => left.Equals(right);
/// <summary> Determines if two <see cref="RoleManagementScheduleStatus"/> values are not the same. </summary>
public static bool operator !=(RoleManagementScheduleStatus left, RoleManagementScheduleStatus right) => !left.Equals(right);
/// <summary> Converts a string to a <see cref="RoleManagementScheduleStatus"/>. </summary>
public static implicit operator RoleManagementScheduleStatus(string value) => new RoleManagementScheduleStatus(value);
/// <inheritdoc />
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object obj) => obj is RoleManagementScheduleStatus other && Equals(other);
/// <inheritdoc />
public bool Equals(RoleManagementScheduleStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
/// <inheritdoc />
[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
/// <inheritdoc />
public override string ToString() => _value;
}
}