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.
- checksums.yaml +4 -4
- data/config.json +1 -1
- data/docs/APIKeysApi.md +25 -15
- data/docs/AlertsApi.md +43 -29
- data/docs/AssetPriceHistoryApi.md +48 -32
- data/docs/AssetsApi.md +74 -336
- data/docs/CloudProvidersApi.md +10 -207
- data/docs/CompaniesApi.md +45 -27
- data/docs/ConnectionsApi.md +39 -25
- data/docs/FavoritesApi.md +52 -36
- data/docs/StorageEnginesApi.md +149 -0
- data/docs/UsersApi.md +29 -19
- data/lib/spartera_api_sdk/api/alerts_api.rb +11 -11
- data/lib/spartera_api_sdk/api/api_keys_api.rb +5 -5
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +12 -12
- data/lib/spartera_api_sdk/api/assets_api.rb +26 -302
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +2 -179
- data/lib/spartera_api_sdk/api/companies_api.rb +9 -9
- data/lib/spartera_api_sdk/api/connections_api.rb +9 -9
- data/lib/spartera_api_sdk/api/favorites_api.rb +14 -14
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +150 -0
- data/lib/spartera_api_sdk/api/users_api.rb +7 -7
- data/lib/spartera_api_sdk/configuration.rb +2 -10
- data/lib/spartera_api_sdk/version.rb +1 -1
- data/lib/spartera_api_sdk.rb +1 -0
- data/spec/api/alerts_api_spec.rb +2 -2
- data/spec/api/asset_price_history_api_spec.rb +2 -2
- data/spec/api/assets_api_spec.rb +3 -53
- data/spec/api/cloud_providers_api_spec.rb +0 -32
- data/spec/api/connections_api_spec.rb +1 -1
- data/spec/api/favorites_api_spec.rb +3 -3
- data/spec/api/storage_engines_api_spec.rb +58 -0
- data/spec/api/users_api_spec.rb +1 -1
- metadata +28 -22
- data/Gemfile.lock +0 -69
@@ -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] || ['
|
70
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
71
71
|
|
72
72
|
new_options = opts.merge(
|
73
73
|
:operation => :"APIKeysApi.companies_company_id_api_keys_api_key_id_get",
|
@@ -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] || ['
|
137
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
138
138
|
|
139
139
|
new_options = opts.merge(
|
140
140
|
:operation => :"APIKeysApi.companies_company_id_api_keys_api_key_id_patch",
|
@@ -195,7 +195,7 @@ module SparteraApiSdk
|
|
195
195
|
return_type = opts[:debug_return_type] || 'Object'
|
196
196
|
|
197
197
|
# auth_names
|
198
|
-
auth_names = opts[:debug_auth_names] || ['
|
198
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
199
199
|
|
200
200
|
new_options = opts.merge(
|
201
201
|
:operation => :"APIKeysApi.companies_company_id_api_keys_get",
|
@@ -256,7 +256,7 @@ module SparteraApiSdk
|
|
256
256
|
return_type = opts[:debug_return_type] || 'Object'
|
257
257
|
|
258
258
|
# auth_names
|
259
|
-
auth_names = opts[:debug_auth_names] || ['
|
259
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
260
260
|
|
261
261
|
new_options = opts.merge(
|
262
262
|
:operation => :"APIKeysApi.companies_company_id_api_keys_post",
|
@@ -323,7 +323,7 @@ module SparteraApiSdk
|
|
323
323
|
return_type = opts[:debug_return_type] || 'Object'
|
324
324
|
|
325
325
|
# auth_names
|
326
|
-
auth_names = opts[:debug_auth_names] || ['
|
326
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
327
327
|
|
328
328
|
new_options = opts.merge(
|
329
329
|
:operation => :"APIKeysApi.companies_company_id_api_keys_token_delete",
|
@@ -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] || ['
|
70
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
71
71
|
|
72
72
|
new_options = opts.merge(
|
73
73
|
:operation => :"AssetPriceHistoryApi.companies_company_id_assets_asset_id_prices_active_get",
|
@@ -140,7 +140,7 @@ module SparteraApiSdk
|
|
140
140
|
return_type = opts[:debug_return_type] || 'Object'
|
141
141
|
|
142
142
|
# auth_names
|
143
|
-
auth_names = opts[:debug_auth_names] || ['
|
143
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
144
144
|
|
145
145
|
new_options = opts.merge(
|
146
146
|
:operation => :"AssetPriceHistoryApi.companies_company_id_assets_asset_id_prices_aph_id_delete",
|
@@ -213,7 +213,7 @@ module SparteraApiSdk
|
|
213
213
|
return_type = opts[:debug_return_type] || 'Object'
|
214
214
|
|
215
215
|
# auth_names
|
216
|
-
auth_names = opts[:debug_auth_names] || ['
|
216
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
217
217
|
|
218
218
|
new_options = opts.merge(
|
219
219
|
:operation => :"AssetPriceHistoryApi.companies_company_id_assets_asset_id_prices_aph_id_get",
|
@@ -286,7 +286,7 @@ module SparteraApiSdk
|
|
286
286
|
return_type = opts[:debug_return_type] || 'Object'
|
287
287
|
|
288
288
|
# auth_names
|
289
|
-
auth_names = opts[:debug_auth_names] || ['
|
289
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
290
290
|
|
291
291
|
new_options = opts.merge(
|
292
292
|
:operation => :"AssetPriceHistoryApi.companies_company_id_assets_asset_id_prices_aph_id_patch",
|
@@ -305,7 +305,7 @@ module SparteraApiSdk
|
|
305
305
|
return data, status_code, headers
|
306
306
|
end
|
307
307
|
|
308
|
-
#
|
308
|
+
# POST /companies/{company_id}/assets/{asset_id}/prices/calculate_credits
|
309
309
|
# @param company_id [String]
|
310
310
|
# @param asset_id [String]
|
311
311
|
# @param [Hash] opts the optional parameters
|
@@ -315,7 +315,7 @@ module SparteraApiSdk
|
|
315
315
|
data
|
316
316
|
end
|
317
317
|
|
318
|
-
#
|
318
|
+
# POST /companies/{company_id}/assets/{asset_id}/prices/calculate_credits
|
319
319
|
# @param company_id [String]
|
320
320
|
# @param asset_id [String]
|
321
321
|
# @param [Hash] opts the optional parameters
|
@@ -353,7 +353,7 @@ module SparteraApiSdk
|
|
353
353
|
return_type = opts[:debug_return_type] || 'Object'
|
354
354
|
|
355
355
|
# auth_names
|
356
|
-
auth_names = opts[:debug_auth_names] || ['
|
356
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
357
357
|
|
358
358
|
new_options = opts.merge(
|
359
359
|
:operation => :"AssetPriceHistoryApi.companies_company_id_assets_asset_id_prices_calculate_credits_post",
|
@@ -372,7 +372,7 @@ module SparteraApiSdk
|
|
372
372
|
return data, status_code, headers
|
373
373
|
end
|
374
374
|
|
375
|
-
#
|
375
|
+
# POST /companies/{company_id}/assets/{asset_id}/prices/discount
|
376
376
|
# @param company_id [String]
|
377
377
|
# @param asset_id [String]
|
378
378
|
# @param [Hash] opts the optional parameters
|
@@ -382,7 +382,7 @@ module SparteraApiSdk
|
|
382
382
|
data
|
383
383
|
end
|
384
384
|
|
385
|
-
#
|
385
|
+
# POST /companies/{company_id}/assets/{asset_id}/prices/discount
|
386
386
|
# @param company_id [String]
|
387
387
|
# @param asset_id [String]
|
388
388
|
# @param [Hash] opts the optional parameters
|
@@ -420,7 +420,7 @@ module SparteraApiSdk
|
|
420
420
|
return_type = opts[:debug_return_type] || 'Object'
|
421
421
|
|
422
422
|
# auth_names
|
423
|
-
auth_names = opts[:debug_auth_names] || ['
|
423
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
424
424
|
|
425
425
|
new_options = opts.merge(
|
426
426
|
:operation => :"AssetPriceHistoryApi.companies_company_id_assets_asset_id_prices_discount_post",
|
@@ -487,7 +487,7 @@ module SparteraApiSdk
|
|
487
487
|
return_type = opts[:debug_return_type] || 'Object'
|
488
488
|
|
489
489
|
# auth_names
|
490
|
-
auth_names = opts[:debug_auth_names] || ['
|
490
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
491
491
|
|
492
492
|
new_options = opts.merge(
|
493
493
|
:operation => :"AssetPriceHistoryApi.companies_company_id_assets_asset_id_prices_get",
|
@@ -554,7 +554,7 @@ module SparteraApiSdk
|
|
554
554
|
return_type = opts[:debug_return_type] || 'Object'
|
555
555
|
|
556
556
|
# auth_names
|
557
|
-
auth_names = opts[:debug_auth_names] || ['
|
557
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
558
558
|
|
559
559
|
new_options = opts.merge(
|
560
560
|
:operation => :"AssetPriceHistoryApi.companies_company_id_assets_asset_id_prices_post",
|
@@ -19,35 +19,35 @@ module SparteraApiSdk
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Process
|
23
|
-
# @param company_handle [String]
|
22
|
+
# Process (analyze) an asset. Attempt to process an analytic on a backend warehouse/AI model.
|
24
23
|
# @param asset_slug [String]
|
24
|
+
# @param company_handle [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [Object]
|
27
|
-
def analyze_company_handle_assets_asset_slug_get(
|
28
|
-
data, _status_code, _headers = analyze_company_handle_assets_asset_slug_get_with_http_info(
|
27
|
+
def analyze_company_handle_assets_asset_slug_get(asset_slug, company_handle, opts = {})
|
28
|
+
data, _status_code, _headers = analyze_company_handle_assets_asset_slug_get_with_http_info(asset_slug, company_handle, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Process
|
33
|
-
# @param company_handle [String]
|
32
|
+
# Process (analyze) an asset. Attempt to process an analytic on a backend warehouse/AI model.
|
34
33
|
# @param asset_slug [String]
|
34
|
+
# @param company_handle [String]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
37
|
-
def analyze_company_handle_assets_asset_slug_get_with_http_info(
|
37
|
+
def analyze_company_handle_assets_asset_slug_get_with_http_info(asset_slug, company_handle, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: AssetsApi.analyze_company_handle_assets_asset_slug_get ...'
|
40
40
|
end
|
41
|
-
# verify the required parameter 'company_handle' is set
|
42
|
-
if @api_client.config.client_side_validation && company_handle.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'company_handle' when calling AssetsApi.analyze_company_handle_assets_asset_slug_get"
|
44
|
-
end
|
45
41
|
# verify the required parameter 'asset_slug' is set
|
46
42
|
if @api_client.config.client_side_validation && asset_slug.nil?
|
47
43
|
fail ArgumentError, "Missing the required parameter 'asset_slug' when calling AssetsApi.analyze_company_handle_assets_asset_slug_get"
|
48
44
|
end
|
45
|
+
# verify the required parameter 'company_handle' is set
|
46
|
+
if @api_client.config.client_side_validation && company_handle.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'company_handle' when calling AssetsApi.analyze_company_handle_assets_asset_slug_get"
|
48
|
+
end
|
49
49
|
# resource path
|
50
|
-
local_var_path = '/analyze/{company_handle}/assets/{asset_slug}'.sub('{' + '
|
50
|
+
local_var_path = '/analyze/{company_handle}/assets/{asset_slug}'.sub('{' + 'asset_slug' + '}', CGI.escape(asset_slug.to_s)).sub('{' + 'company_handle' + '}', CGI.escape(company_handle.to_s))
|
51
51
|
|
52
52
|
# query parameters
|
53
53
|
query_params = opts[:query_params] || {}
|
@@ -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] || ['
|
70
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
71
71
|
|
72
72
|
new_options = opts.merge(
|
73
73
|
:operation => :"AssetsApi.analyze_company_handle_assets_asset_slug_get",
|
@@ -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] || ['
|
137
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
138
138
|
|
139
139
|
new_options = opts.merge(
|
140
140
|
:operation => :"AssetsApi.companies_company_id_assets_asset_id_delete",
|
@@ -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] || ['
|
204
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
205
205
|
|
206
206
|
new_options = opts.merge(
|
207
207
|
:operation => :"AssetsApi.companies_company_id_assets_asset_id_get",
|
@@ -268,7 +268,7 @@ module SparteraApiSdk
|
|
268
268
|
return_type = opts[:debug_return_type] || 'Object'
|
269
269
|
|
270
270
|
# auth_names
|
271
|
-
auth_names = opts[:debug_auth_names] || ['
|
271
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
272
272
|
|
273
273
|
new_options = opts.merge(
|
274
274
|
:operation => :"AssetsApi.companies_company_id_assets_asset_id_infoschema_get",
|
@@ -287,7 +287,7 @@ module SparteraApiSdk
|
|
287
287
|
return data, status_code, headers
|
288
288
|
end
|
289
289
|
|
290
|
-
#
|
290
|
+
# Retrieve and save an asset's information schema
|
291
291
|
# @param company_id [String]
|
292
292
|
# @param asset_id [String]
|
293
293
|
# @param [Hash] opts the optional parameters
|
@@ -297,7 +297,7 @@ module SparteraApiSdk
|
|
297
297
|
data
|
298
298
|
end
|
299
299
|
|
300
|
-
#
|
300
|
+
# Retrieve and save an asset's information schema
|
301
301
|
# @param company_id [String]
|
302
302
|
# @param asset_id [String]
|
303
303
|
# @param [Hash] opts the optional parameters
|
@@ -335,7 +335,7 @@ module SparteraApiSdk
|
|
335
335
|
return_type = opts[:debug_return_type] || 'Object'
|
336
336
|
|
337
337
|
# auth_names
|
338
|
-
auth_names = opts[:debug_auth_names] || ['
|
338
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
339
339
|
|
340
340
|
new_options = opts.merge(
|
341
341
|
:operation => :"AssetsApi.companies_company_id_assets_asset_id_infoschema_save_get",
|
@@ -413,7 +413,7 @@ module SparteraApiSdk
|
|
413
413
|
return_type = opts[:debug_return_type] || 'Object'
|
414
414
|
|
415
415
|
# auth_names
|
416
|
-
auth_names = opts[:debug_auth_names] || ['
|
416
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
417
417
|
|
418
418
|
new_options = opts.merge(
|
419
419
|
:operation => :"AssetsApi.companies_company_id_assets_asset_id_patch",
|
@@ -480,7 +480,7 @@ module SparteraApiSdk
|
|
480
480
|
return_type = opts[:debug_return_type] || 'Object'
|
481
481
|
|
482
482
|
# auth_names
|
483
|
-
auth_names = opts[:debug_auth_names] || ['
|
483
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
484
484
|
|
485
485
|
new_options = opts.merge(
|
486
486
|
:operation => :"AssetsApi.companies_company_id_assets_asset_id_predicted_price_get",
|
@@ -499,149 +499,6 @@ module SparteraApiSdk
|
|
499
499
|
return data, status_code, headers
|
500
500
|
end
|
501
501
|
|
502
|
-
# Get detailed explanation of how asset recommendations are calculated for debugging purposes.
|
503
|
-
# @param company_id [String]
|
504
|
-
# @param asset_id [String]
|
505
|
-
# @param [Hash] opts the optional parameters
|
506
|
-
# @return [Object]
|
507
|
-
def companies_company_id_assets_asset_id_recommendations_explain_get(company_id, asset_id, opts = {})
|
508
|
-
data, _status_code, _headers = companies_company_id_assets_asset_id_recommendations_explain_get_with_http_info(company_id, asset_id, opts)
|
509
|
-
data
|
510
|
-
end
|
511
|
-
|
512
|
-
# Get detailed explanation of how asset recommendations are calculated for debugging purposes.
|
513
|
-
# @param company_id [String]
|
514
|
-
# @param asset_id [String]
|
515
|
-
# @param [Hash] opts the optional parameters
|
516
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
517
|
-
def companies_company_id_assets_asset_id_recommendations_explain_get_with_http_info(company_id, asset_id, opts = {})
|
518
|
-
if @api_client.config.debugging
|
519
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_recommendations_explain_get ...'
|
520
|
-
end
|
521
|
-
# verify the required parameter 'company_id' is set
|
522
|
-
if @api_client.config.client_side_validation && company_id.nil?
|
523
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_recommendations_explain_get"
|
524
|
-
end
|
525
|
-
# verify the required parameter 'asset_id' is set
|
526
|
-
if @api_client.config.client_side_validation && asset_id.nil?
|
527
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_recommendations_explain_get"
|
528
|
-
end
|
529
|
-
# resource path
|
530
|
-
local_var_path = '/companies/{company_id}/assets/{asset_id}/recommendations/explain'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
531
|
-
|
532
|
-
# query parameters
|
533
|
-
query_params = opts[:query_params] || {}
|
534
|
-
|
535
|
-
# header parameters
|
536
|
-
header_params = opts[:header_params] || {}
|
537
|
-
# HTTP header 'Accept' (if needed)
|
538
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
539
|
-
|
540
|
-
# form parameters
|
541
|
-
form_params = opts[:form_params] || {}
|
542
|
-
|
543
|
-
# http body (model)
|
544
|
-
post_body = opts[:debug_body]
|
545
|
-
|
546
|
-
# return_type
|
547
|
-
return_type = opts[:debug_return_type] || 'Object'
|
548
|
-
|
549
|
-
# auth_names
|
550
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
551
|
-
|
552
|
-
new_options = opts.merge(
|
553
|
-
:operation => :"AssetsApi.companies_company_id_assets_asset_id_recommendations_explain_get",
|
554
|
-
:header_params => header_params,
|
555
|
-
:query_params => query_params,
|
556
|
-
:form_params => form_params,
|
557
|
-
:body => post_body,
|
558
|
-
:auth_names => auth_names,
|
559
|
-
:return_type => return_type
|
560
|
-
)
|
561
|
-
|
562
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
563
|
-
if @api_client.config.debugging
|
564
|
-
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_recommendations_explain_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
565
|
-
end
|
566
|
-
return data, status_code, headers
|
567
|
-
end
|
568
|
-
|
569
|
-
# Get asset recommendations for a specific asset using heuristic waterfall matching Returns list of similar assets based on industry, company, connection, tags, etc. Query Parameters: - limit: Number of recommendations to return (default: 12, max: 50) - min_score: Minimum similarity score threshold (default: 0.1) - include_details: Include component similarity scores (default: false)
|
570
|
-
# @param company_id [String]
|
571
|
-
# @param asset_id [String]
|
572
|
-
# @param [Hash] opts the optional parameters
|
573
|
-
# @option opts [String] :limit
|
574
|
-
# @option opts [String] :min_score
|
575
|
-
# @option opts [String] :include_details
|
576
|
-
# @return [Object]
|
577
|
-
def companies_company_id_assets_asset_id_recommendations_get(company_id, asset_id, opts = {})
|
578
|
-
data, _status_code, _headers = companies_company_id_assets_asset_id_recommendations_get_with_http_info(company_id, asset_id, opts)
|
579
|
-
data
|
580
|
-
end
|
581
|
-
|
582
|
-
# Get asset recommendations for a specific asset using heuristic waterfall matching Returns list of similar assets based on industry, company, connection, tags, etc. Query Parameters: - limit: Number of recommendations to return (default: 12, max: 50) - min_score: Minimum similarity score threshold (default: 0.1) - include_details: Include component similarity scores (default: false)
|
583
|
-
# @param company_id [String]
|
584
|
-
# @param asset_id [String]
|
585
|
-
# @param [Hash] opts the optional parameters
|
586
|
-
# @option opts [String] :limit
|
587
|
-
# @option opts [String] :min_score
|
588
|
-
# @option opts [String] :include_details
|
589
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
590
|
-
def companies_company_id_assets_asset_id_recommendations_get_with_http_info(company_id, asset_id, opts = {})
|
591
|
-
if @api_client.config.debugging
|
592
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_recommendations_get ...'
|
593
|
-
end
|
594
|
-
# verify the required parameter 'company_id' is set
|
595
|
-
if @api_client.config.client_side_validation && company_id.nil?
|
596
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_recommendations_get"
|
597
|
-
end
|
598
|
-
# verify the required parameter 'asset_id' is set
|
599
|
-
if @api_client.config.client_side_validation && asset_id.nil?
|
600
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_recommendations_get"
|
601
|
-
end
|
602
|
-
# resource path
|
603
|
-
local_var_path = '/companies/{company_id}/assets/{asset_id}/recommendations'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
604
|
-
|
605
|
-
# query parameters
|
606
|
-
query_params = opts[:query_params] || {}
|
607
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
608
|
-
query_params[:'min_score'] = opts[:'min_score'] if !opts[:'min_score'].nil?
|
609
|
-
query_params[:'include_details'] = opts[:'include_details'] if !opts[:'include_details'].nil?
|
610
|
-
|
611
|
-
# header parameters
|
612
|
-
header_params = opts[:header_params] || {}
|
613
|
-
# HTTP header 'Accept' (if needed)
|
614
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
615
|
-
|
616
|
-
# form parameters
|
617
|
-
form_params = opts[:form_params] || {}
|
618
|
-
|
619
|
-
# http body (model)
|
620
|
-
post_body = opts[:debug_body]
|
621
|
-
|
622
|
-
# return_type
|
623
|
-
return_type = opts[:debug_return_type] || 'Object'
|
624
|
-
|
625
|
-
# auth_names
|
626
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
627
|
-
|
628
|
-
new_options = opts.merge(
|
629
|
-
:operation => :"AssetsApi.companies_company_id_assets_asset_id_recommendations_get",
|
630
|
-
:header_params => header_params,
|
631
|
-
:query_params => query_params,
|
632
|
-
:form_params => form_params,
|
633
|
-
:body => post_body,
|
634
|
-
:auth_names => auth_names,
|
635
|
-
:return_type => return_type
|
636
|
-
)
|
637
|
-
|
638
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
639
|
-
if @api_client.config.debugging
|
640
|
-
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_recommendations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
641
|
-
end
|
642
|
-
return data, status_code, headers
|
643
|
-
end
|
644
|
-
|
645
502
|
# Get statistics for a specific asset (public endpoint)
|
646
503
|
# @param company_id [String]
|
647
504
|
# @param asset_id [String]
|
@@ -690,7 +547,7 @@ module SparteraApiSdk
|
|
690
547
|
return_type = opts[:debug_return_type] || 'Object'
|
691
548
|
|
692
549
|
# auth_names
|
693
|
-
auth_names = opts[:debug_auth_names] || ['
|
550
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
694
551
|
|
695
552
|
new_options = opts.merge(
|
696
553
|
:operation => :"AssetsApi.companies_company_id_assets_asset_id_statistics_get",
|
@@ -757,7 +614,7 @@ module SparteraApiSdk
|
|
757
614
|
return_type = opts[:debug_return_type] || 'Object'
|
758
615
|
|
759
616
|
# auth_names
|
760
|
-
auth_names = opts[:debug_auth_names] || ['
|
617
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
761
618
|
|
762
619
|
new_options = opts.merge(
|
763
620
|
:operation => :"AssetsApi.companies_company_id_assets_asset_id_test_get",
|
@@ -818,7 +675,7 @@ module SparteraApiSdk
|
|
818
675
|
return_type = opts[:debug_return_type] || 'Object'
|
819
676
|
|
820
677
|
# auth_names
|
821
|
-
auth_names = opts[:debug_auth_names] || ['
|
678
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
822
679
|
|
823
680
|
new_options = opts.merge(
|
824
681
|
:operation => :"AssetsApi.companies_company_id_assets_get",
|
@@ -890,7 +747,7 @@ module SparteraApiSdk
|
|
890
747
|
return_type = opts[:debug_return_type] || 'Object'
|
891
748
|
|
892
749
|
# auth_names
|
893
|
-
auth_names = opts[:debug_auth_names] || ['
|
750
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
894
751
|
|
895
752
|
new_options = opts.merge(
|
896
753
|
:operation => :"AssetsApi.companies_company_id_assets_post",
|
@@ -909,139 +766,6 @@ module SparteraApiSdk
|
|
909
766
|
return data, status_code, headers
|
910
767
|
end
|
911
768
|
|
912
|
-
# Get recommendations for multiple assets in a single request. Useful for pre-loading recommendations.
|
913
|
-
# @param company_id [String]
|
914
|
-
# @param asset [Asset]
|
915
|
-
# @param [Hash] opts the optional parameters
|
916
|
-
# @return [Object]
|
917
|
-
def companies_company_id_assets_recommendations_bulk_post(company_id, asset, opts = {})
|
918
|
-
data, _status_code, _headers = companies_company_id_assets_recommendations_bulk_post_with_http_info(company_id, asset, opts)
|
919
|
-
data
|
920
|
-
end
|
921
|
-
|
922
|
-
# Get recommendations for multiple assets in a single request. Useful for pre-loading recommendations.
|
923
|
-
# @param company_id [String]
|
924
|
-
# @param asset [Asset]
|
925
|
-
# @param [Hash] opts the optional parameters
|
926
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
927
|
-
def companies_company_id_assets_recommendations_bulk_post_with_http_info(company_id, asset, opts = {})
|
928
|
-
if @api_client.config.debugging
|
929
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_recommendations_bulk_post ...'
|
930
|
-
end
|
931
|
-
# verify the required parameter 'company_id' is set
|
932
|
-
if @api_client.config.client_side_validation && company_id.nil?
|
933
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_recommendations_bulk_post"
|
934
|
-
end
|
935
|
-
# verify the required parameter 'asset' is set
|
936
|
-
if @api_client.config.client_side_validation && asset.nil?
|
937
|
-
fail ArgumentError, "Missing the required parameter 'asset' when calling AssetsApi.companies_company_id_assets_recommendations_bulk_post"
|
938
|
-
end
|
939
|
-
# resource path
|
940
|
-
local_var_path = '/companies/{company_id}/assets/recommendations/bulk'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
941
|
-
|
942
|
-
# query parameters
|
943
|
-
query_params = opts[:query_params] || {}
|
944
|
-
|
945
|
-
# header parameters
|
946
|
-
header_params = opts[:header_params] || {}
|
947
|
-
# HTTP header 'Accept' (if needed)
|
948
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
949
|
-
# HTTP header 'Content-Type'
|
950
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
951
|
-
if !content_type.nil?
|
952
|
-
header_params['Content-Type'] = content_type
|
953
|
-
end
|
954
|
-
|
955
|
-
# form parameters
|
956
|
-
form_params = opts[:form_params] || {}
|
957
|
-
|
958
|
-
# http body (model)
|
959
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(asset)
|
960
|
-
|
961
|
-
# return_type
|
962
|
-
return_type = opts[:debug_return_type] || 'Object'
|
963
|
-
|
964
|
-
# auth_names
|
965
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
966
|
-
|
967
|
-
new_options = opts.merge(
|
968
|
-
:operation => :"AssetsApi.companies_company_id_assets_recommendations_bulk_post",
|
969
|
-
:header_params => header_params,
|
970
|
-
:query_params => query_params,
|
971
|
-
:form_params => form_params,
|
972
|
-
:body => post_body,
|
973
|
-
:auth_names => auth_names,
|
974
|
-
:return_type => return_type
|
975
|
-
)
|
976
|
-
|
977
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
978
|
-
if @api_client.config.debugging
|
979
|
-
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_recommendations_bulk_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
980
|
-
end
|
981
|
-
return data, status_code, headers
|
982
|
-
end
|
983
|
-
|
984
|
-
# Health check for the recommendations system with sample data and performance metrics.
|
985
|
-
# @param company_id [String]
|
986
|
-
# @param [Hash] opts the optional parameters
|
987
|
-
# @return [Object]
|
988
|
-
def companies_company_id_assets_recommendations_health_get(company_id, opts = {})
|
989
|
-
data, _status_code, _headers = companies_company_id_assets_recommendations_health_get_with_http_info(company_id, opts)
|
990
|
-
data
|
991
|
-
end
|
992
|
-
|
993
|
-
# Health check for the recommendations system with sample data and performance metrics.
|
994
|
-
# @param company_id [String]
|
995
|
-
# @param [Hash] opts the optional parameters
|
996
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
997
|
-
def companies_company_id_assets_recommendations_health_get_with_http_info(company_id, opts = {})
|
998
|
-
if @api_client.config.debugging
|
999
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_recommendations_health_get ...'
|
1000
|
-
end
|
1001
|
-
# verify the required parameter 'company_id' is set
|
1002
|
-
if @api_client.config.client_side_validation && company_id.nil?
|
1003
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_recommendations_health_get"
|
1004
|
-
end
|
1005
|
-
# resource path
|
1006
|
-
local_var_path = '/companies/{company_id}/assets/recommendations/health'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
1007
|
-
|
1008
|
-
# query parameters
|
1009
|
-
query_params = opts[:query_params] || {}
|
1010
|
-
|
1011
|
-
# header parameters
|
1012
|
-
header_params = opts[:header_params] || {}
|
1013
|
-
# HTTP header 'Accept' (if needed)
|
1014
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1015
|
-
|
1016
|
-
# form parameters
|
1017
|
-
form_params = opts[:form_params] || {}
|
1018
|
-
|
1019
|
-
# http body (model)
|
1020
|
-
post_body = opts[:debug_body]
|
1021
|
-
|
1022
|
-
# return_type
|
1023
|
-
return_type = opts[:debug_return_type] || 'Object'
|
1024
|
-
|
1025
|
-
# auth_names
|
1026
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
1027
|
-
|
1028
|
-
new_options = opts.merge(
|
1029
|
-
:operation => :"AssetsApi.companies_company_id_assets_recommendations_health_get",
|
1030
|
-
:header_params => header_params,
|
1031
|
-
:query_params => query_params,
|
1032
|
-
:form_params => form_params,
|
1033
|
-
:body => post_body,
|
1034
|
-
:auth_names => auth_names,
|
1035
|
-
:return_type => return_type
|
1036
|
-
)
|
1037
|
-
|
1038
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1039
|
-
if @api_client.config.debugging
|
1040
|
-
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_recommendations_health_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1041
|
-
end
|
1042
|
-
return data, status_code, headers
|
1043
|
-
end
|
1044
|
-
|
1045
769
|
# Get statistics for all assets the user has access to
|
1046
770
|
# @param company_id [String]
|
1047
771
|
# @param [Hash] opts the optional parameters
|
@@ -1084,7 +808,7 @@ module SparteraApiSdk
|
|
1084
808
|
return_type = opts[:debug_return_type] || 'Object'
|
1085
809
|
|
1086
810
|
# auth_names
|
1087
|
-
auth_names = opts[:debug_auth_names] || ['
|
811
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
1088
812
|
|
1089
813
|
new_options = opts.merge(
|
1090
814
|
:operation => :"AssetsApi.companies_company_id_assets_statistics_get",
|