Compartilhar via


Restriction Constructors

Definition

Overloads

Restriction()

Initializes a new instance of the Restriction class.

Restriction(String, IList<String>, String)

Initializes a new instance of the Restriction class.

Restriction()

Initializes a new instance of the Restriction class.

public Restriction ();
Public Sub New ()

Applies to

Restriction(String, IList<String>, String)

Initializes a new instance of the Restriction class.

public Restriction (string type = default, System.Collections.Generic.IList<string> values = default, string reasonCode = default);
new Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Restriction : string * System.Collections.Generic.IList<string> * string -> Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Restriction
Public Sub New (Optional type As String = Nothing, Optional values As IList(Of String) = Nothing, Optional reasonCode As String = Nothing)

Parameters

type
String

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

values
IList<String>

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

reasonCode
String

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. Possible values include: 'QuotaId', 'NotAvailableForSubscription'

Applies to