azure_mgmt_consumption 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
- data/lib/2017-11-30/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
- data/lib/2018-01-31/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
- data/lib/2018-01-31/generated/azure_mgmt_consumption/price_sheet.rb +28 -12
- data/lib/2018-03-31/generated/azure_mgmt_consumption.rb +84 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/budgets.rb +993 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/consumption_management_client.rb +289 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/cost_tags_operations.rb +233 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/get_balances_by_billing_account.rb +120 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces.rb +528 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_billing_account.rb +536 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_department.rb +536 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_enrollment_accounts.rb +536 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance.rb +281 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget.rb +171 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tag.rb +46 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tags.rb +90 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/filters.rb +134 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplace.rb +375 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/meter_details.rb +122 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/notification.rb +139 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +134 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details.rb +187 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations.rb +224 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries.rb +205 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +101 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource.rb +91 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tag.rb +46 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tags.rb +90 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_detail.rb +355 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/operations.rb +216 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/reservation_recommendations_operations.rb +226 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_details.rb +449 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_summaries.rb +465 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/tags_operations.rb +113 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details.rb +577 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_billing_account.rb +599 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_department.rb +592 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_enrollment_account.rb +599 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption.rb +49 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/consumption_management_client.rb +144 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/forecasts.rb +122 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/bound.rb +16 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/grain.rb +17 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/meter_details.rb +122 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/resource.rb +91 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_detail.rb +403 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/operations.rb +216 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/usage_details.rb +2289 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption.rb +85 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/balances.rb +210 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/budgets.rb +993 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/consumption_management_client.rb +176 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/cost_tags.rb +233 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/forecasts.rb +122 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb +2058 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance.rb +281 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/bound.rb +16 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget.rb +171 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag.rb +90 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag_properties.rb +46 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/filters.rb +134 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/grain.rb +17 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplace.rb +375 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/notification.rb +139 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_detail.rb +187 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +224 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summary.rb +205 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource.rb +91 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tag.rb +46 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_detail.rb +415 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/operations.rb +216 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/reservation_recommendations.rb +226 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_details.rb +449 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_summaries.rb +465 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/tags.rb +113 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb +2289 -0
- data/lib/azure_mgmt_consumption.rb +4 -1
- data/lib/profiles/latest/modules/consumption_profile_module.rb +160 -78
- data/lib/version.rb +1 -1
- metadata +150 -4
@@ -0,0 +1,103 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Consumption::Mgmt::V2018_03_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of listing consumption operations. It contains a list of
|
10
|
+
# operations and a URL link to get the next set of results.
|
11
|
+
#
|
12
|
+
class OperationListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [Array<Operation>] List of consumption operations supported by
|
18
|
+
# the Microsoft.Consumption resource provider.
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
# @return [String] URL to get the next set of operation list results if
|
22
|
+
# there are any.
|
23
|
+
attr_accessor :next_link
|
24
|
+
|
25
|
+
# return [Proc] with next page method call.
|
26
|
+
attr_accessor :next_method
|
27
|
+
|
28
|
+
#
|
29
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
30
|
+
#
|
31
|
+
# @return [Array<Operation>] operation results.
|
32
|
+
#
|
33
|
+
def get_all_items
|
34
|
+
items = @value
|
35
|
+
page = self
|
36
|
+
while page.next_link != nil do
|
37
|
+
page = page.get_next_page
|
38
|
+
items.concat(page.value)
|
39
|
+
end
|
40
|
+
items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Gets the next page of results.
|
45
|
+
#
|
46
|
+
# @return [OperationListResult] with next page content.
|
47
|
+
#
|
48
|
+
def get_next_page
|
49
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
50
|
+
unless response.nil?
|
51
|
+
@next_link = response.body.next_link
|
52
|
+
@value = response.body.value
|
53
|
+
self
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'OperationListResult',
|
66
|
+
type: {
|
67
|
+
name: 'Composite',
|
68
|
+
class_name: 'OperationListResult',
|
69
|
+
model_properties: {
|
70
|
+
value: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
read_only: true,
|
74
|
+
serialized_name: 'value',
|
75
|
+
type: {
|
76
|
+
name: 'Sequence',
|
77
|
+
element: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'OperationElementType',
|
81
|
+
type: {
|
82
|
+
name: 'Composite',
|
83
|
+
class_name: 'Operation'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
},
|
88
|
+
next_link: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
read_only: true,
|
92
|
+
serialized_name: 'nextLink',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Consumption::Mgmt::V2018_03_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for OperatorType
|
10
|
+
#
|
11
|
+
module OperatorType
|
12
|
+
EqualTo = "EqualTo"
|
13
|
+
GreaterThan = "GreaterThan"
|
14
|
+
GreaterThanOrEqualTo = "GreaterThanOrEqualTo"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,134 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Consumption::Mgmt::V2018_03_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties of the price sheet.
|
10
|
+
#
|
11
|
+
class PriceSheetProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The id of the billing period resource that the usage
|
16
|
+
# belongs to.
|
17
|
+
attr_accessor :billing_period_id
|
18
|
+
|
19
|
+
# @return The meter id (GUID)
|
20
|
+
attr_accessor :meter_id
|
21
|
+
|
22
|
+
# @return [MeterDetails] The details about the meter. By default this is
|
23
|
+
# not populated, unless it's specified in $expand.
|
24
|
+
attr_accessor :meter_details
|
25
|
+
|
26
|
+
# @return [String] Unit of measure
|
27
|
+
attr_accessor :unit_of_measure
|
28
|
+
|
29
|
+
# @return Included quality for an offer
|
30
|
+
attr_accessor :included_quantity
|
31
|
+
|
32
|
+
# @return [String] Part Number
|
33
|
+
attr_accessor :part_number
|
34
|
+
|
35
|
+
# @return Unit Price
|
36
|
+
attr_accessor :unit_price
|
37
|
+
|
38
|
+
# @return [String] Currency Code
|
39
|
+
attr_accessor :currency_code
|
40
|
+
|
41
|
+
|
42
|
+
#
|
43
|
+
# Mapper for PriceSheetProperties class as Ruby Hash.
|
44
|
+
# This will be used for serialization/deserialization.
|
45
|
+
#
|
46
|
+
def self.mapper()
|
47
|
+
{
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'PriceSheetProperties',
|
51
|
+
type: {
|
52
|
+
name: 'Composite',
|
53
|
+
class_name: 'PriceSheetProperties',
|
54
|
+
model_properties: {
|
55
|
+
billing_period_id: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
read_only: true,
|
59
|
+
serialized_name: 'billingPeriodId',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
meter_id: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
read_only: true,
|
68
|
+
serialized_name: 'meterId',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
meter_details: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
read_only: true,
|
77
|
+
serialized_name: 'meterDetails',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'MeterDetails'
|
81
|
+
}
|
82
|
+
},
|
83
|
+
unit_of_measure: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: false,
|
86
|
+
read_only: true,
|
87
|
+
serialized_name: 'unitOfMeasure',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
included_quantity: {
|
93
|
+
client_side_validation: true,
|
94
|
+
required: false,
|
95
|
+
read_only: true,
|
96
|
+
serialized_name: 'includedQuantity',
|
97
|
+
type: {
|
98
|
+
name: 'Number'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
part_number: {
|
102
|
+
client_side_validation: true,
|
103
|
+
required: false,
|
104
|
+
read_only: true,
|
105
|
+
serialized_name: 'partNumber',
|
106
|
+
type: {
|
107
|
+
name: 'String'
|
108
|
+
}
|
109
|
+
},
|
110
|
+
unit_price: {
|
111
|
+
client_side_validation: true,
|
112
|
+
required: false,
|
113
|
+
read_only: true,
|
114
|
+
serialized_name: 'unitPrice',
|
115
|
+
type: {
|
116
|
+
name: 'Number'
|
117
|
+
}
|
118
|
+
},
|
119
|
+
currency_code: {
|
120
|
+
client_side_validation: true,
|
121
|
+
required: false,
|
122
|
+
read_only: true,
|
123
|
+
serialized_name: 'currencyCode',
|
124
|
+
type: {
|
125
|
+
name: 'String'
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Consumption::Mgmt::V2018_03_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An pricesheet resource.
|
10
|
+
#
|
11
|
+
class PriceSheetResult < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<PriceSheetProperties>] Price sheet
|
16
|
+
attr_accessor :pricesheets
|
17
|
+
|
18
|
+
# @return [String] The link (url) to the next page of results.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for PriceSheetResult 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: 'PriceSheetResult',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'PriceSheetResult',
|
34
|
+
model_properties: {
|
35
|
+
id: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'id',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
name: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'name',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
type: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'type',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
tags: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
read_only: true,
|
66
|
+
serialized_name: 'tags',
|
67
|
+
type: {
|
68
|
+
name: 'Dictionary',
|
69
|
+
value: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'StringElementType',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
},
|
79
|
+
pricesheets: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
read_only: true,
|
83
|
+
serialized_name: 'properties.pricesheets',
|
84
|
+
type: {
|
85
|
+
name: 'Sequence',
|
86
|
+
element: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'PriceSheetPropertiesElementType',
|
90
|
+
type: {
|
91
|
+
name: 'Composite',
|
92
|
+
class_name: 'PriceSheetProperties'
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
},
|
97
|
+
next_link: {
|
98
|
+
client_side_validation: true,
|
99
|
+
required: false,
|
100
|
+
read_only: true,
|
101
|
+
serialized_name: 'properties.nextLink',
|
102
|
+
type: {
|
103
|
+
name: 'String'
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Consumption::Mgmt::V2018_03_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The Resource model definition.
|
10
|
+
#
|
11
|
+
class ProxyResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Resource Id.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] Resource name.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [String] Resource type.
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# @return [String] eTag of the resource. To handle concurrent update
|
25
|
+
# scenarion, this field will be used to determine whether the user is
|
26
|
+
# updating the latest version or not.
|
27
|
+
attr_accessor :e_tag
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for ProxyResource class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'ProxyResource',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'ProxyResource',
|
42
|
+
model_properties: {
|
43
|
+
id: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
read_only: true,
|
47
|
+
serialized_name: 'id',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
name: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
read_only: true,
|
56
|
+
serialized_name: 'name',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
type: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
read_only: true,
|
65
|
+
serialized_name: 'type',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
},
|
70
|
+
e_tag: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'eTag',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|