共用方式為


ReservationDetails Constructors

Definition

Overloads

ReservationDetails()

Initializes a new instance of the ReservationDetails class.

ReservationDetails(String, String, String, IDictionary<String, String>, String, String, String, Nullable<Decimal>, Nullable<DateTime>, Nullable<Decimal>, String, Nullable<Decimal>)

Initializes a new instance of the ReservationDetails class.

ReservationDetails()

Initializes a new instance of the ReservationDetails class.

public ReservationDetails ();
Public Sub New ()

Applies to

ReservationDetails(String, String, String, IDictionary<String, String>, String, String, String, Nullable<Decimal>, Nullable<DateTime>, Nullable<Decimal>, String, Nullable<Decimal>)

Initializes a new instance of the ReservationDetails class.

public ReservationDetails (string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string reservationOrderId = default, string reservationId = default, string skuName = default, decimal? reservedHours = default, DateTime? usageDate = default, decimal? usedHours = default, string instanceId = default, decimal? totalReservedQuantity = default);
new Microsoft.Azure.Management.Consumption.Models.ReservationDetails : string * string * string * System.Collections.Generic.IDictionary<string, string> * string * string * string * Nullable<decimal> * Nullable<DateTime> * Nullable<decimal> * string * Nullable<decimal> -> Microsoft.Azure.Management.Consumption.Models.ReservationDetails
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional reservationOrderId As String = Nothing, Optional reservationId As String = Nothing, Optional skuName As String = Nothing, Optional reservedHours As Nullable(Of Decimal) = Nothing, Optional usageDate As Nullable(Of DateTime) = Nothing, Optional usedHours As Nullable(Of Decimal) = Nothing, Optional instanceId As String = Nothing, Optional totalReservedQuantity As Nullable(Of Decimal) = Nothing)

Parameters

id
String

Resource Id.

name
String

Resource name.

type
String

Resource type.

tags
IDictionary<String,String>

Resource tags.

reservationOrderId
String

The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.

reservationId
String

The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to.

skuName
String

This is the ARM Sku name. It can be used to join with the servicetype field in additoinalinfo in usage records.

reservedHours
Nullable<Decimal>

This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days.

usageDate
Nullable<DateTime>

The date on which consumption occurred.

usedHours
Nullable<Decimal>

This is the total hours used by the instance.

instanceId
String

This identifier is the name of the resource or the fully qualified Resource ID.

totalReservedQuantity
Nullable<Decimal>

This is the total count of instances that are reserved for the reservationid.

Applies to