Sdílet prostřednictvím


ArmCdnModelFactory.FrontDoorRulePatch Method

Definition

Initializes a new instance of FrontDoorRulePatch.

public static Azure.ResourceManager.Cdn.Models.FrontDoorRulePatch FrontDoorRulePatch (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 FrontDoorRulePatch : 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.FrontDoorRulePatch
Public Shared Function FrontDoorRulePatch (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 FrontDoorRulePatch

Parameters

ruleSetName
String

The name of the rule set containing the rule.

order
Nullable<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.

actions
IEnumerable<DeliveryRuleAction>

A list of actions that are executed when all the conditions of a rule are satisfied. Please note DeliveryRuleAction 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 DeliveryRuleCacheExpirationAction, DeliveryRuleCacheKeyQueryStringAction, DeliveryRuleRequestHeaderAction, DeliveryRuleResponseHeaderAction, OriginGroupOverrideAction, DeliveryRuleRouteConfigurationOverrideAction, UriRedirectAction, UriRewriteAction and UriSigningAction.

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 FrontDoorRulePatch instance for mocking.

Applies to