共用方式為


ArmAppPlatformModelFactory.AppPlatformSkuRestrictions Method

Definition

Initializes a new instance of AppPlatformSkuRestrictions.

public static Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictions AppPlatformSkuRestrictions (Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionsType? restrictionsType = default, System.Collections.Generic.IEnumerable<string> values = default, Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionInfo restrictionInfo = default, Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionsReasonCode? reasonCode = default);
static member AppPlatformSkuRestrictions : Nullable<Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionsType> * seq<string> * Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionInfo * Nullable<Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionsReasonCode> -> Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictions
Public Shared Function AppPlatformSkuRestrictions (Optional restrictionsType As Nullable(Of AppPlatformSkuRestrictionsType) = Nothing, Optional values As IEnumerable(Of String) = Nothing, Optional restrictionInfo As AppPlatformSkuRestrictionInfo = Nothing, Optional reasonCode As Nullable(Of AppPlatformSkuRestrictionsReasonCode) = Nothing) As AppPlatformSkuRestrictions

Parameters

restrictionsType
Nullable<AppPlatformSkuRestrictionsType>

Gets the type of restrictions. Possible values include: 'Location', 'Zone'.

values
IEnumerable<String>

Gets the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.

restrictionInfo
AppPlatformSkuRestrictionInfo

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

reasonCode
Nullable<AppPlatformSkuRestrictionsReasonCode>

Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.

Returns

A new AppPlatformSkuRestrictions instance for mocking.

Applies to