Dela via


CommitmentPeriod Class

Definition

Cognitive Services account commitment period.

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

Constructors

CommitmentPeriod()

Initializes a new instance of CommitmentPeriod.

Properties

Count

Commitment period commitment count.

EndOn

Commitment period end date.

Quota

Cognitive Services account commitment quota.

StartOn

Commitment period start date.

Tier

Commitment period commitment tier.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CommitmentPeriod>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CommitmentPeriod>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CommitmentPeriod>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CommitmentPeriod>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CommitmentPeriod>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to