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,281 @@
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
+ # A balance resource.
10
+ #
11
+ class Balance < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The ISO currency in which the meter is charged, for
16
+ # example, USD.
17
+ attr_accessor :currency
18
+
19
+ # @return The beginning balance for the billing period.
20
+ attr_accessor :beginning_balance
21
+
22
+ # @return The ending balance for the billing period (for open periods
23
+ # this will be updated daily).
24
+ attr_accessor :ending_balance
25
+
26
+ # @return Total new purchase amount.
27
+ attr_accessor :new_purchases
28
+
29
+ # @return Total adjustment amount.
30
+ attr_accessor :adjustments
31
+
32
+ # @return Total Commitment usage.
33
+ attr_accessor :utilized
34
+
35
+ # @return Overage for Azure services.
36
+ attr_accessor :service_overage
37
+
38
+ # @return Charges Billed separately.
39
+ attr_accessor :charges_billed_separately
40
+
41
+ # @return serviceOverage + chargesBilledSeparately.
42
+ attr_accessor :total_overage
43
+
44
+ # @return Azure service commitment + total Overage.
45
+ attr_accessor :total_usage
46
+
47
+ # @return Total charges for Azure Marketplace.
48
+ attr_accessor :azure_marketplace_service_charges
49
+
50
+ # @return [BillingFrequency] The billing frequency. Possible values
51
+ # include: 'Month', 'Quarter', 'Year'
52
+ attr_accessor :billing_frequency
53
+
54
+ # @return [Boolean] Price is hidden or not.
55
+ attr_accessor :price_hidden
56
+
57
+ # @return [Array<BalancePropertiesNewPurchasesDetailsItem>] List of new
58
+ # purchases.
59
+ attr_accessor :new_purchases_details
60
+
61
+ # @return [Array<BalancePropertiesAdjustmentDetailsItem>] List of
62
+ # Adjustments (Promo credit, SIE credit etc.).
63
+ attr_accessor :adjustment_details
64
+
65
+
66
+ #
67
+ # Mapper for Balance class as Ruby Hash.
68
+ # This will be used for serialization/deserialization.
69
+ #
70
+ def self.mapper()
71
+ {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'Balance',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'Balance',
78
+ model_properties: {
79
+ id: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ read_only: true,
83
+ serialized_name: 'id',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ name: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ read_only: true,
92
+ serialized_name: 'name',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ },
97
+ type: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ read_only: true,
101
+ serialized_name: 'type',
102
+ type: {
103
+ name: 'String'
104
+ }
105
+ },
106
+ tags: {
107
+ client_side_validation: true,
108
+ required: false,
109
+ read_only: true,
110
+ serialized_name: 'tags',
111
+ type: {
112
+ name: 'Dictionary',
113
+ value: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ serialized_name: 'StringElementType',
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ }
121
+ }
122
+ },
123
+ currency: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ read_only: true,
127
+ serialized_name: 'properties.currency',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ },
132
+ beginning_balance: {
133
+ client_side_validation: true,
134
+ required: false,
135
+ read_only: true,
136
+ serialized_name: 'properties.beginningBalance',
137
+ type: {
138
+ name: 'Number'
139
+ }
140
+ },
141
+ ending_balance: {
142
+ client_side_validation: true,
143
+ required: false,
144
+ read_only: true,
145
+ serialized_name: 'properties.endingBalance',
146
+ type: {
147
+ name: 'Number'
148
+ }
149
+ },
150
+ new_purchases: {
151
+ client_side_validation: true,
152
+ required: false,
153
+ read_only: true,
154
+ serialized_name: 'properties.newPurchases',
155
+ type: {
156
+ name: 'Number'
157
+ }
158
+ },
159
+ adjustments: {
160
+ client_side_validation: true,
161
+ required: false,
162
+ read_only: true,
163
+ serialized_name: 'properties.adjustments',
164
+ type: {
165
+ name: 'Number'
166
+ }
167
+ },
168
+ utilized: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ read_only: true,
172
+ serialized_name: 'properties.utilized',
173
+ type: {
174
+ name: 'Number'
175
+ }
176
+ },
177
+ service_overage: {
178
+ client_side_validation: true,
179
+ required: false,
180
+ read_only: true,
181
+ serialized_name: 'properties.serviceOverage',
182
+ type: {
183
+ name: 'Number'
184
+ }
185
+ },
186
+ charges_billed_separately: {
187
+ client_side_validation: true,
188
+ required: false,
189
+ read_only: true,
190
+ serialized_name: 'properties.chargesBilledSeparately',
191
+ type: {
192
+ name: 'Number'
193
+ }
194
+ },
195
+ total_overage: {
196
+ client_side_validation: true,
197
+ required: false,
198
+ read_only: true,
199
+ serialized_name: 'properties.totalOverage',
200
+ type: {
201
+ name: 'Number'
202
+ }
203
+ },
204
+ total_usage: {
205
+ client_side_validation: true,
206
+ required: false,
207
+ read_only: true,
208
+ serialized_name: 'properties.totalUsage',
209
+ type: {
210
+ name: 'Number'
211
+ }
212
+ },
213
+ azure_marketplace_service_charges: {
214
+ client_side_validation: true,
215
+ required: false,
216
+ read_only: true,
217
+ serialized_name: 'properties.azureMarketplaceServiceCharges',
218
+ type: {
219
+ name: 'Number'
220
+ }
221
+ },
222
+ billing_frequency: {
223
+ client_side_validation: true,
224
+ required: false,
225
+ serialized_name: 'properties.billingFrequency',
226
+ type: {
227
+ name: 'String'
228
+ }
229
+ },
230
+ price_hidden: {
231
+ client_side_validation: true,
232
+ required: false,
233
+ read_only: true,
234
+ serialized_name: 'properties.priceHidden',
235
+ type: {
236
+ name: 'Boolean'
237
+ }
238
+ },
239
+ new_purchases_details: {
240
+ client_side_validation: true,
241
+ required: false,
242
+ read_only: true,
243
+ serialized_name: 'properties.newPurchasesDetails',
244
+ type: {
245
+ name: 'Sequence',
246
+ element: {
247
+ client_side_validation: true,
248
+ required: false,
249
+ serialized_name: 'BalancePropertiesNewPurchasesDetailsItemElementType',
250
+ type: {
251
+ name: 'Composite',
252
+ class_name: 'BalancePropertiesNewPurchasesDetailsItem'
253
+ }
254
+ }
255
+ }
256
+ },
257
+ adjustment_details: {
258
+ client_side_validation: true,
259
+ required: false,
260
+ read_only: true,
261
+ serialized_name: 'properties.adjustmentDetails',
262
+ type: {
263
+ name: 'Sequence',
264
+ element: {
265
+ client_side_validation: true,
266
+ required: false,
267
+ serialized_name: 'BalancePropertiesAdjustmentDetailsItemElementType',
268
+ type: {
269
+ name: 'Composite',
270
+ class_name: 'BalancePropertiesAdjustmentDetailsItem'
271
+ }
272
+ }
273
+ }
274
+ }
275
+ }
276
+ }
277
+ }
278
+ end
279
+ end
280
+ end
281
+ end
@@ -0,0 +1,60 @@
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
+ # Model object.
10
+ #
11
+ #
12
+ class BalancePropertiesAdjustmentDetailsItem
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] the name of new adjustment.
17
+ attr_accessor :name
18
+
19
+ # @return the value of new adjustment.
20
+ attr_accessor :value
21
+
22
+
23
+ #
24
+ # Mapper for BalancePropertiesAdjustmentDetailsItem class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'BalanceProperties_adjustmentDetailsItem',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'BalancePropertiesAdjustmentDetailsItem',
35
+ model_properties: {
36
+ name: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ read_only: true,
40
+ serialized_name: 'name',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ value: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'value',
50
+ type: {
51
+ name: 'Number'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,60 @@
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
+ # Model object.
10
+ #
11
+ #
12
+ class BalancePropertiesNewPurchasesDetailsItem
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] the name of new purchase.
17
+ attr_accessor :name
18
+
19
+ # @return the value of new purchase.
20
+ attr_accessor :value
21
+
22
+
23
+ #
24
+ # Mapper for BalancePropertiesNewPurchasesDetailsItem class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'BalanceProperties_newPurchasesDetailsItem',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'BalancePropertiesNewPurchasesDetailsItem',
35
+ model_properties: {
36
+ name: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ read_only: true,
40
+ serialized_name: 'name',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ value: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'value',
50
+ type: {
51
+ name: 'Number'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
@@ -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 BillingFrequency
10
+ #
11
+ module BillingFrequency
12
+ Month = "Month"
13
+ Quarter = "Quarter"
14
+ Year = "Year"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
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 Bound
10
+ #
11
+ module Bound
12
+ Upper = "Upper"
13
+ Lower = "Lower"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,171 @@
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
+ # A budget resource.
10
+ #
11
+ class Budget < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [CategoryType] The category of the budget, whether the budget
16
+ # tracks cost or usage. Possible values include: 'Cost', 'Usage'
17
+ attr_accessor :category
18
+
19
+ # @return The total amount of cost to track with the budget
20
+ attr_accessor :amount
21
+
22
+ # @return [TimeGrainType] The time covered by a budget. Tracking of the
23
+ # amount will be reset based on the time grain. Possible values include:
24
+ # 'Monthly', 'Quarterly', 'Annually'
25
+ attr_accessor :time_grain
26
+
27
+ # @return [BudgetTimePeriod] Has start and end date of the budget. The
28
+ # start date must be first of the month and should be less than the end
29
+ # date. Budget start date must be on or after June 1, 2017. Future start
30
+ # date should not be more than three months. Past start date should be
31
+ # selected within the timegrain preiod. There are no restrictions on the
32
+ # end date.
33
+ attr_accessor :time_period
34
+
35
+ # @return [Filters] May be used to filter budgets by resource group,
36
+ # resource, or meter.
37
+ attr_accessor :filters
38
+
39
+ # @return [CurrentSpend] The current amount of cost which is being
40
+ # tracked for a budget.
41
+ attr_accessor :current_spend
42
+
43
+ # @return [Hash{String => Notification}] Dictionary of notifications
44
+ # associated with the budget. Budget can have up to five notifications.
45
+ attr_accessor :notifications
46
+
47
+
48
+ #
49
+ # Mapper for Budget class as Ruby Hash.
50
+ # This will be used for serialization/deserialization.
51
+ #
52
+ def self.mapper()
53
+ {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'Budget',
57
+ type: {
58
+ name: 'Composite',
59
+ class_name: 'Budget',
60
+ model_properties: {
61
+ id: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'id',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ name: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'name',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ type: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ read_only: true,
83
+ serialized_name: 'type',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ e_tag: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'eTag',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ category: {
97
+ client_side_validation: true,
98
+ required: true,
99
+ serialized_name: 'properties.category',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ amount: {
105
+ client_side_validation: true,
106
+ required: true,
107
+ serialized_name: 'properties.amount',
108
+ type: {
109
+ name: 'Number'
110
+ }
111
+ },
112
+ time_grain: {
113
+ client_side_validation: true,
114
+ required: true,
115
+ serialized_name: 'properties.timeGrain',
116
+ type: {
117
+ name: 'String'
118
+ }
119
+ },
120
+ time_period: {
121
+ client_side_validation: true,
122
+ required: true,
123
+ serialized_name: 'properties.timePeriod',
124
+ type: {
125
+ name: 'Composite',
126
+ class_name: 'BudgetTimePeriod'
127
+ }
128
+ },
129
+ filters: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ serialized_name: 'properties.filters',
133
+ type: {
134
+ name: 'Composite',
135
+ class_name: 'Filters'
136
+ }
137
+ },
138
+ current_spend: {
139
+ client_side_validation: true,
140
+ required: false,
141
+ read_only: true,
142
+ serialized_name: 'properties.currentSpend',
143
+ type: {
144
+ name: 'Composite',
145
+ class_name: 'CurrentSpend'
146
+ }
147
+ },
148
+ notifications: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ serialized_name: 'properties.notifications',
152
+ type: {
153
+ name: 'Dictionary',
154
+ value: {
155
+ client_side_validation: true,
156
+ required: false,
157
+ serialized_name: 'NotificationElementType',
158
+ type: {
159
+ name: 'Composite',
160
+ class_name: 'Notification'
161
+ }
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+ end
169
+ end
170
+ end
171
+ end