Delen via


Rule Constructors

Definition

Overloads

Rule()

Initializes a new instance of the Rule class.

Rule(Int32, IList<DeliveryRuleAction>, String, String, String, SystemData, IList<DeliveryRuleCondition>, String, String, String)

Initializes a new instance of the Rule class.

Rule()

Initializes a new instance of the Rule class.

public Rule ();
Public Sub New ()

Applies to

Rule(Int32, IList<DeliveryRuleAction>, String, String, String, SystemData, IList<DeliveryRuleCondition>, String, String, String)

Initializes a new instance of the Rule class.

public Rule (int order, System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeliveryRuleAction> actions, string id = default, string name = default, string type = default, Microsoft.Azure.Management.Cdn.Models.SystemData systemData = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeliveryRuleCondition> conditions = default, string matchProcessingBehavior = default, string provisioningState = default, string deploymentStatus = default);
new Microsoft.Azure.Management.Cdn.Models.Rule : int * System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeliveryRuleAction> * string * string * string * Microsoft.Azure.Management.Cdn.Models.SystemData * System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeliveryRuleCondition> * string * string * string -> Microsoft.Azure.Management.Cdn.Models.Rule
Public Sub New (order As Integer, actions As IList(Of DeliveryRuleAction), Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional systemData As SystemData = Nothing, Optional conditions As IList(Of DeliveryRuleCondition) = Nothing, Optional matchProcessingBehavior As String = Nothing, Optional provisioningState As String = Nothing, Optional deploymentStatus As String = Nothing)

Parameters

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.

actions
IList<DeliveryRuleAction>

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

id
String

Resource ID.

name
String

Resource name.

type
String

Resource type.

systemData
SystemData
conditions
IList<DeliveryRuleCondition>

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

matchProcessingBehavior
String

If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. Possible values include: 'Continue', 'Stop'

provisioningState
String

Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating'

deploymentStatus
String

Possible values include: 'NotStarted', 'InProgress', 'Succeeded', 'Failed'

Applies to