Class: Azure::Consumption::Mgmt::V2017_11_30::Models::UsageDetail

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb

Overview

An usage detail 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 Account name.

Returns:

  • (String)

    Account name.



73
74
75
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 73

def 
  @account_name
end

#additional_propertiesString

is not populated, unless it’s specified in $expand.

Returns:

  • (String)

    Additional details of this usage item. By default this



90
91
92
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 90

def additional_properties
  @additional_properties
end

#billable_quantityObject

Returns The billable usage quantity.

Returns:

  • The billable usage quantity.



51
52
53
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 51

def billable_quantity
  @billable_quantity
end

#billing_period_idString

belongs to.

Returns:

  • (String)

    The id of the billing period resource that the usage



17
18
19
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 17

def billing_period_id
  @billing_period_id
end

#consumed_serviceString

Returns Consumed service name.

Returns:

  • (String)

    Consumed service name.



82
83
84
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 82

def consumed_service
  @consumed_service
end

#cost_centerString

department and a costcenter exists

Returns:

  • (String)

    The cost center of this department if it is a



86
87
88
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 86

def cost_center
  @cost_center
end

#currencyString

example, USD.

Returns:

  • (String)

    The ISO currency in which the meter is charged, for



45
46
47
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 45

def currency
  @currency
end

#department_nameString

Returns Department name.

Returns:

  • (String)

    Department name.



76
77
78
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 76

def department_name
  @department_name
end

#instance_idString

about.

Returns:

  • (String)

    The uri of the resource instance that the usage is



37
38
39
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 37

def instance_id
  @instance_id
end

#instance_locationString

is about.

Returns:

  • (String)

    The location of the resource instance that the usage



41
42
43
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 41

def instance_location
  @instance_location
end

#instance_nameString

about.

Returns:

  • (String)

    The name of the resource instance that the usage is



33
34
35
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 33

def instance_name
  @instance_name
end

#invoice_idString

to.

Returns:

  • (String)

    The id of the invoice resource that the usage belongs



21
22
23
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 21

def invoice_id
  @invoice_id
end

#is_estimatedBoolean

Returns The estimated usage is subject to change.

Returns:

  • (Boolean)

    The estimated usage is subject to change.



57
58
59
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 57

def is_estimated
  @is_estimated
end

#meter_detailsMeterDetails

not populated, unless it’s specified in $expand.

Returns:

  • (MeterDetails)

    The details about the meter. By default this is



64
65
66
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 64

def meter_details
  @meter_details
end

#meter_idString

Returns The meter id.

Returns:

  • (String)

    The meter id.



60
61
62
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 60

def meter_id
  @meter_id
end

#pretax_costObject

Returns The amount of cost before tax.

Returns:

  • The amount of cost before tax.



54
55
56
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 54

def pretax_cost
  @pretax_cost
end

#productString

Returns Product name.

Returns:

  • (String)

    Product name.



79
80
81
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 79

def product
  @product
end

#subscription_guidString

Returns Subscription guid.

Returns:

  • (String)

    Subscription guid.



67
68
69
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 67

def subscription_guid
  @subscription_guid
end

#subscription_nameString

Returns Subscription name.

Returns:

  • (String)

    Subscription name.



70
71
72
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 70

def subscription_name
  @subscription_name
end

#usage_endDateTime

detail.

Returns:

  • (DateTime)

    The end of the date time range covered by the usage



29
30
31
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 29

def usage_end
  @usage_end
end

#usage_quantityObject

Returns The quantity of usage.

Returns:

  • The quantity of usage.



48
49
50
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 48

def usage_quantity
  @usage_quantity
end

#usage_startDateTime

usage detail.

Returns:

  • (DateTime)

    The start of the date time range covered by the



25
26
27
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 25

def usage_start
  @usage_start
end

Class Method Details

.mapperObject

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



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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
# File 'lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb', line 97

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'UsageDetail',
    type: {
      name: 'Composite',
      class_name: 'UsageDetail',
      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'
                }
            }
          }
        },
        billing_period_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.billingPeriodId',
          type: {
            name: 'String'
          }
        },
        invoice_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.invoiceId',
          type: {
            name: 'String'
          }
        },
        usage_start: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.usageStart',
          type: {
            name: 'DateTime'
          }
        },
        usage_end: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.usageEnd',
          type: {
            name: 'DateTime'
          }
        },
        instance_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.instanceName',
          type: {
            name: 'String'
          }
        },
        instance_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.instanceId',
          type: {
            name: 'String'
          }
        },
        instance_location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.instanceLocation',
          type: {
            name: 'String'
          }
        },
        currency: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.currency',
          type: {
            name: 'String'
          }
        },
        usage_quantity: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.usageQuantity',
          type: {
            name: 'Number'
          }
        },
        billable_quantity: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.billableQuantity',
          type: {
            name: 'Number'
          }
        },
        pretax_cost: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.pretaxCost',
          type: {
            name: 'Number'
          }
        },
        is_estimated: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.isEstimated',
          type: {
            name: 'Boolean'
          }
        },
        meter_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.meterId',
          type: {
            name: 'String'
          }
        },
        meter_details: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.meterDetails',
          type: {
            name: 'Composite',
            class_name: 'MeterDetails'
          }
        },
        subscription_guid: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.subscriptionGuid',
          type: {
            name: 'String'
          }
        },
        subscription_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.subscriptionName',
          type: {
            name: 'String'
          }
        },
        account_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.accountName',
          type: {
            name: 'String'
          }
        },
        department_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.departmentName',
          type: {
            name: 'String'
          }
        },
        product: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.product',
          type: {
            name: 'String'
          }
        },
        consumed_service: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.consumedService',
          type: {
            name: 'String'
          }
        },
        cost_center: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.costCenter',
          type: {
            name: 'String'
          }
        },
        additional_properties: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.additionalProperties',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end