Sprog

CostControlActionPatch Class

Definition

Edits to an existing named blocking action. New actions require all fields after merging; supplied fields cannot be null.

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

Constructors

Name Description
CostControlActionPatch()

Initializes a new instance of CostControlActionPatch.

Properties

Name Description
Operator

The threshold comparison. Only GreaterThanOrEqualTo is supported.

Threshold

The positive threshold. Percentages cannot exceed 100; absolute thresholds cannot exceed amount and must be whole numbers for Tokens budgets.

ThresholdType

Whether threshold is a percentage of amount or an absolute value in the budget's unit.

Type

The enforcement action. Only Block is supported.

Methods

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

Explicit Interface Implementations

Name Description
IJsonModel<CostControlActionPatch>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<CostControlActionPatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<CostControlActionPatch>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<CostControlActionPatch>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<CostControlActionPatch>.Write(ModelReaderWriterOptions)

Applies to