vantage-client 0.0.6 → 0.1.0.beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +70 -0
  3. data/README.md +121 -61
  4. data/docs/Cost.md +11 -0
  5. data/docs/Costs.md +11 -0
  6. data/docs/CostsApi.md +177 -0
  7. data/docs/PingApi.md +5 -4
  8. data/docs/PricesApi.md +30 -7
  9. data/docs/Report.md +13 -0
  10. data/docs/Reports.md +9 -0
  11. data/lib/vantage-client.rb +6 -1
  12. data/lib/vantage-client/api/costs_api.rb +185 -0
  13. data/lib/vantage-client/api/ping_api.rb +9 -8
  14. data/lib/vantage-client/api/prices_api.rb +25 -1
  15. data/lib/vantage-client/api_client.rb +1 -1
  16. data/lib/vantage-client/api_error.rb +1 -1
  17. data/lib/vantage-client/configuration.rb +1 -1
  18. data/lib/vantage-client/models/cost.rb +215 -0
  19. data/lib/vantage-client/models/costs.rb +216 -0
  20. data/lib/vantage-client/models/price.rb +1 -1
  21. data/lib/vantage-client/models/prices.rb +1 -1
  22. data/lib/vantage-client/models/product.rb +1 -1
  23. data/lib/vantage-client/models/products.rb +1 -1
  24. data/lib/vantage-client/models/provider.rb +1 -1
  25. data/lib/vantage-client/models/providers.rb +1 -1
  26. data/lib/vantage-client/models/report.rb +235 -0
  27. data/lib/vantage-client/models/reports.rb +196 -0
  28. data/lib/vantage-client/models/service.rb +1 -1
  29. data/lib/vantage-client/models/services.rb +1 -1
  30. data/lib/vantage-client/version.rb +2 -2
  31. data/spec/.DS_Store +0 -0
  32. data/spec/api/costs_api_spec.rb +73 -0
  33. data/spec/api/ping_api_spec.rb +3 -3
  34. data/spec/api/prices_api_spec.rb +9 -1
  35. data/spec/api_client_spec.rb +1 -1
  36. data/spec/configuration_spec.rb +1 -1
  37. data/spec/models/cost_spec.rb +59 -0
  38. data/spec/models/costs_spec.rb +59 -0
  39. data/spec/models/price_spec.rb +1 -1
  40. data/spec/models/prices_spec.rb +1 -1
  41. data/spec/models/product_spec.rb +1 -1
  42. data/spec/models/products_spec.rb +1 -1
  43. data/spec/models/provider_spec.rb +1 -1
  44. data/spec/models/providers_spec.rb +1 -1
  45. data/spec/models/report_spec.rb +71 -0
  46. data/spec/models/reports_spec.rb +47 -0
  47. data/spec/models/service_spec.rb +1 -1
  48. data/spec/models/services_spec.rb +1 -1
  49. data/spec/spec_helper.rb +1 -1
  50. data/vantage-client-0.1.0.beta.1.gem +0 -0
  51. data/vantage-client.gemspec +1 -1
  52. metadata +27 -4
data/docs/PingApi.md CHANGED
@@ -8,11 +8,11 @@ Method | HTTP request | Description
8
8
 
9
9
 
10
10
  # **ping**
11
- > ping
11
+ > Object ping
12
12
 
13
13
 
14
14
 
15
- This is a health check endpoint that can be used to determine Vantage API healthiness. It will return a 200 success with the raw text of \"pong\" if everything is running smoothly.
15
+ This is a health check endpoint that can be used to determine Vantage API healthiness. It will return 200 if everything is running smoothly.
16
16
 
17
17
  ### Example
18
18
  ```ruby
@@ -27,7 +27,8 @@ end
27
27
  api_instance = Vantage::PingApi.new
28
28
 
29
29
  begin
30
- api_instance.ping
30
+ result = api_instance.ping
31
+ p result
31
32
  rescue Vantage::ApiError => e
32
33
  puts "Exception when calling PingApi->ping: #{e}"
33
34
  end
@@ -38,7 +39,7 @@ This endpoint does not need any parameter.
38
39
 
39
40
  ### Return type
40
41
 
41
- nil (empty response body)
42
+ **Object**
42
43
 
43
44
  ### Authorization
44
45
 
data/docs/PricesApi.md CHANGED
@@ -67,7 +67,7 @@ Name | Type | Description | Notes
67
67
 
68
68
 
69
69
  # **get_prices**
70
- > Prices get_prices(product_id)
70
+ > Prices get_prices(product_id, opts)
71
71
 
72
72
 
73
73
 
@@ -87,9 +87,13 @@ api_instance = Vantage::PricesApi.new
87
87
 
88
88
  product_id = 'product_id_example' # String |
89
89
 
90
+ opts = {
91
+ page: 2, # Integer | The page of results to return.
92
+ limit: 500 # Integer | The amount of results to return. The maximum is 1000
93
+ }
90
94
 
91
95
  begin
92
- result = api_instance.get_prices(product_id)
96
+ result = api_instance.get_prices(product_id, opts)
93
97
  p result
94
98
  rescue Vantage::ApiError => e
95
99
  puts "Exception when calling PricesApi->get_prices: #{e}"
@@ -101,6 +105,8 @@ end
101
105
  Name | Type | Description | Notes
102
106
  ------------- | ------------- | ------------- | -------------
103
107
  **product_id** | **String**| |
108
+ **page** | **Integer**| The page of results to return. | [optional]
109
+ **limit** | **Integer**| The amount of results to return. The maximum is 1000 | [optional]
104
110
 
105
111
  ### Return type
106
112
 
@@ -190,7 +196,9 @@ api_instance = Vantage::PricesApi.new
190
196
  opts = {
191
197
  provider_id: 'provider_id_example', # String | Query by Provider to list all Products across all Services for a Provider. e.g. aws
192
198
  service_id: 'service_id_example', # String | Query by Service to list all Products for a specific provider service. e.g. aws-ec2
193
- name: 'name_example' # String | Query by name of the Product to see a list of products which match that name. e.g. m5a.16xlarge
199
+ name: 'name_example', # String | Query by name of the Product to see a list of products which match that name. e.g. m5a.16xlarge
200
+ page: 2, # Integer | The page of results to return.
201
+ limit: 500 # Integer | The amount of results to return. The maximum is 1000
194
202
  }
195
203
 
196
204
  begin
@@ -208,6 +216,8 @@ Name | Type | Description | Notes
208
216
  **provider_id** | **String**| Query by Provider to list all Products across all Services for a Provider. e.g. aws | [optional]
209
217
  **service_id** | **String**| Query by Service to list all Products for a specific provider service. e.g. aws-ec2 | [optional]
210
218
  **name** | **String**| Query by name of the Product to see a list of products which match that name. e.g. m5a.16xlarge | [optional]
219
+ **page** | **Integer**| The page of results to return. | [optional]
220
+ **limit** | **Integer**| The amount of results to return. The maximum is 1000 | [optional]
211
221
 
212
222
  ### Return type
213
223
 
@@ -225,7 +235,7 @@ Name | Type | Description | Notes
225
235
 
226
236
 
227
237
  # **get_providers**
228
- > Providers get_providers
238
+ > Providers get_providers(opts)
229
239
 
230
240
 
231
241
 
@@ -243,8 +253,13 @@ end
243
253
 
244
254
  api_instance = Vantage::PricesApi.new
245
255
 
256
+ opts = {
257
+ page: 2, # Integer | The page of results to return.
258
+ limit: 500 # Integer | The amount of results to return. The maximum is 1000
259
+ }
260
+
246
261
  begin
247
- result = api_instance.get_providers
262
+ result = api_instance.get_providers(opts)
248
263
  p result
249
264
  rescue Vantage::ApiError => e
250
265
  puts "Exception when calling PricesApi->get_providers: #{e}"
@@ -252,7 +267,11 @@ end
252
267
  ```
253
268
 
254
269
  ### Parameters
255
- This endpoint does not need any parameter.
270
+
271
+ Name | Type | Description | Notes
272
+ ------------- | ------------- | ------------- | -------------
273
+ **page** | **Integer**| The page of results to return. | [optional]
274
+ **limit** | **Integer**| The amount of results to return. The maximum is 1000 | [optional]
256
275
 
257
276
  ### Return type
258
277
 
@@ -289,7 +308,9 @@ end
289
308
  api_instance = Vantage::PricesApi.new
290
309
 
291
310
  opts = {
292
- provider_id: 'provider_id_example' # String | Query services for a specific provider. e.g. aws
311
+ provider_id: 'provider_id_example', # String | Query services for a specific provider. e.g. aws
312
+ page: 2, # Integer | The page of results to return.
313
+ limit: 500 # Integer | The amount of results to return. The maximum is 1000
293
314
  }
294
315
 
295
316
  begin
@@ -305,6 +326,8 @@ end
305
326
  Name | Type | Description | Notes
306
327
  ------------- | ------------- | ------------- | -------------
307
328
  **provider_id** | **String**| Query services for a specific provider. e.g. aws | [optional]
329
+ **page** | **Integer**| The page of results to return. | [optional]
330
+ **limit** | **Integer**| The amount of results to return. The maximum is 1000 | [optional]
308
331
 
309
332
  ### Return type
310
333
 
data/docs/Report.md ADDED
@@ -0,0 +1,13 @@
1
+ # Vantage::Report
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **title** | **String** | The title of the cost report. | [optional]
8
+ **earliest_cost_date** | **String** | The date and time, in UTC, the report was created. ISO 8601 Formatted - 2021-01-01 or 2021-01-01T00:00:00Z. | [optional]
9
+ **latest_cost_date** | **String** | The date and time, in UTC, the report was created. ISO 8601 Formatted - 2021-07-31 or 2021-07-31T00:00:00Z. | [optional]
10
+ **created_at** | **String** | The date and time, in UTC, the report was created. ISO 8601 Formatted - 2021-07-15 or 2021-07-15T00:00:00Z. | [optional]
11
+ **workspace** | **String** | The name of the workspace the report is a part of. | [optional]
12
+
13
+
data/docs/Reports.md ADDED
@@ -0,0 +1,9 @@
1
+ # Vantage::Reports
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **links** | **Object** | | [optional]
7
+ **reports** | [**Array<Report>**](Report.md) | | [optional]
8
+
9
+
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -17,16 +17,21 @@ require 'vantage-client/version'
17
17
  require 'vantage-client/configuration'
18
18
 
19
19
  # Models
20
+ require 'vantage-client/models/cost'
21
+ require 'vantage-client/models/costs'
20
22
  require 'vantage-client/models/price'
21
23
  require 'vantage-client/models/prices'
22
24
  require 'vantage-client/models/product'
23
25
  require 'vantage-client/models/products'
24
26
  require 'vantage-client/models/provider'
25
27
  require 'vantage-client/models/providers'
28
+ require 'vantage-client/models/report'
29
+ require 'vantage-client/models/reports'
26
30
  require 'vantage-client/models/service'
27
31
  require 'vantage-client/models/services'
28
32
 
29
33
  # APIs
34
+ require 'vantage-client/api/costs_api'
30
35
  require 'vantage-client/api/ping_api'
31
36
  require 'vantage-client/api/prices_api'
32
37
 
@@ -0,0 +1,185 @@
1
+ =begin
2
+ #Vantage
3
+
4
+ #Vantage API
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: support@vantage.sh
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module Vantage
16
+ class CostsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Return available Costs for the specified Cost Report and optional time period. If no time period is specified it will return all available costs for the report.
23
+ # @param report_id
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :start_date Query costs by the first date you would like to filter from. ISO 8601 Formatted - 2021-07-15 or 2021-07-15T19:20:48+00:00.
26
+ # @option opts [String] :end_date Query costs by the last date you would like to filter to. ISO 8601 Formatted - 2021-07-15 or 2021-07-15T19:20:48+00:00.
27
+ # @option opts [Integer] :page The page of results to return.
28
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
29
+ # @return [Costs]
30
+ def get_costs(report_id, opts = {})
31
+ data, _status_code, _headers = get_costs_with_http_info(report_id, opts)
32
+ data
33
+ end
34
+
35
+ # Return available Costs for the specified Cost Report and optional time period. If no time period is specified it will return all available costs for the report.
36
+ # @param report_id
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :start_date Query costs by the first date you would like to filter from. ISO 8601 Formatted - 2021-07-15 or 2021-07-15T19:20:48+00:00.
39
+ # @option opts [String] :end_date Query costs by the last date you would like to filter to. ISO 8601 Formatted - 2021-07-15 or 2021-07-15T19:20:48+00:00.
40
+ # @option opts [Integer] :page The page of results to return.
41
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
42
+ # @return [Array<(Costs, Fixnum, Hash)>] Costs data, response status code and response headers
43
+ def get_costs_with_http_info(report_id, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: CostsApi.get_costs ...'
46
+ end
47
+ # verify the required parameter 'report_id' is set
48
+ if @api_client.config.client_side_validation && report_id.nil?
49
+ fail ArgumentError, "Missing the required parameter 'report_id' when calling CostsApi.get_costs"
50
+ end
51
+ # resource path
52
+ local_var_path = '/v1/reports/{report_id}/costs'.sub('{' + 'report_id' + '}', report_id.to_s)
53
+
54
+ # query parameters
55
+ query_params = {}
56
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
57
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
58
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
59
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
60
+
61
+ # header parameters
62
+ header_params = {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
+
66
+ # form parameters
67
+ form_params = {}
68
+
69
+ # http body (model)
70
+ post_body = nil
71
+ auth_names = ['oauth2']
72
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => 'Costs')
79
+ if @api_client.config.debugging
80
+ @api_client.config.logger.debug "API called: CostsApi#get_costs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ end
82
+ return data, status_code, headers
83
+ end
84
+ # Return a Cost Report.
85
+ # @param report_id
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [Report]
88
+ def get_report(report_id, opts = {})
89
+ data, _status_code, _headers = get_report_with_http_info(report_id, opts)
90
+ data
91
+ end
92
+
93
+ # Return a Cost Report.
94
+ # @param report_id
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [Array<(Report, Fixnum, Hash)>] Report data, response status code and response headers
97
+ def get_report_with_http_info(report_id, opts = {})
98
+ if @api_client.config.debugging
99
+ @api_client.config.logger.debug 'Calling API: CostsApi.get_report ...'
100
+ end
101
+ # verify the required parameter 'report_id' is set
102
+ if @api_client.config.client_side_validation && report_id.nil?
103
+ fail ArgumentError, "Missing the required parameter 'report_id' when calling CostsApi.get_report"
104
+ end
105
+ # resource path
106
+ local_var_path = '/v1/reports/{report_id}'.sub('{' + 'report_id' + '}', report_id.to_s)
107
+
108
+ # query parameters
109
+ query_params = {}
110
+
111
+ # header parameters
112
+ header_params = {}
113
+ # HTTP header 'Accept' (if needed)
114
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
115
+
116
+ # form parameters
117
+ form_params = {}
118
+
119
+ # http body (model)
120
+ post_body = nil
121
+ auth_names = ['oauth2']
122
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
123
+ :header_params => header_params,
124
+ :query_params => query_params,
125
+ :form_params => form_params,
126
+ :body => post_body,
127
+ :auth_names => auth_names,
128
+ :return_type => 'Report')
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug "API called: CostsApi#get_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
134
+ # Return all Cost Reports.
135
+ # @param [Hash] opts the optional parameters
136
+ # @option opts [Integer] :page The page of results to return.
137
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
138
+ # @return [Reports]
139
+ def get_reports(opts = {})
140
+ data, _status_code, _headers = get_reports_with_http_info(opts)
141
+ data
142
+ end
143
+
144
+ # Return all Cost Reports.
145
+ # @param [Hash] opts the optional parameters
146
+ # @option opts [Integer] :page The page of results to return.
147
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
148
+ # @return [Array<(Reports, Fixnum, Hash)>] Reports data, response status code and response headers
149
+ def get_reports_with_http_info(opts = {})
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug 'Calling API: CostsApi.get_reports ...'
152
+ end
153
+ # resource path
154
+ local_var_path = '/v1/reports'
155
+
156
+ # query parameters
157
+ query_params = {}
158
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
159
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
160
+
161
+ # header parameters
162
+ header_params = {}
163
+ # HTTP header 'Accept' (if needed)
164
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
165
+
166
+ # form parameters
167
+ form_params = {}
168
+
169
+ # http body (model)
170
+ post_body = nil
171
+ auth_names = ['oauth2']
172
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
173
+ :header_params => header_params,
174
+ :query_params => query_params,
175
+ :form_params => form_params,
176
+ :body => post_body,
177
+ :auth_names => auth_names,
178
+ :return_type => 'Reports')
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug "API called: CostsApi#get_reports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
181
+ end
182
+ return data, status_code, headers
183
+ end
184
+ end
185
+ end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -19,17 +19,17 @@ module Vantage
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # This is a health check endpoint that can be used to determine Vantage API healthiness. It will return a 200 success with the raw text of \"pong\" if everything is running smoothly.
22
+ # This is a health check endpoint that can be used to determine Vantage API healthiness. It will return 200 if everything is running smoothly.
23
23
  # @param [Hash] opts the optional parameters
24
- # @return [nil]
24
+ # @return [Object]
25
25
  def ping(opts = {})
26
- ping_with_http_info(opts)
27
- nil
26
+ data, _status_code, _headers = ping_with_http_info(opts)
27
+ data
28
28
  end
29
29
 
30
- # This is a health check endpoint that can be used to determine Vantage API healthiness. It will return a 200 success with the raw text of \&quot;pong\&quot; if everything is running smoothly.
30
+ # This is a health check endpoint that can be used to determine Vantage API healthiness. It will return 200 if everything is running smoothly.
31
31
  # @param [Hash] opts the optional parameters
32
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
32
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
33
33
  def ping_with_http_info(opts = {})
34
34
  if @api_client.config.debugging
35
35
  @api_client.config.logger.debug 'Calling API: PingApi.ping ...'
@@ -56,7 +56,8 @@ module Vantage
56
56
  :query_params => query_params,
57
57
  :form_params => form_params,
58
58
  :body => post_body,
59
- :auth_names => auth_names)
59
+ :auth_names => auth_names,
60
+ :return_type => 'Object')
60
61
  if @api_client.config.debugging
61
62
  @api_client.config.logger.debug "API called: PingApi#ping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
62
63
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -78,6 +78,8 @@ module Vantage
78
78
  # Return available Prices across all Regions for a Product.
79
79
  # @param product_id
80
80
  # @param [Hash] opts the optional parameters
81
+ # @option opts [Integer] :page The page of results to return.
82
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
81
83
  # @return [Prices]
82
84
  def get_prices(product_id, opts = {})
83
85
  data, _status_code, _headers = get_prices_with_http_info(product_id, opts)
@@ -87,6 +89,8 @@ module Vantage
87
89
  # Return available Prices across all Regions for a Product.
88
90
  # @param product_id
89
91
  # @param [Hash] opts the optional parameters
92
+ # @option opts [Integer] :page The page of results to return.
93
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
90
94
  # @return [Array<(Prices, Fixnum, Hash)>] Prices data, response status code and response headers
91
95
  def get_prices_with_http_info(product_id, opts = {})
92
96
  if @api_client.config.debugging
@@ -101,6 +105,8 @@ module Vantage
101
105
 
102
106
  # query parameters
103
107
  query_params = {}
108
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
109
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
104
110
 
105
111
  # header parameters
106
112
  header_params = {}
@@ -180,6 +186,8 @@ module Vantage
180
186
  # @option opts [String] :provider_id Query by Provider to list all Products across all Services for a Provider. e.g. aws
181
187
  # @option opts [String] :service_id Query by Service to list all Products for a specific provider service. e.g. aws-ec2
182
188
  # @option opts [String] :name Query by name of the Product to see a list of products which match that name. e.g. m5a.16xlarge
189
+ # @option opts [Integer] :page The page of results to return.
190
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
183
191
  # @return [Products]
184
192
  def get_products(opts = {})
185
193
  data, _status_code, _headers = get_products_with_http_info(opts)
@@ -191,6 +199,8 @@ module Vantage
191
199
  # @option opts [String] :provider_id Query by Provider to list all Products across all Services for a Provider. e.g. aws
192
200
  # @option opts [String] :service_id Query by Service to list all Products for a specific provider service. e.g. aws-ec2
193
201
  # @option opts [String] :name Query by name of the Product to see a list of products which match that name. e.g. m5a.16xlarge
202
+ # @option opts [Integer] :page The page of results to return.
203
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
194
204
  # @return [Array<(Products, Fixnum, Hash)>] Products data, response status code and response headers
195
205
  def get_products_with_http_info(opts = {})
196
206
  if @api_client.config.debugging
@@ -204,6 +214,8 @@ module Vantage
204
214
  query_params[:'provider_id'] = opts[:'provider_id'] if !opts[:'provider_id'].nil?
205
215
  query_params[:'service_id'] = opts[:'service_id'] if !opts[:'service_id'].nil?
206
216
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
217
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
218
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
207
219
 
208
220
  # header parameters
209
221
  header_params = {}
@@ -230,6 +242,8 @@ module Vantage
230
242
  end
231
243
  # Providers are cloud infrastructure and service providers from which all cloud prices are derived. You can think of example Providers as being AWS, GCP, Cloudflare or Datadog. Currently, Vantage only supports a single provider of AWS but over time more will be added. Use this endpoint to retrieve a provider id for other API calls.
232
244
  # @param [Hash] opts the optional parameters
245
+ # @option opts [Integer] :page The page of results to return.
246
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
233
247
  # @return [Providers]
234
248
  def get_providers(opts = {})
235
249
  data, _status_code, _headers = get_providers_with_http_info(opts)
@@ -238,6 +252,8 @@ module Vantage
238
252
 
239
253
  # Providers are cloud infrastructure and service providers from which all cloud prices are derived. You can think of example Providers as being AWS, GCP, Cloudflare or Datadog. Currently, Vantage only supports a single provider of AWS but over time more will be added. Use this endpoint to retrieve a provider id for other API calls.
240
254
  # @param [Hash] opts the optional parameters
255
+ # @option opts [Integer] :page The page of results to return.
256
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
241
257
  # @return [Array<(Providers, Fixnum, Hash)>] Providers data, response status code and response headers
242
258
  def get_providers_with_http_info(opts = {})
243
259
  if @api_client.config.debugging
@@ -248,6 +264,8 @@ module Vantage
248
264
 
249
265
  # query parameters
250
266
  query_params = {}
267
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
268
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
251
269
 
252
270
  # header parameters
253
271
  header_params = {}
@@ -275,6 +293,8 @@ module Vantage
275
293
  # Return all Services. Examples of Services are EC2 for AWS. This endpoint will return all Services by default but you have the ability to filter Services by Provider using the optional query parameter documented below.
276
294
  # @param [Hash] opts the optional parameters
277
295
  # @option opts [String] :provider_id Query services for a specific provider. e.g. aws
296
+ # @option opts [Integer] :page The page of results to return.
297
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
278
298
  # @return [Services]
279
299
  def get_services(opts = {})
280
300
  data, _status_code, _headers = get_services_with_http_info(opts)
@@ -284,6 +304,8 @@ module Vantage
284
304
  # Return all Services. Examples of Services are EC2 for AWS. This endpoint will return all Services by default but you have the ability to filter Services by Provider using the optional query parameter documented below.
285
305
  # @param [Hash] opts the optional parameters
286
306
  # @option opts [String] :provider_id Query services for a specific provider. e.g. aws
307
+ # @option opts [Integer] :page The page of results to return.
308
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
287
309
  # @return [Array<(Services, Fixnum, Hash)>] Services data, response status code and response headers
288
310
  def get_services_with_http_info(opts = {})
289
311
  if @api_client.config.debugging
@@ -295,6 +317,8 @@ module Vantage
295
317
  # query parameters
296
318
  query_params = {}
297
319
  query_params[:'provider_id'] = opts[:'provider_id'] if !opts[:'provider_id'].nil?
320
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
321
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
298
322
 
299
323
  # header parameters
300
324
  header_params = {}