共用方式為


ArmStorageModelFactory.StorageSkuRestriction Method

Definition

Initializes a new instance of StorageSkuRestriction.

public static Azure.ResourceManager.Storage.Models.StorageSkuRestriction StorageSkuRestriction (string restrictionType = default, System.Collections.Generic.IEnumerable<string> values = default, Azure.ResourceManager.Storage.Models.StorageRestrictionReasonCode? reasonCode = default);
static member StorageSkuRestriction : string * seq<string> * Nullable<Azure.ResourceManager.Storage.Models.StorageRestrictionReasonCode> -> Azure.ResourceManager.Storage.Models.StorageSkuRestriction
Public Shared Function StorageSkuRestriction (Optional restrictionType As String = Nothing, Optional values As IEnumerable(Of String) = Nothing, Optional reasonCode As Nullable(Of StorageRestrictionReasonCode) = Nothing) As StorageSkuRestriction

Parameters

restrictionType
String

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

values
IEnumerable<String>

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

reasonCode
Nullable<StorageRestrictionReasonCode>

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.

Returns

A new StorageSkuRestriction instance for mocking.

Applies to