ArmDevOpsInfrastructureModelFactory.ResourceSkuRestrictions 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 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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET