-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ListCustomAlertRule.cs
39 lines (34 loc) · 2.04 KB
/
ListCustomAlertRule.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
namespace Azure.ResourceManager.SecurityCenter.Models
{
/// <summary>
/// A List custom alert rule.
/// Please note <see cref="ListCustomAlertRule"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="AllowlistCustomAlertRule"/>, <see cref="ConnectionFromIPNotAllowed"/>, <see cref="ConnectionToIPNotAllowed"/>, <see cref="DenylistCustomAlertRule"/>, <see cref="LocalUserNotAllowed"/> and <see cref="ProcessNotAllowed"/>.
/// </summary>
public partial class ListCustomAlertRule : CustomAlertRule
{
/// <summary> Initializes a new instance of ListCustomAlertRule. </summary>
/// <param name="isEnabled"> Status of the custom alert. </param>
public ListCustomAlertRule(bool isEnabled) : base(isEnabled)
{
RuleType = "ListCustomAlertRule";
}
/// <summary> Initializes a new instance of ListCustomAlertRule. </summary>
/// <param name="displayName"> The display name of the custom alert. </param>
/// <param name="description"> The description of the custom alert. </param>
/// <param name="isEnabled"> Status of the custom alert. </param>
/// <param name="ruleType"> The type of the custom alert rule. </param>
/// <param name="valueType"> The value type of the items in the list. </param>
internal ListCustomAlertRule(string displayName, string description, bool isEnabled, string ruleType, SecurityValueType? valueType) : base(displayName, description, isEnabled, ruleType)
{
ValueType = valueType;
RuleType = ruleType ?? "ListCustomAlertRule";
}
/// <summary> The value type of the items in the list. </summary>
public SecurityValueType? ValueType { get; }
}
}