Share via


ArmComputeModelFactory.ComputeResourceSkuRestrictions Method

Definition

Initializes a new instance of ComputeResourceSkuRestrictions.

public static Azure.ResourceManager.Compute.Models.ComputeResourceSkuRestrictions ComputeResourceSkuRestrictions (Azure.ResourceManager.Compute.Models.ComputeResourceSkuRestrictionsType? restrictionsType = default, System.Collections.Generic.IEnumerable<string> values = default, Azure.ResourceManager.Compute.Models.ComputeResourceSkuRestrictionInfo restrictionInfo = default, Azure.ResourceManager.Compute.Models.ComputeResourceSkuRestrictionsReasonCode? reasonCode = default);
static member ComputeResourceSkuRestrictions : Nullable<Azure.ResourceManager.Compute.Models.ComputeResourceSkuRestrictionsType> * seq<string> * Azure.ResourceManager.Compute.Models.ComputeResourceSkuRestrictionInfo * Nullable<Azure.ResourceManager.Compute.Models.ComputeResourceSkuRestrictionsReasonCode> -> Azure.ResourceManager.Compute.Models.ComputeResourceSkuRestrictions
Public Shared Function ComputeResourceSkuRestrictions (Optional restrictionsType As Nullable(Of ComputeResourceSkuRestrictionsType) = Nothing, Optional values As IEnumerable(Of String) = Nothing, Optional restrictionInfo As ComputeResourceSkuRestrictionInfo = Nothing, Optional reasonCode As Nullable(Of ComputeResourceSkuRestrictionsReasonCode) = Nothing) As ComputeResourceSkuRestrictions

Parameters

restrictionsType
Nullable<ComputeResourceSkuRestrictionsType>

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
ComputeResourceSkuRestrictionInfo

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

reasonCode
Nullable<ComputeResourceSkuRestrictionsReasonCode>

The reason for restriction.

Returns

A new ComputeResourceSkuRestrictions instance for mocking.

Applies to