azure_mgmt_consumption 0.16.0 → 0.18.1

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