Class: Azure::Consumption::Mgmt::V2019_10_01::Models::ReservationTransaction

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb

Overview

Reservation transaction resource.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #tags, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#account_nameString

Returns The name of the account that makes the transaction.

Returns:

  • (String)

    The name of the account that makes the transaction.


64
65
66
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 64

def 
  @account_name
end

#account_owner_emailString

transaction.

Returns:

  • (String)

    The email of the account owner that makes the


68
69
70
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 68

def 
  @account_owner_email
end

#amountObject

Returns The charge of the transaction.

Returns:

  • The charge of the transaction.


35
36
37
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 35

def amount
  @amount
end

#arm_sku_nameString

the serviceType field in additional info in usage records.

Returns:

  • (String)

    This is the ARM Sku name. It can be used to join with


55
56
57
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 55

def arm_sku_name
  @arm_sku_name
end

#billing_frequencyString

recurring.

Returns:

  • (String)

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


82
83
84
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 82

def billing_frequency
  @billing_frequency
end

#cost_centerString

department and a cost center is provided.

Returns:

  • (String)

    The cost center of this department if it is a


75
76
77
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 75

def cost_center
  @cost_center
end

#currencyString

for example, USD.

Returns:

  • (String)

    The ISO currency in which the transaction is charged,


39
40
41
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 39

def currency
  @currency
end

#current_enrollmentString

Returns The current enrollment.

Returns:

  • (String)

    The current enrollment.


78
79
80
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 78

def current_enrollment
  @current_enrollment
end

#department_nameString

Returns The department name.

Returns:

  • (String)

    The department name.


71
72
73
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 71

def department_name
  @department_name
end

#descriptionString

Returns The description of the transaction.

Returns:

  • (String)

    The description of the transaction.


26
27
28
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 26

def description
  @description
end

#event_dateDateTime

Returns The date of the transaction.

Returns:

  • (DateTime)

    The date of the transaction


16
17
18
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 16

def event_date
  @event_date
end

#event_typeString

Returns The type of the transaction (Purchase, Cancel, etc.).

Returns:

  • (String)

    The type of the transaction (Purchase, Cancel, etc.)


29
30
31
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 29

def event_type
  @event_type
end

#purchasing_enrollmentString

Returns The purchasing enrollment.

Returns:

  • (String)

    The purchasing enrollment.


45
46
47
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 45

def purchasing_enrollment
  @purchasing_enrollment
end

#purchasing_subscription_guidObject

Returns The subscription guid that makes the transaction.

Returns:

  • The subscription guid that makes the transaction.


48
49
50
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 48

def purchasing_subscription_guid
  @purchasing_subscription_guid
end

#purchasing_subscription_nameString

Returns The subscription name that makes the transaction.

Returns:

  • (String)

    The subscription name that makes the transaction.


51
52
53
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 51

def purchasing_subscription_name
  @purchasing_subscription_name
end

#quantityObject

Returns The quantity of the transaction.

Returns:

  • The quantity of the transaction.


32
33
34
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 32

def quantity
  @quantity
end

#regionString

Returns The region of the transaction.

Returns:

  • (String)

    The region of the transaction.


61
62
63
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 61

def region
  @region
end

#reservation_order_idString

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.

Returns:

  • (String)

    The reservation order ID is the identifier for a


23
24
25
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 23

def reservation_order_id
  @reservation_order_id
end

#reservation_order_nameString

Returns The name of the reservation order.

Returns:

  • (String)

    The name of the reservation order.


42
43
44
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 42

def reservation_order_name
  @reservation_order_name
end

#termString

Returns This is the term of the transaction.

Returns:

  • (String)

    This is the term of the transaction.


58
59
60
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 58

def term
  @term
end

Class Method Details

.mapperObject

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

[View source]

89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
# 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