DeliveryRule Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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. |