Share via


Restriction Class

Definition

The restrictions preventing this SKU from being used.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.Api20230501.RestrictionTypeConverter))]
public class Restriction : Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.Api20230501.IRestriction
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.Api20230501.RestrictionTypeConverter))>]
type Restriction = class
    interface IRestriction
    interface IJsonSerializable
Public Class Restriction
Implements IRestriction
Inheritance
Restriction
Attributes
Implements

Constructors

Restriction()

Creates an new Restriction instance.

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.

Type

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

Value

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

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Restriction.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Restriction.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.Api20230501.IRestriction.

FromJsonString(String)

Creates a new instance of Restriction, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Restriction into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to