azure_mgmt_cost_management 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management.rb +63 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/billing_account_dimensions.rb +149 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/cost_management_client.rb +455 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/dimension.rb +154 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/dimensions_list_result.rb +56 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/error_details.rb +59 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/error_response.rb +48 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/format_type.rb +15 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/granularity_type.rb +15 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/operation.rb +59 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/operation_display.rb +72 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/operation_list_result.rb +103 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/query.rb +138 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/query_column.rb +58 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/query_result.rb +57 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/recurrence_type.rb +18 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config.rb +130 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_aggregation.rb +60 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_column_type.rb +16 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_comparison_expression.rb +82 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_dataset.rb +121 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_dataset_configuration.rb +56 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_definition.rb +87 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_delivery_destination.rb +71 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_delivery_info.rb +48 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_filter.rb +121 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_grouping.rb +58 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_list_result.rb +57 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_recurrence_period.rb +58 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_schedule.rb +74 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_time_period.rb +57 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/resource.rb +100 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/status_type.rb +16 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/models/timeframe_type.rb +18 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/module_definition.rb +9 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/operations.rb +219 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/report_config_operations.rb +794 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/resource_group_dimensions.rb +150 -0
- data/lib/2018-05-31/generated/azure_mgmt_cost_management/subscription_dimensions.rb +146 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management.rb +69 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/cost_management_client.rb +144 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/dimensions.rb +182 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/exports.rb +754 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/common_export_properties.rb +72 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/dimension.rb +187 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/dimensions_list_result.rb +56 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/error_details.rb +59 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/error_response.rb +48 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/execution_status.rb +21 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/execution_type.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/export.rb +128 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/export_delivery_destination.rb +78 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/export_delivery_info.rb +48 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/export_execution.rb +173 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/export_execution_list_result.rb +56 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/export_list_result.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/export_recurrence_period.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/export_schedule.rb +74 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/format_type.rb +15 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/granularity_type.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/operation.rb +59 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/operation_display.rb +72 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/operation_list_result.rb +103 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query.rb +138 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_aggregation.rb +60 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_column.rb +58 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_column_type.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_comparison_expression.rb +82 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_dataset.rb +141 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_dataset_configuration.rb +56 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_definition.rb +88 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_filter.rb +120 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_grouping.rb +58 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_result.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_sorting_configuration.rb +58 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_time_period.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/recurrence_type.rb +18 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/resource.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/sort_direction.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/status_type.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/timeframe_type.rb +23 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/module_definition.rb +9 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/operations.rb +219 -0
- data/lib/2019-01-01/generated/azure_mgmt_cost_management/query_operations.rb +161 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management.rb +82 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/cloud_connector.rb +492 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/cost_management_client.rb +164 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/dimensions.rb +775 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/external_billing_account.rb +207 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/external_subscription.rb +482 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/forecast.rb +755 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/connector_billing_model.rb +18 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/connector_collection_error_info.rb +84 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/connector_collection_info.rb +86 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/connector_definition.rb +261 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/connector_definition_list_result.rb +57 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/connector_status.rb +18 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/cost_allocation_details_kind.rb +131 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/cost_allocation_policy.rb +17 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/custom_price_details_kind.rb +169 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/dimension.rb +187 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/dimensions_list_result.rb +56 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/error_base.rb +72 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/error_details.rb +91 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/error_response.rb +48 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/external_billing_account_definition.rb +133 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/external_billing_account_definition_list_result.rb +59 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/external_subscription_definition.rb +157 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/external_subscription_definition_list_result.rb +58 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/external_subscription_id_list_request.rb +54 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/function_type.rb +18 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/granularity_type.rb +16 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/markup.rb +46 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/operation.rb +59 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/operation_display.rb +72 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/operation_list_result.rb +103 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/operator_type.rb +16 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/query.rb +138 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/query_column.rb +58 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/query_result.rb +57 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/report_config_aggregation.rb +60 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/report_config_column_type.rb +16 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/report_config_comparison_expression.rb +80 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/report_config_dataset.rb +142 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/report_config_dataset_configuration.rb +56 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/report_config_definition.rb +90 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/report_config_filter.rb +121 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/report_config_grouping.rb +59 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/report_config_sorting.rb +58 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/report_config_time_period.rb +57 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/resource.rb +100 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/scope.rb +80 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb +173 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_list_result.rb +57 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb +138 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_status.rb +16 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/timeframe_type.rb +18 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/module_definition.rb +9 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/operations.rb +219 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/query_operations.rb +649 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/showback_rule_operations.rb +222 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_cost_management/showback_rules.rb +114 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management.rb +69 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/budget.rb +460 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/budgets.rb +285 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/cost_management_client.rb +144 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/accumulated_type.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/budget_model.rb +170 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/budget_time_period.rb +58 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/budgets_list_result.rb +101 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/category_type.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/chart_type.rb +19 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/current_spend.rb +59 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/error_base.rb +72 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/error_details.rb +91 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/error_response.rb +48 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/granularity_type.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/kpi_properties.rb +69 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/kpi_type_type.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/metric_type.rb +17 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/notification.rb +139 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/notification_operator_type.rb +17 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/operation.rb +59 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/operation_display.rb +72 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/operation_list_result.rb +103 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/operator_type.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/pivot_properties.rb +58 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/pivot_type_type.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/proxy_resource.rb +84 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/report_config_aggregation.rb +60 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/report_config_column_type.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/report_config_comparison_expression.rb +80 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/report_config_dataset.rb +142 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/report_config_dataset_configuration.rb +56 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/report_config_filter.rb +121 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/report_config_grouping.rb +59 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/report_config_sorting.rb +58 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/report_config_time_period.rb +57 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/resource.rb +100 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/scope.rb +80 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/time_grain_type.rb +17 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/timeframe_type.rb +18 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/view.rb +269 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/view_list_result.rb +100 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/module_definition.rb +9 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/operations.rb +219 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/views.rb +1248 -0
- data/lib/azure_mgmt_cost_management.rb +9 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/costmanagement_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/costmanagement_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/costmanagement_profile_module.rb +219 -0
- data/lib/version.rb +7 -0
- metadata +311 -0
@@ -0,0 +1,58 @@
|
|
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::CostManagement::Mgmt::V2019_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The start and end date for a budget.
|
10
|
+
#
|
11
|
+
class BudgetTimePeriod
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [DateTime] The start date for the budget.
|
16
|
+
attr_accessor :start_date
|
17
|
+
|
18
|
+
# @return [DateTime] The end date for the budget. If not provided, we
|
19
|
+
# default this to 10 years from the start date.
|
20
|
+
attr_accessor :end_date
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for BudgetTimePeriod class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'BudgetTimePeriod',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'BudgetTimePeriod',
|
35
|
+
model_properties: {
|
36
|
+
start_date: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: true,
|
39
|
+
serialized_name: 'startDate',
|
40
|
+
type: {
|
41
|
+
name: 'DateTime'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
end_date: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'endDate',
|
48
|
+
type: {
|
49
|
+
name: 'DateTime'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
data/lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/budgets_list_result.rb
ADDED
@@ -0,0 +1,101 @@
|
|
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::CostManagement::Mgmt::V2019_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of listing budgets. It contains a list of available budgets in the
|
10
|
+
# scope provided.
|
11
|
+
#
|
12
|
+
class BudgetsListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [Array<BudgetModel>] The list of budgets.
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] The link (url) to the next page of results.
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
# return [Proc] with next page method call.
|
24
|
+
attr_accessor :next_method
|
25
|
+
|
26
|
+
#
|
27
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
28
|
+
#
|
29
|
+
# @return [Array<BudgetModel>] operation results.
|
30
|
+
#
|
31
|
+
def get_all_items
|
32
|
+
items = @value
|
33
|
+
page = self
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
|
+
page = page.get_next_page
|
36
|
+
items.concat(page.value)
|
37
|
+
end
|
38
|
+
items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets the next page of results.
|
43
|
+
#
|
44
|
+
# @return [BudgetsListResult] with next page content.
|
45
|
+
#
|
46
|
+
def get_next_page
|
47
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
48
|
+
unless response.nil?
|
49
|
+
@next_link = response.body.next_link
|
50
|
+
@value = response.body.value
|
51
|
+
self
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Mapper for BudgetsListResult class as Ruby Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'BudgetsListResult',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'BudgetsListResult',
|
67
|
+
model_properties: {
|
68
|
+
value: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
read_only: true,
|
72
|
+
serialized_name: 'value',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'BudgetModelElementType',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'BudgetModel'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
next_link: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
read_only: true,
|
90
|
+
serialized_name: 'nextLink',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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::CostManagement::Mgmt::V2019_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for CategoryType
|
10
|
+
#
|
11
|
+
module CategoryType
|
12
|
+
Cost = "Cost"
|
13
|
+
Usage = "Usage"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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::CostManagement::Mgmt::V2019_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ChartType
|
10
|
+
#
|
11
|
+
module ChartType
|
12
|
+
Area = "Area"
|
13
|
+
Line = "Line"
|
14
|
+
StackedColumn = "StackedColumn"
|
15
|
+
GroupedColumn = "GroupedColumn"
|
16
|
+
Table = "Table"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,59 @@
|
|
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::CostManagement::Mgmt::V2019_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The current amount of cost which is being tracked for a budget.
|
10
|
+
#
|
11
|
+
class CurrentSpend
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return The total amount of cost which is being tracked by the budget.
|
16
|
+
attr_accessor :amount
|
17
|
+
|
18
|
+
# @return [String] The unit of measure for the budget amount.
|
19
|
+
attr_accessor :unit
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for CurrentSpend class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'CurrentSpend',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'CurrentSpend',
|
34
|
+
model_properties: {
|
35
|
+
amount: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'amount',
|
40
|
+
type: {
|
41
|
+
name: 'Number'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
unit: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'unit',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,72 @@
|
|
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::CostManagement::Mgmt::V2019_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The details of the error.
|
10
|
+
#
|
11
|
+
class ErrorBase
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] A machine readable error code.
|
16
|
+
attr_accessor :code
|
17
|
+
|
18
|
+
# @return [String] A human readable error message.
|
19
|
+
attr_accessor :message
|
20
|
+
|
21
|
+
# @return [String] Indicates which property in the request is responsible
|
22
|
+
# for the error.
|
23
|
+
attr_accessor :target
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for ErrorBase class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'ErrorBase',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'ErrorBase',
|
38
|
+
model_properties: {
|
39
|
+
code: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
read_only: true,
|
43
|
+
serialized_name: 'code',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
message: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'message',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
target: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'target',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,91 @@
|
|
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::CostManagement::Mgmt::V2019_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The details of the error.
|
10
|
+
#
|
11
|
+
class ErrorDetails
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] A machine readable error code.
|
16
|
+
attr_accessor :code
|
17
|
+
|
18
|
+
# @return [String] A human readable error message.
|
19
|
+
attr_accessor :message
|
20
|
+
|
21
|
+
# @return [String] Indicates which property in the request is responsible
|
22
|
+
# for the error.
|
23
|
+
attr_accessor :target
|
24
|
+
|
25
|
+
# @return [Array<ErrorBase>] error details.
|
26
|
+
attr_accessor :details
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for ErrorDetails class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'ErrorDetails',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'ErrorDetails',
|
41
|
+
model_properties: {
|
42
|
+
code: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
read_only: true,
|
46
|
+
serialized_name: 'code',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
message: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
read_only: true,
|
55
|
+
serialized_name: 'message',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
target: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'target',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
details: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'details',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'ErrorBaseElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'ErrorBase'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,48 @@
|
|
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::CostManagement::Mgmt::V2019_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Error response indicates that the service is not able to process the
|
10
|
+
# incoming request. The reason is provided in the error message.
|
11
|
+
#
|
12
|
+
class ErrorResponse
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [ErrorDetails] The details of the error.
|
17
|
+
attr_accessor :error
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for ErrorResponse class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'ErrorResponse',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'ErrorResponse',
|
32
|
+
model_properties: {
|
33
|
+
error: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'error',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'ErrorDetails'
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|