azure_mgmt_consumption 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
  3. data/lib/2017-11-30/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
  4. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
  5. data/lib/2018-01-31/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
  6. data/lib/2018-01-31/generated/azure_mgmt_consumption/price_sheet.rb +28 -12
  7. data/lib/2018-03-31/generated/azure_mgmt_consumption.rb +84 -0
  8. data/lib/2018-03-31/generated/azure_mgmt_consumption/budgets.rb +993 -0
  9. data/lib/2018-03-31/generated/azure_mgmt_consumption/consumption_management_client.rb +289 -0
  10. data/lib/2018-03-31/generated/azure_mgmt_consumption/cost_tags_operations.rb +233 -0
  11. data/lib/2018-03-31/generated/azure_mgmt_consumption/get_balances_by_billing_account.rb +120 -0
  12. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces.rb +528 -0
  13. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_billing_account.rb +536 -0
  14. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_department.rb +536 -0
  15. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_enrollment_accounts.rb +536 -0
  16. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance.rb +281 -0
  17. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
  18. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
  19. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
  20. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget.rb +171 -0
  21. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
  22. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
  23. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
  24. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tag.rb +46 -0
  25. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tags.rb +90 -0
  26. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
  27. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
  28. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  29. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  30. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/filters.rb +134 -0
  31. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplace.rb +375 -0
  32. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
  33. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/meter_details.rb +122 -0
  34. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/notification.rb +139 -0
  35. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  36. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  37. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  38. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
  39. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +134 -0
  40. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  41. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  42. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
  43. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details.rb +187 -0
  44. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
  45. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations.rb +224 -0
  46. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
  47. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries.rb +205 -0
  48. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +101 -0
  49. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource.rb +91 -0
  50. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
  51. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tag.rb +46 -0
  52. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tags.rb +90 -0
  53. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
  54. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_detail.rb +355 -0
  55. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
  56. data/lib/2018-03-31/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  57. data/lib/2018-03-31/generated/azure_mgmt_consumption/operations.rb +216 -0
  58. data/lib/2018-03-31/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
  59. data/lib/2018-03-31/generated/azure_mgmt_consumption/reservation_recommendations_operations.rb +226 -0
  60. data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_details.rb +449 -0
  61. data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_summaries.rb +465 -0
  62. data/lib/2018-03-31/generated/azure_mgmt_consumption/tags_operations.rb +113 -0
  63. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details.rb +577 -0
  64. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_billing_account.rb +599 -0
  65. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_department.rb +592 -0
  66. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_enrollment_account.rb +599 -0
  67. data/lib/2018-05-31/generated/azure_mgmt_consumption.rb +49 -0
  68. data/lib/2018-05-31/generated/azure_mgmt_consumption/consumption_management_client.rb +144 -0
  69. data/lib/2018-05-31/generated/azure_mgmt_consumption/forecasts.rb +122 -0
  70. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/bound.rb +16 -0
  71. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
  72. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  73. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  74. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
  75. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
  76. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
  77. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/grain.rb +17 -0
  78. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/meter_details.rb +122 -0
  79. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  80. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  81. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  82. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
  83. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  84. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
  85. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/resource.rb +91 -0
  86. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_detail.rb +403 -0
  87. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
  88. data/lib/2018-05-31/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  89. data/lib/2018-05-31/generated/azure_mgmt_consumption/operations.rb +216 -0
  90. data/lib/2018-05-31/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
  91. data/lib/2018-05-31/generated/azure_mgmt_consumption/usage_details.rb +2289 -0
  92. data/lib/2018-06-30/generated/azure_mgmt_consumption.rb +85 -0
  93. data/lib/2018-06-30/generated/azure_mgmt_consumption/balances.rb +210 -0
  94. data/lib/2018-06-30/generated/azure_mgmt_consumption/budgets.rb +993 -0
  95. data/lib/2018-06-30/generated/azure_mgmt_consumption/consumption_management_client.rb +176 -0
  96. data/lib/2018-06-30/generated/azure_mgmt_consumption/cost_tags.rb +233 -0
  97. data/lib/2018-06-30/generated/azure_mgmt_consumption/forecasts.rb +122 -0
  98. data/lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb +2058 -0
  99. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance.rb +281 -0
  100. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
  101. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
  102. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
  103. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/bound.rb +16 -0
  104. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget.rb +171 -0
  105. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
  106. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
  107. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
  108. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
  109. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag.rb +90 -0
  110. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag_properties.rb +46 -0
  111. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
  112. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
  113. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  114. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  115. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/filters.rb +134 -0
  116. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
  117. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
  118. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
  119. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/grain.rb +17 -0
  120. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplace.rb +375 -0
  121. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
  122. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
  123. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/notification.rb +139 -0
  124. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  125. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  126. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  127. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
  128. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
  129. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  130. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  131. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
  132. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_detail.rb +187 -0
  133. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
  134. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +224 -0
  135. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
  136. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
  137. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summary.rb +205 -0
  138. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource.rb +91 -0
  139. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
  140. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tag.rb +46 -0
  141. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
  142. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
  143. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_detail.rb +415 -0
  144. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
  145. data/lib/2018-06-30/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  146. data/lib/2018-06-30/generated/azure_mgmt_consumption/operations.rb +216 -0
  147. data/lib/2018-06-30/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
  148. data/lib/2018-06-30/generated/azure_mgmt_consumption/reservation_recommendations.rb +226 -0
  149. data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_details.rb +449 -0
  150. data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_summaries.rb +465 -0
  151. data/lib/2018-06-30/generated/azure_mgmt_consumption/tags.rb +113 -0
  152. data/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb +2289 -0
  153. data/lib/azure_mgmt_consumption.rb +4 -1
  154. data/lib/profiles/latest/modules/consumption_profile_module.rb +160 -78
  155. data/lib/version.rb +1 -1
  156. metadata +150 -4
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Consumption::Mgmt::V2018_06_30
7
+ module Models
8
+ #
9
+ # Defines values for TimeGrainType
10
+ #
11
+ module TimeGrainType
12
+ Monthly = "Monthly"
13
+ Quarterly = "Quarterly"
14
+ Annually = "Annually"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,415 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Consumption::Mgmt::V2018_06_30
7
+ module Models
8
+ #
9
+ # An usage detail resource.
10
+ #
11
+ class UsageDetail < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The id of the billing period resource that the usage
16
+ # belongs to.
17
+ attr_accessor :billing_period_id
18
+
19
+ # @return [String] The id of the invoice resource that the usage belongs
20
+ # to.
21
+ attr_accessor :invoice_id
22
+
23
+ # @return [DateTime] The start of the date time range covered by the
24
+ # usage detail.
25
+ attr_accessor :usage_start
26
+
27
+ # @return [DateTime] The end of the date time range covered by the usage
28
+ # detail.
29
+ attr_accessor :usage_end
30
+
31
+ # @return [String] The name of the resource instance that the usage is
32
+ # about.
33
+ attr_accessor :instance_name
34
+
35
+ # @return [String] The uri of the resource instance that the usage is
36
+ # about.
37
+ attr_accessor :instance_id
38
+
39
+ # @return [String] The location of the resource instance that the usage
40
+ # is about.
41
+ attr_accessor :instance_location
42
+
43
+ # @return [String] The ISO currency in which the meter is charged, for
44
+ # example, USD.
45
+ attr_accessor :currency
46
+
47
+ # @return The quantity of usage.
48
+ attr_accessor :usage_quantity
49
+
50
+ # @return The billable usage quantity.
51
+ attr_accessor :billable_quantity
52
+
53
+ # @return The amount of cost before tax.
54
+ attr_accessor :pretax_cost
55
+
56
+ # @return [Boolean] The estimated usage is subject to change.
57
+ attr_accessor :is_estimated
58
+
59
+ # @return The meter id (GUID).
60
+ attr_accessor :meter_id
61
+
62
+ # @return [MeterDetails] The details about the meter. By default this is
63
+ # not populated, unless it's specified in $expand.
64
+ attr_accessor :meter_details
65
+
66
+ # @return Subscription guid.
67
+ attr_accessor :subscription_guid
68
+
69
+ # @return [String] Subscription name.
70
+ attr_accessor :subscription_name
71
+
72
+ # @return [String] Account name.
73
+ attr_accessor :account_name
74
+
75
+ # @return [String] Department name.
76
+ attr_accessor :department_name
77
+
78
+ # @return [String] Product name.
79
+ attr_accessor :product
80
+
81
+ # @return [String] Consumed service name.
82
+ attr_accessor :consumed_service
83
+
84
+ # @return [String] The cost center of this department if it is a
85
+ # department and a costcenter exists
86
+ attr_accessor :cost_center
87
+
88
+ # @return [String] Part Number
89
+ attr_accessor :part_number
90
+
91
+ # @return [String] Resource Guid
92
+ attr_accessor :resource_guid
93
+
94
+ # @return [String] Offer Id
95
+ attr_accessor :offer_id
96
+
97
+ # @return [Boolean] Charges billed separately
98
+ attr_accessor :charges_billed_separately
99
+
100
+ # @return [String] Resource Location
101
+ attr_accessor :location
102
+
103
+ # @return [String] Additional details of this usage item. By default this
104
+ # is not populated, unless it's specified in $expand.
105
+ attr_accessor :additional_properties
106
+
107
+
108
+ #
109
+ # Mapper for UsageDetail class as Ruby Hash.
110
+ # This will be used for serialization/deserialization.
111
+ #
112
+ def self.mapper()
113
+ {
114
+ client_side_validation: true,
115
+ required: false,
116
+ serialized_name: 'UsageDetail',
117
+ type: {
118
+ name: 'Composite',
119
+ class_name: 'UsageDetail',
120
+ model_properties: {
121
+ id: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ read_only: true,
125
+ serialized_name: 'id',
126
+ type: {
127
+ name: 'String'
128
+ }
129
+ },
130
+ name: {
131
+ client_side_validation: true,
132
+ required: false,
133
+ read_only: true,
134
+ serialized_name: 'name',
135
+ type: {
136
+ name: 'String'
137
+ }
138
+ },
139
+ type: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ read_only: true,
143
+ serialized_name: 'type',
144
+ type: {
145
+ name: 'String'
146
+ }
147
+ },
148
+ tags: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ read_only: true,
152
+ serialized_name: 'tags',
153
+ type: {
154
+ name: 'Dictionary',
155
+ value: {
156
+ client_side_validation: true,
157
+ required: false,
158
+ serialized_name: 'StringElementType',
159
+ type: {
160
+ name: 'String'
161
+ }
162
+ }
163
+ }
164
+ },
165
+ billing_period_id: {
166
+ client_side_validation: true,
167
+ required: false,
168
+ read_only: true,
169
+ serialized_name: 'properties.billingPeriodId',
170
+ type: {
171
+ name: 'String'
172
+ }
173
+ },
174
+ invoice_id: {
175
+ client_side_validation: true,
176
+ required: false,
177
+ read_only: true,
178
+ serialized_name: 'properties.invoiceId',
179
+ type: {
180
+ name: 'String'
181
+ }
182
+ },
183
+ usage_start: {
184
+ client_side_validation: true,
185
+ required: false,
186
+ read_only: true,
187
+ serialized_name: 'properties.usageStart',
188
+ type: {
189
+ name: 'DateTime'
190
+ }
191
+ },
192
+ usage_end: {
193
+ client_side_validation: true,
194
+ required: false,
195
+ read_only: true,
196
+ serialized_name: 'properties.usageEnd',
197
+ type: {
198
+ name: 'DateTime'
199
+ }
200
+ },
201
+ instance_name: {
202
+ client_side_validation: true,
203
+ required: false,
204
+ read_only: true,
205
+ serialized_name: 'properties.instanceName',
206
+ type: {
207
+ name: 'String'
208
+ }
209
+ },
210
+ instance_id: {
211
+ client_side_validation: true,
212
+ required: false,
213
+ read_only: true,
214
+ serialized_name: 'properties.instanceId',
215
+ type: {
216
+ name: 'String'
217
+ }
218
+ },
219
+ instance_location: {
220
+ client_side_validation: true,
221
+ required: false,
222
+ read_only: true,
223
+ serialized_name: 'properties.instanceLocation',
224
+ type: {
225
+ name: 'String'
226
+ }
227
+ },
228
+ currency: {
229
+ client_side_validation: true,
230
+ required: false,
231
+ read_only: true,
232
+ serialized_name: 'properties.currency',
233
+ type: {
234
+ name: 'String'
235
+ }
236
+ },
237
+ usage_quantity: {
238
+ client_side_validation: true,
239
+ required: false,
240
+ read_only: true,
241
+ serialized_name: 'properties.usageQuantity',
242
+ type: {
243
+ name: 'Number'
244
+ }
245
+ },
246
+ billable_quantity: {
247
+ client_side_validation: true,
248
+ required: false,
249
+ read_only: true,
250
+ serialized_name: 'properties.billableQuantity',
251
+ type: {
252
+ name: 'Number'
253
+ }
254
+ },
255
+ pretax_cost: {
256
+ client_side_validation: true,
257
+ required: false,
258
+ read_only: true,
259
+ serialized_name: 'properties.pretaxCost',
260
+ type: {
261
+ name: 'Number'
262
+ }
263
+ },
264
+ is_estimated: {
265
+ client_side_validation: true,
266
+ required: false,
267
+ read_only: true,
268
+ serialized_name: 'properties.isEstimated',
269
+ type: {
270
+ name: 'Boolean'
271
+ }
272
+ },
273
+ meter_id: {
274
+ client_side_validation: true,
275
+ required: false,
276
+ read_only: true,
277
+ serialized_name: 'properties.meterId',
278
+ type: {
279
+ name: 'String'
280
+ }
281
+ },
282
+ meter_details: {
283
+ client_side_validation: true,
284
+ required: false,
285
+ read_only: true,
286
+ serialized_name: 'properties.meterDetails',
287
+ type: {
288
+ name: 'Composite',
289
+ class_name: 'MeterDetails'
290
+ }
291
+ },
292
+ subscription_guid: {
293
+ client_side_validation: true,
294
+ required: false,
295
+ read_only: true,
296
+ serialized_name: 'properties.subscriptionGuid',
297
+ type: {
298
+ name: 'String'
299
+ }
300
+ },
301
+ subscription_name: {
302
+ client_side_validation: true,
303
+ required: false,
304
+ read_only: true,
305
+ serialized_name: 'properties.subscriptionName',
306
+ type: {
307
+ name: 'String'
308
+ }
309
+ },
310
+ account_name: {
311
+ client_side_validation: true,
312
+ required: false,
313
+ read_only: true,
314
+ serialized_name: 'properties.accountName',
315
+ type: {
316
+ name: 'String'
317
+ }
318
+ },
319
+ department_name: {
320
+ client_side_validation: true,
321
+ required: false,
322
+ read_only: true,
323
+ serialized_name: 'properties.departmentName',
324
+ type: {
325
+ name: 'String'
326
+ }
327
+ },
328
+ product: {
329
+ client_side_validation: true,
330
+ required: false,
331
+ read_only: true,
332
+ serialized_name: 'properties.product',
333
+ type: {
334
+ name: 'String'
335
+ }
336
+ },
337
+ consumed_service: {
338
+ client_side_validation: true,
339
+ required: false,
340
+ read_only: true,
341
+ serialized_name: 'properties.consumedService',
342
+ type: {
343
+ name: 'String'
344
+ }
345
+ },
346
+ cost_center: {
347
+ client_side_validation: true,
348
+ required: false,
349
+ read_only: true,
350
+ serialized_name: 'properties.costCenter',
351
+ type: {
352
+ name: 'String'
353
+ }
354
+ },
355
+ part_number: {
356
+ client_side_validation: true,
357
+ required: false,
358
+ read_only: true,
359
+ serialized_name: 'properties.partNumber',
360
+ type: {
361
+ name: 'String'
362
+ }
363
+ },
364
+ resource_guid: {
365
+ client_side_validation: true,
366
+ required: false,
367
+ read_only: true,
368
+ serialized_name: 'properties.resourceGuid',
369
+ type: {
370
+ name: 'String'
371
+ }
372
+ },
373
+ offer_id: {
374
+ client_side_validation: true,
375
+ required: false,
376
+ read_only: true,
377
+ serialized_name: 'properties.offerId',
378
+ type: {
379
+ name: 'String'
380
+ }
381
+ },
382
+ charges_billed_separately: {
383
+ client_side_validation: true,
384
+ required: false,
385
+ read_only: true,
386
+ serialized_name: 'properties.chargesBilledSeparately',
387
+ type: {
388
+ name: 'Boolean'
389
+ }
390
+ },
391
+ location: {
392
+ client_side_validation: true,
393
+ required: false,
394
+ read_only: true,
395
+ serialized_name: 'properties.location',
396
+ type: {
397
+ name: 'String'
398
+ }
399
+ },
400
+ additional_properties: {
401
+ client_side_validation: true,
402
+ required: false,
403
+ read_only: true,
404
+ serialized_name: 'properties.additionalProperties',
405
+ type: {
406
+ name: 'String'
407
+ }
408
+ }
409
+ }
410
+ }
411
+ }
412
+ end
413
+ end
414
+ end
415
+ end
@@ -0,0 +1,101 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Consumption::Mgmt::V2018_06_30
7
+ module Models
8
+ #
9
+ # Result of listing usage details. It contains a list of available usage
10
+ # details in reverse chronological order by billing period.
11
+ #
12
+ class UsageDetailsListResult
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [Array<UsageDetail>] The list of usage details.
18
+ attr_accessor :value
19
+
20
+ # @return [String] The link (url) to the next page of results.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<UsageDetail>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [UsageDetailsListResult] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for UsageDetailsListResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'UsageDetailsListResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'UsageDetailsListResult',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'UsageDetailElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'UsageDetail'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'nextLink',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end