azure_mgmt_consumption 0.17.2 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (637) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +20 -20
  3. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption.rb +0 -0
  4. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
  5. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
  6. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
  7. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
  8. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/operation.rb +0 -0
  9. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
  10. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
  11. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/resource.rb +0 -0
  12. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
  13. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
  14. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/module_definition.rb +0 -0
  15. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/operations.rb +4 -0
  16. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/usage_details.rb +4 -0
  17. data/lib/2017-11-30/generated/azure_mgmt_consumption.rb +0 -0
  18. data/lib/2017-11-30/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
  19. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/datagrain.rb +0 -0
  20. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
  21. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
  22. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
  23. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/operation.rb +0 -0
  24. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
  25. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
  26. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_details.rb +0 -0
  27. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +0 -0
  28. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_summaries.rb +0 -0
  29. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +0 -0
  30. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/resource.rb +0 -0
  31. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
  32. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
  33. data/lib/2017-11-30/generated/azure_mgmt_consumption/module_definition.rb +0 -0
  34. data/lib/2017-11-30/generated/azure_mgmt_consumption/operations.rb +4 -0
  35. data/lib/2017-11-30/generated/azure_mgmt_consumption/reservations_details.rb +2 -0
  36. data/lib/2017-11-30/generated/azure_mgmt_consumption/reservations_summaries.rb +2 -0
  37. data/lib/2017-11-30/generated/azure_mgmt_consumption/usage_details.rb +4 -0
  38. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption.rb +0 -0
  39. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/budgets.rb +8 -0
  40. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
  41. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/budget.rb +0 -0
  42. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/budget_time_period.rb +0 -0
  43. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/budgets_list_result.rb +0 -0
  44. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/current_spend.rb +0 -0
  45. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
  46. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
  47. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/notification.rb +0 -0
  48. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operation.rb +0 -0
  49. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
  50. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
  51. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operator_type.rb +0 -0
  52. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/proxy_resource.rb +0 -0
  53. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/time_grain_type.rb +0 -0
  54. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/module_definition.rb +0 -0
  55. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/operations.rb +4 -0
  56. data/lib/2018-01-31/generated/azure_mgmt_consumption.rb +0 -0
  57. data/lib/2018-01-31/generated/azure_mgmt_consumption/budgets.rb +20 -0
  58. data/lib/2018-01-31/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
  59. data/lib/2018-01-31/generated/azure_mgmt_consumption/marketplaces.rb +8 -0
  60. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/budget.rb +0 -0
  61. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/budget_time_period.rb +0 -0
  62. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/budgets_list_result.rb +0 -0
  63. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/category_type.rb +0 -0
  64. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/current_spend.rb +0 -0
  65. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/datagrain.rb +0 -0
  66. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
  67. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
  68. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/filters.rb +0 -0
  69. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/marketplace.rb +0 -0
  70. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +0 -0
  71. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
  72. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/notification.rb +0 -0
  73. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operation.rb +0 -0
  74. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
  75. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
  76. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operator_type.rb +0 -0
  77. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +0 -0
  78. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +0 -0
  79. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/proxy_resource.rb +0 -0
  80. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_details.rb +0 -0
  81. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +0 -0
  82. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_summaries.rb +0 -0
  83. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +0 -0
  84. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/resource.rb +0 -0
  85. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/time_grain_type.rb +0 -0
  86. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
  87. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
  88. data/lib/2018-01-31/generated/azure_mgmt_consumption/module_definition.rb +0 -0
  89. data/lib/2018-01-31/generated/azure_mgmt_consumption/operations.rb +4 -0
  90. data/lib/2018-01-31/generated/azure_mgmt_consumption/price_sheet.rb +4 -0
  91. data/lib/2018-01-31/generated/azure_mgmt_consumption/reservations_details.rb +8 -0
  92. data/lib/2018-01-31/generated/azure_mgmt_consumption/reservations_summaries.rb +8 -0
  93. data/lib/2018-01-31/generated/azure_mgmt_consumption/usage_details.rb +8 -0
  94. data/lib/2018-03-31/generated/azure_mgmt_consumption.rb +0 -0
  95. data/lib/2018-03-31/generated/azure_mgmt_consumption/budgets.rb +20 -0
  96. data/lib/2018-03-31/generated/azure_mgmt_consumption/consumption_management_client.rb +3 -1
  97. data/lib/2018-03-31/generated/azure_mgmt_consumption/cost_tags_operations.rb +4 -0
  98. data/lib/2018-03-31/generated/azure_mgmt_consumption/get_balances_by_billing_account.rb +2 -0
  99. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces.rb +8 -0
  100. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_billing_account.rb +8 -0
  101. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_department.rb +8 -0
  102. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_enrollment_accounts.rb +8 -0
  103. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance.rb +0 -0
  104. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +0 -0
  105. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +0 -0
  106. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/billing_frequency.rb +0 -0
  107. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget.rb +0 -0
  108. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget_time_period.rb +0 -0
  109. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budgets_list_result.rb +0 -0
  110. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/category_type.rb +0 -0
  111. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tag.rb +0 -0
  112. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tags.rb +0 -0
  113. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/current_spend.rb +0 -0
  114. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/datagrain.rb +0 -0
  115. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
  116. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
  117. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/filters.rb +0 -0
  118. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplace.rb +0 -0
  119. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +0 -0
  120. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
  121. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/notification.rb +0 -0
  122. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation.rb +0 -0
  123. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
  124. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
  125. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operator_type.rb +0 -0
  126. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +0 -0
  127. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +0 -0
  128. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/proxy_resource.rb +0 -0
  129. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/query_options.rb +0 -0
  130. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details.rb +0 -0
  131. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +0 -0
  132. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations.rb +0 -0
  133. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +0 -0
  134. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries.rb +0 -0
  135. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +0 -0
  136. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource.rb +0 -0
  137. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource_attributes.rb +0 -0
  138. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tag.rb +0 -0
  139. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tags.rb +0 -0
  140. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/time_grain_type.rb +0 -0
  141. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
  142. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
  143. data/lib/2018-03-31/generated/azure_mgmt_consumption/module_definition.rb +0 -0
  144. data/lib/2018-03-31/generated/azure_mgmt_consumption/operations.rb +4 -0
  145. data/lib/2018-03-31/generated/azure_mgmt_consumption/price_sheet.rb +4 -0
  146. data/lib/2018-03-31/generated/azure_mgmt_consumption/reservation_recommendations_operations.rb +4 -0
  147. data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_details.rb +8 -0
  148. data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_summaries.rb +8 -0
  149. data/lib/2018-03-31/generated/azure_mgmt_consumption/tags_operations.rb +2 -0
  150. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details.rb +8 -0
  151. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_billing_account.rb +8 -0
  152. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_department.rb +8 -0
  153. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_enrollment_account.rb +8 -0
  154. data/lib/2018-05-31/generated/azure_mgmt_consumption.rb +0 -0
  155. data/lib/2018-05-31/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
  156. data/lib/2018-05-31/generated/azure_mgmt_consumption/forecasts.rb +2 -0
  157. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/bound.rb +0 -0
  158. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/charge_type.rb +0 -0
  159. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
  160. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
  161. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast.rb +0 -0
  162. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +0 -0
  163. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +0 -0
  164. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/grain.rb +0 -0
  165. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
  166. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation.rb +0 -0
  167. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
  168. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
  169. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +0 -0
  170. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +0 -0
  171. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/query_options.rb +0 -0
  172. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/resource.rb +0 -0
  173. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
  174. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
  175. data/lib/2018-05-31/generated/azure_mgmt_consumption/module_definition.rb +0 -0
  176. data/lib/2018-05-31/generated/azure_mgmt_consumption/operations.rb +4 -0
  177. data/lib/2018-05-31/generated/azure_mgmt_consumption/price_sheet.rb +4 -0
  178. data/lib/2018-05-31/generated/azure_mgmt_consumption/usage_details.rb +32 -0
  179. data/lib/2018-06-30/generated/azure_mgmt_consumption.rb +0 -0
  180. data/lib/2018-06-30/generated/azure_mgmt_consumption/balances.rb +4 -0
  181. data/lib/2018-06-30/generated/azure_mgmt_consumption/budgets.rb +20 -0
  182. data/lib/2018-06-30/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
  183. data/lib/2018-06-30/generated/azure_mgmt_consumption/cost_tags.rb +4 -0
  184. data/lib/2018-06-30/generated/azure_mgmt_consumption/forecasts.rb +2 -0
  185. data/lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb +32 -0
  186. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance.rb +0 -0
  187. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +0 -0
  188. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +0 -0
  189. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/billing_frequency.rb +0 -0
  190. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/bound.rb +0 -0
  191. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget.rb +0 -0
  192. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget_time_period.rb +0 -0
  193. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budgets_list_result.rb +0 -0
  194. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/category_type.rb +0 -0
  195. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/charge_type.rb +0 -0
  196. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag.rb +0 -0
  197. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag_properties.rb +0 -0
  198. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/current_spend.rb +0 -0
  199. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/datagrain.rb +0 -0
  200. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
  201. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
  202. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/filters.rb +0 -0
  203. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast.rb +0 -0
  204. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +0 -0
  205. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +0 -0
  206. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/grain.rb +0 -0
  207. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplace.rb +0 -0
  208. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +0 -0
  209. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
  210. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/notification.rb +0 -0
  211. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation.rb +0 -0
  212. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
  213. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
  214. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operator_type.rb +0 -0
  215. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +0 -0
  216. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_result.rb +0 -0
  217. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/proxy_resource.rb +0 -0
  218. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/query_options.rb +0 -0
  219. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_detail.rb +0 -0
  220. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +0 -0
  221. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +0 -0
  222. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +0 -0
  223. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +0 -0
  224. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summary.rb +0 -0
  225. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource.rb +0 -0
  226. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource_attributes.rb +0 -0
  227. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tag.rb +0 -0
  228. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tags_result.rb +0 -0
  229. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/time_grain_type.rb +0 -0
  230. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
  231. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
  232. data/lib/2018-06-30/generated/azure_mgmt_consumption/module_definition.rb +0 -0
  233. data/lib/2018-06-30/generated/azure_mgmt_consumption/operations.rb +4 -0
  234. data/lib/2018-06-30/generated/azure_mgmt_consumption/price_sheet.rb +4 -0
  235. data/lib/2018-06-30/generated/azure_mgmt_consumption/reservation_recommendations.rb +4 -0
  236. data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_details.rb +8 -0
  237. data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_summaries.rb +8 -0
  238. data/lib/2018-06-30/generated/azure_mgmt_consumption/tags.rb +2 -0
  239. data/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb +32 -0
  240. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption.rb +67 -0
  241. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/billing_profile_pricesheet.rb +161 -0
  242. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/charges_by_billing_account.rb +138 -0
  243. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/charges_by_billing_profile.rb +136 -0
  244. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/charges_by_invoice_section.rb +139 -0
  245. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +161 -0
  246. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/credit_summary_by_billing_profile.rb +122 -0
  247. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/events_by_billing_profile.rb +130 -0
  248. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/invoice_pricesheet.rb +161 -0
  249. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/lots_by_billing_profile.rb +122 -0
  250. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/address.rb +123 -0
  251. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/amount.rb +59 -0
  252. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb +255 -0
  253. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_profile.rb +161 -0
  254. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charge_summary_by_billing_account.rb +194 -0
  255. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charge_summary_by_billing_profile.rb +194 -0
  256. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charge_summary_by_invoice_section.rb +194 -0
  257. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charges_list_by_billing_account.rb +59 -0
  258. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charges_list_by_billing_profile.rb +59 -0
  259. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charges_list_by_invoice_section.rb +59 -0
  260. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/credit_balance_summary.rb +61 -0
  261. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/credit_summary.rb +131 -0
  262. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/department.rb +133 -0
  263. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/enrollment.rb +145 -0
  264. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/enrollment_account.rb +158 -0
  265. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/enrollment_policies.rb +83 -0
  266. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  267. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  268. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/event_summary.rb +192 -0
  269. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/event_type.rb +17 -0
  270. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/events.rb +56 -0
  271. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/invoice_section.rb +111 -0
  272. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/lot_source.rb +16 -0
  273. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/lot_summary.rb +154 -0
  274. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/lots.rb +56 -0
  275. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  276. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  277. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  278. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/pricesheet_download_response.rb +104 -0
  279. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  280. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/resource.rb +100 -0
  281. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  282. data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/operations.rb +220 -0
  283. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption.rb +89 -0
  284. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/aggregated_cost.rb +229 -0
  285. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/balances.rb +214 -0
  286. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/budgets.rb +722 -0
  287. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/charges.rb +157 -0
  288. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +180 -0
  289. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/forecasts.rb +124 -0
  290. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/marketplaces.rb +339 -0
  291. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/balance.rb +281 -0
  292. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
  293. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
  294. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
  295. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/bound.rb +16 -0
  296. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/budget.rb +171 -0
  297. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
  298. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
  299. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
  300. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/charge_summary.rb +164 -0
  301. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
  302. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/charges_list_result.rb +56 -0
  303. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
  304. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
  305. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  306. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  307. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/filters.rb +134 -0
  308. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
  309. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
  310. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
  311. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/grain.rb +17 -0
  312. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/management_group_aggregated_cost_result.rb +228 -0
  313. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/marketplace.rb +388 -0
  314. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
  315. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
  316. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/meter_details_response.rb +98 -0
  317. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/metrictype.rb +17 -0
  318. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/notification.rb +139 -0
  319. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  320. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  321. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  322. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
  323. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
  324. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  325. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  326. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_detail.rb +187 -0
  327. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
  328. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +224 -0
  329. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
  330. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
  331. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_summary.rb +205 -0
  332. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/resource.rb +100 -0
  333. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
  334. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/tag.rb +46 -0
  335. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
  336. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
  337. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/usage_detail.rb +609 -0
  338. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/usage_details_download_response.rb +104 -0
  339. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
  340. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  341. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/operations.rb +220 -0
  342. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/price_sheet.rb +266 -0
  343. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/reservation_recommendations.rb +230 -0
  344. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/reservations_details.rb +457 -0
  345. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/reservations_summaries.rb +473 -0
  346. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/tags.rb +148 -0
  347. data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/usage_details.rb +568 -0
  348. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption.rb +89 -0
  349. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/aggregated_cost.rb +229 -0
  350. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/balances.rb +214 -0
  351. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/budgets.rb +722 -0
  352. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/charges.rb +157 -0
  353. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +180 -0
  354. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/forecasts.rb +124 -0
  355. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/marketplaces.rb +339 -0
  356. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/balance.rb +281 -0
  357. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
  358. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
  359. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
  360. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/bound.rb +16 -0
  361. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/budget.rb +171 -0
  362. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
  363. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
  364. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
  365. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/charge_summary.rb +164 -0
  366. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
  367. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/charges_list_result.rb +56 -0
  368. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
  369. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
  370. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  371. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  372. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/filters.rb +134 -0
  373. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
  374. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
  375. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
  376. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/grain.rb +17 -0
  377. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/management_group_aggregated_cost_result.rb +228 -0
  378. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/marketplace.rb +388 -0
  379. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
  380. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
  381. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/meter_details_response.rb +98 -0
  382. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/metrictype.rb +17 -0
  383. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/notification.rb +139 -0
  384. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  385. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  386. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  387. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
  388. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
  389. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  390. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  391. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_detail.rb +187 -0
  392. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
  393. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +224 -0
  394. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
  395. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
  396. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_summary.rb +205 -0
  397. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/resource.rb +100 -0
  398. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
  399. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/tag.rb +46 -0
  400. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
  401. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
  402. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/usage_detail.rb +609 -0
  403. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/usage_details_download_response.rb +104 -0
  404. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
  405. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  406. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/operations.rb +220 -0
  407. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/price_sheet.rb +266 -0
  408. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/reservation_recommendations.rb +230 -0
  409. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/reservations_details.rb +457 -0
  410. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/reservations_summaries.rb +473 -0
  411. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/tags.rb +148 -0
  412. data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/usage_details.rb +616 -0
  413. data/lib/2019-05-01/generated/azure_mgmt_consumption.rb +88 -0
  414. data/lib/2019-05-01/generated/azure_mgmt_consumption/aggregated_cost.rb +229 -0
  415. data/lib/2019-05-01/generated/azure_mgmt_consumption/balances.rb +214 -0
  416. data/lib/2019-05-01/generated/azure_mgmt_consumption/budgets.rb +722 -0
  417. data/lib/2019-05-01/generated/azure_mgmt_consumption/charges.rb +157 -0
  418. data/lib/2019-05-01/generated/azure_mgmt_consumption/consumption_management_client.rb +180 -0
  419. data/lib/2019-05-01/generated/azure_mgmt_consumption/forecasts.rb +124 -0
  420. data/lib/2019-05-01/generated/azure_mgmt_consumption/marketplaces.rb +339 -0
  421. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/balance.rb +281 -0
  422. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
  423. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
  424. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
  425. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/bound.rb +16 -0
  426. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/budget.rb +172 -0
  427. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
  428. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
  429. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
  430. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/charge_summary.rb +164 -0
  431. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
  432. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/charges_list_result.rb +56 -0
  433. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
  434. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
  435. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  436. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  437. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/filters.rb +134 -0
  438. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
  439. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
  440. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
  441. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/grain.rb +17 -0
  442. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/management_group_aggregated_cost_result.rb +228 -0
  443. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb +388 -0
  444. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
  445. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
  446. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/meter_details_response.rb +98 -0
  447. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/metrictype.rb +17 -0
  448. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/notification.rb +139 -0
  449. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  450. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  451. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  452. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
  453. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
  454. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  455. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  456. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_detail.rb +211 -0
  457. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
  458. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +272 -0
  459. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
  460. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
  461. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_summary.rb +205 -0
  462. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/resource.rb +100 -0
  463. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
  464. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/tag.rb +46 -0
  465. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
  466. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/time_grain_type.rb +20 -0
  467. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/usage_detail.rb +609 -0
  468. data/lib/2019-05-01/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
  469. data/lib/2019-05-01/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  470. data/lib/2019-05-01/generated/azure_mgmt_consumption/operations.rb +220 -0
  471. data/lib/2019-05-01/generated/azure_mgmt_consumption/price_sheet.rb +266 -0
  472. data/lib/2019-05-01/generated/azure_mgmt_consumption/reservation_recommendations.rb +445 -0
  473. data/lib/2019-05-01/generated/azure_mgmt_consumption/reservations_details.rb +670 -0
  474. data/lib/2019-05-01/generated/azure_mgmt_consumption/reservations_summaries.rb +694 -0
  475. data/lib/2019-05-01/generated/azure_mgmt_consumption/tags.rb +148 -0
  476. data/lib/2019-05-01/generated/azure_mgmt_consumption/usage_details.rb +367 -0
  477. data/lib/2019-06-01/generated/azure_mgmt_consumption.rb +92 -0
  478. data/lib/2019-06-01/generated/azure_mgmt_consumption/aggregated_cost.rb +229 -0
  479. data/lib/2019-06-01/generated/azure_mgmt_consumption/balances.rb +214 -0
  480. data/lib/2019-06-01/generated/azure_mgmt_consumption/budgets.rb +722 -0
  481. data/lib/2019-06-01/generated/azure_mgmt_consumption/charges.rb +157 -0
  482. data/lib/2019-06-01/generated/azure_mgmt_consumption/consumption_management_client.rb +184 -0
  483. data/lib/2019-06-01/generated/azure_mgmt_consumption/forecasts.rb +124 -0
  484. data/lib/2019-06-01/generated/azure_mgmt_consumption/marketplaces.rb +339 -0
  485. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/balance.rb +281 -0
  486. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
  487. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
  488. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
  489. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/bound.rb +16 -0
  490. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/budget.rb +172 -0
  491. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
  492. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
  493. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
  494. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/charge_summary.rb +164 -0
  495. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
  496. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/charges_list_result.rb +56 -0
  497. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
  498. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
  499. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  500. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  501. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/filters.rb +134 -0
  502. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
  503. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
  504. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
  505. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/grain.rb +17 -0
  506. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/management_group_aggregated_cost_result.rb +228 -0
  507. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/marketplace.rb +388 -0
  508. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
  509. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
  510. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/meter_details_response.rb +98 -0
  511. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/metrictype.rb +17 -0
  512. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/notification.rb +139 -0
  513. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  514. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  515. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  516. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
  517. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
  518. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  519. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  520. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb +223 -0
  521. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
  522. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +293 -0
  523. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
  524. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
  525. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_summary.rb +278 -0
  526. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb +315 -0
  527. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_transactions_list_result.rb +101 -0
  528. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/resource.rb +100 -0
  529. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
  530. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/sku_property.rb +59 -0
  531. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/tag.rb +46 -0
  532. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
  533. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/time_grain_type.rb +20 -0
  534. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/usage_detail.rb +609 -0
  535. data/lib/2019-06-01/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
  536. data/lib/2019-06-01/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  537. data/lib/2019-06-01/generated/azure_mgmt_consumption/operations.rb +220 -0
  538. data/lib/2019-06-01/generated/azure_mgmt_consumption/price_sheet.rb +266 -0
  539. data/lib/2019-06-01/generated/azure_mgmt_consumption/reservation_recommendations.rb +445 -0
  540. data/lib/2019-06-01/generated/azure_mgmt_consumption/reservation_transactions.rb +238 -0
  541. data/lib/2019-06-01/generated/azure_mgmt_consumption/reservations_details.rb +670 -0
  542. data/lib/2019-06-01/generated/azure_mgmt_consumption/reservations_summaries.rb +694 -0
  543. data/lib/2019-06-01/generated/azure_mgmt_consumption/tags.rb +148 -0
  544. data/lib/2019-06-01/generated/azure_mgmt_consumption/usage_details.rb +367 -0
  545. data/lib/2019-10-01/generated/azure_mgmt_consumption.rb +110 -0
  546. data/lib/2019-10-01/generated/azure_mgmt_consumption/aggregated_cost.rb +229 -0
  547. data/lib/2019-10-01/generated/azure_mgmt_consumption/balances.rb +214 -0
  548. data/lib/2019-10-01/generated/azure_mgmt_consumption/budgets.rb +722 -0
  549. data/lib/2019-10-01/generated/azure_mgmt_consumption/charges.rb +202 -0
  550. data/lib/2019-10-01/generated/azure_mgmt_consumption/consumption_management_client.rb +196 -0
  551. data/lib/2019-10-01/generated/azure_mgmt_consumption/credits.rb +119 -0
  552. data/lib/2019-10-01/generated/azure_mgmt_consumption/events_operations.rb +247 -0
  553. data/lib/2019-10-01/generated/azure_mgmt_consumption/forecasts.rb +124 -0
  554. data/lib/2019-10-01/generated/azure_mgmt_consumption/lots_operations.rb +230 -0
  555. data/lib/2019-10-01/generated/azure_mgmt_consumption/marketplaces.rb +331 -0
  556. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/amount.rb +59 -0
  557. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/balance.rb +281 -0
  558. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
  559. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
  560. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
  561. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/bound.rb +16 -0
  562. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/budget.rb +172 -0
  563. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
  564. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
  565. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
  566. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/charge_summary.rb +88 -0
  567. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
  568. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/charges_list_result.rb +58 -0
  569. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/credit_balance_summary.rb +61 -0
  570. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/credit_summary.rb +132 -0
  571. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
  572. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
  573. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  574. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  575. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/event_summary.rb +193 -0
  576. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/event_type.rb +21 -0
  577. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/events.rb +100 -0
  578. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/filters.rb +134 -0
  579. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
  580. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
  581. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
  582. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/grain.rb +17 -0
  583. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/legacy_charge_summary.rb +179 -0
  584. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/legacy_reservation_recommendation.rb +290 -0
  585. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/legacy_usage_detail.rb +624 -0
  586. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/lot_source.rb +16 -0
  587. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/lot_summary.rb +154 -0
  588. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/lots.rb +100 -0
  589. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/management_group_aggregated_cost_result.rb +228 -0
  590. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/marketplace.rb +388 -0
  591. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
  592. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
  593. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/meter_details_response.rb +98 -0
  594. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/metrictype.rb +17 -0
  595. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_charge_summary.rb +230 -0
  596. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb +293 -0
  597. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_usage_detail.rb +937 -0
  598. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/notification.rb +139 -0
  599. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  600. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  601. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  602. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
  603. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
  604. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  605. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  606. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_detail.rb +223 -0
  607. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
  608. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +127 -0
  609. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +103 -0
  610. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
  611. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_summary.rb +278 -0
  612. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb +328 -0
  613. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transactions_list_result.rb +101 -0
  614. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/resource.rb +100 -0
  615. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
  616. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/sku_property.rb +59 -0
  617. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/tag.rb +46 -0
  618. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
  619. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/time_grain_type.rb +20 -0
  620. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/usage_detail.rb +88 -0
  621. data/lib/2019-10-01/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +103 -0
  622. data/lib/2019-10-01/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  623. data/lib/2019-10-01/generated/azure_mgmt_consumption/operations.rb +220 -0
  624. data/lib/2019-10-01/generated/azure_mgmt_consumption/price_sheet.rb +266 -0
  625. data/lib/2019-10-01/generated/azure_mgmt_consumption/reservation_recommendations.rb +254 -0
  626. data/lib/2019-10-01/generated/azure_mgmt_consumption/reservation_transactions.rb +238 -0
  627. data/lib/2019-10-01/generated/azure_mgmt_consumption/reservations_details.rb +697 -0
  628. data/lib/2019-10-01/generated/azure_mgmt_consumption/reservations_summaries.rb +729 -0
  629. data/lib/2019-10-01/generated/azure_mgmt_consumption/tags.rb +148 -0
  630. data/lib/2019-10-01/generated/azure_mgmt_consumption/usage_details.rb +403 -0
  631. data/lib/azure_mgmt_consumption.rb +9 -3
  632. data/lib/module_definition.rb +7 -7
  633. data/lib/profiles/latest/consumption_latest_profile_client.rb +40 -40
  634. data/lib/profiles/latest/consumption_module_definition.rb +8 -8
  635. data/lib/profiles/latest/modules/consumption_profile_module.rb +226 -136
  636. data/lib/version.rb +1 -1
  637. metadata +396 -5
@@ -0,0 +1,148 @@
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::V2019_05_01_preview
7
+ #
8
+ # Consumption management client provides access to consumption resources for
9
+ # Azure Enterprise Subscriptions.
10
+ #
11
+ class Tags
12
+ include MsRestAzure
13
+
14
+ #
15
+ # Creates and initializes a new instance of the Tags class.
16
+ # @param client service class for accessing basic functionality.
17
+ #
18
+ def initialize(client)
19
+ @client = client
20
+ end
21
+
22
+ # @return [ConsumptionManagementClient] reference to the ConsumptionManagementClient
23
+ attr_reader :client
24
+
25
+ #
26
+ # Get all available tag keys for the defined scope
27
+ #
28
+ # @param scope [String] The scope associated with tags operations. This
29
+ # includes '/subscriptions/{subscriptionId}/' for subscription scope,
30
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
31
+ # resourceGroup scope,
32
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
33
+ # Account scope,
34
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
35
+ # for Department scope,
36
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
37
+ # for EnrollmentAccount scope and
38
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
39
+ # Management Group scope..
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [TagsResult] operation results.
44
+ #
45
+ def get(scope, custom_headers:nil)
46
+ response = get_async(scope, custom_headers:custom_headers).value!
47
+ response.body unless response.nil?
48
+ end
49
+
50
+ #
51
+ # Get all available tag keys for the defined scope
52
+ #
53
+ # @param scope [String] The scope associated with tags operations. This
54
+ # includes '/subscriptions/{subscriptionId}/' for subscription scope,
55
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
56
+ # resourceGroup scope,
57
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
58
+ # Account scope,
59
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
60
+ # for Department scope,
61
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
62
+ # for EnrollmentAccount scope and
63
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
64
+ # Management Group scope..
65
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
66
+ # will be added to the HTTP request.
67
+ #
68
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
69
+ #
70
+ def get_with_http_info(scope, custom_headers:nil)
71
+ get_async(scope, custom_headers:custom_headers).value!
72
+ end
73
+
74
+ #
75
+ # Get all available tag keys for the defined scope
76
+ #
77
+ # @param scope [String] The scope associated with tags operations. This
78
+ # includes '/subscriptions/{subscriptionId}/' for subscription scope,
79
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
80
+ # resourceGroup scope,
81
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
82
+ # Account scope,
83
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
84
+ # for Department scope,
85
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
86
+ # for EnrollmentAccount scope and
87
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
88
+ # Management Group scope..
89
+ # @param [Hash{String => String}] A hash of custom headers that will be added
90
+ # to the HTTP request.
91
+ #
92
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
93
+ #
94
+ def get_async(scope, custom_headers:nil)
95
+ fail ArgumentError, 'scope is nil' if scope.nil?
96
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
97
+
98
+
99
+ request_headers = {}
100
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
101
+
102
+ # Set Headers
103
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
104
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
105
+ path_template = '{scope}/providers/Microsoft.Consumption/tags'
106
+
107
+ request_url = @base_url || @client.base_url
108
+
109
+ options = {
110
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
111
+ skip_encoding_path_params: {'scope' => scope},
112
+ query_params: {'api-version' => @client.api_version},
113
+ headers: request_headers.merge(custom_headers || {}),
114
+ base_url: request_url
115
+ }
116
+ promise = @client.make_request_async(:get, path_template, options)
117
+
118
+ promise = promise.then do |result|
119
+ http_response = result.response
120
+ status_code = http_response.status
121
+ response_content = http_response.body
122
+ unless status_code == 200
123
+ error_model = JSON.load(response_content)
124
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
125
+ end
126
+
127
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
128
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
129
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
130
+ # Deserialize Response
131
+ if status_code == 200
132
+ begin
133
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
134
+ result_mapper = Azure::Consumption::Mgmt::V2019_05_01_preview::Models::TagsResult.mapper()
135
+ result.body = @client.deserialize(result_mapper, parsed_response)
136
+ rescue Exception => e
137
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
138
+ end
139
+ end
140
+
141
+ result
142
+ end
143
+
144
+ promise.execute
145
+ end
146
+
147
+ end
148
+ end
@@ -0,0 +1,616 @@
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::V2019_05_01_preview
7
+ #
8
+ # Consumption management client provides access to consumption resources for
9
+ # Azure Enterprise Subscriptions.
10
+ #
11
+ class UsageDetails
12
+ include MsRestAzure
13
+
14
+ #
15
+ # Creates and initializes a new instance of the UsageDetails class.
16
+ # @param client service class for accessing basic functionality.
17
+ #
18
+ def initialize(client)
19
+ @client = client
20
+ end
21
+
22
+ # @return [ConsumptionManagementClient] reference to the ConsumptionManagementClient
23
+ attr_reader :client
24
+
25
+ #
26
+ # Lists the usage details for the defined scope. Usage details are available
27
+ # via this API only for May 1, 2014 or later.
28
+ #
29
+ # @param scope [String] The scope associated with usage details operations.
30
+ # This includes '/subscriptions/{subscriptionId}/' for subscription scope,
31
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
32
+ # Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
33
+ # Department scope,
34
+ # '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
35
+ # EnrollmentAccount scope and
36
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
37
+ # Management Group scope. For subscription, billing account, department,
38
+ # enrollment account and management group, you can also add billing period to
39
+ # the scope using
40
+ # '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
41
+ # to specify billing period at department scope use
42
+ # '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
43
+ # @param expand [String] May be used to expand the properties/additionalInfo or
44
+ # properties/meterDetails within a list of usage details. By default, these
45
+ # fields are not included when listing usage details.
46
+ # @param filter [String] May be used to filter usageDetails by
47
+ # properties/resourceGroup, properties/resourceName, properties/resourceId,
48
+ # properties/chargeType, properties/reservationId, properties/publisherType or
49
+ # tags. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does
50
+ # not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
51
+ # string where key and value is separated by a colon (:). PublisherType Filter
52
+ # accepts two values azure and marketplace and it is currently supported for
53
+ # Web Direct Offer Type
54
+ # @param skiptoken [String] Skiptoken is only used if a previous operation
55
+ # returned a partial result. If a previous response contains a nextLink
56
+ # element, the value of the nextLink element will include a skiptoken parameter
57
+ # that specifies a starting point to use for subsequent calls.
58
+ # @param top [Integer] May be used to limit the number of results to the most
59
+ # recent N usageDetails.
60
+ # @param metric [Metrictype] Allows to select different type of cost/usage
61
+ # records. Possible values include: 'ActualCostMetricType',
62
+ # 'AmortizedCostMetricType', 'UsageMetricType'
63
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
64
+ # will be added to the HTTP request.
65
+ #
66
+ # @return [Array<UsageDetail>] operation results.
67
+ #
68
+ def list(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, metric:nil, custom_headers:nil)
69
+ first_page = list_as_lazy(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, metric:metric, custom_headers:custom_headers)
70
+ first_page.get_all_items
71
+ end
72
+
73
+ #
74
+ # Lists the usage details for the defined scope. Usage details are available
75
+ # via this API only for May 1, 2014 or later.
76
+ #
77
+ # @param scope [String] The scope associated with usage details operations.
78
+ # This includes '/subscriptions/{subscriptionId}/' for subscription scope,
79
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
80
+ # Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
81
+ # Department scope,
82
+ # '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
83
+ # EnrollmentAccount scope and
84
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
85
+ # Management Group scope. For subscription, billing account, department,
86
+ # enrollment account and management group, you can also add billing period to
87
+ # the scope using
88
+ # '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
89
+ # to specify billing period at department scope use
90
+ # '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
91
+ # @param expand [String] May be used to expand the properties/additionalInfo or
92
+ # properties/meterDetails within a list of usage details. By default, these
93
+ # fields are not included when listing usage details.
94
+ # @param filter [String] May be used to filter usageDetails by
95
+ # properties/resourceGroup, properties/resourceName, properties/resourceId,
96
+ # properties/chargeType, properties/reservationId, properties/publisherType or
97
+ # tags. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does
98
+ # not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
99
+ # string where key and value is separated by a colon (:). PublisherType Filter
100
+ # accepts two values azure and marketplace and it is currently supported for
101
+ # Web Direct Offer Type
102
+ # @param skiptoken [String] Skiptoken is only used if a previous operation
103
+ # returned a partial result. If a previous response contains a nextLink
104
+ # element, the value of the nextLink element will include a skiptoken parameter
105
+ # that specifies a starting point to use for subsequent calls.
106
+ # @param top [Integer] May be used to limit the number of results to the most
107
+ # recent N usageDetails.
108
+ # @param metric [Metrictype] Allows to select different type of cost/usage
109
+ # records. Possible values include: 'ActualCostMetricType',
110
+ # 'AmortizedCostMetricType', 'UsageMetricType'
111
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
112
+ # will be added to the HTTP request.
113
+ #
114
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
115
+ #
116
+ def list_with_http_info(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, metric:nil, custom_headers:nil)
117
+ list_async(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, metric:metric, custom_headers:custom_headers).value!
118
+ end
119
+
120
+ #
121
+ # Lists the usage details for the defined scope. Usage details are available
122
+ # via this API only for May 1, 2014 or later.
123
+ #
124
+ # @param scope [String] The scope associated with usage details operations.
125
+ # This includes '/subscriptions/{subscriptionId}/' for subscription scope,
126
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
127
+ # Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
128
+ # Department scope,
129
+ # '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
130
+ # EnrollmentAccount scope and
131
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
132
+ # Management Group scope. For subscription, billing account, department,
133
+ # enrollment account and management group, you can also add billing period to
134
+ # the scope using
135
+ # '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
136
+ # to specify billing period at department scope use
137
+ # '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
138
+ # @param expand [String] May be used to expand the properties/additionalInfo or
139
+ # properties/meterDetails within a list of usage details. By default, these
140
+ # fields are not included when listing usage details.
141
+ # @param filter [String] May be used to filter usageDetails by
142
+ # properties/resourceGroup, properties/resourceName, properties/resourceId,
143
+ # properties/chargeType, properties/reservationId, properties/publisherType or
144
+ # tags. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does
145
+ # not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
146
+ # string where key and value is separated by a colon (:). PublisherType Filter
147
+ # accepts two values azure and marketplace and it is currently supported for
148
+ # Web Direct Offer Type
149
+ # @param skiptoken [String] Skiptoken is only used if a previous operation
150
+ # returned a partial result. If a previous response contains a nextLink
151
+ # element, the value of the nextLink element will include a skiptoken parameter
152
+ # that specifies a starting point to use for subsequent calls.
153
+ # @param top [Integer] May be used to limit the number of results to the most
154
+ # recent N usageDetails.
155
+ # @param metric [Metrictype] Allows to select different type of cost/usage
156
+ # records. Possible values include: 'ActualCostMetricType',
157
+ # 'AmortizedCostMetricType', 'UsageMetricType'
158
+ # @param [Hash{String => String}] A hash of custom headers that will be added
159
+ # to the HTTP request.
160
+ #
161
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
162
+ #
163
+ def list_async(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, metric:nil, custom_headers:nil)
164
+ fail ArgumentError, 'scope is nil' if scope.nil?
165
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000
166
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
167
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
168
+
169
+
170
+ request_headers = {}
171
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
172
+
173
+ # Set Headers
174
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
175
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
176
+ path_template = '{scope}/providers/Microsoft.Consumption/usageDetails'
177
+
178
+ request_url = @base_url || @client.base_url
179
+
180
+ options = {
181
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
182
+ skip_encoding_path_params: {'scope' => scope},
183
+ query_params: {'$expand' => expand,'$filter' => filter,'$skiptoken' => skiptoken,'$top' => top,'api-version' => @client.api_version,'metric' => metric},
184
+ headers: request_headers.merge(custom_headers || {}),
185
+ base_url: request_url
186
+ }
187
+ promise = @client.make_request_async(:get, path_template, options)
188
+
189
+ promise = promise.then do |result|
190
+ http_response = result.response
191
+ status_code = http_response.status
192
+ response_content = http_response.body
193
+ unless status_code == 200
194
+ error_model = JSON.load(response_content)
195
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
196
+ end
197
+
198
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
199
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
200
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
201
+ # Deserialize Response
202
+ if status_code == 200
203
+ begin
204
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
205
+ result_mapper = Azure::Consumption::Mgmt::V2019_05_01_preview::Models::UsageDetailsListResult.mapper()
206
+ result.body = @client.deserialize(result_mapper, parsed_response)
207
+ rescue Exception => e
208
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
209
+ end
210
+ end
211
+
212
+ result
213
+ end
214
+
215
+ promise.execute
216
+ end
217
+
218
+ #
219
+ # Download usage details data.
220
+ #
221
+ # @param scope [String] The scope associated with usage details operations.
222
+ # This includes '/subscriptions/{subscriptionId}/' for subscription scope,
223
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
224
+ # Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
225
+ # Department scope,
226
+ # '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
227
+ # EnrollmentAccount scope and
228
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
229
+ # Management Group scope. For subscription, billing account, department,
230
+ # enrollment account and management group, you can also add billing period to
231
+ # the scope using
232
+ # '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
233
+ # to specify billing period at department scope use
234
+ # '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
235
+ # @param metric [Metrictype] Allows to select different type of cost/usage
236
+ # records. Possible values include: 'ActualCostMetricType',
237
+ # 'AmortizedCostMetricType', 'UsageMetricType'
238
+ # @param filter [String] May be used to filter usageDetails by
239
+ # properties/resourceGroup, properties/resourceName, properties/resourceId,
240
+ # properties/chargeType, properties/reservationId, properties/publisherType or
241
+ # tags. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does
242
+ # not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
243
+ # string where key and value is separated by a colon (:). PublisherType Filter
244
+ # accepts two values azure and marketplace and it is currently supported for
245
+ # Web Direct Offer Type
246
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
247
+ # will be added to the HTTP request.
248
+ #
249
+ # @return [UsageDetailsDownloadResponse] operation results.
250
+ #
251
+ def download(scope, metric:nil, filter:nil, custom_headers:nil)
252
+ response = download_async(scope, metric:metric, filter:filter, custom_headers:custom_headers).value!
253
+ response.body unless response.nil?
254
+ end
255
+
256
+ #
257
+ # @param scope [String] The scope associated with usage details operations.
258
+ # This includes '/subscriptions/{subscriptionId}/' for subscription scope,
259
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
260
+ # Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
261
+ # Department scope,
262
+ # '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
263
+ # EnrollmentAccount scope and
264
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
265
+ # Management Group scope. For subscription, billing account, department,
266
+ # enrollment account and management group, you can also add billing period to
267
+ # the scope using
268
+ # '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
269
+ # to specify billing period at department scope use
270
+ # '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
271
+ # @param metric [Metrictype] Allows to select different type of cost/usage
272
+ # records. Possible values include: 'ActualCostMetricType',
273
+ # 'AmortizedCostMetricType', 'UsageMetricType'
274
+ # @param filter [String] May be used to filter usageDetails by
275
+ # properties/resourceGroup, properties/resourceName, properties/resourceId,
276
+ # properties/chargeType, properties/reservationId, properties/publisherType or
277
+ # tags. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does
278
+ # not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
279
+ # string where key and value is separated by a colon (:). PublisherType Filter
280
+ # accepts two values azure and marketplace and it is currently supported for
281
+ # Web Direct Offer Type
282
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
283
+ # will be added to the HTTP request.
284
+ #
285
+ # @return [Concurrent::Promise] promise which provides async access to http
286
+ # response.
287
+ #
288
+ def download_async(scope, metric:nil, filter:nil, custom_headers:nil)
289
+ # Send request
290
+ promise = begin_download_async(scope, metric:metric, filter:filter, custom_headers:custom_headers)
291
+
292
+ promise = promise.then do |response|
293
+ # Defining deserialization method.
294
+ deserialize_method = lambda do |parsed_response|
295
+ result_mapper = Azure::Consumption::Mgmt::V2019_05_01_preview::Models::UsageDetailsDownloadResponse.mapper()
296
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
297
+ end
298
+
299
+ # Waiting for response.
300
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
301
+ end
302
+
303
+ promise
304
+ end
305
+
306
+ #
307
+ # Download usage details data.
308
+ #
309
+ # @param scope [String] The scope associated with usage details operations.
310
+ # This includes '/subscriptions/{subscriptionId}/' for subscription scope,
311
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
312
+ # Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
313
+ # Department scope,
314
+ # '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
315
+ # EnrollmentAccount scope and
316
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
317
+ # Management Group scope. For subscription, billing account, department,
318
+ # enrollment account and management group, you can also add billing period to
319
+ # the scope using
320
+ # '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
321
+ # to specify billing period at department scope use
322
+ # '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
323
+ # @param metric [Metrictype] Allows to select different type of cost/usage
324
+ # records. Possible values include: 'ActualCostMetricType',
325
+ # 'AmortizedCostMetricType', 'UsageMetricType'
326
+ # @param filter [String] May be used to filter usageDetails by
327
+ # properties/resourceGroup, properties/resourceName, properties/resourceId,
328
+ # properties/chargeType, properties/reservationId, properties/publisherType or
329
+ # tags. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does
330
+ # not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
331
+ # string where key and value is separated by a colon (:). PublisherType Filter
332
+ # accepts two values azure and marketplace and it is currently supported for
333
+ # Web Direct Offer Type
334
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
335
+ # will be added to the HTTP request.
336
+ #
337
+ # @return [UsageDetailsDownloadResponse] operation results.
338
+ #
339
+ def begin_download(scope, metric:nil, filter:nil, custom_headers:nil)
340
+ response = begin_download_async(scope, metric:metric, filter:filter, custom_headers:custom_headers).value!
341
+ response.body unless response.nil?
342
+ end
343
+
344
+ #
345
+ # Download usage details data.
346
+ #
347
+ # @param scope [String] The scope associated with usage details operations.
348
+ # This includes '/subscriptions/{subscriptionId}/' for subscription scope,
349
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
350
+ # Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
351
+ # Department scope,
352
+ # '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
353
+ # EnrollmentAccount scope and
354
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
355
+ # Management Group scope. For subscription, billing account, department,
356
+ # enrollment account and management group, you can also add billing period to
357
+ # the scope using
358
+ # '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
359
+ # to specify billing period at department scope use
360
+ # '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
361
+ # @param metric [Metrictype] Allows to select different type of cost/usage
362
+ # records. Possible values include: 'ActualCostMetricType',
363
+ # 'AmortizedCostMetricType', 'UsageMetricType'
364
+ # @param filter [String] May be used to filter usageDetails by
365
+ # properties/resourceGroup, properties/resourceName, properties/resourceId,
366
+ # properties/chargeType, properties/reservationId, properties/publisherType or
367
+ # tags. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does
368
+ # not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
369
+ # string where key and value is separated by a colon (:). PublisherType Filter
370
+ # accepts two values azure and marketplace and it is currently supported for
371
+ # Web Direct Offer Type
372
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
373
+ # will be added to the HTTP request.
374
+ #
375
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
376
+ #
377
+ def begin_download_with_http_info(scope, metric:nil, filter:nil, custom_headers:nil)
378
+ begin_download_async(scope, metric:metric, filter:filter, custom_headers:custom_headers).value!
379
+ end
380
+
381
+ #
382
+ # Download usage details data.
383
+ #
384
+ # @param scope [String] The scope associated with usage details operations.
385
+ # This includes '/subscriptions/{subscriptionId}/' for subscription scope,
386
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
387
+ # Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
388
+ # Department scope,
389
+ # '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
390
+ # EnrollmentAccount scope and
391
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
392
+ # Management Group scope. For subscription, billing account, department,
393
+ # enrollment account and management group, you can also add billing period to
394
+ # the scope using
395
+ # '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
396
+ # to specify billing period at department scope use
397
+ # '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
398
+ # @param metric [Metrictype] Allows to select different type of cost/usage
399
+ # records. Possible values include: 'ActualCostMetricType',
400
+ # 'AmortizedCostMetricType', 'UsageMetricType'
401
+ # @param filter [String] May be used to filter usageDetails by
402
+ # properties/resourceGroup, properties/resourceName, properties/resourceId,
403
+ # properties/chargeType, properties/reservationId, properties/publisherType or
404
+ # tags. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does
405
+ # not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
406
+ # string where key and value is separated by a colon (:). PublisherType Filter
407
+ # accepts two values azure and marketplace and it is currently supported for
408
+ # Web Direct Offer Type
409
+ # @param [Hash{String => String}] A hash of custom headers that will be added
410
+ # to the HTTP request.
411
+ #
412
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
413
+ #
414
+ def begin_download_async(scope, metric:nil, filter:nil, custom_headers:nil)
415
+ fail ArgumentError, 'scope is nil' if scope.nil?
416
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
417
+
418
+
419
+ request_headers = {}
420
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
421
+
422
+ # Set Headers
423
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
424
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
425
+ path_template = '{scope}/providers/Microsoft.Consumption/usageDetails/download'
426
+
427
+ request_url = @base_url || @client.base_url
428
+
429
+ options = {
430
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
431
+ skip_encoding_path_params: {'scope' => scope},
432
+ query_params: {'api-version' => @client.api_version,'metric' => metric,'$filter' => filter},
433
+ headers: request_headers.merge(custom_headers || {}),
434
+ base_url: request_url
435
+ }
436
+ promise = @client.make_request_async(:post, path_template, options)
437
+
438
+ promise = promise.then do |result|
439
+ http_response = result.response
440
+ status_code = http_response.status
441
+ response_content = http_response.body
442
+ unless status_code == 200 || status_code == 202
443
+ error_model = JSON.load(response_content)
444
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
445
+ end
446
+
447
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
448
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
449
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
450
+ # Deserialize Response
451
+ if status_code == 200
452
+ begin
453
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
454
+ result_mapper = Azure::Consumption::Mgmt::V2019_05_01_preview::Models::UsageDetailsDownloadResponse.mapper()
455
+ result.body = @client.deserialize(result_mapper, parsed_response)
456
+ rescue Exception => e
457
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
458
+ end
459
+ end
460
+
461
+ result
462
+ end
463
+
464
+ promise.execute
465
+ end
466
+
467
+ #
468
+ # Lists the usage details for the defined scope. Usage details are available
469
+ # via this API only for May 1, 2014 or later.
470
+ #
471
+ # @param next_page_link [String] The NextLink from the previous successful call
472
+ # to List operation.
473
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
474
+ # will be added to the HTTP request.
475
+ #
476
+ # @return [UsageDetailsListResult] operation results.
477
+ #
478
+ def list_next(next_page_link, custom_headers:nil)
479
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
480
+ response.body unless response.nil?
481
+ end
482
+
483
+ #
484
+ # Lists the usage details for the defined scope. Usage details are available
485
+ # via this API only for May 1, 2014 or later.
486
+ #
487
+ # @param next_page_link [String] The NextLink from the previous successful call
488
+ # to List operation.
489
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
490
+ # will be added to the HTTP request.
491
+ #
492
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
493
+ #
494
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
495
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
496
+ end
497
+
498
+ #
499
+ # Lists the usage details for the defined scope. Usage details are available
500
+ # via this API only for May 1, 2014 or later.
501
+ #
502
+ # @param next_page_link [String] The NextLink from the previous successful call
503
+ # to List operation.
504
+ # @param [Hash{String => String}] A hash of custom headers that will be added
505
+ # to the HTTP request.
506
+ #
507
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
508
+ #
509
+ def list_next_async(next_page_link, custom_headers:nil)
510
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
511
+
512
+
513
+ request_headers = {}
514
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
515
+
516
+ # Set Headers
517
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
518
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
519
+ path_template = '{nextLink}'
520
+
521
+ request_url = @base_url || @client.base_url
522
+
523
+ options = {
524
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
525
+ skip_encoding_path_params: {'nextLink' => next_page_link},
526
+ headers: request_headers.merge(custom_headers || {}),
527
+ base_url: request_url
528
+ }
529
+ promise = @client.make_request_async(:get, path_template, options)
530
+
531
+ promise = promise.then do |result|
532
+ http_response = result.response
533
+ status_code = http_response.status
534
+ response_content = http_response.body
535
+ unless status_code == 200
536
+ error_model = JSON.load(response_content)
537
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
538
+ end
539
+
540
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
541
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
542
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
543
+ # Deserialize Response
544
+ if status_code == 200
545
+ begin
546
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
547
+ result_mapper = Azure::Consumption::Mgmt::V2019_05_01_preview::Models::UsageDetailsListResult.mapper()
548
+ result.body = @client.deserialize(result_mapper, parsed_response)
549
+ rescue Exception => e
550
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
551
+ end
552
+ end
553
+
554
+ result
555
+ end
556
+
557
+ promise.execute
558
+ end
559
+
560
+ #
561
+ # Lists the usage details for the defined scope. Usage details are available
562
+ # via this API only for May 1, 2014 or later.
563
+ #
564
+ # @param scope [String] The scope associated with usage details operations.
565
+ # This includes '/subscriptions/{subscriptionId}/' for subscription scope,
566
+ # '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
567
+ # Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
568
+ # Department scope,
569
+ # '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
570
+ # EnrollmentAccount scope and
571
+ # '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
572
+ # Management Group scope. For subscription, billing account, department,
573
+ # enrollment account and management group, you can also add billing period to
574
+ # the scope using
575
+ # '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
576
+ # to specify billing period at department scope use
577
+ # '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
578
+ # @param expand [String] May be used to expand the properties/additionalInfo or
579
+ # properties/meterDetails within a list of usage details. By default, these
580
+ # fields are not included when listing usage details.
581
+ # @param filter [String] May be used to filter usageDetails by
582
+ # properties/resourceGroup, properties/resourceName, properties/resourceId,
583
+ # properties/chargeType, properties/reservationId, properties/publisherType or
584
+ # tags. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does
585
+ # not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
586
+ # string where key and value is separated by a colon (:). PublisherType Filter
587
+ # accepts two values azure and marketplace and it is currently supported for
588
+ # Web Direct Offer Type
589
+ # @param skiptoken [String] Skiptoken is only used if a previous operation
590
+ # returned a partial result. If a previous response contains a nextLink
591
+ # element, the value of the nextLink element will include a skiptoken parameter
592
+ # that specifies a starting point to use for subsequent calls.
593
+ # @param top [Integer] May be used to limit the number of results to the most
594
+ # recent N usageDetails.
595
+ # @param metric [Metrictype] Allows to select different type of cost/usage
596
+ # records. Possible values include: 'ActualCostMetricType',
597
+ # 'AmortizedCostMetricType', 'UsageMetricType'
598
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
599
+ # will be added to the HTTP request.
600
+ #
601
+ # @return [UsageDetailsListResult] which provide lazy access to pages of the
602
+ # response.
603
+ #
604
+ def list_as_lazy(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, metric:nil, custom_headers:nil)
605
+ response = list_async(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, metric:metric, custom_headers:custom_headers).value!
606
+ unless response.nil?
607
+ page = response.body
608
+ page.next_method = Proc.new do |next_page_link|
609
+ list_next_async(next_page_link, custom_headers:custom_headers)
610
+ end
611
+ page
612
+ end
613
+ end
614
+
615
+ end
616
+ end