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,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_06_30
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for Grain
|
10
|
+
#
|
11
|
+
module Grain
|
12
|
+
Daily = "Daily"
|
13
|
+
Monthly = "Monthly"
|
14
|
+
Yearly = "Yearly"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,375 @@
|
|
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_06_30
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An marketplace resource.
|
10
|
+
#
|
11
|
+
class Marketplace < Resource
|
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 [DateTime] The start of the date time range covered by the
|
20
|
+
# usage detail.
|
21
|
+
attr_accessor :usage_start
|
22
|
+
|
23
|
+
# @return [DateTime] The end of the date time range covered by the usage
|
24
|
+
# detail.
|
25
|
+
attr_accessor :usage_end
|
26
|
+
|
27
|
+
# @return The marketplace resource rate.
|
28
|
+
attr_accessor :resource_rate
|
29
|
+
|
30
|
+
# @return [String] The type of offer.
|
31
|
+
attr_accessor :offer_name
|
32
|
+
|
33
|
+
# @return [String] The name of resource group.
|
34
|
+
attr_accessor :resource_group
|
35
|
+
|
36
|
+
# @return [String] The order number.
|
37
|
+
attr_accessor :order_number
|
38
|
+
|
39
|
+
# @return [String] The name of the resource instance that the usage is
|
40
|
+
# about.
|
41
|
+
attr_accessor :instance_name
|
42
|
+
|
43
|
+
# @return [String] The uri of the resource instance that the usage is
|
44
|
+
# about.
|
45
|
+
attr_accessor :instance_id
|
46
|
+
|
47
|
+
# @return [String] The ISO currency in which the meter is charged, for
|
48
|
+
# example, USD.
|
49
|
+
attr_accessor :currency
|
50
|
+
|
51
|
+
# @return The quantity of usage.
|
52
|
+
attr_accessor :consumed_quantity
|
53
|
+
|
54
|
+
# @return [String] The unit of measure.
|
55
|
+
attr_accessor :unit_of_measure
|
56
|
+
|
57
|
+
# @return The amount of cost before tax.
|
58
|
+
attr_accessor :pretax_cost
|
59
|
+
|
60
|
+
# @return [Boolean] The estimated usage is subject to change.
|
61
|
+
attr_accessor :is_estimated
|
62
|
+
|
63
|
+
# @return The meter id (GUID).
|
64
|
+
attr_accessor :meter_id
|
65
|
+
|
66
|
+
# @return Subscription guid.
|
67
|
+
attr_accessor :subscription_guid
|
68
|
+
|
69
|
+
# @return [String] Subscription name.
|
70
|
+
attr_accessor :subscription_name
|
71
|
+
|
72
|
+
# @return [String] Account name.
|
73
|
+
attr_accessor :account_name
|
74
|
+
|
75
|
+
# @return [String] Department name.
|
76
|
+
attr_accessor :department_name
|
77
|
+
|
78
|
+
# @return [String] Consumed service name.
|
79
|
+
attr_accessor :consumed_service
|
80
|
+
|
81
|
+
# @return [String] The cost center of this department if it is a
|
82
|
+
# department and a costcenter exists
|
83
|
+
attr_accessor :cost_center
|
84
|
+
|
85
|
+
# @return [String] Additional details of this usage item. By default this
|
86
|
+
# is not populated, unless it's specified in $expand.
|
87
|
+
attr_accessor :additional_properties
|
88
|
+
|
89
|
+
# @return [String] The name of publisher.
|
90
|
+
attr_accessor :publisher_name
|
91
|
+
|
92
|
+
# @return [String] The name of plan.
|
93
|
+
attr_accessor :plan_name
|
94
|
+
|
95
|
+
|
96
|
+
#
|
97
|
+
# Mapper for Marketplace class as Ruby Hash.
|
98
|
+
# This will be used for serialization/deserialization.
|
99
|
+
#
|
100
|
+
def self.mapper()
|
101
|
+
{
|
102
|
+
client_side_validation: true,
|
103
|
+
required: false,
|
104
|
+
serialized_name: 'Marketplace',
|
105
|
+
type: {
|
106
|
+
name: 'Composite',
|
107
|
+
class_name: 'Marketplace',
|
108
|
+
model_properties: {
|
109
|
+
id: {
|
110
|
+
client_side_validation: true,
|
111
|
+
required: false,
|
112
|
+
read_only: true,
|
113
|
+
serialized_name: 'id',
|
114
|
+
type: {
|
115
|
+
name: 'String'
|
116
|
+
}
|
117
|
+
},
|
118
|
+
name: {
|
119
|
+
client_side_validation: true,
|
120
|
+
required: false,
|
121
|
+
read_only: true,
|
122
|
+
serialized_name: 'name',
|
123
|
+
type: {
|
124
|
+
name: 'String'
|
125
|
+
}
|
126
|
+
},
|
127
|
+
type: {
|
128
|
+
client_side_validation: true,
|
129
|
+
required: false,
|
130
|
+
read_only: true,
|
131
|
+
serialized_name: 'type',
|
132
|
+
type: {
|
133
|
+
name: 'String'
|
134
|
+
}
|
135
|
+
},
|
136
|
+
tags: {
|
137
|
+
client_side_validation: true,
|
138
|
+
required: false,
|
139
|
+
read_only: true,
|
140
|
+
serialized_name: 'tags',
|
141
|
+
type: {
|
142
|
+
name: 'Dictionary',
|
143
|
+
value: {
|
144
|
+
client_side_validation: true,
|
145
|
+
required: false,
|
146
|
+
serialized_name: 'StringElementType',
|
147
|
+
type: {
|
148
|
+
name: 'String'
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
},
|
153
|
+
billing_period_id: {
|
154
|
+
client_side_validation: true,
|
155
|
+
required: false,
|
156
|
+
read_only: true,
|
157
|
+
serialized_name: 'properties.billingPeriodId',
|
158
|
+
type: {
|
159
|
+
name: 'String'
|
160
|
+
}
|
161
|
+
},
|
162
|
+
usage_start: {
|
163
|
+
client_side_validation: true,
|
164
|
+
required: false,
|
165
|
+
read_only: true,
|
166
|
+
serialized_name: 'properties.usageStart',
|
167
|
+
type: {
|
168
|
+
name: 'DateTime'
|
169
|
+
}
|
170
|
+
},
|
171
|
+
usage_end: {
|
172
|
+
client_side_validation: true,
|
173
|
+
required: false,
|
174
|
+
read_only: true,
|
175
|
+
serialized_name: 'properties.usageEnd',
|
176
|
+
type: {
|
177
|
+
name: 'DateTime'
|
178
|
+
}
|
179
|
+
},
|
180
|
+
resource_rate: {
|
181
|
+
client_side_validation: true,
|
182
|
+
required: false,
|
183
|
+
read_only: true,
|
184
|
+
serialized_name: 'properties.resourceRate',
|
185
|
+
type: {
|
186
|
+
name: 'Number'
|
187
|
+
}
|
188
|
+
},
|
189
|
+
offer_name: {
|
190
|
+
client_side_validation: true,
|
191
|
+
required: false,
|
192
|
+
read_only: true,
|
193
|
+
serialized_name: 'properties.offerName',
|
194
|
+
type: {
|
195
|
+
name: 'String'
|
196
|
+
}
|
197
|
+
},
|
198
|
+
resource_group: {
|
199
|
+
client_side_validation: true,
|
200
|
+
required: false,
|
201
|
+
read_only: true,
|
202
|
+
serialized_name: 'properties.resourceGroup',
|
203
|
+
type: {
|
204
|
+
name: 'String'
|
205
|
+
}
|
206
|
+
},
|
207
|
+
order_number: {
|
208
|
+
client_side_validation: true,
|
209
|
+
required: false,
|
210
|
+
read_only: true,
|
211
|
+
serialized_name: 'properties.orderNumber',
|
212
|
+
type: {
|
213
|
+
name: 'String'
|
214
|
+
}
|
215
|
+
},
|
216
|
+
instance_name: {
|
217
|
+
client_side_validation: true,
|
218
|
+
required: false,
|
219
|
+
read_only: true,
|
220
|
+
serialized_name: 'properties.instanceName',
|
221
|
+
type: {
|
222
|
+
name: 'String'
|
223
|
+
}
|
224
|
+
},
|
225
|
+
instance_id: {
|
226
|
+
client_side_validation: true,
|
227
|
+
required: false,
|
228
|
+
read_only: true,
|
229
|
+
serialized_name: 'properties.instanceId',
|
230
|
+
type: {
|
231
|
+
name: 'String'
|
232
|
+
}
|
233
|
+
},
|
234
|
+
currency: {
|
235
|
+
client_side_validation: true,
|
236
|
+
required: false,
|
237
|
+
read_only: true,
|
238
|
+
serialized_name: 'properties.currency',
|
239
|
+
type: {
|
240
|
+
name: 'String'
|
241
|
+
}
|
242
|
+
},
|
243
|
+
consumed_quantity: {
|
244
|
+
client_side_validation: true,
|
245
|
+
required: false,
|
246
|
+
read_only: true,
|
247
|
+
serialized_name: 'properties.consumedQuantity',
|
248
|
+
type: {
|
249
|
+
name: 'Number'
|
250
|
+
}
|
251
|
+
},
|
252
|
+
unit_of_measure: {
|
253
|
+
client_side_validation: true,
|
254
|
+
required: false,
|
255
|
+
read_only: true,
|
256
|
+
serialized_name: 'properties.unitOfMeasure',
|
257
|
+
type: {
|
258
|
+
name: 'String'
|
259
|
+
}
|
260
|
+
},
|
261
|
+
pretax_cost: {
|
262
|
+
client_side_validation: true,
|
263
|
+
required: false,
|
264
|
+
read_only: true,
|
265
|
+
serialized_name: 'properties.pretaxCost',
|
266
|
+
type: {
|
267
|
+
name: 'Number'
|
268
|
+
}
|
269
|
+
},
|
270
|
+
is_estimated: {
|
271
|
+
client_side_validation: true,
|
272
|
+
required: false,
|
273
|
+
read_only: true,
|
274
|
+
serialized_name: 'properties.isEstimated',
|
275
|
+
type: {
|
276
|
+
name: 'Boolean'
|
277
|
+
}
|
278
|
+
},
|
279
|
+
meter_id: {
|
280
|
+
client_side_validation: true,
|
281
|
+
required: false,
|
282
|
+
read_only: true,
|
283
|
+
serialized_name: 'properties.meterId',
|
284
|
+
type: {
|
285
|
+
name: 'String'
|
286
|
+
}
|
287
|
+
},
|
288
|
+
subscription_guid: {
|
289
|
+
client_side_validation: true,
|
290
|
+
required: false,
|
291
|
+
read_only: true,
|
292
|
+
serialized_name: 'properties.subscriptionGuid',
|
293
|
+
type: {
|
294
|
+
name: 'String'
|
295
|
+
}
|
296
|
+
},
|
297
|
+
subscription_name: {
|
298
|
+
client_side_validation: true,
|
299
|
+
required: false,
|
300
|
+
read_only: true,
|
301
|
+
serialized_name: 'properties.subscriptionName',
|
302
|
+
type: {
|
303
|
+
name: 'String'
|
304
|
+
}
|
305
|
+
},
|
306
|
+
account_name: {
|
307
|
+
client_side_validation: true,
|
308
|
+
required: false,
|
309
|
+
read_only: true,
|
310
|
+
serialized_name: 'properties.accountName',
|
311
|
+
type: {
|
312
|
+
name: 'String'
|
313
|
+
}
|
314
|
+
},
|
315
|
+
department_name: {
|
316
|
+
client_side_validation: true,
|
317
|
+
required: false,
|
318
|
+
read_only: true,
|
319
|
+
serialized_name: 'properties.departmentName',
|
320
|
+
type: {
|
321
|
+
name: 'String'
|
322
|
+
}
|
323
|
+
},
|
324
|
+
consumed_service: {
|
325
|
+
client_side_validation: true,
|
326
|
+
required: false,
|
327
|
+
read_only: true,
|
328
|
+
serialized_name: 'properties.consumedService',
|
329
|
+
type: {
|
330
|
+
name: 'String'
|
331
|
+
}
|
332
|
+
},
|
333
|
+
cost_center: {
|
334
|
+
client_side_validation: true,
|
335
|
+
required: false,
|
336
|
+
read_only: true,
|
337
|
+
serialized_name: 'properties.costCenter',
|
338
|
+
type: {
|
339
|
+
name: 'String'
|
340
|
+
}
|
341
|
+
},
|
342
|
+
additional_properties: {
|
343
|
+
client_side_validation: true,
|
344
|
+
required: false,
|
345
|
+
read_only: true,
|
346
|
+
serialized_name: 'properties.additionalProperties',
|
347
|
+
type: {
|
348
|
+
name: 'String'
|
349
|
+
}
|
350
|
+
},
|
351
|
+
publisher_name: {
|
352
|
+
client_side_validation: true,
|
353
|
+
required: false,
|
354
|
+
read_only: true,
|
355
|
+
serialized_name: 'properties.publisherName',
|
356
|
+
type: {
|
357
|
+
name: 'String'
|
358
|
+
}
|
359
|
+
},
|
360
|
+
plan_name: {
|
361
|
+
client_side_validation: true,
|
362
|
+
required: false,
|
363
|
+
read_only: true,
|
364
|
+
serialized_name: 'properties.planName',
|
365
|
+
type: {
|
366
|
+
name: 'String'
|
367
|
+
}
|
368
|
+
}
|
369
|
+
}
|
370
|
+
}
|
371
|
+
}
|
372
|
+
end
|
373
|
+
end
|
374
|
+
end
|
375
|
+
end
|
@@ -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::Consumption::Mgmt::V2018_06_30
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of listing marketplaces. It contains a list of available
|
10
|
+
# marketplaces in reverse chronological order by billing period.
|
11
|
+
#
|
12
|
+
class MarketplacesListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [Array<Marketplace>] The list of marketplaces.
|
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<Marketplace>] operation results.
|
30
|
+
#
|
31
|
+
def get_all_items
|
32
|
+
items = @value
|
33
|
+
page = self
|
34
|
+
while page.next_link != nil 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 [MarketplacesListResult] 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 MarketplacesListResult 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: 'MarketplacesListResult',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'MarketplacesListResult',
|
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: 'MarketplaceElementType',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'Marketplace'
|
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
|