-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
RoleManagementPolicyNotificationRule.cs
59 lines (53 loc) · 3.4 KB
/
RoleManagementPolicyNotificationRule.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
// 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 notification rule. </summary>
public partial class RoleManagementPolicyNotificationRule : RoleManagementPolicyRule
{
/// <summary> Initializes a new instance of <see cref="RoleManagementPolicyNotificationRule"/>. </summary>
public RoleManagementPolicyNotificationRule()
{
NotificationRecipients = new ChangeTrackingList<string>();
RuleType = RoleManagementPolicyRuleType.RoleManagementPolicyNotificationRule;
}
/// <summary> Initializes a new instance of <see cref="RoleManagementPolicyNotificationRule"/>. </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="notificationDeliveryType"> The type of notification. </param>
/// <param name="notificationLevel"> The notification level. </param>
/// <param name="recipientType"> The recipient type. </param>
/// <param name="notificationRecipients"> The list of notification recipients. </param>
/// <param name="areDefaultRecipientsEnabled"> Determines if the notification will be sent to the recipient type specified in the policy rule. </param>
internal RoleManagementPolicyNotificationRule(string id, RoleManagementPolicyRuleType ruleType, RoleManagementPolicyRuleTarget target, IDictionary<string, BinaryData> serializedAdditionalRawData, NotificationDeliveryType? notificationDeliveryType, RoleManagementPolicyNotificationLevel? notificationLevel, RoleManagementPolicyRecipientType? recipientType, IList<string> notificationRecipients, bool? areDefaultRecipientsEnabled) : base(id, ruleType, target, serializedAdditionalRawData)
{
NotificationDeliveryType = notificationDeliveryType;
NotificationLevel = notificationLevel;
RecipientType = recipientType;
NotificationRecipients = notificationRecipients;
AreDefaultRecipientsEnabled = areDefaultRecipientsEnabled;
RuleType = ruleType;
}
/// <summary> The type of notification. </summary>
[WirePath("notificationType")]
public NotificationDeliveryType? NotificationDeliveryType { get; set; }
/// <summary> The notification level. </summary>
[WirePath("notificationLevel")]
public RoleManagementPolicyNotificationLevel? NotificationLevel { get; set; }
/// <summary> The recipient type. </summary>
[WirePath("recipientType")]
public RoleManagementPolicyRecipientType? RecipientType { get; set; }
/// <summary> The list of notification recipients. </summary>
[WirePath("notificationRecipients")]
public IList<string> NotificationRecipients { get; }
/// <summary> Determines if the notification will be sent to the recipient type specified in the policy rule. </summary>
[WirePath("isDefaultRecipientsEnabled")]
public bool? AreDefaultRecipientsEnabled { get; set; }
}
}