Compartilhar via


ArmDevOpsInfrastructureModelFactory.ResourceSkuRestrictions Method

Definition

Initializes a new instance of ResourceSkuRestrictions.

public static Azure.ResourceManager.DevOpsInfrastructure.Models.ResourceSkuRestrictions ResourceSkuRestrictions (Azure.ResourceManager.DevOpsInfrastructure.Models.ResourceSkuRestrictionsType? restrictionsType = default, System.Collections.Generic.IEnumerable<string> values = default, Azure.ResourceManager.DevOpsInfrastructure.Models.ResourceSkuRestrictionInfo restrictionInfo = default, Azure.ResourceManager.DevOpsInfrastructure.Models.ResourceSkuRestrictionsReasonCode? reasonCode = default);
static member ResourceSkuRestrictions : Nullable<Azure.ResourceManager.DevOpsInfrastructure.Models.ResourceSkuRestrictionsType> * seq<string> * Azure.ResourceManager.DevOpsInfrastructure.Models.ResourceSkuRestrictionInfo * Nullable<Azure.ResourceManager.DevOpsInfrastructure.Models.ResourceSkuRestrictionsReasonCode> -> Azure.ResourceManager.DevOpsInfrastructure.Models.ResourceSkuRestrictions
Public Shared Function ResourceSkuRestrictions (Optional restrictionsType As Nullable(Of ResourceSkuRestrictionsType) = Nothing, Optional values As IEnumerable(Of String) = Nothing, Optional restrictionInfo As ResourceSkuRestrictionInfo = Nothing, Optional reasonCode As Nullable(Of ResourceSkuRestrictionsReasonCode) = Nothing) As ResourceSkuRestrictions

Parameters

restrictionsType
Nullable<ResourceSkuRestrictionsType>

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
ResourceSkuRestrictionInfo

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

reasonCode
Nullable<ResourceSkuRestrictionsReasonCode>

the reason for restriction.

Returns

A new ResourceSkuRestrictions instance for mocking.

Applies to