Udostępnij za pośrednictwem


StorageCacheRestriction Class

Definition

The restrictions preventing this SKU from being used.

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

Properties

ReasonCode

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

RestrictionType

The type of restrictions. In this version, the only possible value for this is location.

Values

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

Explicit Interface Implementations

IJsonModel<StorageCacheRestriction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<StorageCacheRestriction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<StorageCacheRestriction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<StorageCacheRestriction>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<StorageCacheRestriction>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to