Class: Azure::Consumption::Mgmt::V2019_05_01::Models::Marketplace

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

Overview

An marketplace resource.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #tags, #type

Class Method Summary collapse

Instance Attribute Details

#account_nameString

Returns Account name.

Returns:

  • (String)

    Account name.



73
74
75
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.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



87
88
89
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 87

def additional_properties
  @additional_properties
end

#billing_period_idString

belongs to.

Returns:

  • (String)

    The id of the billing period resource that the usage



17
18
19
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 17

def billing_period_id
  @billing_period_id
end

#consumed_quantityObject

Returns The quantity of usage.

Returns:

  • The quantity of usage.



52
53
54
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 52

def consumed_quantity
  @consumed_quantity
end

#consumed_serviceString

Returns Consumed service name.

Returns:

  • (String)

    Consumed service name.



79
80
81
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 79

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



83
84
85
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 83

def cost_center
  @cost_center
end

#currencyString

example, USD.

Returns:

  • (String)

    The ISO currency in which the meter is charged, for



49
50
51
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 49

def currency
  @currency
end

#department_nameString

Returns Department name.

Returns:

  • (String)

    Department name.



76
77
78
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 76

def department_name
  @department_name
end

#instance_idString

about.

Returns:

  • (String)

    The uri of the resource instance that the usage is



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

def instance_id
  @instance_id
end

#instance_nameString

about.

Returns:

  • (String)

    The name of the resource instance that the usage is



41
42
43
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 41

def instance_name
  @instance_name
end

#is_estimatedBoolean

Returns The estimated usage is subject to change.

Returns:

  • (Boolean)

    The estimated usage is subject to change.



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

def is_estimated
  @is_estimated
end

#is_recurring_chargeBoolean

not.

Returns:

  • (Boolean)

    Flag indicating whether this is a recurring charge or



97
98
99
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 97

def is_recurring_charge
  @is_recurring_charge
end

#meter_idObject

Returns The meter id (GUID).

Returns:

  • The meter id (GUID).



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

def meter_id
  @meter_id
end

#offer_nameString

Returns The type of offer.

Returns:

  • (String)

    The type of offer.



31
32
33
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 31

def offer_name
  @offer_name
end

#order_numberString

Returns The order number.

Returns:

  • (String)

    The order number.



37
38
39
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 37

def order_number
  @order_number
end

#plan_nameString

Returns The name of plan.

Returns:

  • (String)

    The name of plan.



93
94
95
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 93

def plan_name
  @plan_name
end

#pretax_costObject

Returns The amount of cost before tax.

Returns:

  • The amount of cost before tax.



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

def pretax_cost
  @pretax_cost
end

#publisher_nameString

Returns The name of publisher.

Returns:

  • (String)

    The name of publisher.



90
91
92
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 90

def publisher_name
  @publisher_name
end

#resource_groupString

Returns The name of resource group.

Returns:

  • (String)

    The name of resource group.



34
35
36
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 34

def resource_group
  @resource_group
end

#resource_rateObject

Returns The marketplace resource rate.

Returns:

  • The marketplace resource rate.



28
29
30
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 28

def resource_rate
  @resource_rate
end

#subscription_guidObject

Returns Subscription guid.

Returns:

  • Subscription guid.



67
68
69
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 67

def subscription_guid
  @subscription_guid
end

#subscription_nameString

Returns Subscription name.

Returns:

  • (String)

    Subscription name.



70
71
72
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 70

def subscription_name
  @subscription_name
end

#unit_of_measureString

Returns The unit of measure.

Returns:

  • (String)

    The unit of measure.



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

def unit_of_measure
  @unit_of_measure
end

#usage_endDateTime

detail.

Returns:

  • (DateTime)

    The end of the date time range covered by the usage



25
26
27
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 25

def usage_end
  @usage_end
end

#usage_startDateTime

usage detail.

Returns:

  • (DateTime)

    The start of the date time range covered by the



21
22
23
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 21

def usage_start
  @usage_start
end

Class Method Details

.mapperObject

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



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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
# File 'lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb', line 104

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Marketplace',
    type: {
      name: 'Composite',
      class_name: 'Marketplace',
      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'
          }
        },
        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'
          }
        },
        resource_rate: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.resourceRate',
          type: {
            name: 'Number'
          }
        },
        offer_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.offerName',
          type: {
            name: 'String'
          }
        },
        resource_group: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.resourceGroup',
          type: {
            name: 'String'
          }
        },
        order_number: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.orderNumber',
          type: {
            name: 'String'
          }
        },
        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'
          }
        },
        currency: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.currency',
          type: {
            name: 'String'
          }
        },
        consumed_quantity: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.consumedQuantity',
          type: {
            name: 'Number'
          }
        },
        unit_of_measure: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.unitOfMeasure',
          type: {
            name: 'String'
          }
        },
        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'
          }
        },
        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'
          }
        },
        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'
          }
        },
        publisher_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.publisherName',
          type: {
            name: 'String'
          }
        },
        plan_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.planName',
          type: {
            name: 'String'
          }
        },
        is_recurring_charge: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.isRecurringCharge',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end