ArmComputeModelFactory.ComputeResourceSkuRestrictions 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 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
Azure SDK for .NET