共用方式為


CognitiveServicesCapacityConfig Class

Definition

The capacity configuration.

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

Constructors

CognitiveServicesCapacityConfig()

Initializes a new instance of CognitiveServicesCapacityConfig.

Properties

AllowedValues

The array of allowed values for capacity.

Default

The default capacity.

Maximum

The maximum capacity.

Minimum

The minimum capacity.

Step

The minimal incremental between allowed values for capacity.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CognitiveServicesCapacityConfig>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CognitiveServicesCapacityConfig>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CognitiveServicesCapacityConfig>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CognitiveServicesCapacityConfig>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CognitiveServicesCapacityConfig>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to