ArmCdnModelFactory.DeliveryRule Method

Definition

A rule that specifies a set of actions and conditions.

public static Azure.ResourceManager.Cdn.Models.DeliveryRule DeliveryRule(string name = default, int order = 0, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.DeliveryRuleCondition> conditions = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.DeliveryRuleAction> actions = default);
static member DeliveryRule : string * int * seq<Azure.ResourceManager.Cdn.Models.DeliveryRuleCondition> * seq<Azure.ResourceManager.Cdn.Models.DeliveryRuleAction> -> Azure.ResourceManager.Cdn.Models.DeliveryRule
Public Shared Function DeliveryRule (Optional name As String = Nothing, Optional order As Integer = 0, Optional conditions As IEnumerable(Of DeliveryRuleCondition) = Nothing, Optional actions As IEnumerable(Of DeliveryRuleAction) = Nothing) As DeliveryRule

Parameters

name
String

Name of the rule.

order
Int32

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.

Returns

A new DeliveryRule instance for mocking.

Applies to