ArmConsumptionModelFactory.ConsumptionReservationTransaction Method

Definition

Initializes a new instance of ConsumptionReservationTransaction.

public static Azure.ResourceManager.Consumption.Models.ConsumptionReservationTransaction ConsumptionReservationTransaction (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, DateTimeOffset? transactOn = default, string reservationOrderId = default, string description = default, string eventType = default, decimal? quantity = default, decimal? amount = default, string currency = default, string reservationOrderName = default, string purchasingEnrollment = default, Guid? purchasingSubscriptionGuid = default, string purchasingSubscriptionName = default, string armSkuName = default, string term = default, string region = default, string accountName = default, string accountOwnerEmail = default, string departmentName = default, string costCenter = default, string currentEnrollment = default, string billingFrequency = default, int? billingMonth = default, decimal? monetaryCommitment = default, decimal? overage = default, System.Collections.Generic.IEnumerable<string> tags = default);
static member ConsumptionReservationTransaction : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<DateTimeOffset> * string * string * string * Nullable<decimal> * Nullable<decimal> * string * string * string * Nullable<Guid> * string * string * string * string * string * string * string * string * string * string * Nullable<int> * Nullable<decimal> * Nullable<decimal> * seq<string> -> Azure.ResourceManager.Consumption.Models.ConsumptionReservationTransaction
Public Shared Function ConsumptionReservationTransaction (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional transactOn As Nullable(Of DateTimeOffset) = Nothing, Optional reservationOrderId As String = Nothing, Optional description As String = Nothing, Optional eventType As String = Nothing, Optional quantity As Nullable(Of Decimal) = Nothing, Optional amount As Nullable(Of Decimal) = Nothing, Optional currency As String = Nothing, Optional reservationOrderName As String = Nothing, Optional purchasingEnrollment As String = Nothing, Optional purchasingSubscriptionGuid As Nullable(Of Guid) = Nothing, Optional purchasingSubscriptionName As String = Nothing, Optional armSkuName As String = Nothing, Optional term As String = Nothing, Optional region As String = Nothing, Optional accountName As String = Nothing, Optional accountOwnerEmail As String = Nothing, Optional departmentName As String = Nothing, Optional costCenter As String = Nothing, Optional currentEnrollment As String = Nothing, Optional billingFrequency As String = Nothing, Optional billingMonth As Nullable(Of Integer) = Nothing, Optional monetaryCommitment As Nullable(Of Decimal) = Nothing, Optional overage As Nullable(Of Decimal) = Nothing, Optional tags As IEnumerable(Of String) = Nothing) As ConsumptionReservationTransaction

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

transactOn
Nullable<DateTimeOffset>

The date of the transaction.

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.

description
String

The description of the transaction.

eventType
String

The type of the transaction (Purchase, Cancel or Refund).

quantity
Nullable<Decimal>

The quantity of the transaction.

amount
Nullable<Decimal>

The charge of the transaction.

currency
String

The ISO currency in which the transaction is charged, for example, USD.

reservationOrderName
String

The name of the reservation order.

purchasingEnrollment
String

The purchasing enrollment.

purchasingSubscriptionGuid
Nullable<Guid>

The subscription guid that makes the transaction.

purchasingSubscriptionName
String

The subscription name that makes the transaction.

armSkuName
String

This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records.

term
String

This is the term of the transaction.

region
String

The region of the transaction.

accountName
String

The name of the account that makes the transaction.

accountOwnerEmail
String

The email of the account owner that makes the transaction.

departmentName
String

The department name.

costCenter
String

The cost center of this department if it is a department and a cost center is provided.

currentEnrollment
String

The current enrollment.

billingFrequency
String

The billing frequency, which can be either one-time or recurring.

billingMonth
Nullable<Int32>

The billing month(yyyyMMdd), on which the event initiated.

monetaryCommitment
Nullable<Decimal>

The monetary commitment amount at the enrollment scope.

overage
Nullable<Decimal>

The overage amount at the enrollment scope.

tags
IEnumerable<String>

Resource tags.

Returns

A new ConsumptionReservationTransaction instance for mocking.

Applies to