-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
SecurityInsightsAutomationRuleTriggeringLogic.cs
63 lines (57 loc) · 3.84 KB
/
SecurityInsightsAutomationRuleTriggeringLogic.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.SecurityInsights.Models
{
/// <summary> Describes automation rule triggering logic. </summary>
public partial class SecurityInsightsAutomationRuleTriggeringLogic
{
/// <summary> Initializes a new instance of SecurityInsightsAutomationRuleTriggeringLogic. </summary>
/// <param name="isEnabled"> Determines whether the automation rule is enabled or disabled. </param>
/// <param name="triggersOn"></param>
/// <param name="triggersWhen"></param>
public SecurityInsightsAutomationRuleTriggeringLogic(bool isEnabled, TriggersOn triggersOn, TriggersWhen triggersWhen)
{
IsEnabled = isEnabled;
TriggersOn = triggersOn;
TriggersWhen = triggersWhen;
Conditions = new ChangeTrackingList<SecurityInsightsAutomationRuleCondition>();
}
/// <summary> Initializes a new instance of SecurityInsightsAutomationRuleTriggeringLogic. </summary>
/// <param name="isEnabled"> Determines whether the automation rule is enabled or disabled. </param>
/// <param name="expireOn"> Determines when the automation rule should automatically expire and be disabled. </param>
/// <param name="triggersOn"></param>
/// <param name="triggersWhen"></param>
/// <param name="conditions">
/// The conditions to evaluate to determine if the automation rule should be triggered on a given object.
/// Please note <see cref="SecurityInsightsAutomationRuleCondition"/> 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="SecurityInsightsPropertyConditionProperties"/>, <see cref="SecurityInsightsPropertyArrayChangedConditionProperties"/> and <see cref="SecurityInsightsPropertyChangedConditionProperties"/>.
/// </param>
internal SecurityInsightsAutomationRuleTriggeringLogic(bool isEnabled, DateTimeOffset? expireOn, TriggersOn triggersOn, TriggersWhen triggersWhen, IList<SecurityInsightsAutomationRuleCondition> conditions)
{
IsEnabled = isEnabled;
ExpireOn = expireOn;
TriggersOn = triggersOn;
TriggersWhen = triggersWhen;
Conditions = conditions;
}
/// <summary> Determines whether the automation rule is enabled or disabled. </summary>
public bool IsEnabled { get; set; }
/// <summary> Determines when the automation rule should automatically expire and be disabled. </summary>
public DateTimeOffset? ExpireOn { get; set; }
/// <summary> Gets or sets the triggers on. </summary>
public TriggersOn TriggersOn { get; set; }
/// <summary> Gets or sets the triggers when. </summary>
public TriggersWhen TriggersWhen { get; set; }
/// <summary>
/// The conditions to evaluate to determine if the automation rule should be triggered on a given object.
/// Please note <see cref="SecurityInsightsAutomationRuleCondition"/> 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="SecurityInsightsPropertyConditionProperties"/>, <see cref="SecurityInsightsPropertyArrayChangedConditionProperties"/> and <see cref="SecurityInsightsPropertyChangedConditionProperties"/>.
/// </summary>
public IList<SecurityInsightsAutomationRuleCondition> Conditions { get; }
}
}