-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
ManagedRuleExclusion.cs
37 lines (31 loc) · 1.83 KB
/
ManagedRuleExclusion.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.FrontDoor.Models
{
/// <summary> Exclude variables from managed rule evaluation. </summary>
public partial class ManagedRuleExclusion
{
/// <summary> Initializes a new instance of ManagedRuleExclusion. </summary>
/// <param name="matchVariable"> The variable type to be excluded. </param>
/// <param name="selectorMatchOperator"> Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. </param>
/// <param name="selector"> Selector value for which elements in the collection this exclusion applies to. </param>
/// <exception cref="ArgumentNullException"> <paramref name="selector"/> is null. </exception>
public ManagedRuleExclusion(ManagedRuleExclusionMatchVariable matchVariable, ManagedRuleExclusionSelectorMatchOperator selectorMatchOperator, string selector)
{
Argument.AssertNotNull(selector, nameof(selector));
MatchVariable = matchVariable;
SelectorMatchOperator = selectorMatchOperator;
Selector = selector;
}
/// <summary> The variable type to be excluded. </summary>
public ManagedRuleExclusionMatchVariable MatchVariable { get; set; }
/// <summary> Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. </summary>
public ManagedRuleExclusionSelectorMatchOperator SelectorMatchOperator { get; set; }
/// <summary> Selector value for which elements in the collection this exclusion applies to. </summary>
public string Selector { get; set; }
}
}