Partager via


SkuRestriction Class

Definition

Restriction of a sku.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.SkuRestrictionTypeConverter))]
public class SkuRestriction : Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.ISkuRestriction
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.SkuRestrictionTypeConverter))>]
type SkuRestriction = class
    interface ISkuRestriction
    interface IJsonSerializable
Public Class SkuRestriction
Implements ISkuRestriction
Inheritance
SkuRestriction
Attributes
Implements

Constructors

SkuRestriction()

Creates an new SkuRestriction instance.

Properties

ReasonCode

The reason for restriction.

Type

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

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of SkuRestriction.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of SkuRestriction.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.ISkuRestriction.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of SkuRestriction into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to