Share via


CognitiveServicesSkuRestrictions Class

Definition

Describes restrictions of a SKU.

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

Properties

ReasonCode

The reason for restriction.

RestrictionInfo

The information about the restriction where the SKU cannot be used.

RestrictionsType

The type of restrictions.

Values

The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.

Explicit Interface Implementations

IJsonModel<CognitiveServicesSkuRestrictions>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CognitiveServicesSkuRestrictions>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CognitiveServicesSkuRestrictions>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CognitiveServicesSkuRestrictions>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CognitiveServicesSkuRestrictions>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to