spartera_api_sdk 1.0.62 → 1.0.68

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/config.json +1 -1
  3. data/docs/APIKeysApi.md +25 -15
  4. data/docs/AlertsApi.md +43 -29
  5. data/docs/AssetPriceHistoryApi.md +48 -32
  6. data/docs/AssetsApi.md +74 -336
  7. data/docs/CloudProvidersApi.md +10 -207
  8. data/docs/CompaniesApi.md +45 -27
  9. data/docs/ConnectionsApi.md +39 -25
  10. data/docs/FavoritesApi.md +52 -36
  11. data/docs/StorageEnginesApi.md +149 -0
  12. data/docs/UsersApi.md +29 -19
  13. data/lib/spartera_api_sdk/api/alerts_api.rb +11 -11
  14. data/lib/spartera_api_sdk/api/api_keys_api.rb +5 -5
  15. data/lib/spartera_api_sdk/api/asset_price_history_api.rb +12 -12
  16. data/lib/spartera_api_sdk/api/assets_api.rb +26 -302
  17. data/lib/spartera_api_sdk/api/cloud_providers_api.rb +2 -179
  18. data/lib/spartera_api_sdk/api/companies_api.rb +9 -9
  19. data/lib/spartera_api_sdk/api/connections_api.rb +9 -9
  20. data/lib/spartera_api_sdk/api/favorites_api.rb +14 -14
  21. data/lib/spartera_api_sdk/api/storage_engines_api.rb +150 -0
  22. data/lib/spartera_api_sdk/api/users_api.rb +7 -7
  23. data/lib/spartera_api_sdk/configuration.rb +2 -10
  24. data/lib/spartera_api_sdk/version.rb +1 -1
  25. data/lib/spartera_api_sdk.rb +1 -0
  26. data/spec/api/alerts_api_spec.rb +2 -2
  27. data/spec/api/asset_price_history_api_spec.rb +2 -2
  28. data/spec/api/assets_api_spec.rb +3 -53
  29. data/spec/api/cloud_providers_api_spec.rb +0 -32
  30. data/spec/api/connections_api_spec.rb +1 -1
  31. data/spec/api/favorites_api_spec.rb +3 -3
  32. data/spec/api/storage_engines_api_spec.rb +58 -0
  33. data/spec/api/users_api_spec.rb +1 -1
  34. metadata +28 -22
  35. data/Gemfile.lock +0 -69
@@ -55,7 +55,7 @@ module SparteraApiSdk
55
55
  return_type = opts[:debug_return_type] || 'Object'
56
56
 
57
57
  # auth_names
58
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
58
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
59
59
 
60
60
  new_options = opts.merge(
61
61
  :operation => :"CloudProvidersApi.cloud_providers_get",
@@ -74,122 +74,6 @@ module SparteraApiSdk
74
74
  return data, status_code, headers
75
75
  end
76
76
 
77
- # Create single cloud provider
78
- # @param [Hash] opts the optional parameters
79
- # @return [Object]
80
- def cloud_providers_post(opts = {})
81
- data, _status_code, _headers = cloud_providers_post_with_http_info(opts)
82
- data
83
- end
84
-
85
- # Create single cloud provider
86
- # @param [Hash] opts the optional parameters
87
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
88
- def cloud_providers_post_with_http_info(opts = {})
89
- if @api_client.config.debugging
90
- @api_client.config.logger.debug 'Calling API: CloudProvidersApi.cloud_providers_post ...'
91
- end
92
- # resource path
93
- local_var_path = '/cloud-providers'
94
-
95
- # query parameters
96
- query_params = opts[:query_params] || {}
97
-
98
- # header parameters
99
- header_params = opts[:header_params] || {}
100
- # HTTP header 'Accept' (if needed)
101
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
102
-
103
- # form parameters
104
- form_params = opts[:form_params] || {}
105
-
106
- # http body (model)
107
- post_body = opts[:debug_body]
108
-
109
- # return_type
110
- return_type = opts[:debug_return_type] || 'Object'
111
-
112
- # auth_names
113
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
114
-
115
- new_options = opts.merge(
116
- :operation => :"CloudProvidersApi.cloud_providers_post",
117
- :header_params => header_params,
118
- :query_params => query_params,
119
- :form_params => form_params,
120
- :body => post_body,
121
- :auth_names => auth_names,
122
- :return_type => return_type
123
- )
124
-
125
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
126
- if @api_client.config.debugging
127
- @api_client.config.logger.debug "API called: CloudProvidersApi#cloud_providers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
128
- end
129
- return data, status_code, headers
130
- end
131
-
132
- # Delete single cloud provider by ID
133
- # @param provider_id [String]
134
- # @param [Hash] opts the optional parameters
135
- # @return [Object]
136
- def cloud_providers_provider_id_delete(provider_id, opts = {})
137
- data, _status_code, _headers = cloud_providers_provider_id_delete_with_http_info(provider_id, opts)
138
- data
139
- end
140
-
141
- # Delete single cloud provider by ID
142
- # @param provider_id [String]
143
- # @param [Hash] opts the optional parameters
144
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
145
- def cloud_providers_provider_id_delete_with_http_info(provider_id, opts = {})
146
- if @api_client.config.debugging
147
- @api_client.config.logger.debug 'Calling API: CloudProvidersApi.cloud_providers_provider_id_delete ...'
148
- end
149
- # verify the required parameter 'provider_id' is set
150
- if @api_client.config.client_side_validation && provider_id.nil?
151
- fail ArgumentError, "Missing the required parameter 'provider_id' when calling CloudProvidersApi.cloud_providers_provider_id_delete"
152
- end
153
- # resource path
154
- local_var_path = '/cloud-providers/{provider_id}'.sub('{' + 'provider_id' + '}', CGI.escape(provider_id.to_s))
155
-
156
- # query parameters
157
- query_params = opts[:query_params] || {}
158
-
159
- # header parameters
160
- header_params = opts[:header_params] || {}
161
- # HTTP header 'Accept' (if needed)
162
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
163
-
164
- # form parameters
165
- form_params = opts[:form_params] || {}
166
-
167
- # http body (model)
168
- post_body = opts[:debug_body]
169
-
170
- # return_type
171
- return_type = opts[:debug_return_type] || 'Object'
172
-
173
- # auth_names
174
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
175
-
176
- new_options = opts.merge(
177
- :operation => :"CloudProvidersApi.cloud_providers_provider_id_delete",
178
- :header_params => header_params,
179
- :query_params => query_params,
180
- :form_params => form_params,
181
- :body => post_body,
182
- :auth_names => auth_names,
183
- :return_type => return_type
184
- )
185
-
186
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
187
- if @api_client.config.debugging
188
- @api_client.config.logger.debug "API called: CloudProvidersApi#cloud_providers_provider_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
- end
190
- return data, status_code, headers
191
- end
192
-
193
77
  # Get single cloud provider by ID
194
78
  # @param provider_id [String]
195
79
  # @param [Hash] opts the optional parameters
@@ -232,7 +116,7 @@ module SparteraApiSdk
232
116
  return_type = opts[:debug_return_type] || 'Object'
233
117
 
234
118
  # auth_names
235
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
119
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
236
120
 
237
121
  new_options = opts.merge(
238
122
  :operation => :"CloudProvidersApi.cloud_providers_provider_id_get",
@@ -250,66 +134,5 @@ module SparteraApiSdk
250
134
  end
251
135
  return data, status_code, headers
252
136
  end
253
-
254
- # Update an existing cloud provider by ID
255
- # @param provider_id [String]
256
- # @param [Hash] opts the optional parameters
257
- # @return [Object]
258
- def cloud_providers_provider_id_patch(provider_id, opts = {})
259
- data, _status_code, _headers = cloud_providers_provider_id_patch_with_http_info(provider_id, opts)
260
- data
261
- end
262
-
263
- # Update an existing cloud provider by ID
264
- # @param provider_id [String]
265
- # @param [Hash] opts the optional parameters
266
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
267
- def cloud_providers_provider_id_patch_with_http_info(provider_id, opts = {})
268
- if @api_client.config.debugging
269
- @api_client.config.logger.debug 'Calling API: CloudProvidersApi.cloud_providers_provider_id_patch ...'
270
- end
271
- # verify the required parameter 'provider_id' is set
272
- if @api_client.config.client_side_validation && provider_id.nil?
273
- fail ArgumentError, "Missing the required parameter 'provider_id' when calling CloudProvidersApi.cloud_providers_provider_id_patch"
274
- end
275
- # resource path
276
- local_var_path = '/cloud-providers/{provider_id}'.sub('{' + 'provider_id' + '}', CGI.escape(provider_id.to_s))
277
-
278
- # query parameters
279
- query_params = opts[:query_params] || {}
280
-
281
- # header parameters
282
- header_params = opts[:header_params] || {}
283
- # HTTP header 'Accept' (if needed)
284
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
285
-
286
- # form parameters
287
- form_params = opts[:form_params] || {}
288
-
289
- # http body (model)
290
- post_body = opts[:debug_body]
291
-
292
- # return_type
293
- return_type = opts[:debug_return_type] || 'Object'
294
-
295
- # auth_names
296
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
297
-
298
- new_options = opts.merge(
299
- :operation => :"CloudProvidersApi.cloud_providers_provider_id_patch",
300
- :header_params => header_params,
301
- :query_params => query_params,
302
- :form_params => form_params,
303
- :body => post_body,
304
- :auth_names => auth_names,
305
- :return_type => return_type
306
- )
307
-
308
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
309
- if @api_client.config.debugging
310
- @api_client.config.logger.debug "API called: CloudProvidersApi#cloud_providers_provider_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
311
- end
312
- return data, status_code, headers
313
- end
314
137
  end
315
138
  end
@@ -61,7 +61,7 @@ module SparteraApiSdk
61
61
  return_type = opts[:debug_return_type] || 'Object'
62
62
 
63
63
  # auth_names
64
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
64
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
65
65
 
66
66
  new_options = opts.merge(
67
67
  :operation => :"CompaniesApi.companies_company_id_analytics_assets_get",
@@ -122,7 +122,7 @@ module SparteraApiSdk
122
122
  return_type = opts[:debug_return_type] || 'Object'
123
123
 
124
124
  # auth_names
125
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
125
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
126
126
 
127
127
  new_options = opts.merge(
128
128
  :operation => :"CompaniesApi.companies_company_id_analytics_customers_get",
@@ -183,7 +183,7 @@ module SparteraApiSdk
183
183
  return_type = opts[:debug_return_type] || 'Object'
184
184
 
185
185
  # auth_names
186
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
186
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
187
187
 
188
188
  new_options = opts.merge(
189
189
  :operation => :"CompaniesApi.companies_company_id_analytics_dashboard_get",
@@ -244,7 +244,7 @@ module SparteraApiSdk
244
244
  return_type = opts[:debug_return_type] || 'Object'
245
245
 
246
246
  # auth_names
247
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
247
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
248
248
 
249
249
  new_options = opts.merge(
250
250
  :operation => :"CompaniesApi.companies_company_id_analytics_sales_get",
@@ -305,7 +305,7 @@ module SparteraApiSdk
305
305
  return_type = opts[:debug_return_type] || 'Object'
306
306
 
307
307
  # auth_names
308
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
308
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
309
309
 
310
310
  new_options = opts.merge(
311
311
  :operation => :"CompaniesApi.companies_company_id_get",
@@ -366,7 +366,7 @@ module SparteraApiSdk
366
366
  return_type = opts[:debug_return_type] || 'Object'
367
367
 
368
368
  # auth_names
369
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
369
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
370
370
 
371
371
  new_options = opts.merge(
372
372
  :operation => :"CompaniesApi.companies_company_id_objects_get",
@@ -427,7 +427,7 @@ module SparteraApiSdk
427
427
  return_type = opts[:debug_return_type] || 'Object'
428
428
 
429
429
  # auth_names
430
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
430
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
431
431
 
432
432
  new_options = opts.merge(
433
433
  :operation => :"CompaniesApi.companies_company_id_patch",
@@ -488,7 +488,7 @@ module SparteraApiSdk
488
488
  return_type = opts[:debug_return_type] || 'Object'
489
489
 
490
490
  # auth_names
491
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
491
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
492
492
 
493
493
  new_options = opts.merge(
494
494
  :operation => :"CompaniesApi.companies_company_id_requests_plan_get",
@@ -549,7 +549,7 @@ module SparteraApiSdk
549
549
  return_type = opts[:debug_return_type] || 'Object'
550
550
 
551
551
  # auth_names
552
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
552
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
553
553
 
554
554
  new_options = opts.merge(
555
555
  :operation => :"CompaniesApi.companies_company_id_requests_usage_get",
@@ -67,7 +67,7 @@ module SparteraApiSdk
67
67
  return_type = opts[:debug_return_type] || 'Object'
68
68
 
69
69
  # auth_names
70
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
70
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
71
71
 
72
72
  new_options = opts.merge(
73
73
  :operation => :"ConnectionsApi.companies_company_id_connections_connection_id_delete",
@@ -134,7 +134,7 @@ module SparteraApiSdk
134
134
  return_type = opts[:debug_return_type] || 'Object'
135
135
 
136
136
  # auth_names
137
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
137
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
138
138
 
139
139
  new_options = opts.merge(
140
140
  :operation => :"ConnectionsApi.companies_company_id_connections_connection_id_get",
@@ -201,7 +201,7 @@ module SparteraApiSdk
201
201
  return_type = opts[:debug_return_type] || 'Object'
202
202
 
203
203
  # auth_names
204
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
204
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
205
205
 
206
206
  new_options = opts.merge(
207
207
  :operation => :"ConnectionsApi.companies_company_id_connections_connection_id_infoschema_get",
@@ -279,7 +279,7 @@ module SparteraApiSdk
279
279
  return_type = opts[:debug_return_type] || 'Object'
280
280
 
281
281
  # auth_names
282
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
282
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
283
283
 
284
284
  new_options = opts.merge(
285
285
  :operation => :"ConnectionsApi.companies_company_id_connections_connection_id_patch",
@@ -298,7 +298,7 @@ module SparteraApiSdk
298
298
  return data, status_code, headers
299
299
  end
300
300
 
301
- # Verify the specified connection to ensure it is functioning correctly
301
+ # Test the specified connection
302
302
  # @param company_id [String]
303
303
  # @param connection_id [String]
304
304
  # @param [Hash] opts the optional parameters
@@ -308,7 +308,7 @@ module SparteraApiSdk
308
308
  data
309
309
  end
310
310
 
311
- # Verify the specified connection to ensure it is functioning correctly
311
+ # Test the specified connection
312
312
  # @param company_id [String]
313
313
  # @param connection_id [String]
314
314
  # @param [Hash] opts the optional parameters
@@ -346,7 +346,7 @@ module SparteraApiSdk
346
346
  return_type = opts[:debug_return_type] || 'Object'
347
347
 
348
348
  # auth_names
349
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
349
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
350
350
 
351
351
  new_options = opts.merge(
352
352
  :operation => :"ConnectionsApi.companies_company_id_connections_connection_id_test_get",
@@ -407,7 +407,7 @@ module SparteraApiSdk
407
407
  return_type = opts[:debug_return_type] || 'Object'
408
408
 
409
409
  # auth_names
410
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
410
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
411
411
 
412
412
  new_options = opts.merge(
413
413
  :operation => :"ConnectionsApi.companies_company_id_connections_get",
@@ -479,7 +479,7 @@ module SparteraApiSdk
479
479
  return_type = opts[:debug_return_type] || 'Object'
480
480
 
481
481
  # auth_names
482
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
482
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
483
483
 
484
484
  new_options = opts.merge(
485
485
  :operation => :"ConnectionsApi.companies_company_id_connections_post",
@@ -73,7 +73,7 @@ module SparteraApiSdk
73
73
  return_type = opts[:debug_return_type] || 'Object'
74
74
 
75
75
  # auth_names
76
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
76
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
77
77
 
78
78
  new_options = opts.merge(
79
79
  :operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_category_category_get",
@@ -92,7 +92,7 @@ module SparteraApiSdk
92
92
  return data, status_code, headers
93
93
  end
94
94
 
95
- # Check if the specified user has favorited a specific asset Returns the favorite record if it exists, or empty result if not Useful for UI to show/hide favorite button states
95
+ # Check if the specified user has favorited a specific asset
96
96
  # @param company_id [String]
97
97
  # @param user_id [String]
98
98
  # @param asset_id [String]
@@ -103,7 +103,7 @@ module SparteraApiSdk
103
103
  data
104
104
  end
105
105
 
106
- # Check if the specified user has favorited a specific asset Returns the favorite record if it exists, or empty result if not Useful for UI to show/hide favorite button states
106
+ # Check if the specified user has favorited a specific asset
107
107
  # @param company_id [String]
108
108
  # @param user_id [String]
109
109
  # @param asset_id [String]
@@ -146,7 +146,7 @@ module SparteraApiSdk
146
146
  return_type = opts[:debug_return_type] || 'Object'
147
147
 
148
148
  # auth_names
149
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
149
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
150
150
 
151
151
  new_options = opts.merge(
152
152
  :operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_check_asset_id_get",
@@ -219,7 +219,7 @@ module SparteraApiSdk
219
219
  return_type = opts[:debug_return_type] || 'Object'
220
220
 
221
221
  # auth_names
222
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
222
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
223
223
 
224
224
  new_options = opts.merge(
225
225
  :operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_delete",
@@ -292,7 +292,7 @@ module SparteraApiSdk
292
292
  return_type = opts[:debug_return_type] || 'Object'
293
293
 
294
294
  # auth_names
295
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
295
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
296
296
 
297
297
  new_options = opts.merge(
298
298
  :operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_get",
@@ -311,7 +311,7 @@ module SparteraApiSdk
311
311
  return data, status_code, headers
312
312
  end
313
313
 
314
- # Update an existing favorite by ID Can update notes, category, priority
314
+ # Update an existing favorite by ID
315
315
  # @param company_id [String]
316
316
  # @param user_id [String]
317
317
  # @param favorite_id [String]
@@ -323,7 +323,7 @@ module SparteraApiSdk
323
323
  data
324
324
  end
325
325
 
326
- # Update an existing favorite by ID Can update notes, category, priority
326
+ # Update an existing favorite by ID
327
327
  # @param company_id [String]
328
328
  # @param user_id [String]
329
329
  # @param favorite_id [String]
@@ -376,7 +376,7 @@ module SparteraApiSdk
376
376
  return_type = opts[:debug_return_type] || 'Object'
377
377
 
378
378
  # auth_names
379
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
379
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
380
380
 
381
381
  new_options = opts.merge(
382
382
  :operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_patch",
@@ -395,7 +395,7 @@ module SparteraApiSdk
395
395
  return data, status_code, headers
396
396
  end
397
397
 
398
- # Get a list of all favorites for a specific user Query params: - category: filter by category - sort: sort field (priority, date_created, etc.) - order: sort direction (asc, desc)
398
+ # Get a list of all favorites for a specific user
399
399
  # @param company_id [String]
400
400
  # @param user_id [String]
401
401
  # @param [Hash] opts the optional parameters
@@ -405,7 +405,7 @@ module SparteraApiSdk
405
405
  data
406
406
  end
407
407
 
408
- # Get a list of all favorites for a specific user Query params: - category: filter by category - sort: sort field (priority, date_created, etc.) - order: sort direction (asc, desc)
408
+ # Get a list of all favorites for a specific user
409
409
  # @param company_id [String]
410
410
  # @param user_id [String]
411
411
  # @param [Hash] opts the optional parameters
@@ -443,7 +443,7 @@ module SparteraApiSdk
443
443
  return_type = opts[:debug_return_type] || 'Object'
444
444
 
445
445
  # auth_names
446
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
446
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
447
447
 
448
448
  new_options = opts.merge(
449
449
  :operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_get",
@@ -521,7 +521,7 @@ module SparteraApiSdk
521
521
  return_type = opts[:debug_return_type] || 'Object'
522
522
 
523
523
  # auth_names
524
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
524
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
525
525
 
526
526
  new_options = opts.merge(
527
527
  :operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_post",
@@ -588,7 +588,7 @@ module SparteraApiSdk
588
588
  return_type = opts[:debug_return_type] || 'Object'
589
589
 
590
590
  # auth_names
591
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
591
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
592
592
 
593
593
  new_options = opts.merge(
594
594
  :operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_uncategorized_get",
@@ -0,0 +1,150 @@
1
+ =begin
2
+ #Spartera API Documentation
3
+
4
+ #Auto-generated API documentation for REST services of the Spartera platform
5
+
6
+ The version of the OpenAPI document: 0.0.0
7
+ Contact: support@spartera.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.13.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module SparteraApiSdk
16
+ class StorageEnginesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get single storage engine by ID
23
+ # @param provider_id [String]
24
+ # @param engine_id [String]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [Object]
27
+ def cloud_providers_provider_id_storage_engines_engine_id_get(provider_id, engine_id, opts = {})
28
+ data, _status_code, _headers = cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info(provider_id, engine_id, opts)
29
+ data
30
+ end
31
+
32
+ # Get single storage engine by ID
33
+ # @param provider_id [String]
34
+ # @param engine_id [String]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
37
+ def cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info(provider_id, engine_id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: StorageEnginesApi.cloud_providers_provider_id_storage_engines_engine_id_get ...'
40
+ end
41
+ # verify the required parameter 'provider_id' is set
42
+ if @api_client.config.client_side_validation && provider_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'provider_id' when calling StorageEnginesApi.cloud_providers_provider_id_storage_engines_engine_id_get"
44
+ end
45
+ # verify the required parameter 'engine_id' is set
46
+ if @api_client.config.client_side_validation && engine_id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'engine_id' when calling StorageEnginesApi.cloud_providers_provider_id_storage_engines_engine_id_get"
48
+ end
49
+ # resource path
50
+ local_var_path = '/cloud-providers/{provider_id}/storage-engines/{engine_id}'.sub('{' + 'provider_id' + '}', CGI.escape(provider_id.to_s)).sub('{' + 'engine_id' + '}', CGI.escape(engine_id.to_s))
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
59
+
60
+ # form parameters
61
+ form_params = opts[:form_params] || {}
62
+
63
+ # http body (model)
64
+ post_body = opts[:debug_body]
65
+
66
+ # return_type
67
+ return_type = opts[:debug_return_type] || 'Object'
68
+
69
+ # auth_names
70
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
71
+
72
+ new_options = opts.merge(
73
+ :operation => :"StorageEnginesApi.cloud_providers_provider_id_storage_engines_engine_id_get",
74
+ :header_params => header_params,
75
+ :query_params => query_params,
76
+ :form_params => form_params,
77
+ :body => post_body,
78
+ :auth_names => auth_names,
79
+ :return_type => return_type
80
+ )
81
+
82
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
83
+ if @api_client.config.debugging
84
+ @api_client.config.logger.debug "API called: StorageEnginesApi#cloud_providers_provider_id_storage_engines_engine_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ end
86
+ return data, status_code, headers
87
+ end
88
+
89
+ # Get a list of all storage engines
90
+ # @param provider_id [String]
91
+ # @param [Hash] opts the optional parameters
92
+ # @return [Object]
93
+ def cloud_providers_provider_id_storage_engines_get(provider_id, opts = {})
94
+ data, _status_code, _headers = cloud_providers_provider_id_storage_engines_get_with_http_info(provider_id, opts)
95
+ data
96
+ end
97
+
98
+ # Get a list of all storage engines
99
+ # @param provider_id [String]
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
102
+ def cloud_providers_provider_id_storage_engines_get_with_http_info(provider_id, opts = {})
103
+ if @api_client.config.debugging
104
+ @api_client.config.logger.debug 'Calling API: StorageEnginesApi.cloud_providers_provider_id_storage_engines_get ...'
105
+ end
106
+ # verify the required parameter 'provider_id' is set
107
+ if @api_client.config.client_side_validation && provider_id.nil?
108
+ fail ArgumentError, "Missing the required parameter 'provider_id' when calling StorageEnginesApi.cloud_providers_provider_id_storage_engines_get"
109
+ end
110
+ # resource path
111
+ local_var_path = '/cloud-providers/{provider_id}/storage-engines'.sub('{' + 'provider_id' + '}', CGI.escape(provider_id.to_s))
112
+
113
+ # query parameters
114
+ query_params = opts[:query_params] || {}
115
+
116
+ # header parameters
117
+ header_params = opts[:header_params] || {}
118
+ # HTTP header 'Accept' (if needed)
119
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
120
+
121
+ # form parameters
122
+ form_params = opts[:form_params] || {}
123
+
124
+ # http body (model)
125
+ post_body = opts[:debug_body]
126
+
127
+ # return_type
128
+ return_type = opts[:debug_return_type] || 'Object'
129
+
130
+ # auth_names
131
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
132
+
133
+ new_options = opts.merge(
134
+ :operation => :"StorageEnginesApi.cloud_providers_provider_id_storage_engines_get",
135
+ :header_params => header_params,
136
+ :query_params => query_params,
137
+ :form_params => form_params,
138
+ :body => post_body,
139
+ :auth_names => auth_names,
140
+ :return_type => return_type
141
+ )
142
+
143
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
144
+ if @api_client.config.debugging
145
+ @api_client.config.logger.debug "API called: StorageEnginesApi#cloud_providers_provider_id_storage_engines_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
+ end
147
+ return data, status_code, headers
148
+ end
149
+ end
150
+ end