Delen via


ArmDataMigrationModelFactory.ResourceSkuRestrictions Method

Definition

Initializes a new instance of ResourceSkuRestrictions.

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

reasonCode
Nullable<ResourceSkuRestrictionsReasonCode>

The reason code for restriction.

Returns

A new ResourceSkuRestrictions instance for mocking.

Applies to