Share via


ArmCognitiveServicesModelFactory.CognitiveServicesSkuRestrictions Method

Definition

Initializes a new instance of CognitiveServicesSkuRestrictions.

public static Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictions CognitiveServicesSkuRestrictions (Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionsType? restrictionsType = default, System.Collections.Generic.IEnumerable<string> values = default, Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionInfo restrictionInfo = default, Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionReasonCode? reasonCode = default);
static member CognitiveServicesSkuRestrictions : Nullable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionsType> * seq<string> * Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionInfo * Nullable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionReasonCode> -> Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictions
Public Shared Function CognitiveServicesSkuRestrictions (Optional restrictionsType As Nullable(Of CognitiveServicesSkuRestrictionsType) = Nothing, Optional values As IEnumerable(Of String) = Nothing, Optional restrictionInfo As CognitiveServicesSkuRestrictionInfo = Nothing, Optional reasonCode As Nullable(Of CognitiveServicesSkuRestrictionReasonCode) = Nothing) As CognitiveServicesSkuRestrictions

Parameters

restrictionsType
Nullable<CognitiveServicesSkuRestrictionsType>

The type of restrictions.

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.

restrictionInfo
CognitiveServicesSkuRestrictionInfo

The information about the restriction where the SKU cannot be used.

reasonCode
Nullable<CognitiveServicesSkuRestrictionReasonCode>

The reason for restriction.

Returns

A new CognitiveServicesSkuRestrictions instance for mocking.

Applies to