DeliveryRule Class

Definition

A rule that specifies a set of actions and conditions.

public class DeliveryRule : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Cdn.Models.DeliveryRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Cdn.Models.DeliveryRule>
type DeliveryRule = class
    interface IJsonModel<DeliveryRule>
    interface IPersistableModel<DeliveryRule>
Public Class DeliveryRule
Implements IJsonModel(Of DeliveryRule), IPersistableModel(Of DeliveryRule)
Inheritance
DeliveryRule
Implements

Constructors

Name Description
DeliveryRule(Int32, IEnumerable<DeliveryRuleAction>)

Initializes a new instance of DeliveryRule.

Properties

Name Description
Actions

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

Conditions

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

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<DeliveryRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DeliveryRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DeliveryRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DeliveryRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DeliveryRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to