ArmNetworkModelFactory.ExceptionEntry Method

Definition

public static Azure.ResourceManager.Network.Models.ExceptionEntry ExceptionEntry(Azure.ResourceManager.Network.Models.ExceptionEntryMatchVariable matchVariable = default, System.Collections.Generic.IEnumerable<string> values = default, Azure.ResourceManager.Network.Models.ExceptionEntryValueMatchOperator valueMatchOperator = default, Azure.ResourceManager.Network.Models.ExceptionEntrySelectorMatchOperator? selectorMatchOperator = default, string selector = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.ExclusionManagedRuleSet> exceptionManagedRuleSets = default);
static member ExceptionEntry : Azure.ResourceManager.Network.Models.ExceptionEntryMatchVariable * seq<string> * Azure.ResourceManager.Network.Models.ExceptionEntryValueMatchOperator * Nullable<Azure.ResourceManager.Network.Models.ExceptionEntrySelectorMatchOperator> * string * seq<Azure.ResourceManager.Network.Models.ExclusionManagedRuleSet> -> Azure.ResourceManager.Network.Models.ExceptionEntry
Public Shared Function ExceptionEntry (Optional matchVariable As ExceptionEntryMatchVariable = Nothing, Optional values As IEnumerable(Of String) = Nothing, Optional valueMatchOperator As ExceptionEntryValueMatchOperator = Nothing, Optional selectorMatchOperator As Nullable(Of ExceptionEntrySelectorMatchOperator) = Nothing, Optional selector As String = Nothing, Optional exceptionManagedRuleSets As IEnumerable(Of ExclusionManagedRuleSet) = Nothing) As ExceptionEntry

Parameters

matchVariable
ExceptionEntryMatchVariable

The variable on which we evaluate the exception condition.

values
IEnumerable<String>

Allowed values for the matchVariable.

valueMatchOperator
ExceptionEntryValueMatchOperator

Operates on the allowed values for the matchVariable.

selectorMatchOperator
Nullable<ExceptionEntrySelectorMatchOperator>

When the matchVariable points to a key-value pair (e.g, RequestHeader), this operates on the selector.

selector
String

When the matchVariable points to a key-value pair (e.g, RequestHeader), this identifies the key.

exceptionManagedRuleSets
IEnumerable<ExclusionManagedRuleSet>

The managed rule sets that are associated with the exception.

Returns

A new ExceptionEntry instance for mocking.

Applies to