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,722 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Consumption::Mgmt::V2019_06_01
|
7
|
+
#
|
8
|
+
# Consumption management client provides access to consumption resources for
|
9
|
+
# Azure Enterprise Subscriptions.
|
10
|
+
#
|
11
|
+
class Budgets
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the Budgets 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 all budgets for the defined scope.
|
27
|
+
#
|
28
|
+
# @param scope [String] The scope associated with budget operations. This
|
29
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
30
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
31
|
+
# resourceGroup scope,
|
32
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
33
|
+
# Account scope,
|
34
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
35
|
+
# for Department scope,
|
36
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
37
|
+
# for EnrollmentAccount scope,
|
38
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
39
|
+
# Management Group scope,
|
40
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
41
|
+
# for billingProfile scope,
|
42
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
43
|
+
# for invoiceSection scope.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [Array<Budget>] operation results.
|
48
|
+
#
|
49
|
+
def list(scope, custom_headers:nil)
|
50
|
+
first_page = list_as_lazy(scope, custom_headers:custom_headers)
|
51
|
+
first_page.get_all_items
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Lists all budgets for the defined scope.
|
56
|
+
#
|
57
|
+
# @param scope [String] The scope associated with budget operations. This
|
58
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
59
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
60
|
+
# resourceGroup scope,
|
61
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
62
|
+
# Account scope,
|
63
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
64
|
+
# for Department scope,
|
65
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
66
|
+
# for EnrollmentAccount scope,
|
67
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
68
|
+
# Management Group scope,
|
69
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
70
|
+
# for billingProfile scope,
|
71
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
72
|
+
# for invoiceSection scope.
|
73
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
74
|
+
# will be added to the HTTP request.
|
75
|
+
#
|
76
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
77
|
+
#
|
78
|
+
def list_with_http_info(scope, custom_headers:nil)
|
79
|
+
list_async(scope, custom_headers:custom_headers).value!
|
80
|
+
end
|
81
|
+
|
82
|
+
#
|
83
|
+
# Lists all budgets for the defined scope.
|
84
|
+
#
|
85
|
+
# @param scope [String] The scope associated with budget operations. This
|
86
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
87
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
88
|
+
# resourceGroup scope,
|
89
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
90
|
+
# Account scope,
|
91
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
92
|
+
# for Department scope,
|
93
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
94
|
+
# for EnrollmentAccount scope,
|
95
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
96
|
+
# Management Group scope,
|
97
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
98
|
+
# for billingProfile scope,
|
99
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
100
|
+
# for invoiceSection scope.
|
101
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
102
|
+
# to the HTTP request.
|
103
|
+
#
|
104
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
105
|
+
#
|
106
|
+
def list_async(scope, custom_headers:nil)
|
107
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
108
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
109
|
+
|
110
|
+
|
111
|
+
request_headers = {}
|
112
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
113
|
+
|
114
|
+
# Set Headers
|
115
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
116
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
117
|
+
path_template = '{scope}/providers/Microsoft.Consumption/budgets'
|
118
|
+
|
119
|
+
request_url = @base_url || @client.base_url
|
120
|
+
|
121
|
+
options = {
|
122
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
123
|
+
skip_encoding_path_params: {'scope' => scope},
|
124
|
+
query_params: {'api-version' => @client.api_version},
|
125
|
+
headers: request_headers.merge(custom_headers || {}),
|
126
|
+
base_url: request_url
|
127
|
+
}
|
128
|
+
promise = @client.make_request_async(:get, path_template, options)
|
129
|
+
|
130
|
+
promise = promise.then do |result|
|
131
|
+
http_response = result.response
|
132
|
+
status_code = http_response.status
|
133
|
+
response_content = http_response.body
|
134
|
+
unless status_code == 200
|
135
|
+
error_model = JSON.load(response_content)
|
136
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
137
|
+
end
|
138
|
+
|
139
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
140
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
141
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
142
|
+
# Deserialize Response
|
143
|
+
if status_code == 200
|
144
|
+
begin
|
145
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
146
|
+
result_mapper = Azure::Consumption::Mgmt::V2019_06_01::Models::BudgetsListResult.mapper()
|
147
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
148
|
+
rescue Exception => e
|
149
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
result
|
154
|
+
end
|
155
|
+
|
156
|
+
promise.execute
|
157
|
+
end
|
158
|
+
|
159
|
+
#
|
160
|
+
# Gets the budget for the scope by budget name.
|
161
|
+
#
|
162
|
+
# @param scope [String] The scope associated with budget operations. This
|
163
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
164
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
165
|
+
# resourceGroup scope,
|
166
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
167
|
+
# Account scope,
|
168
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
169
|
+
# for Department scope,
|
170
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
171
|
+
# for EnrollmentAccount scope,
|
172
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
173
|
+
# Management Group scope,
|
174
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
175
|
+
# for billingProfile scope,
|
176
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
177
|
+
# for invoiceSection scope.
|
178
|
+
# @param budget_name [String] Budget Name.
|
179
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
180
|
+
# will be added to the HTTP request.
|
181
|
+
#
|
182
|
+
# @return [Budget] operation results.
|
183
|
+
#
|
184
|
+
def get(scope, budget_name, custom_headers:nil)
|
185
|
+
response = get_async(scope, budget_name, custom_headers:custom_headers).value!
|
186
|
+
response.body unless response.nil?
|
187
|
+
end
|
188
|
+
|
189
|
+
#
|
190
|
+
# Gets the budget for the scope by budget name.
|
191
|
+
#
|
192
|
+
# @param scope [String] The scope associated with budget operations. This
|
193
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
194
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
195
|
+
# resourceGroup scope,
|
196
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
197
|
+
# Account scope,
|
198
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
199
|
+
# for Department scope,
|
200
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
201
|
+
# for EnrollmentAccount scope,
|
202
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
203
|
+
# Management Group scope,
|
204
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
205
|
+
# for billingProfile scope,
|
206
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
207
|
+
# for invoiceSection scope.
|
208
|
+
# @param budget_name [String] Budget Name.
|
209
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
210
|
+
# will be added to the HTTP request.
|
211
|
+
#
|
212
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
213
|
+
#
|
214
|
+
def get_with_http_info(scope, budget_name, custom_headers:nil)
|
215
|
+
get_async(scope, budget_name, custom_headers:custom_headers).value!
|
216
|
+
end
|
217
|
+
|
218
|
+
#
|
219
|
+
# Gets the budget for the scope by budget name.
|
220
|
+
#
|
221
|
+
# @param scope [String] The scope associated with budget operations. This
|
222
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
223
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
224
|
+
# resourceGroup scope,
|
225
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
226
|
+
# Account scope,
|
227
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
228
|
+
# for Department scope,
|
229
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
230
|
+
# for EnrollmentAccount scope,
|
231
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
232
|
+
# Management Group scope,
|
233
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
234
|
+
# for billingProfile scope,
|
235
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
236
|
+
# for invoiceSection scope.
|
237
|
+
# @param budget_name [String] Budget Name.
|
238
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
239
|
+
# to the HTTP request.
|
240
|
+
#
|
241
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
242
|
+
#
|
243
|
+
def get_async(scope, budget_name, custom_headers:nil)
|
244
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
245
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
246
|
+
fail ArgumentError, 'budget_name is nil' if budget_name.nil?
|
247
|
+
|
248
|
+
|
249
|
+
request_headers = {}
|
250
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
251
|
+
|
252
|
+
# Set Headers
|
253
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
254
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
255
|
+
path_template = '{scope}/providers/Microsoft.Consumption/budgets/{budgetName}'
|
256
|
+
|
257
|
+
request_url = @base_url || @client.base_url
|
258
|
+
|
259
|
+
options = {
|
260
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
261
|
+
path_params: {'budgetName' => budget_name},
|
262
|
+
skip_encoding_path_params: {'scope' => scope},
|
263
|
+
query_params: {'api-version' => @client.api_version},
|
264
|
+
headers: request_headers.merge(custom_headers || {}),
|
265
|
+
base_url: request_url
|
266
|
+
}
|
267
|
+
promise = @client.make_request_async(:get, path_template, options)
|
268
|
+
|
269
|
+
promise = promise.then do |result|
|
270
|
+
http_response = result.response
|
271
|
+
status_code = http_response.status
|
272
|
+
response_content = http_response.body
|
273
|
+
unless status_code == 200
|
274
|
+
error_model = JSON.load(response_content)
|
275
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
276
|
+
end
|
277
|
+
|
278
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
279
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
280
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
281
|
+
# Deserialize Response
|
282
|
+
if status_code == 200
|
283
|
+
begin
|
284
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
285
|
+
result_mapper = Azure::Consumption::Mgmt::V2019_06_01::Models::Budget.mapper()
|
286
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
287
|
+
rescue Exception => e
|
288
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
result
|
293
|
+
end
|
294
|
+
|
295
|
+
promise.execute
|
296
|
+
end
|
297
|
+
|
298
|
+
#
|
299
|
+
# The operation to create or update a budget. Update operation requires latest
|
300
|
+
# eTag to be set in the request mandatorily. You may obtain the latest eTag by
|
301
|
+
# performing a get operation. Create operation does not require eTag.
|
302
|
+
#
|
303
|
+
# @param scope [String] The scope associated with budget operations. This
|
304
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
305
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
306
|
+
# resourceGroup scope,
|
307
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
308
|
+
# Account scope,
|
309
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
310
|
+
# for Department scope,
|
311
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
312
|
+
# for EnrollmentAccount scope,
|
313
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
314
|
+
# Management Group scope,
|
315
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
316
|
+
# for billingProfile scope,
|
317
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
318
|
+
# for invoiceSection scope.
|
319
|
+
# @param budget_name [String] Budget Name.
|
320
|
+
# @param parameters [Budget] Parameters supplied to the Create Budget
|
321
|
+
# operation.
|
322
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
323
|
+
# will be added to the HTTP request.
|
324
|
+
#
|
325
|
+
# @return [Budget] operation results.
|
326
|
+
#
|
327
|
+
def create_or_update(scope, budget_name, parameters, custom_headers:nil)
|
328
|
+
response = create_or_update_async(scope, budget_name, parameters, custom_headers:custom_headers).value!
|
329
|
+
response.body unless response.nil?
|
330
|
+
end
|
331
|
+
|
332
|
+
#
|
333
|
+
# The operation to create or update a budget. Update operation requires latest
|
334
|
+
# eTag to be set in the request mandatorily. You may obtain the latest eTag by
|
335
|
+
# performing a get operation. Create operation does not require eTag.
|
336
|
+
#
|
337
|
+
# @param scope [String] The scope associated with budget operations. This
|
338
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
339
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
340
|
+
# resourceGroup scope,
|
341
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
342
|
+
# Account scope,
|
343
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
344
|
+
# for Department scope,
|
345
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
346
|
+
# for EnrollmentAccount scope,
|
347
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
348
|
+
# Management Group scope,
|
349
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
350
|
+
# for billingProfile scope,
|
351
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
352
|
+
# for invoiceSection scope.
|
353
|
+
# @param budget_name [String] Budget Name.
|
354
|
+
# @param parameters [Budget] Parameters supplied to the Create Budget
|
355
|
+
# operation.
|
356
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
357
|
+
# will be added to the HTTP request.
|
358
|
+
#
|
359
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
360
|
+
#
|
361
|
+
def create_or_update_with_http_info(scope, budget_name, parameters, custom_headers:nil)
|
362
|
+
create_or_update_async(scope, budget_name, parameters, custom_headers:custom_headers).value!
|
363
|
+
end
|
364
|
+
|
365
|
+
#
|
366
|
+
# The operation to create or update a budget. Update operation requires latest
|
367
|
+
# eTag to be set in the request mandatorily. You may obtain the latest eTag by
|
368
|
+
# performing a get operation. Create operation does not require eTag.
|
369
|
+
#
|
370
|
+
# @param scope [String] The scope associated with budget operations. This
|
371
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
372
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
373
|
+
# resourceGroup scope,
|
374
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
375
|
+
# Account scope,
|
376
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
377
|
+
# for Department scope,
|
378
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
379
|
+
# for EnrollmentAccount scope,
|
380
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
381
|
+
# Management Group scope,
|
382
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
383
|
+
# for billingProfile scope,
|
384
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
385
|
+
# for invoiceSection scope.
|
386
|
+
# @param budget_name [String] Budget Name.
|
387
|
+
# @param parameters [Budget] Parameters supplied to the Create Budget
|
388
|
+
# operation.
|
389
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
390
|
+
# to the HTTP request.
|
391
|
+
#
|
392
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
393
|
+
#
|
394
|
+
def create_or_update_async(scope, budget_name, parameters, custom_headers:nil)
|
395
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
396
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
397
|
+
fail ArgumentError, 'budget_name is nil' if budget_name.nil?
|
398
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
399
|
+
|
400
|
+
|
401
|
+
request_headers = {}
|
402
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
403
|
+
|
404
|
+
# Set Headers
|
405
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
406
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
407
|
+
|
408
|
+
# Serialize Request
|
409
|
+
request_mapper = Azure::Consumption::Mgmt::V2019_06_01::Models::Budget.mapper()
|
410
|
+
request_content = @client.serialize(request_mapper, parameters)
|
411
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
412
|
+
|
413
|
+
path_template = '{scope}/providers/Microsoft.Consumption/budgets/{budgetName}'
|
414
|
+
|
415
|
+
request_url = @base_url || @client.base_url
|
416
|
+
|
417
|
+
options = {
|
418
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
419
|
+
path_params: {'budgetName' => budget_name},
|
420
|
+
skip_encoding_path_params: {'scope' => scope},
|
421
|
+
query_params: {'api-version' => @client.api_version},
|
422
|
+
body: request_content,
|
423
|
+
headers: request_headers.merge(custom_headers || {}),
|
424
|
+
base_url: request_url
|
425
|
+
}
|
426
|
+
promise = @client.make_request_async(:put, path_template, options)
|
427
|
+
|
428
|
+
promise = promise.then do |result|
|
429
|
+
http_response = result.response
|
430
|
+
status_code = http_response.status
|
431
|
+
response_content = http_response.body
|
432
|
+
unless status_code == 200 || status_code == 201
|
433
|
+
error_model = JSON.load(response_content)
|
434
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
435
|
+
end
|
436
|
+
|
437
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
438
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
439
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
440
|
+
# Deserialize Response
|
441
|
+
if status_code == 200
|
442
|
+
begin
|
443
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
444
|
+
result_mapper = Azure::Consumption::Mgmt::V2019_06_01::Models::Budget.mapper()
|
445
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
446
|
+
rescue Exception => e
|
447
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
448
|
+
end
|
449
|
+
end
|
450
|
+
# Deserialize Response
|
451
|
+
if status_code == 201
|
452
|
+
begin
|
453
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
454
|
+
result_mapper = Azure::Consumption::Mgmt::V2019_06_01::Models::Budget.mapper()
|
455
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
456
|
+
rescue Exception => e
|
457
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
461
|
+
result
|
462
|
+
end
|
463
|
+
|
464
|
+
promise.execute
|
465
|
+
end
|
466
|
+
|
467
|
+
#
|
468
|
+
# The operation to delete a budget.
|
469
|
+
#
|
470
|
+
# @param scope [String] The scope associated with budget operations. This
|
471
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
472
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
473
|
+
# resourceGroup scope,
|
474
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
475
|
+
# Account scope,
|
476
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
477
|
+
# for Department scope,
|
478
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
479
|
+
# for EnrollmentAccount scope,
|
480
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
481
|
+
# Management Group scope,
|
482
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
483
|
+
# for billingProfile scope,
|
484
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
485
|
+
# for invoiceSection scope.
|
486
|
+
# @param budget_name [String] Budget Name.
|
487
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
488
|
+
# will be added to the HTTP request.
|
489
|
+
#
|
490
|
+
#
|
491
|
+
def delete(scope, budget_name, custom_headers:nil)
|
492
|
+
response = delete_async(scope, budget_name, custom_headers:custom_headers).value!
|
493
|
+
nil
|
494
|
+
end
|
495
|
+
|
496
|
+
#
|
497
|
+
# The operation to delete a budget.
|
498
|
+
#
|
499
|
+
# @param scope [String] The scope associated with budget operations. This
|
500
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
501
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
502
|
+
# resourceGroup scope,
|
503
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
504
|
+
# Account scope,
|
505
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
506
|
+
# for Department scope,
|
507
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
508
|
+
# for EnrollmentAccount scope,
|
509
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
510
|
+
# Management Group scope,
|
511
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
512
|
+
# for billingProfile scope,
|
513
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
514
|
+
# for invoiceSection scope.
|
515
|
+
# @param budget_name [String] Budget Name.
|
516
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
517
|
+
# will be added to the HTTP request.
|
518
|
+
#
|
519
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
520
|
+
#
|
521
|
+
def delete_with_http_info(scope, budget_name, custom_headers:nil)
|
522
|
+
delete_async(scope, budget_name, custom_headers:custom_headers).value!
|
523
|
+
end
|
524
|
+
|
525
|
+
#
|
526
|
+
# The operation to delete a budget.
|
527
|
+
#
|
528
|
+
# @param scope [String] The scope associated with budget operations. This
|
529
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
530
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
531
|
+
# resourceGroup scope,
|
532
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
533
|
+
# Account scope,
|
534
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
535
|
+
# for Department scope,
|
536
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
537
|
+
# for EnrollmentAccount scope,
|
538
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
539
|
+
# Management Group scope,
|
540
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
541
|
+
# for billingProfile scope,
|
542
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
543
|
+
# for invoiceSection scope.
|
544
|
+
# @param budget_name [String] Budget Name.
|
545
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
546
|
+
# to the HTTP request.
|
547
|
+
#
|
548
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
549
|
+
#
|
550
|
+
def delete_async(scope, budget_name, custom_headers:nil)
|
551
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
552
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
553
|
+
fail ArgumentError, 'budget_name is nil' if budget_name.nil?
|
554
|
+
|
555
|
+
|
556
|
+
request_headers = {}
|
557
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
558
|
+
|
559
|
+
# Set Headers
|
560
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
561
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
562
|
+
path_template = '{scope}/providers/Microsoft.Consumption/budgets/{budgetName}'
|
563
|
+
|
564
|
+
request_url = @base_url || @client.base_url
|
565
|
+
|
566
|
+
options = {
|
567
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
568
|
+
path_params: {'budgetName' => budget_name},
|
569
|
+
skip_encoding_path_params: {'scope' => scope},
|
570
|
+
query_params: {'api-version' => @client.api_version},
|
571
|
+
headers: request_headers.merge(custom_headers || {}),
|
572
|
+
base_url: request_url
|
573
|
+
}
|
574
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
575
|
+
|
576
|
+
promise = promise.then do |result|
|
577
|
+
http_response = result.response
|
578
|
+
status_code = http_response.status
|
579
|
+
response_content = http_response.body
|
580
|
+
unless status_code == 200
|
581
|
+
error_model = JSON.load(response_content)
|
582
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
583
|
+
end
|
584
|
+
|
585
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
586
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
587
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
588
|
+
|
589
|
+
result
|
590
|
+
end
|
591
|
+
|
592
|
+
promise.execute
|
593
|
+
end
|
594
|
+
|
595
|
+
#
|
596
|
+
# Lists all budgets for the defined scope.
|
597
|
+
#
|
598
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
599
|
+
# to List operation.
|
600
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
601
|
+
# will be added to the HTTP request.
|
602
|
+
#
|
603
|
+
# @return [BudgetsListResult] operation results.
|
604
|
+
#
|
605
|
+
def list_next(next_page_link, custom_headers:nil)
|
606
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
607
|
+
response.body unless response.nil?
|
608
|
+
end
|
609
|
+
|
610
|
+
#
|
611
|
+
# Lists all budgets for the defined scope.
|
612
|
+
#
|
613
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
614
|
+
# to List operation.
|
615
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
616
|
+
# will be added to the HTTP request.
|
617
|
+
#
|
618
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
619
|
+
#
|
620
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
621
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
622
|
+
end
|
623
|
+
|
624
|
+
#
|
625
|
+
# Lists all budgets for the defined scope.
|
626
|
+
#
|
627
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
628
|
+
# to List operation.
|
629
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
630
|
+
# to the HTTP request.
|
631
|
+
#
|
632
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
633
|
+
#
|
634
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
635
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
636
|
+
|
637
|
+
|
638
|
+
request_headers = {}
|
639
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
640
|
+
|
641
|
+
# Set Headers
|
642
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
643
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
644
|
+
path_template = '{nextLink}'
|
645
|
+
|
646
|
+
request_url = @base_url || @client.base_url
|
647
|
+
|
648
|
+
options = {
|
649
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
650
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
651
|
+
headers: request_headers.merge(custom_headers || {}),
|
652
|
+
base_url: request_url
|
653
|
+
}
|
654
|
+
promise = @client.make_request_async(:get, path_template, options)
|
655
|
+
|
656
|
+
promise = promise.then do |result|
|
657
|
+
http_response = result.response
|
658
|
+
status_code = http_response.status
|
659
|
+
response_content = http_response.body
|
660
|
+
unless status_code == 200
|
661
|
+
error_model = JSON.load(response_content)
|
662
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
663
|
+
end
|
664
|
+
|
665
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
666
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
667
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
668
|
+
# Deserialize Response
|
669
|
+
if status_code == 200
|
670
|
+
begin
|
671
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
672
|
+
result_mapper = Azure::Consumption::Mgmt::V2019_06_01::Models::BudgetsListResult.mapper()
|
673
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
674
|
+
rescue Exception => e
|
675
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
676
|
+
end
|
677
|
+
end
|
678
|
+
|
679
|
+
result
|
680
|
+
end
|
681
|
+
|
682
|
+
promise.execute
|
683
|
+
end
|
684
|
+
|
685
|
+
#
|
686
|
+
# Lists all budgets for the defined scope.
|
687
|
+
#
|
688
|
+
# @param scope [String] The scope associated with budget operations. This
|
689
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
690
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
691
|
+
# resourceGroup scope,
|
692
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
693
|
+
# Account scope,
|
694
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
695
|
+
# for Department scope,
|
696
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
697
|
+
# for EnrollmentAccount scope,
|
698
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
699
|
+
# Management Group scope,
|
700
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
701
|
+
# for billingProfile scope,
|
702
|
+
# 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'
|
703
|
+
# for invoiceSection scope.
|
704
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
705
|
+
# will be added to the HTTP request.
|
706
|
+
#
|
707
|
+
# @return [BudgetsListResult] which provide lazy access to pages of the
|
708
|
+
# response.
|
709
|
+
#
|
710
|
+
def list_as_lazy(scope, custom_headers:nil)
|
711
|
+
response = list_async(scope, custom_headers:custom_headers).value!
|
712
|
+
unless response.nil?
|
713
|
+
page = response.body
|
714
|
+
page.next_method = Proc.new do |next_page_link|
|
715
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
716
|
+
end
|
717
|
+
page
|
718
|
+
end
|
719
|
+
end
|
720
|
+
|
721
|
+
end
|
722
|
+
end
|