Partager via


Restriction Class

Definition

The restriction because of which SKU cannot be used.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.RestrictionTypeConverter))]
public class Restriction : Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IRestriction
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.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". 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.

Type

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

Value

The value of restrictions. If the restriction type is set to location. This would be 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.Storage.Models.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