Sdílet prostřednictvím


PurchaseRequest Constructors

Definition

Overloads

PurchaseRequest()

Initializes a new instance of the PurchaseRequest class.

PurchaseRequest(SkuName, String, String, String, String, String, Nullable<Int32>, String, String, IList<String>, Nullable<Boolean>, PurchaseRequestPropertiesReservedResourceProperties)

Initializes a new instance of the PurchaseRequest class.

PurchaseRequest()

Initializes a new instance of the PurchaseRequest class.

public PurchaseRequest ();
Public Sub New ()

Applies to

PurchaseRequest(SkuName, String, String, String, String, String, Nullable<Int32>, String, String, IList<String>, Nullable<Boolean>, PurchaseRequestPropertiesReservedResourceProperties)

Initializes a new instance of the PurchaseRequest class.

public PurchaseRequest (Microsoft.Azure.Management.Reservations.Models.SkuName sku = default, string location = default, string reservedResourceType = default, string billingScopeId = default, string term = default, string billingPlan = default, int? quantity = default, string displayName = default, string appliedScopeType = default, System.Collections.Generic.IList<string> appliedScopes = default, bool? renew = default, Microsoft.Azure.Management.Reservations.Models.PurchaseRequestPropertiesReservedResourceProperties reservedResourceProperties = default);
new Microsoft.Azure.Management.Reservations.Models.PurchaseRequest : Microsoft.Azure.Management.Reservations.Models.SkuName * string * string * string * string * string * Nullable<int> * string * string * System.Collections.Generic.IList<string> * Nullable<bool> * Microsoft.Azure.Management.Reservations.Models.PurchaseRequestPropertiesReservedResourceProperties -> Microsoft.Azure.Management.Reservations.Models.PurchaseRequest
Public Sub New (Optional sku As SkuName = Nothing, Optional location As String = Nothing, Optional reservedResourceType As String = Nothing, Optional billingScopeId As String = Nothing, Optional term As String = Nothing, Optional billingPlan As String = Nothing, Optional quantity As Nullable(Of Integer) = Nothing, Optional displayName As String = Nothing, Optional appliedScopeType As String = Nothing, Optional appliedScopes As IList(Of String) = Nothing, Optional renew As Nullable(Of Boolean) = Nothing, Optional reservedResourceProperties As PurchaseRequestPropertiesReservedResourceProperties = Nothing)

Parameters

sku
SkuName
location
String

The Azure Region where the reserved resource lives.

reservedResourceType
String

Possible values include: 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb', 'RedHat', 'SqlDataWarehouse', 'VMwareCloudSimple', 'RedHatOsa', 'Databricks', 'AppService', 'ManagedDisk', 'BlockBlob', 'RedisCache', 'AzureDataExplorer', 'MySql', 'MariaDb', 'PostgreSql', 'DedicatedHost', 'SapHana', 'SqlAzureHybridBenefit'

billingScopeId
String
term
String

Possible values include: 'P1Y', 'P3Y'

billingPlan
String

Possible values include: 'Upfront', 'Monthly'

quantity
Nullable<Int32>
displayName
String

Friendly name of the Reservation

appliedScopeType
String

Possible values include: 'Single', 'Shared'

appliedScopes
IList<String>
renew
Nullable<Boolean>
reservedResourceProperties
PurchaseRequestPropertiesReservedResourceProperties

Properties specific to each reserved resource type. Not required if not applicable.

Applies to