Share via


SkuRestriction Class

Definition

Restriction of a sku.

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

Properties

ReasonCode

The reason for restriction.

SkuRestrictionType

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.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<SkuRestriction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<SkuRestriction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SkuRestriction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SkuRestriction>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<SkuRestriction>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to