ArmCdnModelFactory.BatchRuleProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The JSON object that contains a rule with its name for batch mode operations.
public static Azure.ResourceManager.Cdn.Models.BatchRuleProperties BatchRuleProperties(string ruleName = default, string ruleSetName = default, int? order = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.DeliveryRuleCondition> conditions = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.DeliveryRuleAction> actions = default, Azure.ResourceManager.Cdn.Models.MatchProcessingBehavior? matchProcessingBehavior = default);
static member BatchRuleProperties : string * string * Nullable<int> * seq<Azure.ResourceManager.Cdn.Models.DeliveryRuleCondition> * seq<Azure.ResourceManager.Cdn.Models.DeliveryRuleAction> * Nullable<Azure.ResourceManager.Cdn.Models.MatchProcessingBehavior> -> Azure.ResourceManager.Cdn.Models.BatchRuleProperties
Public Shared Function BatchRuleProperties (Optional ruleName As String = Nothing, Optional ruleSetName As String = Nothing, Optional order As Nullable(Of Integer) = Nothing, Optional conditions As IEnumerable(Of DeliveryRuleCondition) = Nothing, Optional actions As IEnumerable(Of DeliveryRuleAction) = Nothing, Optional matchProcessingBehavior As Nullable(Of MatchProcessingBehavior) = Nothing) As BatchRuleProperties
Parameters
- ruleName
- String
Name of the rule.
- ruleSetName
- String
The name of the rule set containing the rule.
The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.
- conditions
- IEnumerable<DeliveryRuleCondition>
A list of conditions that must be matched for the actions to be executed.
- actions
- IEnumerable<DeliveryRuleAction>
A list of actions that are executed when all the conditions of a rule are satisfied.
- matchProcessingBehavior
- Nullable<MatchProcessingBehavior>
If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.
Returns
A new BatchRuleProperties instance for mocking.