class Azure::Consumption::Mgmt::V2019_10_01::Models::ReservationTransaction

Reservation transaction resource.

Attributes

account_name[RW]

@return [String] The name of the account that makes the transaction.

account_owner_email[RW]

@return [String] The email of the account owner that makes the transaction.

amount[RW]

@return The charge of the transaction.

arm_sku_name[RW]

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

billing_frequency[RW]

@return [String] The billing frequency, which can be either one-time or recurring.

cost_center[RW]

@return [String] The cost center of this department if it is a department and a cost center is provided.

currency[RW]

@return [String] The ISO currency in which the transaction is charged, for example, USD.

current_enrollment[RW]

@return [String] The current enrollment.

department_name[RW]

@return [String] The department name.

description[RW]

@return [String] The description of the transaction.

event_date[RW]

@return [DateTime] The date of the transaction

event_type[RW]

@return [String] The type of the transaction (Purchase, Cancel, etc.)

purchasing_enrollment[RW]

@return [String] The purchasing enrollment.

purchasing_subscription_guid[RW]

@return The subscription guid that makes the transaction.

purchasing_subscription_name[RW]

@return [String] The subscription name that makes the transaction.

quantity[RW]

@return The quantity of the transaction.

region[RW]

@return [String] The region of the transaction.

reservation_order_id[RW]

@return [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.

reservation_order_name[RW]

@return [String] The name of the reservation order.

term[RW]

@return [String] This is the term of the transaction.

Private Class Methods

mapper() click to toggle source

Mapper for ReservationTransaction class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb, line 89
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ReservationTransaction',
    type: {
      name: 'Composite',
      class_name: 'ReservationTransaction',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        event_date: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.eventDate',
          type: {
            name: 'DateTime'
          }
        },
        reservation_order_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.reservationOrderId',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.description',
          type: {
            name: 'String'
          }
        },
        event_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.eventType',
          type: {
            name: 'String'
          }
        },
        quantity: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.quantity',
          type: {
            name: 'Number'
          }
        },
        amount: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.amount',
          type: {
            name: 'Number'
          }
        },
        currency: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.currency',
          type: {
            name: 'String'
          }
        },
        reservation_order_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.reservationOrderName',
          type: {
            name: 'String'
          }
        },
        purchasing_enrollment: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.purchasingEnrollment',
          type: {
            name: 'String'
          }
        },
        purchasing_subscription_guid: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.purchasingSubscriptionGuid',
          type: {
            name: 'String'
          }
        },
        purchasing_subscription_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.purchasingSubscriptionName',
          type: {
            name: 'String'
          }
        },
        arm_sku_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.armSkuName',
          type: {
            name: 'String'
          }
        },
        term: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.term',
          type: {
            name: 'String'
          }
        },
        region: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.region',
          type: {
            name: 'String'
          }
        },
        account_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.accountName',
          type: {
            name: 'String'
          }
        },
        account_owner_email: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.accountOwnerEmail',
          type: {
            name: 'String'
          }
        },
        department_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.departmentName',
          type: {
            name: 'String'
          }
        },
        cost_center: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.costCenter',
          type: {
            name: 'String'
          }
        },
        current_enrollment: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.currentEnrollment',
          type: {
            name: 'String'
          }
        },
        billing_frequency: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.billingFrequency',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end