Share via


DeliveryRule Class

Definition

A rule that specifies a set of actions and conditions

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.DeliveryRuleTypeConverter))]
public class DeliveryRule : Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.IDeliveryRule
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.DeliveryRuleTypeConverter))>]
type DeliveryRule = class
    interface IDeliveryRule
    interface IJsonSerializable
Public Class DeliveryRule
Implements IDeliveryRule
Inheritance
DeliveryRule
Attributes
Implements

Constructors

DeliveryRule()

Creates an new DeliveryRule instance.

Properties

Action

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

Condition

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

Name

Name of the rule

Order

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.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of DeliveryRule.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of DeliveryRule.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.IDeliveryRule.

FromJsonString(String)

Creates a new instance of DeliveryRule, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of DeliveryRule into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to