-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
RoleManagementPolicyEnablementRule.cs
39 lines (33 loc) · 1.84 KB
/
RoleManagementPolicyEnablementRule.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.ResourceManager.Authorization.Models
{
/// <summary> The role management policy enablement rule. </summary>
public partial class RoleManagementPolicyEnablementRule : RoleManagementPolicyRule
{
/// <summary> Initializes a new instance of <see cref="RoleManagementPolicyEnablementRule"/>. </summary>
public RoleManagementPolicyEnablementRule()
{
EnablementRules = new ChangeTrackingList<RoleAssignmentEnablementRuleType>();
RuleType = RoleManagementPolicyRuleType.RoleManagementPolicyEnablementRule;
}
/// <summary> Initializes a new instance of <see cref="RoleManagementPolicyEnablementRule"/>. </summary>
/// <param name="id"> The id of the rule. </param>
/// <param name="ruleType"> The type of rule. </param>
/// <param name="target"> The target of the current rule. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="enablementRules"> The list of enabled rules. </param>
internal RoleManagementPolicyEnablementRule(string id, RoleManagementPolicyRuleType ruleType, RoleManagementPolicyRuleTarget target, IDictionary<string, BinaryData> serializedAdditionalRawData, IList<RoleAssignmentEnablementRuleType> enablementRules) : base(id, ruleType, target, serializedAdditionalRawData)
{
EnablementRules = enablementRules;
RuleType = ruleType;
}
/// <summary> The list of enabled rules. </summary>
[WirePath("enabledRules")]
public IList<RoleAssignmentEnablementRuleType> EnablementRules { get; }
}
}