Dela via


RulesEngineRule Class

Definition

Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers manipulation.

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

Constructors

RulesEngineRule(String, Int32, RulesEngineAction)

Initializes a new instance of RulesEngineRule.

Properties

Action

Actions to perform on the request and response if all of the match conditions are met.

MatchConditions

A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.

MatchProcessingBehavior

If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.

Name

A name to refer to this specific rule.

Priority

A priority assigned to this rule.

Explicit Interface Implementations

IJsonModel<RulesEngineRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RulesEngineRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RulesEngineRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RulesEngineRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RulesEngineRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to