DeliveryRule Class

A rule that specifies a set of actions and conditions.

All required parameters must be populated in order to send to server.

Constructor

DeliveryRule(*, order: int, actions: List[_models.DeliveryRuleAction], name: str | None = None, conditions: List[_models.DeliveryRuleCondition] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

Name of the rule.

order
int

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. Required.

conditions

A list of conditions that must be matched for the actions to be executed.

actions

A list of actions that are executed when all the conditions of a rule are satisfied. Required.

Variables

Name Description
name
str

Name of the rule.

order
int

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. Required.

conditions

A list of conditions that must be matched for the actions to be executed.

actions

A list of actions that are executed when all the conditions of a rule are satisfied. Required.