Share via


ArmConsumptionModelFactory.ConsumptionReservationDetail Method

Definition

Initializes a new instance of ConsumptionReservationDetail.

public static Azure.ResourceManager.Consumption.Models.ConsumptionReservationDetail ConsumptionReservationDetail (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string reservationOrderId = default, string instanceFlexibilityRatio = default, string instanceFlexibilityGroup = default, string reservationId = default, string skuName = default, decimal? reservedHours = default, DateTimeOffset? consumptionOccurredOn = default, decimal? usedHours = default, Azure.Core.ResourceIdentifier instanceId = default, decimal? totalReservedQuantity = default, string kind = default, Azure.ETag? etag = default, System.Collections.Generic.IReadOnlyDictionary<string,string> tags = default);
static member ConsumptionReservationDetail : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * string * string * string * Nullable<decimal> * Nullable<DateTimeOffset> * Nullable<decimal> * Azure.Core.ResourceIdentifier * Nullable<decimal> * string * Nullable<Azure.ETag> * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.ResourceManager.Consumption.Models.ConsumptionReservationDetail
Public Shared Function ConsumptionReservationDetail (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional reservationOrderId As String = Nothing, Optional instanceFlexibilityRatio As String = Nothing, Optional instanceFlexibilityGroup As String = Nothing, Optional reservationId As String = Nothing, Optional skuName As String = Nothing, Optional reservedHours As Nullable(Of Decimal) = Nothing, Optional consumptionOccurredOn As Nullable(Of DateTimeOffset) = Nothing, Optional usedHours As Nullable(Of Decimal) = Nothing, Optional instanceId As ResourceIdentifier = Nothing, Optional totalReservedQuantity As Nullable(Of Decimal) = Nothing, Optional kind As String = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional tags As IReadOnlyDictionary(Of String, String) = Nothing) As ConsumptionReservationDetail

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

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.

instanceFlexibilityRatio
String

The instance Flexibility Ratio.

instanceFlexibilityGroup
String

The instance Flexibility Group.

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 additional info 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.

consumptionOccurredOn
Nullable<DateTimeOffset>

The date on which consumption occurred.

usedHours
Nullable<Decimal>

This is the total hours used by the instance.

instanceId
ResourceIdentifier

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.

kind
String

The reservation kind.

etag
Nullable<ETag>

The etag for the resource.

tags
IReadOnlyDictionary<String,String>

Resource tags.

Returns

A new ConsumptionReservationDetail instance for mocking.

Applies to