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
data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_dataset_configuration.rb
ADDED
@@ -0,0 +1,56 @@
|
|
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_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The configuration of dataset in the query.
|
10
|
+
#
|
11
|
+
class QueryDatasetConfiguration
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<String>] Array of column names to be included in the
|
16
|
+
# query. Any valid query column name is allowed. If not provided, then
|
17
|
+
# query includes all columns.
|
18
|
+
attr_accessor :columns
|
19
|
+
|
20
|
+
|
21
|
+
#
|
22
|
+
# Mapper for QueryDatasetConfiguration class as Ruby Hash.
|
23
|
+
# This will be used for serialization/deserialization.
|
24
|
+
#
|
25
|
+
def self.mapper()
|
26
|
+
{
|
27
|
+
client_side_validation: true,
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'QueryDatasetConfiguration',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'QueryDatasetConfiguration',
|
33
|
+
model_properties: {
|
34
|
+
columns: {
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'columns',
|
38
|
+
type: {
|
39
|
+
name: 'Sequence',
|
40
|
+
element: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'StringElementType',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,88 @@
|
|
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_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The definition of a query.
|
10
|
+
#
|
11
|
+
class QueryDefinition
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The type of the query. Default value: 'Usage' .
|
16
|
+
attr_accessor :type
|
17
|
+
|
18
|
+
# @return [TimeframeType] The time frame for pulling data for the query.
|
19
|
+
# If custom, then a specific time period must be provided. Possible
|
20
|
+
# values include: 'WeekToDate', 'MonthToDate', 'YearToDate',
|
21
|
+
# 'TheLastWeek', 'TheLastMonth', 'TheLastYear', 'Custom',
|
22
|
+
# 'BillingMonthToDate', 'TheLastBillingMonth'
|
23
|
+
attr_accessor :timeframe
|
24
|
+
|
25
|
+
# @return [QueryTimePeriod] Has time period for pulling data for the
|
26
|
+
# query.
|
27
|
+
attr_accessor :time_period
|
28
|
+
|
29
|
+
# @return [QueryDataset] Has definition for data in this query.
|
30
|
+
attr_accessor :dataset
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for QueryDefinition class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'QueryDefinition',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'QueryDefinition',
|
45
|
+
model_properties: {
|
46
|
+
type: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: true,
|
49
|
+
is_constant: true,
|
50
|
+
serialized_name: 'type',
|
51
|
+
default_value: 'Usage',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
timeframe: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: true,
|
59
|
+
serialized_name: 'timeframe',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
time_period: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'timePeriod',
|
68
|
+
type: {
|
69
|
+
name: 'Composite',
|
70
|
+
class_name: 'QueryTimePeriod'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
dataset: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'dataset',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'QueryDataset'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,120 @@
|
|
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_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The filter expression to be used in the export.
|
10
|
+
#
|
11
|
+
class QueryFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<QueryFilter>] The logical "AND" expression. Must have at
|
16
|
+
# least 2 items.
|
17
|
+
attr_accessor :and_property
|
18
|
+
|
19
|
+
# @return [Array<QueryFilter>] The logical "OR" expression. Must have at
|
20
|
+
# least 2 items.
|
21
|
+
attr_accessor :or_property
|
22
|
+
|
23
|
+
# @return [QueryFilter] The logical "NOT" expression.
|
24
|
+
attr_accessor :not_property
|
25
|
+
|
26
|
+
# @return [QueryComparisonExpression] Has comparison expression for a
|
27
|
+
# dimension
|
28
|
+
attr_accessor :dimension
|
29
|
+
|
30
|
+
# @return [QueryComparisonExpression] Has comparison expression for a tag
|
31
|
+
attr_accessor :tag
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for QueryFilter class as Ruby Hash.
|
36
|
+
# This will be used for serialization/deserialization.
|
37
|
+
#
|
38
|
+
def self.mapper()
|
39
|
+
{
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'QueryFilter',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'QueryFilter',
|
46
|
+
model_properties: {
|
47
|
+
and_property: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'and',
|
51
|
+
constraints: {
|
52
|
+
MinItems: 2
|
53
|
+
},
|
54
|
+
type: {
|
55
|
+
name: 'Sequence',
|
56
|
+
element: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'QueryFilterElementType',
|
60
|
+
type: {
|
61
|
+
name: 'Composite',
|
62
|
+
class_name: 'QueryFilter'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
},
|
67
|
+
or_property: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'or',
|
71
|
+
constraints: {
|
72
|
+
MinItems: 2
|
73
|
+
},
|
74
|
+
type: {
|
75
|
+
name: 'Sequence',
|
76
|
+
element: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'QueryFilterElementType',
|
80
|
+
type: {
|
81
|
+
name: 'Composite',
|
82
|
+
class_name: 'QueryFilter'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},
|
87
|
+
not_property: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'not',
|
91
|
+
type: {
|
92
|
+
name: 'Composite',
|
93
|
+
class_name: 'QueryFilter'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
dimension: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
serialized_name: 'dimension',
|
100
|
+
type: {
|
101
|
+
name: 'Composite',
|
102
|
+
class_name: 'QueryComparisonExpression'
|
103
|
+
}
|
104
|
+
},
|
105
|
+
tag: {
|
106
|
+
client_side_validation: true,
|
107
|
+
required: false,
|
108
|
+
serialized_name: 'tag',
|
109
|
+
type: {
|
110
|
+
name: 'Composite',
|
111
|
+
class_name: 'QueryComparisonExpression'
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
@@ -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_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The group by expression to be used in the query.
|
10
|
+
#
|
11
|
+
class QueryGrouping
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [QueryColumnType] Has type of the column to group. Possible
|
16
|
+
# values include: 'Tag', 'Dimension'
|
17
|
+
attr_accessor :type
|
18
|
+
|
19
|
+
# @return [String] The name of the column to group.
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for QueryGrouping 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: 'QueryGrouping',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'QueryGrouping',
|
35
|
+
model_properties: {
|
36
|
+
type: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: true,
|
39
|
+
serialized_name: 'type',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
name: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: true,
|
47
|
+
serialized_name: 'name',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,57 @@
|
|
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_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of query. It contains all columns listed under groupings and
|
10
|
+
# aggregation.
|
11
|
+
#
|
12
|
+
class QueryResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<Query>] The list of usage data.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for QueryResult 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: 'QueryResult',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'QueryResult',
|
32
|
+
model_properties: {
|
33
|
+
value: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
read_only: true,
|
37
|
+
serialized_name: 'value',
|
38
|
+
type: {
|
39
|
+
name: 'Sequence',
|
40
|
+
element: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'QueryElementType',
|
44
|
+
type: {
|
45
|
+
name: 'Composite',
|
46
|
+
class_name: 'Query'
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
data/lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_sorting_configuration.rb
ADDED
@@ -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_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The configuration for sorting in the query.
|
10
|
+
#
|
11
|
+
class QuerySortingConfiguration
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [SortDirection] The sorting direction. Possible values include:
|
16
|
+
# 'Ascending', 'Descending'
|
17
|
+
attr_accessor :query_sorting_direction
|
18
|
+
|
19
|
+
# @return [String] The name of the column to use in sorting.
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for QuerySortingConfiguration 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: 'QuerySortingConfiguration',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'QuerySortingConfiguration',
|
35
|
+
model_properties: {
|
36
|
+
query_sorting_direction: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'querySortingDirection',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
name: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'name',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,57 @@
|
|
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_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The start and end date for pulling data for the query.
|
10
|
+
#
|
11
|
+
class QueryTimePeriod
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [DateTime] The start date to pull data from.
|
16
|
+
attr_accessor :from
|
17
|
+
|
18
|
+
# @return [DateTime] The end date to pull data to.
|
19
|
+
attr_accessor :to
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for QueryTimePeriod 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: 'QueryTimePeriod',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'QueryTimePeriod',
|
34
|
+
model_properties: {
|
35
|
+
from: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: true,
|
38
|
+
serialized_name: 'from',
|
39
|
+
type: {
|
40
|
+
name: 'DateTime'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
to: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: true,
|
46
|
+
serialized_name: 'to',
|
47
|
+
type: {
|
48
|
+
name: 'DateTime'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|