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,148 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Consumption::Mgmt::V2019_04_01_preview
|
7
|
+
#
|
8
|
+
# Consumption management client provides access to consumption resources for
|
9
|
+
# Azure Enterprise Subscriptions.
|
10
|
+
#
|
11
|
+
class Tags
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the Tags class.
|
16
|
+
# @param client service class for accessing basic functionality.
|
17
|
+
#
|
18
|
+
def initialize(client)
|
19
|
+
@client = client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [ConsumptionManagementClient] reference to the ConsumptionManagementClient
|
23
|
+
attr_reader :client
|
24
|
+
|
25
|
+
#
|
26
|
+
# Get all available tag keys for the defined scope
|
27
|
+
#
|
28
|
+
# @param scope [String] The scope associated with tags operations. This
|
29
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
30
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
31
|
+
# resourceGroup scope,
|
32
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
33
|
+
# Account scope,
|
34
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
35
|
+
# for Department scope,
|
36
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
37
|
+
# for EnrollmentAccount scope and
|
38
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
39
|
+
# Management Group scope..
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [TagsResult] operation results.
|
44
|
+
#
|
45
|
+
def get(scope, custom_headers:nil)
|
46
|
+
response = get_async(scope, custom_headers:custom_headers).value!
|
47
|
+
response.body unless response.nil?
|
48
|
+
end
|
49
|
+
|
50
|
+
#
|
51
|
+
# Get all available tag keys for the defined scope
|
52
|
+
#
|
53
|
+
# @param scope [String] The scope associated with tags operations. This
|
54
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
55
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
56
|
+
# resourceGroup scope,
|
57
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
58
|
+
# Account scope,
|
59
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
60
|
+
# for Department scope,
|
61
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
62
|
+
# for EnrollmentAccount scope and
|
63
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
64
|
+
# Management Group scope..
|
65
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
66
|
+
# will be added to the HTTP request.
|
67
|
+
#
|
68
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
69
|
+
#
|
70
|
+
def get_with_http_info(scope, custom_headers:nil)
|
71
|
+
get_async(scope, custom_headers:custom_headers).value!
|
72
|
+
end
|
73
|
+
|
74
|
+
#
|
75
|
+
# Get all available tag keys for the defined scope
|
76
|
+
#
|
77
|
+
# @param scope [String] The scope associated with tags operations. This
|
78
|
+
# includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
79
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for
|
80
|
+
# resourceGroup scope,
|
81
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
82
|
+
# Account scope,
|
83
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
|
84
|
+
# for Department scope,
|
85
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
86
|
+
# for EnrollmentAccount scope and
|
87
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
88
|
+
# Management Group scope..
|
89
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
90
|
+
# to the HTTP request.
|
91
|
+
#
|
92
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
93
|
+
#
|
94
|
+
def get_async(scope, custom_headers:nil)
|
95
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
96
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
97
|
+
|
98
|
+
|
99
|
+
request_headers = {}
|
100
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
101
|
+
|
102
|
+
# Set Headers
|
103
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
104
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
105
|
+
path_template = '{scope}/providers/Microsoft.Consumption/tags'
|
106
|
+
|
107
|
+
request_url = @base_url || @client.base_url
|
108
|
+
|
109
|
+
options = {
|
110
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
111
|
+
skip_encoding_path_params: {'scope' => scope},
|
112
|
+
query_params: {'api-version' => @client.api_version},
|
113
|
+
headers: request_headers.merge(custom_headers || {}),
|
114
|
+
base_url: request_url
|
115
|
+
}
|
116
|
+
promise = @client.make_request_async(:get, path_template, options)
|
117
|
+
|
118
|
+
promise = promise.then do |result|
|
119
|
+
http_response = result.response
|
120
|
+
status_code = http_response.status
|
121
|
+
response_content = http_response.body
|
122
|
+
unless status_code == 200
|
123
|
+
error_model = JSON.load(response_content)
|
124
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
125
|
+
end
|
126
|
+
|
127
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
128
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
129
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
130
|
+
# Deserialize Response
|
131
|
+
if status_code == 200
|
132
|
+
begin
|
133
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
134
|
+
result_mapper = Azure::Consumption::Mgmt::V2019_04_01_preview::Models::TagsResult.mapper()
|
135
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
136
|
+
rescue Exception => e
|
137
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
result
|
142
|
+
end
|
143
|
+
|
144
|
+
promise.execute
|
145
|
+
end
|
146
|
+
|
147
|
+
end
|
148
|
+
end
|
@@ -0,0 +1,568 @@
|
|
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_04_01_preview
|
7
|
+
#
|
8
|
+
# Consumption management client provides access to consumption resources for
|
9
|
+
# Azure Enterprise Subscriptions.
|
10
|
+
#
|
11
|
+
class UsageDetails
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the UsageDetails class.
|
16
|
+
# @param client service class for accessing basic functionality.
|
17
|
+
#
|
18
|
+
def initialize(client)
|
19
|
+
@client = client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [ConsumptionManagementClient] reference to the ConsumptionManagementClient
|
23
|
+
attr_reader :client
|
24
|
+
|
25
|
+
#
|
26
|
+
# Lists the usage details for the defined scope. Usage details are available
|
27
|
+
# via this API only for May 1, 2014 or later.
|
28
|
+
#
|
29
|
+
# @param scope [String] The scope associated with usage details operations.
|
30
|
+
# This includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
31
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
32
|
+
# Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
|
33
|
+
# Department scope,
|
34
|
+
# '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
|
35
|
+
# EnrollmentAccount scope and
|
36
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
37
|
+
# Management Group scope. For subscription, billing account, department,
|
38
|
+
# enrollment account and management group, you can also add billing period to
|
39
|
+
# the scope using
|
40
|
+
# '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
|
41
|
+
# to specify billing period at department scope use
|
42
|
+
# '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
|
43
|
+
# @param expand [String] May be used to expand the properties/additionalInfo or
|
44
|
+
# properties/meterDetails within a list of usage details. By default, these
|
45
|
+
# fields are not included when listing usage details.
|
46
|
+
# @param filter [String] May be used to filter usageDetails by
|
47
|
+
# properties/resourceGroup, properties/resourceName, properties/resourceId,
|
48
|
+
# properties/chargeType, properties/reservationId or tags. The filter supports
|
49
|
+
# 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne',
|
50
|
+
# 'or', or 'not'. Tag filter is a key value pair string where key and value is
|
51
|
+
# separated by a colon (:).
|
52
|
+
# @param skiptoken [String] Skiptoken is only used if a previous operation
|
53
|
+
# returned a partial result. If a previous response contains a nextLink
|
54
|
+
# element, the value of the nextLink element will include a skiptoken parameter
|
55
|
+
# that specifies a starting point to use for subsequent calls.
|
56
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
57
|
+
# recent N usageDetails.
|
58
|
+
# @param metric [Metrictype] Allows to select different type of cost/usage
|
59
|
+
# records. Possible values include: 'ActualCostMetricType',
|
60
|
+
# 'AmortizedCostMetricType', 'UsageMetricType'
|
61
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
62
|
+
# will be added to the HTTP request.
|
63
|
+
#
|
64
|
+
# @return [Array<UsageDetail>] operation results.
|
65
|
+
#
|
66
|
+
def list(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, metric:nil, custom_headers:nil)
|
67
|
+
first_page = list_as_lazy(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, metric:metric, custom_headers:custom_headers)
|
68
|
+
first_page.get_all_items
|
69
|
+
end
|
70
|
+
|
71
|
+
#
|
72
|
+
# Lists the usage details for the defined scope. Usage details are available
|
73
|
+
# via this API only for May 1, 2014 or later.
|
74
|
+
#
|
75
|
+
# @param scope [String] The scope associated with usage details operations.
|
76
|
+
# This includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
77
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
78
|
+
# Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
|
79
|
+
# Department scope,
|
80
|
+
# '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
|
81
|
+
# EnrollmentAccount scope and
|
82
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
83
|
+
# Management Group scope. For subscription, billing account, department,
|
84
|
+
# enrollment account and management group, you can also add billing period to
|
85
|
+
# the scope using
|
86
|
+
# '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
|
87
|
+
# to specify billing period at department scope use
|
88
|
+
# '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
|
89
|
+
# @param expand [String] May be used to expand the properties/additionalInfo or
|
90
|
+
# properties/meterDetails within a list of usage details. By default, these
|
91
|
+
# fields are not included when listing usage details.
|
92
|
+
# @param filter [String] May be used to filter usageDetails by
|
93
|
+
# properties/resourceGroup, properties/resourceName, properties/resourceId,
|
94
|
+
# properties/chargeType, properties/reservationId or tags. The filter supports
|
95
|
+
# 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne',
|
96
|
+
# 'or', or 'not'. Tag filter is a key value pair string where key and value is
|
97
|
+
# separated by a colon (:).
|
98
|
+
# @param skiptoken [String] Skiptoken is only used if a previous operation
|
99
|
+
# returned a partial result. If a previous response contains a nextLink
|
100
|
+
# element, the value of the nextLink element will include a skiptoken parameter
|
101
|
+
# that specifies a starting point to use for subsequent calls.
|
102
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
103
|
+
# recent N usageDetails.
|
104
|
+
# @param metric [Metrictype] Allows to select different type of cost/usage
|
105
|
+
# records. Possible values include: 'ActualCostMetricType',
|
106
|
+
# 'AmortizedCostMetricType', 'UsageMetricType'
|
107
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
108
|
+
# will be added to the HTTP request.
|
109
|
+
#
|
110
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
111
|
+
#
|
112
|
+
def list_with_http_info(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, metric:nil, custom_headers:nil)
|
113
|
+
list_async(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, metric:metric, custom_headers:custom_headers).value!
|
114
|
+
end
|
115
|
+
|
116
|
+
#
|
117
|
+
# Lists the usage details for the defined scope. Usage details are available
|
118
|
+
# via this API only for May 1, 2014 or later.
|
119
|
+
#
|
120
|
+
# @param scope [String] The scope associated with usage details operations.
|
121
|
+
# This includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
122
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
123
|
+
# Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
|
124
|
+
# Department scope,
|
125
|
+
# '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
|
126
|
+
# EnrollmentAccount scope and
|
127
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
128
|
+
# Management Group scope. For subscription, billing account, department,
|
129
|
+
# enrollment account and management group, you can also add billing period to
|
130
|
+
# the scope using
|
131
|
+
# '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
|
132
|
+
# to specify billing period at department scope use
|
133
|
+
# '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
|
134
|
+
# @param expand [String] May be used to expand the properties/additionalInfo or
|
135
|
+
# properties/meterDetails within a list of usage details. By default, these
|
136
|
+
# fields are not included when listing usage details.
|
137
|
+
# @param filter [String] May be used to filter usageDetails by
|
138
|
+
# properties/resourceGroup, properties/resourceName, properties/resourceId,
|
139
|
+
# properties/chargeType, properties/reservationId or tags. The filter supports
|
140
|
+
# 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne',
|
141
|
+
# 'or', or 'not'. Tag filter is a key value pair string where key and value is
|
142
|
+
# separated by a colon (:).
|
143
|
+
# @param skiptoken [String] Skiptoken is only used if a previous operation
|
144
|
+
# returned a partial result. If a previous response contains a nextLink
|
145
|
+
# element, the value of the nextLink element will include a skiptoken parameter
|
146
|
+
# that specifies a starting point to use for subsequent calls.
|
147
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
148
|
+
# recent N usageDetails.
|
149
|
+
# @param metric [Metrictype] Allows to select different type of cost/usage
|
150
|
+
# records. Possible values include: 'ActualCostMetricType',
|
151
|
+
# 'AmortizedCostMetricType', 'UsageMetricType'
|
152
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
153
|
+
# to the HTTP request.
|
154
|
+
#
|
155
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
156
|
+
#
|
157
|
+
def list_async(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, metric:nil, custom_headers:nil)
|
158
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
159
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000
|
160
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
161
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
162
|
+
|
163
|
+
|
164
|
+
request_headers = {}
|
165
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
166
|
+
|
167
|
+
# Set Headers
|
168
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
169
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
170
|
+
path_template = '{scope}/providers/Microsoft.Consumption/usageDetails'
|
171
|
+
|
172
|
+
request_url = @base_url || @client.base_url
|
173
|
+
|
174
|
+
options = {
|
175
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
176
|
+
skip_encoding_path_params: {'scope' => scope},
|
177
|
+
query_params: {'$expand' => expand,'$filter' => filter,'$skiptoken' => skiptoken,'$top' => top,'api-version' => @client.api_version,'metric' => metric},
|
178
|
+
headers: request_headers.merge(custom_headers || {}),
|
179
|
+
base_url: request_url
|
180
|
+
}
|
181
|
+
promise = @client.make_request_async(:get, path_template, options)
|
182
|
+
|
183
|
+
promise = promise.then do |result|
|
184
|
+
http_response = result.response
|
185
|
+
status_code = http_response.status
|
186
|
+
response_content = http_response.body
|
187
|
+
unless status_code == 200
|
188
|
+
error_model = JSON.load(response_content)
|
189
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
190
|
+
end
|
191
|
+
|
192
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
193
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
194
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
195
|
+
# Deserialize Response
|
196
|
+
if status_code == 200
|
197
|
+
begin
|
198
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
199
|
+
result_mapper = Azure::Consumption::Mgmt::V2019_04_01_preview::Models::UsageDetailsListResult.mapper()
|
200
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
201
|
+
rescue Exception => e
|
202
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
result
|
207
|
+
end
|
208
|
+
|
209
|
+
promise.execute
|
210
|
+
end
|
211
|
+
|
212
|
+
#
|
213
|
+
# Download usage details data.
|
214
|
+
#
|
215
|
+
# @param scope [String] The scope associated with usage details operations.
|
216
|
+
# This includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
217
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
218
|
+
# Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
|
219
|
+
# Department scope,
|
220
|
+
# '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
|
221
|
+
# EnrollmentAccount scope and
|
222
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
223
|
+
# Management Group scope. For subscription, billing account, department,
|
224
|
+
# enrollment account and management group, you can also add billing period to
|
225
|
+
# the scope using
|
226
|
+
# '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
|
227
|
+
# to specify billing period at department scope use
|
228
|
+
# '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
|
229
|
+
# @param metric [Metrictype] Allows to select different type of cost/usage
|
230
|
+
# records. Possible values include: 'ActualCostMetricType',
|
231
|
+
# 'AmortizedCostMetricType', 'UsageMetricType'
|
232
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
233
|
+
# will be added to the HTTP request.
|
234
|
+
#
|
235
|
+
# @return [UsageDetailsDownloadResponse] operation results.
|
236
|
+
#
|
237
|
+
def download(scope, metric:nil, custom_headers:nil)
|
238
|
+
response = download_async(scope, metric:metric, custom_headers:custom_headers).value!
|
239
|
+
response.body unless response.nil?
|
240
|
+
end
|
241
|
+
|
242
|
+
#
|
243
|
+
# @param scope [String] The scope associated with usage details operations.
|
244
|
+
# This includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
245
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
246
|
+
# Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
|
247
|
+
# Department scope,
|
248
|
+
# '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
|
249
|
+
# EnrollmentAccount scope and
|
250
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
251
|
+
# Management Group scope. For subscription, billing account, department,
|
252
|
+
# enrollment account and management group, you can also add billing period to
|
253
|
+
# the scope using
|
254
|
+
# '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
|
255
|
+
# to specify billing period at department scope use
|
256
|
+
# '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
|
257
|
+
# @param metric [Metrictype] Allows to select different type of cost/usage
|
258
|
+
# records. Possible values include: 'ActualCostMetricType',
|
259
|
+
# 'AmortizedCostMetricType', 'UsageMetricType'
|
260
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
261
|
+
# will be added to the HTTP request.
|
262
|
+
#
|
263
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
264
|
+
# response.
|
265
|
+
#
|
266
|
+
def download_async(scope, metric:nil, custom_headers:nil)
|
267
|
+
# Send request
|
268
|
+
promise = begin_download_async(scope, metric:metric, custom_headers:custom_headers)
|
269
|
+
|
270
|
+
promise = promise.then do |response|
|
271
|
+
# Defining deserialization method.
|
272
|
+
deserialize_method = lambda do |parsed_response|
|
273
|
+
result_mapper = Azure::Consumption::Mgmt::V2019_04_01_preview::Models::UsageDetailsDownloadResponse.mapper()
|
274
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
275
|
+
end
|
276
|
+
|
277
|
+
# Waiting for response.
|
278
|
+
@client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
|
279
|
+
end
|
280
|
+
|
281
|
+
promise
|
282
|
+
end
|
283
|
+
|
284
|
+
#
|
285
|
+
# Download usage details data.
|
286
|
+
#
|
287
|
+
# @param scope [String] The scope associated with usage details operations.
|
288
|
+
# This includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
289
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
290
|
+
# Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
|
291
|
+
# Department scope,
|
292
|
+
# '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
|
293
|
+
# EnrollmentAccount scope and
|
294
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
295
|
+
# Management Group scope. For subscription, billing account, department,
|
296
|
+
# enrollment account and management group, you can also add billing period to
|
297
|
+
# the scope using
|
298
|
+
# '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
|
299
|
+
# to specify billing period at department scope use
|
300
|
+
# '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
|
301
|
+
# @param metric [Metrictype] Allows to select different type of cost/usage
|
302
|
+
# records. Possible values include: 'ActualCostMetricType',
|
303
|
+
# 'AmortizedCostMetricType', 'UsageMetricType'
|
304
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
305
|
+
# will be added to the HTTP request.
|
306
|
+
#
|
307
|
+
# @return [UsageDetailsDownloadResponse] operation results.
|
308
|
+
#
|
309
|
+
def begin_download(scope, metric:nil, custom_headers:nil)
|
310
|
+
response = begin_download_async(scope, metric:metric, custom_headers:custom_headers).value!
|
311
|
+
response.body unless response.nil?
|
312
|
+
end
|
313
|
+
|
314
|
+
#
|
315
|
+
# Download usage details data.
|
316
|
+
#
|
317
|
+
# @param scope [String] The scope associated with usage details operations.
|
318
|
+
# This includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
319
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
320
|
+
# Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
|
321
|
+
# Department scope,
|
322
|
+
# '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
|
323
|
+
# EnrollmentAccount scope and
|
324
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
325
|
+
# Management Group scope. For subscription, billing account, department,
|
326
|
+
# enrollment account and management group, you can also add billing period to
|
327
|
+
# the scope using
|
328
|
+
# '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
|
329
|
+
# to specify billing period at department scope use
|
330
|
+
# '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
|
331
|
+
# @param metric [Metrictype] Allows to select different type of cost/usage
|
332
|
+
# records. Possible values include: 'ActualCostMetricType',
|
333
|
+
# 'AmortizedCostMetricType', 'UsageMetricType'
|
334
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
335
|
+
# will be added to the HTTP request.
|
336
|
+
#
|
337
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
338
|
+
#
|
339
|
+
def begin_download_with_http_info(scope, metric:nil, custom_headers:nil)
|
340
|
+
begin_download_async(scope, metric:metric, custom_headers:custom_headers).value!
|
341
|
+
end
|
342
|
+
|
343
|
+
#
|
344
|
+
# Download usage details data.
|
345
|
+
#
|
346
|
+
# @param scope [String] The scope associated with usage details operations.
|
347
|
+
# This includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
348
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
349
|
+
# Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
|
350
|
+
# Department scope,
|
351
|
+
# '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
|
352
|
+
# EnrollmentAccount scope and
|
353
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
354
|
+
# Management Group scope. For subscription, billing account, department,
|
355
|
+
# enrollment account and management group, you can also add billing period to
|
356
|
+
# the scope using
|
357
|
+
# '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
|
358
|
+
# to specify billing period at department scope use
|
359
|
+
# '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
|
360
|
+
# @param metric [Metrictype] Allows to select different type of cost/usage
|
361
|
+
# records. Possible values include: 'ActualCostMetricType',
|
362
|
+
# 'AmortizedCostMetricType', 'UsageMetricType'
|
363
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
364
|
+
# to the HTTP request.
|
365
|
+
#
|
366
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
367
|
+
#
|
368
|
+
def begin_download_async(scope, metric:nil, custom_headers:nil)
|
369
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
370
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
371
|
+
|
372
|
+
|
373
|
+
request_headers = {}
|
374
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
375
|
+
|
376
|
+
# Set Headers
|
377
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
378
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
379
|
+
path_template = '{scope}/providers/Microsoft.Consumption/usageDetails/download'
|
380
|
+
|
381
|
+
request_url = @base_url || @client.base_url
|
382
|
+
|
383
|
+
options = {
|
384
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
385
|
+
skip_encoding_path_params: {'scope' => scope},
|
386
|
+
query_params: {'api-version' => @client.api_version,'metric' => metric},
|
387
|
+
headers: request_headers.merge(custom_headers || {}),
|
388
|
+
base_url: request_url
|
389
|
+
}
|
390
|
+
promise = @client.make_request_async(:post, path_template, options)
|
391
|
+
|
392
|
+
promise = promise.then do |result|
|
393
|
+
http_response = result.response
|
394
|
+
status_code = http_response.status
|
395
|
+
response_content = http_response.body
|
396
|
+
unless status_code == 200 || status_code == 202
|
397
|
+
error_model = JSON.load(response_content)
|
398
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
399
|
+
end
|
400
|
+
|
401
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
402
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
403
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
404
|
+
# Deserialize Response
|
405
|
+
if status_code == 200
|
406
|
+
begin
|
407
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
408
|
+
result_mapper = Azure::Consumption::Mgmt::V2019_04_01_preview::Models::UsageDetailsDownloadResponse.mapper()
|
409
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
410
|
+
rescue Exception => e
|
411
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
415
|
+
result
|
416
|
+
end
|
417
|
+
|
418
|
+
promise.execute
|
419
|
+
end
|
420
|
+
|
421
|
+
#
|
422
|
+
# Lists the usage details for the defined scope. Usage details are available
|
423
|
+
# via this API only for May 1, 2014 or later.
|
424
|
+
#
|
425
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
426
|
+
# to List operation.
|
427
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
428
|
+
# will be added to the HTTP request.
|
429
|
+
#
|
430
|
+
# @return [UsageDetailsListResult] operation results.
|
431
|
+
#
|
432
|
+
def list_next(next_page_link, custom_headers:nil)
|
433
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
434
|
+
response.body unless response.nil?
|
435
|
+
end
|
436
|
+
|
437
|
+
#
|
438
|
+
# Lists the usage details for the defined scope. Usage details are available
|
439
|
+
# via this API only for May 1, 2014 or later.
|
440
|
+
#
|
441
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
442
|
+
# to List operation.
|
443
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
444
|
+
# will be added to the HTTP request.
|
445
|
+
#
|
446
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
447
|
+
#
|
448
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
449
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
450
|
+
end
|
451
|
+
|
452
|
+
#
|
453
|
+
# Lists the usage details for the defined scope. Usage details are available
|
454
|
+
# via this API only for May 1, 2014 or later.
|
455
|
+
#
|
456
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
457
|
+
# to List operation.
|
458
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
459
|
+
# to the HTTP request.
|
460
|
+
#
|
461
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
462
|
+
#
|
463
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
464
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
465
|
+
|
466
|
+
|
467
|
+
request_headers = {}
|
468
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
469
|
+
|
470
|
+
# Set Headers
|
471
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
472
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
473
|
+
path_template = '{nextLink}'
|
474
|
+
|
475
|
+
request_url = @base_url || @client.base_url
|
476
|
+
|
477
|
+
options = {
|
478
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
479
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
480
|
+
headers: request_headers.merge(custom_headers || {}),
|
481
|
+
base_url: request_url
|
482
|
+
}
|
483
|
+
promise = @client.make_request_async(:get, path_template, options)
|
484
|
+
|
485
|
+
promise = promise.then do |result|
|
486
|
+
http_response = result.response
|
487
|
+
status_code = http_response.status
|
488
|
+
response_content = http_response.body
|
489
|
+
unless status_code == 200
|
490
|
+
error_model = JSON.load(response_content)
|
491
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
492
|
+
end
|
493
|
+
|
494
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
495
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
496
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
497
|
+
# Deserialize Response
|
498
|
+
if status_code == 200
|
499
|
+
begin
|
500
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
501
|
+
result_mapper = Azure::Consumption::Mgmt::V2019_04_01_preview::Models::UsageDetailsListResult.mapper()
|
502
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
503
|
+
rescue Exception => e
|
504
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
505
|
+
end
|
506
|
+
end
|
507
|
+
|
508
|
+
result
|
509
|
+
end
|
510
|
+
|
511
|
+
promise.execute
|
512
|
+
end
|
513
|
+
|
514
|
+
#
|
515
|
+
# Lists the usage details for the defined scope. Usage details are available
|
516
|
+
# via this API only for May 1, 2014 or later.
|
517
|
+
#
|
518
|
+
# @param scope [String] The scope associated with usage details operations.
|
519
|
+
# This includes '/subscriptions/{subscriptionId}/' for subscription scope,
|
520
|
+
# '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing
|
521
|
+
# Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for
|
522
|
+
# Department scope,
|
523
|
+
# '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for
|
524
|
+
# EnrollmentAccount scope and
|
525
|
+
# '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
|
526
|
+
# Management Group scope. For subscription, billing account, department,
|
527
|
+
# enrollment account and management group, you can also add billing period to
|
528
|
+
# the scope using
|
529
|
+
# '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g.
|
530
|
+
# to specify billing period at department scope use
|
531
|
+
# '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
|
532
|
+
# @param expand [String] May be used to expand the properties/additionalInfo or
|
533
|
+
# properties/meterDetails within a list of usage details. By default, these
|
534
|
+
# fields are not included when listing usage details.
|
535
|
+
# @param filter [String] May be used to filter usageDetails by
|
536
|
+
# properties/resourceGroup, properties/resourceName, properties/resourceId,
|
537
|
+
# properties/chargeType, properties/reservationId or tags. The filter supports
|
538
|
+
# 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne',
|
539
|
+
# 'or', or 'not'. Tag filter is a key value pair string where key and value is
|
540
|
+
# separated by a colon (:).
|
541
|
+
# @param skiptoken [String] Skiptoken is only used if a previous operation
|
542
|
+
# returned a partial result. If a previous response contains a nextLink
|
543
|
+
# element, the value of the nextLink element will include a skiptoken parameter
|
544
|
+
# that specifies a starting point to use for subsequent calls.
|
545
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
546
|
+
# recent N usageDetails.
|
547
|
+
# @param metric [Metrictype] Allows to select different type of cost/usage
|
548
|
+
# records. Possible values include: 'ActualCostMetricType',
|
549
|
+
# 'AmortizedCostMetricType', 'UsageMetricType'
|
550
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
551
|
+
# will be added to the HTTP request.
|
552
|
+
#
|
553
|
+
# @return [UsageDetailsListResult] which provide lazy access to pages of the
|
554
|
+
# response.
|
555
|
+
#
|
556
|
+
def list_as_lazy(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, metric:nil, custom_headers:nil)
|
557
|
+
response = list_async(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, metric:metric, custom_headers:custom_headers).value!
|
558
|
+
unless response.nil?
|
559
|
+
page = response.body
|
560
|
+
page.next_method = Proc.new do |next_page_link|
|
561
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
562
|
+
end
|
563
|
+
page
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
567
|
+
end
|
568
|
+
end
|