ArmStorageCacheModelFactory.StorageCacheRestriction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET