Share via


ArmReservationsModelFactory.SkuRestriction Method

Definition

Initializes a new instance of SkuRestriction.

public static Azure.ResourceManager.Reservations.Models.SkuRestriction SkuRestriction (string skuRestrictionType = default, System.Collections.Generic.IEnumerable<string> values = default, string reasonCode = default);
static member SkuRestriction : string * seq<string> * string -> Azure.ResourceManager.Reservations.Models.SkuRestriction
Public Shared Function SkuRestriction (Optional skuRestrictionType As String = Nothing, Optional values As IEnumerable(Of String) = Nothing, Optional reasonCode As String = Nothing) As SkuRestriction

Parameters

skuRestrictionType
String

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
String

The reason for restriction.

Returns

A new SkuRestriction instance for mocking.

Applies to