다음을 통해 공유


StorageSkuRestriction Class

Definition

The restriction because of which SKU cannot be used.

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

Properties

ReasonCode

The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC.

RestrictionType

The type of restrictions. As of now only possible value for this is location.

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<StorageSkuRestriction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<StorageSkuRestriction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<StorageSkuRestriction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<StorageSkuRestriction>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<StorageSkuRestriction>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to