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.
- checksums.yaml +5 -5
- data/LICENSE.txt +20 -20
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption.rb +0 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/operation.rb +0 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/resource.rb +0 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/module_definition.rb +0 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/operations.rb +4 -0
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/usage_details.rb +4 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/datagrain.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/operation.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_details.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_summaries.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/resource.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/module_definition.rb +0 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/operations.rb +4 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/reservations_details.rb +2 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/reservations_summaries.rb +2 -0
- data/lib/2017-11-30/generated/azure_mgmt_consumption/usage_details.rb +4 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/budgets.rb +8 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/budget.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/budget_time_period.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/budgets_list_result.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/current_spend.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/notification.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operation.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operator_type.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/proxy_resource.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/time_grain_type.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/module_definition.rb +0 -0
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/operations.rb +4 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/budgets.rb +20 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
- data/lib/2018-01-31/generated/azure_mgmt_consumption/marketplaces.rb +8 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/budget.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/budget_time_period.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/budgets_list_result.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/category_type.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/current_spend.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/datagrain.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/filters.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/marketplace.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/notification.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operation.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operator_type.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/proxy_resource.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_details.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_summaries.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/resource.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/time_grain_type.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/module_definition.rb +0 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/operations.rb +4 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/price_sheet.rb +4 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/reservations_details.rb +8 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/reservations_summaries.rb +8 -0
- data/lib/2018-01-31/generated/azure_mgmt_consumption/usage_details.rb +8 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/budgets.rb +20 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/consumption_management_client.rb +3 -1
- data/lib/2018-03-31/generated/azure_mgmt_consumption/cost_tags_operations.rb +4 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/get_balances_by_billing_account.rb +2 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces.rb +8 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_billing_account.rb +8 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_department.rb +8 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_enrollment_accounts.rb +8 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/billing_frequency.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget_time_period.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budgets_list_result.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/category_type.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tag.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tags.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/current_spend.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/datagrain.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/filters.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplace.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/notification.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operator_type.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/proxy_resource.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/query_options.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource_attributes.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tag.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tags.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/time_grain_type.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/module_definition.rb +0 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/operations.rb +4 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/price_sheet.rb +4 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/reservation_recommendations_operations.rb +4 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_details.rb +8 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_summaries.rb +8 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/tags_operations.rb +2 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details.rb +8 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_billing_account.rb +8 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_department.rb +8 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_enrollment_account.rb +8 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
- data/lib/2018-05-31/generated/azure_mgmt_consumption/forecasts.rb +2 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/bound.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/charge_type.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/grain.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/query_options.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/resource.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/module_definition.rb +0 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/operations.rb +4 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/price_sheet.rb +4 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/usage_details.rb +32 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/balances.rb +4 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/budgets.rb +20 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/consumption_management_client.rb +1 -1
- data/lib/2018-06-30/generated/azure_mgmt_consumption/cost_tags.rb +4 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/forecasts.rb +2 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb +32 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/billing_frequency.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/bound.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget_time_period.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budgets_list_result.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/category_type.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/charge_type.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag_properties.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/current_spend.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/datagrain.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_details.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_response.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/filters.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/grain.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplace.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/meter_details.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/notification.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_display.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_list_result.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operator_type.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_result.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/proxy_resource.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/query_options.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_detail.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summary.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource_attributes.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tag.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tags_result.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/time_grain_type.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_detail.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/module_definition.rb +0 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/operations.rb +4 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/price_sheet.rb +4 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/reservation_recommendations.rb +4 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_details.rb +8 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_summaries.rb +8 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/tags.rb +2 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb +32 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption.rb +67 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/billing_profile_pricesheet.rb +161 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/charges_by_billing_account.rb +138 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/charges_by_billing_profile.rb +136 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/charges_by_invoice_section.rb +139 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +161 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/credit_summary_by_billing_profile.rb +122 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/events_by_billing_profile.rb +130 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/invoice_pricesheet.rb +161 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/lots_by_billing_profile.rb +122 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/address.rb +123 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/amount.rb +59 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb +255 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_profile.rb +161 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charge_summary_by_billing_account.rb +194 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charge_summary_by_billing_profile.rb +194 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charge_summary_by_invoice_section.rb +194 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charges_list_by_billing_account.rb +59 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charges_list_by_billing_profile.rb +59 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/charges_list_by_invoice_section.rb +59 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/credit_balance_summary.rb +61 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/credit_summary.rb +131 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/department.rb +133 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/enrollment.rb +145 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/enrollment_account.rb +158 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/enrollment_policies.rb +83 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/event_summary.rb +192 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/event_type.rb +17 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/events.rb +56 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/invoice_section.rb +111 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/lot_source.rb +16 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/lot_summary.rb +154 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/lots.rb +56 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/pricesheet_download_response.rb +104 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/resource.rb +100 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_consumption/operations.rb +220 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption.rb +89 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/aggregated_cost.rb +229 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/balances.rb +214 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/budgets.rb +722 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/charges.rb +157 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +180 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/forecasts.rb +124 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/marketplaces.rb +339 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/balance.rb +281 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/bound.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/budget.rb +171 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/charge_summary.rb +164 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/charges_list_result.rb +56 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/filters.rb +134 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/grain.rb +17 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/management_group_aggregated_cost_result.rb +228 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/marketplace.rb +388 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/meter_details_response.rb +98 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/metrictype.rb +17 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/notification.rb +139 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_detail.rb +187 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +224 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/reservation_summary.rb +205 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/resource.rb +100 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/tag.rb +46 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/usage_detail.rb +609 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/usage_details_download_response.rb +104 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/operations.rb +220 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/price_sheet.rb +266 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/reservation_recommendations.rb +230 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/reservations_details.rb +457 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/reservations_summaries.rb +473 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/tags.rb +148 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_consumption/usage_details.rb +568 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption.rb +89 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/aggregated_cost.rb +229 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/balances.rb +214 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/budgets.rb +722 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/charges.rb +157 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +180 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/forecasts.rb +124 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/marketplaces.rb +339 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/balance.rb +281 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/bound.rb +16 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/budget.rb +171 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/charge_summary.rb +164 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/charges_list_result.rb +56 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/filters.rb +134 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/grain.rb +17 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/management_group_aggregated_cost_result.rb +228 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/marketplace.rb +388 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/meter_details_response.rb +98 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/metrictype.rb +17 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/notification.rb +139 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_detail.rb +187 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +224 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/reservation_summary.rb +205 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/resource.rb +100 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/tag.rb +46 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/usage_detail.rb +609 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/usage_details_download_response.rb +104 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/operations.rb +220 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/price_sheet.rb +266 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/reservation_recommendations.rb +230 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/reservations_details.rb +457 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/reservations_summaries.rb +473 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/tags.rb +148 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_consumption/usage_details.rb +616 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption.rb +88 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/aggregated_cost.rb +229 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/balances.rb +214 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/budgets.rb +722 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/charges.rb +157 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/consumption_management_client.rb +180 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/forecasts.rb +124 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/marketplaces.rb +339 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/balance.rb +281 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/bound.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/budget.rb +172 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/charge_summary.rb +164 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/charges_list_result.rb +56 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/filters.rb +134 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/grain.rb +17 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/management_group_aggregated_cost_result.rb +228 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplace.rb +388 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/meter_details_response.rb +98 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/metrictype.rb +17 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/notification.rb +139 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_detail.rb +211 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +272 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/reservation_summary.rb +205 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/resource.rb +100 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/tag.rb +46 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/time_grain_type.rb +20 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/usage_detail.rb +609 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/operations.rb +220 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/price_sheet.rb +266 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/reservation_recommendations.rb +445 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/reservations_details.rb +670 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/reservations_summaries.rb +694 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/tags.rb +148 -0
- data/lib/2019-05-01/generated/azure_mgmt_consumption/usage_details.rb +367 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption.rb +92 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/aggregated_cost.rb +229 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/balances.rb +214 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/budgets.rb +722 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/charges.rb +157 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/consumption_management_client.rb +184 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/forecasts.rb +124 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/marketplaces.rb +339 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/balance.rb +281 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/bound.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/budget.rb +172 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/charge_summary.rb +164 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/charges_list_result.rb +56 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/filters.rb +134 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/grain.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/management_group_aggregated_cost_result.rb +228 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/marketplace.rb +388 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/meter_details_response.rb +98 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/metrictype.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/notification.rb +139 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_detail.rb +223 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +293 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_summary.rb +278 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb +315 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/reservation_transactions_list_result.rb +101 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/resource.rb +100 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/sku_property.rb +59 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/tag.rb +46 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/time_grain_type.rb +20 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/usage_detail.rb +609 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/operations.rb +220 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/price_sheet.rb +266 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/reservation_recommendations.rb +445 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/reservation_transactions.rb +238 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/reservations_details.rb +670 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/reservations_summaries.rb +694 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/tags.rb +148 -0
- data/lib/2019-06-01/generated/azure_mgmt_consumption/usage_details.rb +367 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption.rb +110 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/aggregated_cost.rb +229 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/balances.rb +214 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/budgets.rb +722 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/charges.rb +202 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/consumption_management_client.rb +196 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/credits.rb +119 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/events_operations.rb +247 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/forecasts.rb +124 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/lots_operations.rb +230 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/marketplaces.rb +331 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/amount.rb +59 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/balance.rb +281 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/bound.rb +16 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/budget.rb +172 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/charge_summary.rb +88 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/charges_list_result.rb +58 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/credit_balance_summary.rb +61 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/credit_summary.rb +132 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/event_summary.rb +193 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/event_type.rb +21 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/events.rb +100 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/filters.rb +134 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/grain.rb +17 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/legacy_charge_summary.rb +179 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/legacy_reservation_recommendation.rb +290 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/legacy_usage_detail.rb +624 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/lot_source.rb +16 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/lot_summary.rb +154 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/lots.rb +100 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/management_group_aggregated_cost_result.rb +228 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/marketplace.rb +388 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/meter_details_response.rb +98 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/metrictype.rb +17 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_charge_summary.rb +230 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_reservation_recommendation.rb +293 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/modern_usage_detail.rb +937 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/notification.rb +139 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_detail.rb +223 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +127 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +103 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_summary.rb +278 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb +328 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transactions_list_result.rb +101 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/resource.rb +100 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/sku_property.rb +59 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/tag.rb +46 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/time_grain_type.rb +20 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/usage_detail.rb +88 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +103 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/operations.rb +220 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/price_sheet.rb +266 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/reservation_recommendations.rb +254 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/reservation_transactions.rb +238 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/reservations_details.rb +697 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/reservations_summaries.rb +729 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/tags.rb +148 -0
- data/lib/2019-10-01/generated/azure_mgmt_consumption/usage_details.rb +403 -0
- data/lib/azure_mgmt_consumption.rb +9 -3
- data/lib/module_definition.rb +7 -7
- data/lib/profiles/latest/consumption_latest_profile_client.rb +40 -40
- data/lib/profiles/latest/consumption_module_definition.rb +8 -8
- data/lib/profiles/latest/modules/consumption_profile_module.rb +226 -136
- data/lib/version.rb +1 -1
- metadata +396 -5
@@ -0,0 +1,138 @@
|
|
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_11_01_preview
|
7
|
+
#
|
8
|
+
# Consumption management client provides access to consumption resources for
|
9
|
+
# Azure Enterprise Subscriptions.
|
10
|
+
#
|
11
|
+
class ChargesByBillingAccount
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the ChargesByBillingAccount 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 charges by billingAccountId for given start and end date. Start and
|
27
|
+
# end date are used to determine the billing period. For current month, the
|
28
|
+
# data will be provided from month to date. If there are no charges for a month
|
29
|
+
# then that month will show all zeroes.
|
30
|
+
#
|
31
|
+
# @param billing_account_id [String] BillingAccount ID
|
32
|
+
# @param start_date [String] Start date
|
33
|
+
# @param end_date [String] End date
|
34
|
+
# @param apply [String] May be used to group charges by
|
35
|
+
# properties/billingProfileId, or properties/invoiceSectionId.
|
36
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
|
+
# will be added to the HTTP request.
|
38
|
+
#
|
39
|
+
# @return [ChargesListByBillingAccount] operation results.
|
40
|
+
#
|
41
|
+
def list(billing_account_id, start_date, end_date, apply:nil, custom_headers:nil)
|
42
|
+
response = list_async(billing_account_id, start_date, end_date, apply:apply, custom_headers:custom_headers).value!
|
43
|
+
response.body unless response.nil?
|
44
|
+
end
|
45
|
+
|
46
|
+
#
|
47
|
+
# Lists the charges by billingAccountId for given start and end date. Start and
|
48
|
+
# end date are used to determine the billing period. For current month, the
|
49
|
+
# data will be provided from month to date. If there are no charges for a month
|
50
|
+
# then that month will show all zeroes.
|
51
|
+
#
|
52
|
+
# @param billing_account_id [String] BillingAccount ID
|
53
|
+
# @param start_date [String] Start date
|
54
|
+
# @param end_date [String] End date
|
55
|
+
# @param apply [String] May be used to group charges by
|
56
|
+
# properties/billingProfileId, or properties/invoiceSectionId.
|
57
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
58
|
+
# will be added to the HTTP request.
|
59
|
+
#
|
60
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
61
|
+
#
|
62
|
+
def list_with_http_info(billing_account_id, start_date, end_date, apply:nil, custom_headers:nil)
|
63
|
+
list_async(billing_account_id, start_date, end_date, apply:apply, custom_headers:custom_headers).value!
|
64
|
+
end
|
65
|
+
|
66
|
+
#
|
67
|
+
# Lists the charges by billingAccountId for given start and end date. Start and
|
68
|
+
# end date are used to determine the billing period. For current month, the
|
69
|
+
# data will be provided from month to date. If there are no charges for a month
|
70
|
+
# then that month will show all zeroes.
|
71
|
+
#
|
72
|
+
# @param billing_account_id [String] BillingAccount ID
|
73
|
+
# @param start_date [String] Start date
|
74
|
+
# @param end_date [String] End date
|
75
|
+
# @param apply [String] May be used to group charges by
|
76
|
+
# properties/billingProfileId, or properties/invoiceSectionId.
|
77
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
78
|
+
# to the HTTP request.
|
79
|
+
#
|
80
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
81
|
+
#
|
82
|
+
def list_async(billing_account_id, start_date, end_date, apply:nil, custom_headers:nil)
|
83
|
+
fail ArgumentError, 'billing_account_id is nil' if billing_account_id.nil?
|
84
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
85
|
+
fail ArgumentError, 'start_date is nil' if start_date.nil?
|
86
|
+
fail ArgumentError, 'end_date is nil' if end_date.nil?
|
87
|
+
|
88
|
+
|
89
|
+
request_headers = {}
|
90
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
91
|
+
|
92
|
+
# Set Headers
|
93
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
94
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
95
|
+
path_template = 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/charges'
|
96
|
+
|
97
|
+
request_url = @base_url || @client.base_url
|
98
|
+
|
99
|
+
options = {
|
100
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
101
|
+
path_params: {'billingAccountId' => billing_account_id},
|
102
|
+
query_params: {'api-version' => @client.api_version,'startDate' => start_date,'endDate' => end_date,'$apply' => apply},
|
103
|
+
headers: request_headers.merge(custom_headers || {}),
|
104
|
+
base_url: request_url
|
105
|
+
}
|
106
|
+
promise = @client.make_request_async(:get, path_template, options)
|
107
|
+
|
108
|
+
promise = promise.then do |result|
|
109
|
+
http_response = result.response
|
110
|
+
status_code = http_response.status
|
111
|
+
response_content = http_response.body
|
112
|
+
unless status_code == 200
|
113
|
+
error_model = JSON.load(response_content)
|
114
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
115
|
+
end
|
116
|
+
|
117
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
118
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
119
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
120
|
+
# Deserialize Response
|
121
|
+
if status_code == 200
|
122
|
+
begin
|
123
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
124
|
+
result_mapper = Azure::Consumption::Mgmt::V2018_11_01_preview::Models::ChargesListByBillingAccount.mapper()
|
125
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
126
|
+
rescue Exception => e
|
127
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
result
|
132
|
+
end
|
133
|
+
|
134
|
+
promise.execute
|
135
|
+
end
|
136
|
+
|
137
|
+
end
|
138
|
+
end
|
@@ -0,0 +1,136 @@
|
|
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_11_01_preview
|
7
|
+
#
|
8
|
+
# Consumption management client provides access to consumption resources for
|
9
|
+
# Azure Enterprise Subscriptions.
|
10
|
+
#
|
11
|
+
class ChargesByBillingProfile
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the ChargesByBillingProfile 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 charges by billing profile id for given start and end date. Start
|
27
|
+
# and end date are used to determine the billing period. For current month, the
|
28
|
+
# data will be provided from month to date. If there are no charges for a month
|
29
|
+
# then that month will show all zeroes.
|
30
|
+
#
|
31
|
+
# @param billing_account_id [String] BillingAccount ID
|
32
|
+
# @param billing_profile_id [String] Billing Profile Id.
|
33
|
+
# @param start_date [String] Start date
|
34
|
+
# @param end_date [String] End date
|
35
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
|
+
# will be added to the HTTP request.
|
37
|
+
#
|
38
|
+
# @return [ChargesListByBillingProfile] operation results.
|
39
|
+
#
|
40
|
+
def list(billing_account_id, billing_profile_id, start_date, end_date, custom_headers:nil)
|
41
|
+
response = list_async(billing_account_id, billing_profile_id, start_date, end_date, custom_headers:custom_headers).value!
|
42
|
+
response.body unless response.nil?
|
43
|
+
end
|
44
|
+
|
45
|
+
#
|
46
|
+
# Lists the charges by billing profile id for given start and end date. Start
|
47
|
+
# and end date are used to determine the billing period. For current month, the
|
48
|
+
# data will be provided from month to date. If there are no charges for a month
|
49
|
+
# then that month will show all zeroes.
|
50
|
+
#
|
51
|
+
# @param billing_account_id [String] BillingAccount ID
|
52
|
+
# @param billing_profile_id [String] Billing Profile Id.
|
53
|
+
# @param start_date [String] Start date
|
54
|
+
# @param end_date [String] End date
|
55
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
56
|
+
# will be added to the HTTP request.
|
57
|
+
#
|
58
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
59
|
+
#
|
60
|
+
def list_with_http_info(billing_account_id, billing_profile_id, start_date, end_date, custom_headers:nil)
|
61
|
+
list_async(billing_account_id, billing_profile_id, start_date, end_date, custom_headers:custom_headers).value!
|
62
|
+
end
|
63
|
+
|
64
|
+
#
|
65
|
+
# Lists the charges by billing profile id for given start and end date. Start
|
66
|
+
# and end date are used to determine the billing period. For current month, the
|
67
|
+
# data will be provided from month to date. If there are no charges for a month
|
68
|
+
# then that month will show all zeroes.
|
69
|
+
#
|
70
|
+
# @param billing_account_id [String] BillingAccount ID
|
71
|
+
# @param billing_profile_id [String] Billing Profile Id.
|
72
|
+
# @param start_date [String] Start date
|
73
|
+
# @param end_date [String] End date
|
74
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
75
|
+
# to the HTTP request.
|
76
|
+
#
|
77
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
78
|
+
#
|
79
|
+
def list_async(billing_account_id, billing_profile_id, start_date, end_date, custom_headers:nil)
|
80
|
+
fail ArgumentError, 'billing_account_id is nil' if billing_account_id.nil?
|
81
|
+
fail ArgumentError, 'billing_profile_id is nil' if billing_profile_id.nil?
|
82
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
83
|
+
fail ArgumentError, 'start_date is nil' if start_date.nil?
|
84
|
+
fail ArgumentError, 'end_date is nil' if end_date.nil?
|
85
|
+
|
86
|
+
|
87
|
+
request_headers = {}
|
88
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
89
|
+
|
90
|
+
# Set Headers
|
91
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
92
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
93
|
+
path_template = 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/charges'
|
94
|
+
|
95
|
+
request_url = @base_url || @client.base_url
|
96
|
+
|
97
|
+
options = {
|
98
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
99
|
+
path_params: {'billingAccountId' => billing_account_id,'billingProfileId' => billing_profile_id},
|
100
|
+
query_params: {'api-version' => @client.api_version,'startDate' => start_date,'endDate' => end_date},
|
101
|
+
headers: request_headers.merge(custom_headers || {}),
|
102
|
+
base_url: request_url
|
103
|
+
}
|
104
|
+
promise = @client.make_request_async(:get, path_template, options)
|
105
|
+
|
106
|
+
promise = promise.then do |result|
|
107
|
+
http_response = result.response
|
108
|
+
status_code = http_response.status
|
109
|
+
response_content = http_response.body
|
110
|
+
unless status_code == 200
|
111
|
+
error_model = JSON.load(response_content)
|
112
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
113
|
+
end
|
114
|
+
|
115
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
116
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
117
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
118
|
+
# Deserialize Response
|
119
|
+
if status_code == 200
|
120
|
+
begin
|
121
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
122
|
+
result_mapper = Azure::Consumption::Mgmt::V2018_11_01_preview::Models::ChargesListByBillingProfile.mapper()
|
123
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
124
|
+
rescue Exception => e
|
125
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
result
|
130
|
+
end
|
131
|
+
|
132
|
+
promise.execute
|
133
|
+
end
|
134
|
+
|
135
|
+
end
|
136
|
+
end
|
@@ -0,0 +1,139 @@
|
|
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_11_01_preview
|
7
|
+
#
|
8
|
+
# Consumption management client provides access to consumption resources for
|
9
|
+
# Azure Enterprise Subscriptions.
|
10
|
+
#
|
11
|
+
class ChargesByInvoiceSection
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the ChargesByInvoiceSection 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 charges by invoice section id for given start and end date. Start
|
27
|
+
# and end date are used to determine the billing period. For current month, the
|
28
|
+
# data will be provided from month to date. If there are no charges for a month
|
29
|
+
# then that month will show all zeroes.
|
30
|
+
#
|
31
|
+
# @param billing_account_id [String] BillingAccount ID
|
32
|
+
# @param invoice_section_id [String] Invoice Section Id.
|
33
|
+
# @param start_date [String] Start date
|
34
|
+
# @param end_date [String] End date
|
35
|
+
# @param apply [String] May be used to group charges by properties/productName.
|
36
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
|
+
# will be added to the HTTP request.
|
38
|
+
#
|
39
|
+
# @return [ChargesListByInvoiceSection] operation results.
|
40
|
+
#
|
41
|
+
def list(billing_account_id, invoice_section_id, start_date, end_date, apply:nil, custom_headers:nil)
|
42
|
+
response = list_async(billing_account_id, invoice_section_id, start_date, end_date, apply:apply, custom_headers:custom_headers).value!
|
43
|
+
response.body unless response.nil?
|
44
|
+
end
|
45
|
+
|
46
|
+
#
|
47
|
+
# Lists the charges by invoice section id for given start and end date. Start
|
48
|
+
# and end date are used to determine the billing period. For current month, the
|
49
|
+
# data will be provided from month to date. If there are no charges for a month
|
50
|
+
# then that month will show all zeroes.
|
51
|
+
#
|
52
|
+
# @param billing_account_id [String] BillingAccount ID
|
53
|
+
# @param invoice_section_id [String] Invoice Section Id.
|
54
|
+
# @param start_date [String] Start date
|
55
|
+
# @param end_date [String] End date
|
56
|
+
# @param apply [String] May be used to group charges by properties/productName.
|
57
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
58
|
+
# will be added to the HTTP request.
|
59
|
+
#
|
60
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
61
|
+
#
|
62
|
+
def list_with_http_info(billing_account_id, invoice_section_id, start_date, end_date, apply:nil, custom_headers:nil)
|
63
|
+
list_async(billing_account_id, invoice_section_id, start_date, end_date, apply:apply, custom_headers:custom_headers).value!
|
64
|
+
end
|
65
|
+
|
66
|
+
#
|
67
|
+
# Lists the charges by invoice section id for given start and end date. Start
|
68
|
+
# and end date are used to determine the billing period. For current month, the
|
69
|
+
# data will be provided from month to date. If there are no charges for a month
|
70
|
+
# then that month will show all zeroes.
|
71
|
+
#
|
72
|
+
# @param billing_account_id [String] BillingAccount ID
|
73
|
+
# @param invoice_section_id [String] Invoice Section Id.
|
74
|
+
# @param start_date [String] Start date
|
75
|
+
# @param end_date [String] End date
|
76
|
+
# @param apply [String] May be used to group charges by properties/productName.
|
77
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
78
|
+
# to the HTTP request.
|
79
|
+
#
|
80
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
81
|
+
#
|
82
|
+
def list_async(billing_account_id, invoice_section_id, start_date, end_date, apply:nil, custom_headers:nil)
|
83
|
+
fail ArgumentError, 'billing_account_id is nil' if billing_account_id.nil?
|
84
|
+
fail ArgumentError, 'invoice_section_id is nil' if invoice_section_id.nil?
|
85
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
86
|
+
fail ArgumentError, 'start_date is nil' if start_date.nil?
|
87
|
+
fail ArgumentError, 'end_date is nil' if end_date.nil?
|
88
|
+
|
89
|
+
|
90
|
+
request_headers = {}
|
91
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
92
|
+
|
93
|
+
# Set Headers
|
94
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
95
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
96
|
+
path_template = 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}/providers/Microsoft.Consumption/charges'
|
97
|
+
|
98
|
+
request_url = @base_url || @client.base_url
|
99
|
+
|
100
|
+
options = {
|
101
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
102
|
+
path_params: {'billingAccountId' => billing_account_id,'invoiceSectionId' => invoice_section_id},
|
103
|
+
query_params: {'api-version' => @client.api_version,'startDate' => start_date,'endDate' => end_date,'$apply' => apply},
|
104
|
+
headers: request_headers.merge(custom_headers || {}),
|
105
|
+
base_url: request_url
|
106
|
+
}
|
107
|
+
promise = @client.make_request_async(:get, path_template, options)
|
108
|
+
|
109
|
+
promise = promise.then do |result|
|
110
|
+
http_response = result.response
|
111
|
+
status_code = http_response.status
|
112
|
+
response_content = http_response.body
|
113
|
+
unless status_code == 200
|
114
|
+
error_model = JSON.load(response_content)
|
115
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
116
|
+
end
|
117
|
+
|
118
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
119
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
120
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
121
|
+
# Deserialize Response
|
122
|
+
if status_code == 200
|
123
|
+
begin
|
124
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
125
|
+
result_mapper = Azure::Consumption::Mgmt::V2018_11_01_preview::Models::ChargesListByInvoiceSection.mapper()
|
126
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
127
|
+
rescue Exception => e
|
128
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
result
|
133
|
+
end
|
134
|
+
|
135
|
+
promise.execute
|
136
|
+
end
|
137
|
+
|
138
|
+
end
|
139
|
+
end
|
@@ -0,0 +1,161 @@
|
|
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_11_01_preview
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class ConsumptionManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] Version of the API to be used with the client request.
|
21
|
+
# The current version is 2018-11-01-preview.
|
22
|
+
attr_reader :api_version
|
23
|
+
|
24
|
+
# @return [String] The preferred language for the response.
|
25
|
+
attr_accessor :accept_language
|
26
|
+
|
27
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
28
|
+
# Operations. Default value is 30.
|
29
|
+
attr_accessor :long_running_operation_retry_timeout
|
30
|
+
|
31
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
32
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
33
|
+
# generated and included in each request. Default is true.
|
34
|
+
attr_accessor :generate_client_request_id
|
35
|
+
|
36
|
+
# @return [Operations] operations
|
37
|
+
attr_reader :operations
|
38
|
+
|
39
|
+
# @return [CreditSummaryByBillingProfile] credit_summary_by_billing_profile
|
40
|
+
attr_reader :credit_summary_by_billing_profile
|
41
|
+
|
42
|
+
# @return [EventsByBillingProfile] events_by_billing_profile
|
43
|
+
attr_reader :events_by_billing_profile
|
44
|
+
|
45
|
+
# @return [LotsByBillingProfile] lots_by_billing_profile
|
46
|
+
attr_reader :lots_by_billing_profile
|
47
|
+
|
48
|
+
# @return [InvoicePricesheet] invoice_pricesheet
|
49
|
+
attr_reader :invoice_pricesheet
|
50
|
+
|
51
|
+
# @return [BillingProfilePricesheet] billing_profile_pricesheet
|
52
|
+
attr_reader :billing_profile_pricesheet
|
53
|
+
|
54
|
+
# @return [ChargesByBillingAccount] charges_by_billing_account
|
55
|
+
attr_reader :charges_by_billing_account
|
56
|
+
|
57
|
+
# @return [ChargesByBillingProfile] charges_by_billing_profile
|
58
|
+
attr_reader :charges_by_billing_profile
|
59
|
+
|
60
|
+
# @return [ChargesByInvoiceSection] charges_by_invoice_section
|
61
|
+
attr_reader :charges_by_invoice_section
|
62
|
+
|
63
|
+
#
|
64
|
+
# Creates initializes a new instance of the ConsumptionManagementClient class.
|
65
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
66
|
+
# @param base_url [String] the base URI of the service.
|
67
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
68
|
+
#
|
69
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
70
|
+
super(credentials, options)
|
71
|
+
@base_url = base_url || 'https://management.azure.com'
|
72
|
+
|
73
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
74
|
+
@credentials = credentials
|
75
|
+
|
76
|
+
@operations = Operations.new(self)
|
77
|
+
@credit_summary_by_billing_profile = CreditSummaryByBillingProfile.new(self)
|
78
|
+
@events_by_billing_profile = EventsByBillingProfile.new(self)
|
79
|
+
@lots_by_billing_profile = LotsByBillingProfile.new(self)
|
80
|
+
@invoice_pricesheet = InvoicePricesheet.new(self)
|
81
|
+
@billing_profile_pricesheet = BillingProfilePricesheet.new(self)
|
82
|
+
@charges_by_billing_account = ChargesByBillingAccount.new(self)
|
83
|
+
@charges_by_billing_profile = ChargesByBillingProfile.new(self)
|
84
|
+
@charges_by_invoice_section = ChargesByInvoiceSection.new(self)
|
85
|
+
@api_version = '2018-11-01-preview'
|
86
|
+
@accept_language = 'en-US'
|
87
|
+
@long_running_operation_retry_timeout = 30
|
88
|
+
@generate_client_request_id = true
|
89
|
+
add_telemetry
|
90
|
+
end
|
91
|
+
|
92
|
+
#
|
93
|
+
# Makes a request and returns the body of the response.
|
94
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
95
|
+
# @param path [String] the path, relative to {base_url}.
|
96
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
97
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
98
|
+
# Example:
|
99
|
+
#
|
100
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
101
|
+
# path = "/path"
|
102
|
+
# options = {
|
103
|
+
# body: request_content,
|
104
|
+
# query_params: {'api-version' => '2016-02-01'}
|
105
|
+
# }
|
106
|
+
# result = @client.make_request(:put, path, options)
|
107
|
+
#
|
108
|
+
def make_request(method, path, options = {})
|
109
|
+
result = make_request_with_http_info(method, path, options)
|
110
|
+
result.body unless result.nil?
|
111
|
+
end
|
112
|
+
|
113
|
+
#
|
114
|
+
# Makes a request and returns the operation response.
|
115
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
116
|
+
# @param path [String] the path, relative to {base_url}.
|
117
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
118
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
119
|
+
#
|
120
|
+
def make_request_with_http_info(method, path, options = {})
|
121
|
+
result = make_request_async(method, path, options).value!
|
122
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
123
|
+
result
|
124
|
+
end
|
125
|
+
|
126
|
+
#
|
127
|
+
# Makes a request asynchronously.
|
128
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
129
|
+
# @param path [String] the path, relative to {base_url}.
|
130
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
131
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
132
|
+
#
|
133
|
+
def make_request_async(method, path, options = {})
|
134
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
135
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
136
|
+
|
137
|
+
request_url = options[:base_url] || @base_url
|
138
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
139
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
140
|
+
end
|
141
|
+
|
142
|
+
request_headers = @request_headers
|
143
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
144
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
145
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
146
|
+
|
147
|
+
super(request_url, method, path, options)
|
148
|
+
end
|
149
|
+
|
150
|
+
|
151
|
+
private
|
152
|
+
#
|
153
|
+
# Adds telemetry information.
|
154
|
+
#
|
155
|
+
def add_telemetry
|
156
|
+
sdk_information = 'azure_mgmt_consumption'
|
157
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
158
|
+
add_user_agent_information(sdk_information)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|