다음을 통해 공유


ArmStorageCacheModelFactory.StorageCacheRestriction Method

Definition

Initializes a new instance of StorageCacheRestriction.

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

Parameters

restrictionType
String

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

values
IEnumerable<String>

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

reasonCode
Nullable<StorageCacheRestrictionReasonCode>

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.

Returns

A new StorageCacheRestriction instance for mocking.

Applies to