Skip to content

Commit

Permalink
regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas11 committed Oct 23, 2024
1 parent e312220 commit 3802fdf
Show file tree
Hide file tree
Showing 152 changed files with 23,849 additions and 382 deletions.
1,074 changes: 1,074 additions & 0 deletions provider/cmd/pulumi-resource-azure-native/schema.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion reports/allEndpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -9044,7 +9044,8 @@
"DELETE",
"GET",
"PATCH"
]
],
"Added": true
}
},
"RoleManagementPolicyAssignments": {
Expand Down
6 changes: 6 additions & 0 deletions reports/allResourceVersionsByResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -3080,6 +3080,12 @@
"2022-04-01",
"2022-05-01-preview"
],
"RoleManagementPolicy": [
"2020-10-01",
"2020-10-01-preview",
"2024-02-01-preview",
"2024-09-01-preview"
],
"RoleManagementPolicyAssignment": [
"2020-10-01",
"2020-10-01-preview",
Expand Down
4 changes: 4 additions & 0 deletions reports/allResourcesByVersion.json
Original file line number Diff line number Diff line change
Expand Up @@ -2788,10 +2788,12 @@
"PolicySetDefinitionAtManagementGroup"
],
"2020-10-01": [
"RoleManagementPolicy",
"RoleManagementPolicyAssignment"
],
"2020-10-01-preview": [
"RoleAssignment",
"RoleManagementPolicy",
"RoleManagementPolicyAssignment"
],
"2021-03-01-preview": [
Expand Down Expand Up @@ -2854,6 +2856,7 @@
"listPolicySetDefinitionVersionAllBuiltins"
],
"2024-02-01-preview": [
"RoleManagementPolicy",
"RoleManagementPolicyAssignment"
],
"2024-04-01": [
Expand All @@ -2877,6 +2880,7 @@
"listPolicySetDefinitionVersionAllBuiltins"
],
"2024-09-01-preview": [
"RoleManagementPolicy",
"RoleManagementPolicyAssignment"
]
},
Expand Down
286 changes: 286 additions & 0 deletions sdk/dotnet/Authorization/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,39 @@ private AccessReviewResult(string value)
public override string ToString() => _value;
}

/// <summary>
/// The type of rule
/// </summary>
[EnumType]
public readonly struct ApprovalMode : IEquatable<ApprovalMode>
{
private readonly string _value;

private ApprovalMode(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}

public static ApprovalMode SingleStage { get; } = new ApprovalMode("SingleStage");
public static ApprovalMode Serial { get; } = new ApprovalMode("Serial");
public static ApprovalMode Parallel { get; } = new ApprovalMode("Parallel");
public static ApprovalMode NoApproval { get; } = new ApprovalMode("NoApproval");

public static bool operator ==(ApprovalMode left, ApprovalMode right) => left.Equals(right);
public static bool operator !=(ApprovalMode left, ApprovalMode right) => !left.Equals(right);

public static explicit operator string(ApprovalMode value) => value._value;

[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is ApprovalMode other && Equals(other);
public bool Equals(ApprovalMode other) => string.Equals(_value, other._value, StringComparison.Ordinal);

[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;

public override string ToString() => _value;
}

/// <summary>
/// The option whether validate the exemption is at or under the assignment scope.
/// </summary>
Expand Down Expand Up @@ -173,6 +206,38 @@ private DefaultDecisionType(string value)
public override string ToString() => _value;
}

/// <summary>
/// The type of enablement rule
/// </summary>
[EnumType]
public readonly struct EnablementRules : IEquatable<EnablementRules>
{
private readonly string _value;

private EnablementRules(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}

public static EnablementRules MultiFactorAuthentication { get; } = new EnablementRules("MultiFactorAuthentication");
public static EnablementRules Justification { get; } = new EnablementRules("Justification");
public static EnablementRules Ticketing { get; } = new EnablementRules("Ticketing");

public static bool operator ==(EnablementRules left, EnablementRules right) => left.Equals(right);
public static bool operator !=(EnablementRules left, EnablementRules right) => !left.Equals(right);

public static explicit operator string(EnablementRules value) => value._value;

[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is EnablementRules other && Equals(other);
public bool Equals(EnablementRules other) => string.Equals(_value, other._value, StringComparison.Ordinal);

[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;

public override string ToString() => _value;
}

/// <summary>
/// The policy assignment enforcement mode. Possible values are Default and DoNotEnforce.
/// </summary>
Expand Down Expand Up @@ -210,6 +275,34 @@ private EnforcementMode(string value)
public override string ToString() => _value;
}

[EnumType]
public readonly struct ExcludedPrincipalTypes : IEquatable<ExcludedPrincipalTypes>
{
private readonly string _value;

private ExcludedPrincipalTypes(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}

public static ExcludedPrincipalTypes ServicePrincipalsAsTarget { get; } = new ExcludedPrincipalTypes("ServicePrincipalsAsTarget");
public static ExcludedPrincipalTypes ServicePrincipalsAsRequestor { get; } = new ExcludedPrincipalTypes("ServicePrincipalsAsRequestor");

public static bool operator ==(ExcludedPrincipalTypes left, ExcludedPrincipalTypes right) => left.Equals(right);
public static bool operator !=(ExcludedPrincipalTypes left, ExcludedPrincipalTypes right) => !left.Equals(right);

public static explicit operator string(ExcludedPrincipalTypes value) => value._value;

[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is ExcludedPrincipalTypes other && Equals(other);
public bool Equals(ExcludedPrincipalTypes other) => string.Equals(_value, other._value, StringComparison.Ordinal);

[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;

public override string ToString() => _value;
}

/// <summary>
/// The policy exemption category. Possible values are Waiver and Mitigated.
/// </summary>
Expand Down Expand Up @@ -279,6 +372,68 @@ private LockLevel(string value)
public override string ToString() => _value;
}

/// <summary>
/// The type of notification.
/// </summary>
[EnumType]
public readonly struct NotificationDeliveryMechanism : IEquatable<NotificationDeliveryMechanism>
{
private readonly string _value;

private NotificationDeliveryMechanism(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}

public static NotificationDeliveryMechanism Email { get; } = new NotificationDeliveryMechanism("Email");

public static bool operator ==(NotificationDeliveryMechanism left, NotificationDeliveryMechanism right) => left.Equals(right);
public static bool operator !=(NotificationDeliveryMechanism left, NotificationDeliveryMechanism right) => !left.Equals(right);

public static explicit operator string(NotificationDeliveryMechanism value) => value._value;

[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is NotificationDeliveryMechanism other && Equals(other);
public bool Equals(NotificationDeliveryMechanism other) => string.Equals(_value, other._value, StringComparison.Ordinal);

[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;

public override string ToString() => _value;
}

/// <summary>
/// The notification level.
/// </summary>
[EnumType]
public readonly struct NotificationLevel : IEquatable<NotificationLevel>
{
private readonly string _value;

private NotificationLevel(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}

public static NotificationLevel None { get; } = new NotificationLevel("None");
public static NotificationLevel Critical { get; } = new NotificationLevel("Critical");
public static NotificationLevel All { get; } = new NotificationLevel("All");

public static bool operator ==(NotificationLevel left, NotificationLevel right) => left.Equals(right);
public static bool operator !=(NotificationLevel left, NotificationLevel right) => !left.Equals(right);

public static explicit operator string(NotificationLevel value) => value._value;

[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is NotificationLevel other && Equals(other);
public bool Equals(NotificationLevel other) => string.Equals(_value, other._value, StringComparison.Ordinal);

[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;

public override string ToString() => _value;
}

/// <summary>
/// The override kind.
/// </summary>
Expand Down Expand Up @@ -312,6 +467,38 @@ private OverrideKind(string value)
public override string ToString() => _value;
}

/// <summary>
/// Determines whether the setting is enabled, disabled or report only.
/// </summary>
[EnumType]
public readonly struct PIMOnlyMode : IEquatable<PIMOnlyMode>
{
private readonly string _value;

private PIMOnlyMode(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}

public static PIMOnlyMode Disabled { get; } = new PIMOnlyMode("Disabled");
public static PIMOnlyMode Enabled { get; } = new PIMOnlyMode("Enabled");
public static PIMOnlyMode ReportOnly { get; } = new PIMOnlyMode("ReportOnly");

public static bool operator ==(PIMOnlyMode left, PIMOnlyMode right) => left.Equals(right);
public static bool operator !=(PIMOnlyMode left, PIMOnlyMode right) => !left.Equals(right);

public static explicit operator string(PIMOnlyMode value) => value._value;

[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is PIMOnlyMode other && Equals(other);
public bool Equals(PIMOnlyMode other) => string.Equals(_value, other._value, StringComparison.Ordinal);

[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;

public override string ToString() => _value;
}

/// <summary>
/// The data type of the parameter.
/// </summary>
Expand Down Expand Up @@ -443,6 +630,38 @@ private PublicNetworkAccessOptions(string value)
public override string ToString() => _value;
}

/// <summary>
/// The recipient type.
/// </summary>
[EnumType]
public readonly struct RecipientType : IEquatable<RecipientType>
{
private readonly string _value;

private RecipientType(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}

public static RecipientType Requestor { get; } = new RecipientType("Requestor");
public static RecipientType Approver { get; } = new RecipientType("Approver");
public static RecipientType Admin { get; } = new RecipientType("Admin");

public static bool operator ==(RecipientType left, RecipientType right) => left.Equals(right);
public static bool operator !=(RecipientType left, RecipientType right) => !left.Equals(right);

public static explicit operator string(RecipientType value) => value._value;

[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is RecipientType other && Equals(other);
public bool Equals(RecipientType other) => string.Equals(_value, other._value, StringComparison.Ordinal);

[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;

public override string ToString() => _value;
}

/// <summary>
/// The identity type. This is the only required field when adding a system or user assigned identity to a resource.
/// </summary>
Expand Down Expand Up @@ -484,6 +703,41 @@ private ResourceIdentityType(string value)
public override string ToString() => _value;
}

/// <summary>
/// The type of rule
/// </summary>
[EnumType]
public readonly struct RoleManagementPolicyRuleType : IEquatable<RoleManagementPolicyRuleType>
{
private readonly string _value;

private RoleManagementPolicyRuleType(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}

public static RoleManagementPolicyRuleType RoleManagementPolicyApprovalRule { get; } = new RoleManagementPolicyRuleType("RoleManagementPolicyApprovalRule");
public static RoleManagementPolicyRuleType RoleManagementPolicyAuthenticationContextRule { get; } = new RoleManagementPolicyRuleType("RoleManagementPolicyAuthenticationContextRule");
public static RoleManagementPolicyRuleType RoleManagementPolicyEnablementRule { get; } = new RoleManagementPolicyRuleType("RoleManagementPolicyEnablementRule");
public static RoleManagementPolicyRuleType RoleManagementPolicyExpirationRule { get; } = new RoleManagementPolicyRuleType("RoleManagementPolicyExpirationRule");
public static RoleManagementPolicyRuleType RoleManagementPolicyNotificationRule { get; } = new RoleManagementPolicyRuleType("RoleManagementPolicyNotificationRule");
public static RoleManagementPolicyRuleType RoleManagementPolicyPimOnlyModeRule { get; } = new RoleManagementPolicyRuleType("RoleManagementPolicyPimOnlyModeRule");

public static bool operator ==(RoleManagementPolicyRuleType left, RoleManagementPolicyRuleType right) => left.Equals(right);
public static bool operator !=(RoleManagementPolicyRuleType left, RoleManagementPolicyRuleType right) => !left.Equals(right);

public static explicit operator string(RoleManagementPolicyRuleType value) => value._value;

[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is RoleManagementPolicyRuleType other && Equals(other);
public bool Equals(RoleManagementPolicyRuleType other) => string.Equals(_value, other._value, StringComparison.Ordinal);

[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;

public override string ToString() => _value;
}

/// <summary>
/// The selector kind.
/// </summary>
Expand Down Expand Up @@ -528,4 +782,36 @@ private SelectorKind(string value)

public override string ToString() => _value;
}

/// <summary>
/// The type of user.
/// </summary>
[EnumType]
public readonly struct UserType : IEquatable<UserType>
{
private readonly string _value;

private UserType(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}

public static UserType User { get; } = new UserType("User");
public static UserType Group { get; } = new UserType("Group");
public static UserType ServicePrincipal { get; } = new UserType("ServicePrincipal");

public static bool operator ==(UserType left, UserType right) => left.Equals(right);
public static bool operator !=(UserType left, UserType right) => !left.Equals(right);

public static explicit operator string(UserType value) => value._value;

[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is UserType other && Equals(other);
public bool Equals(UserType other) => string.Equals(_value, other._value, StringComparison.Ordinal);

[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;

public override string ToString() => _value;
}
}
Loading

0 comments on commit 3802fdf

Please sign in to comment.