spartera_api_sdk 1.0.62 → 1.0.69
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 +45 -35
- data/docs/AlertsApi.md +71 -57
- data/docs/AssetPriceHistoryApi.md +80 -64
- data/docs/AssetsApi.md +116 -378
- data/docs/CloudProvidersApi.md +18 -215
- data/docs/CompaniesApi.md +81 -63
- data/docs/CompaniesCompanyIdApiKeysGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdPatch200ResponseData.md +18 -0
- data/docs/ConnectionsApi.md +67 -53
- data/docs/FavoritesApi.md +84 -68
- data/docs/MeGet200Response.md +36 -0
- data/docs/MeGet200ResponseApiKeyInfo.md +20 -0
- data/docs/MeGet200ResponseProfile.md +36 -0
- data/docs/MeGet200ResponseTokenMetadata.md +24 -0
- data/docs/StorageEnginesApi.md +149 -0
- data/docs/UsersApi.md +116 -39
- data/lib/spartera_api_sdk/api/alerts_api.rb +32 -32
- data/lib/spartera_api_sdk/api/api_keys_api.rb +20 -20
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +36 -36
- data/lib/spartera_api_sdk/api/assets_api.rb +52 -328
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +8 -185
- data/lib/spartera_api_sdk/api/companies_api.rb +36 -36
- data/lib/spartera_api_sdk/api/connections_api.rb +30 -30
- data/lib/spartera_api_sdk/api/favorites_api.rb +38 -38
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +150 -0
- data/lib/spartera_api_sdk/api/users_api.rb +77 -22
- data/lib/spartera_api_sdk/configuration.rb +2 -10
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_get200_response.rb +248 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/me_get200_response.rb +417 -0
- data/lib/spartera_api_sdk/models/me_get200_response_api_key_info.rb +232 -0
- data/lib/spartera_api_sdk/models/me_get200_response_profile.rb +345 -0
- data/lib/spartera_api_sdk/models/me_get200_response_token_metadata.rb +252 -0
- data/lib/spartera_api_sdk/version.rb +1 -1
- data/lib/spartera_api_sdk.rb +46 -0
- data/spec/api/alerts_api_spec.rb +9 -9
- data/spec/api/api_keys_api_spec.rb +5 -5
- data/spec/api/asset_price_history_api_spec.rb +10 -10
- data/spec/api/assets_api_spec.rb +14 -64
- data/spec/api/cloud_providers_api_spec.rb +2 -34
- data/spec/api/companies_api_spec.rb +9 -9
- data/spec/api/connections_api_spec.rb +8 -8
- data/spec/api/favorites_api_spec.rb +11 -11
- data/spec/api/storage_engines_api_spec.rb +58 -0
- data/spec/api/users_api_spec.rb +16 -6
- data/spec/models/companies_company_id_api_keys_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_patch200_response_spec.rb +42 -0
- data/spec/models/me_get200_response_api_key_info_spec.rb +42 -0
- data/spec/models/me_get200_response_profile_spec.rb +94 -0
- data/spec/models/me_get200_response_spec.rb +94 -0
- data/spec/models/me_get200_response_token_metadata_spec.rb +54 -0
- metadata +208 -22
- data/Gemfile.lock +0 -69
@@ -19,21 +19,21 @@ module SparteraApiSdk
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Process
|
22
|
+
# Process (analyze) an asset. Attempt to process an analytic on a backend warehouse/AI model.
|
23
23
|
# @param company_handle [String]
|
24
24
|
# @param asset_slug [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [CompaniesCompanyIdAssetsAssetIdGet200Response]
|
27
27
|
def analyze_company_handle_assets_asset_slug_get(company_handle, asset_slug, opts = {})
|
28
28
|
data, _status_code, _headers = analyze_company_handle_assets_asset_slug_get_with_http_info(company_handle, asset_slug, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Process
|
32
|
+
# Process (analyze) an asset. Attempt to process an analytic on a backend warehouse/AI model.
|
33
33
|
# @param company_handle [String]
|
34
34
|
# @param asset_slug [String]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(CompaniesCompanyIdAssetsAssetIdGet200Response, Integer, Hash)>] CompaniesCompanyIdAssetsAssetIdGet200Response data, response status code and response headers
|
37
37
|
def analyze_company_handle_assets_asset_slug_get_with_http_info(company_handle, asset_slug, 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 ...'
|
@@ -64,10 +64,10 @@ module SparteraApiSdk
|
|
64
64
|
post_body = opts[:debug_body]
|
65
65
|
|
66
66
|
# return_type
|
67
|
-
return_type = opts[:debug_return_type] || '
|
67
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsAssetIdGet200Response'
|
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",
|
@@ -90,7 +90,7 @@ module SparteraApiSdk
|
|
90
90
|
# @param company_id [String]
|
91
91
|
# @param asset_id [String]
|
92
92
|
# @param [Hash] opts the optional parameters
|
93
|
-
# @return [
|
93
|
+
# @return [CompaniesCompanyIdAssetsAssetIdDelete200Response]
|
94
94
|
def companies_company_id_assets_asset_id_delete(company_id, asset_id, opts = {})
|
95
95
|
data, _status_code, _headers = companies_company_id_assets_asset_id_delete_with_http_info(company_id, asset_id, opts)
|
96
96
|
data
|
@@ -100,7 +100,7 @@ module SparteraApiSdk
|
|
100
100
|
# @param company_id [String]
|
101
101
|
# @param asset_id [String]
|
102
102
|
# @param [Hash] opts the optional parameters
|
103
|
-
# @return [Array<(
|
103
|
+
# @return [Array<(CompaniesCompanyIdAssetsAssetIdDelete200Response, Integer, Hash)>] CompaniesCompanyIdAssetsAssetIdDelete200Response data, response status code and response headers
|
104
104
|
def companies_company_id_assets_asset_id_delete_with_http_info(company_id, asset_id, opts = {})
|
105
105
|
if @api_client.config.debugging
|
106
106
|
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_delete ...'
|
@@ -131,10 +131,10 @@ module SparteraApiSdk
|
|
131
131
|
post_body = opts[:debug_body]
|
132
132
|
|
133
133
|
# return_type
|
134
|
-
return_type = opts[:debug_return_type] || '
|
134
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsAssetIdDelete200Response'
|
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",
|
@@ -157,7 +157,7 @@ module SparteraApiSdk
|
|
157
157
|
# @param company_id [String]
|
158
158
|
# @param asset_id [String]
|
159
159
|
# @param [Hash] opts the optional parameters
|
160
|
-
# @return [
|
160
|
+
# @return [CompaniesCompanyIdAssetsAssetIdGet200Response]
|
161
161
|
def companies_company_id_assets_asset_id_get(company_id, asset_id, opts = {})
|
162
162
|
data, _status_code, _headers = companies_company_id_assets_asset_id_get_with_http_info(company_id, asset_id, opts)
|
163
163
|
data
|
@@ -167,7 +167,7 @@ module SparteraApiSdk
|
|
167
167
|
# @param company_id [String]
|
168
168
|
# @param asset_id [String]
|
169
169
|
# @param [Hash] opts the optional parameters
|
170
|
-
# @return [Array<(
|
170
|
+
# @return [Array<(CompaniesCompanyIdAssetsAssetIdGet200Response, Integer, Hash)>] CompaniesCompanyIdAssetsAssetIdGet200Response data, response status code and response headers
|
171
171
|
def companies_company_id_assets_asset_id_get_with_http_info(company_id, asset_id, opts = {})
|
172
172
|
if @api_client.config.debugging
|
173
173
|
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_get ...'
|
@@ -198,10 +198,10 @@ module SparteraApiSdk
|
|
198
198
|
post_body = opts[:debug_body]
|
199
199
|
|
200
200
|
# return_type
|
201
|
-
return_type = opts[:debug_return_type] || '
|
201
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsAssetIdGet200Response'
|
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",
|
@@ -224,7 +224,7 @@ module SparteraApiSdk
|
|
224
224
|
# @param company_id [String]
|
225
225
|
# @param asset_id [String]
|
226
226
|
# @param [Hash] opts the optional parameters
|
227
|
-
# @return [
|
227
|
+
# @return [CompaniesCompanyIdAssetsGet200Response]
|
228
228
|
def companies_company_id_assets_asset_id_infoschema_get(company_id, asset_id, opts = {})
|
229
229
|
data, _status_code, _headers = companies_company_id_assets_asset_id_infoschema_get_with_http_info(company_id, asset_id, opts)
|
230
230
|
data
|
@@ -234,7 +234,7 @@ module SparteraApiSdk
|
|
234
234
|
# @param company_id [String]
|
235
235
|
# @param asset_id [String]
|
236
236
|
# @param [Hash] opts the optional parameters
|
237
|
-
# @return [Array<(
|
237
|
+
# @return [Array<(CompaniesCompanyIdAssetsGet200Response, Integer, Hash)>] CompaniesCompanyIdAssetsGet200Response data, response status code and response headers
|
238
238
|
def companies_company_id_assets_asset_id_infoschema_get_with_http_info(company_id, asset_id, opts = {})
|
239
239
|
if @api_client.config.debugging
|
240
240
|
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_infoschema_get ...'
|
@@ -265,10 +265,10 @@ module SparteraApiSdk
|
|
265
265
|
post_body = opts[:debug_body]
|
266
266
|
|
267
267
|
# return_type
|
268
|
-
return_type = opts[:debug_return_type] || '
|
268
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsGet200Response'
|
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,21 +287,21 @@ 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
|
294
|
-
# @return [
|
294
|
+
# @return [CompaniesCompanyIdAssetsGet200Response]
|
295
295
|
def companies_company_id_assets_asset_id_infoschema_save_get(company_id, asset_id, opts = {})
|
296
296
|
data, _status_code, _headers = companies_company_id_assets_asset_id_infoschema_save_get_with_http_info(company_id, asset_id, opts)
|
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
|
304
|
-
# @return [Array<(
|
304
|
+
# @return [Array<(CompaniesCompanyIdAssetsGet200Response, Integer, Hash)>] CompaniesCompanyIdAssetsGet200Response data, response status code and response headers
|
305
305
|
def companies_company_id_assets_asset_id_infoschema_save_get_with_http_info(company_id, asset_id, opts = {})
|
306
306
|
if @api_client.config.debugging
|
307
307
|
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_infoschema_save_get ...'
|
@@ -332,10 +332,10 @@ module SparteraApiSdk
|
|
332
332
|
post_body = opts[:debug_body]
|
333
333
|
|
334
334
|
# return_type
|
335
|
-
return_type = opts[:debug_return_type] || '
|
335
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsGet200Response'
|
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",
|
@@ -359,7 +359,7 @@ module SparteraApiSdk
|
|
359
359
|
# @param asset_id [String]
|
360
360
|
# @param asset [Asset]
|
361
361
|
# @param [Hash] opts the optional parameters
|
362
|
-
# @return [
|
362
|
+
# @return [CompaniesCompanyIdAssetsAssetIdPatch200Response]
|
363
363
|
def companies_company_id_assets_asset_id_patch(company_id, asset_id, asset, opts = {})
|
364
364
|
data, _status_code, _headers = companies_company_id_assets_asset_id_patch_with_http_info(company_id, asset_id, asset, opts)
|
365
365
|
data
|
@@ -370,7 +370,7 @@ module SparteraApiSdk
|
|
370
370
|
# @param asset_id [String]
|
371
371
|
# @param asset [Asset]
|
372
372
|
# @param [Hash] opts the optional parameters
|
373
|
-
# @return [Array<(
|
373
|
+
# @return [Array<(CompaniesCompanyIdAssetsAssetIdPatch200Response, Integer, Hash)>] CompaniesCompanyIdAssetsAssetIdPatch200Response data, response status code and response headers
|
374
374
|
def companies_company_id_assets_asset_id_patch_with_http_info(company_id, asset_id, asset, opts = {})
|
375
375
|
if @api_client.config.debugging
|
376
376
|
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_patch ...'
|
@@ -410,10 +410,10 @@ module SparteraApiSdk
|
|
410
410
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(asset)
|
411
411
|
|
412
412
|
# return_type
|
413
|
-
return_type = opts[:debug_return_type] || '
|
413
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsAssetIdPatch200Response'
|
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",
|
@@ -436,7 +436,7 @@ module SparteraApiSdk
|
|
436
436
|
# @param company_id [String]
|
437
437
|
# @param asset_id [String]
|
438
438
|
# @param [Hash] opts the optional parameters
|
439
|
-
# @return [
|
439
|
+
# @return [CompaniesCompanyIdAssetsGet200Response]
|
440
440
|
def companies_company_id_assets_asset_id_predicted_price_get(company_id, asset_id, opts = {})
|
441
441
|
data, _status_code, _headers = companies_company_id_assets_asset_id_predicted_price_get_with_http_info(company_id, asset_id, opts)
|
442
442
|
data
|
@@ -446,7 +446,7 @@ module SparteraApiSdk
|
|
446
446
|
# @param company_id [String]
|
447
447
|
# @param asset_id [String]
|
448
448
|
# @param [Hash] opts the optional parameters
|
449
|
-
# @return [Array<(
|
449
|
+
# @return [Array<(CompaniesCompanyIdAssetsGet200Response, Integer, Hash)>] CompaniesCompanyIdAssetsGet200Response data, response status code and response headers
|
450
450
|
def companies_company_id_assets_asset_id_predicted_price_get_with_http_info(company_id, asset_id, opts = {})
|
451
451
|
if @api_client.config.debugging
|
452
452
|
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_predicted_price_get ...'
|
@@ -477,10 +477,10 @@ module SparteraApiSdk
|
|
477
477
|
post_body = opts[:debug_body]
|
478
478
|
|
479
479
|
# return_type
|
480
|
-
return_type = opts[:debug_return_type] || '
|
480
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsGet200Response'
|
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,154 +499,11 @@ 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]
|
648
505
|
# @param [Hash] opts the optional parameters
|
649
|
-
# @return [
|
506
|
+
# @return [CompaniesCompanyIdAssetsGet200Response]
|
650
507
|
def companies_company_id_assets_asset_id_statistics_get(company_id, asset_id, opts = {})
|
651
508
|
data, _status_code, _headers = companies_company_id_assets_asset_id_statistics_get_with_http_info(company_id, asset_id, opts)
|
652
509
|
data
|
@@ -656,7 +513,7 @@ module SparteraApiSdk
|
|
656
513
|
# @param company_id [String]
|
657
514
|
# @param asset_id [String]
|
658
515
|
# @param [Hash] opts the optional parameters
|
659
|
-
# @return [Array<(
|
516
|
+
# @return [Array<(CompaniesCompanyIdAssetsGet200Response, Integer, Hash)>] CompaniesCompanyIdAssetsGet200Response data, response status code and response headers
|
660
517
|
def companies_company_id_assets_asset_id_statistics_get_with_http_info(company_id, asset_id, opts = {})
|
661
518
|
if @api_client.config.debugging
|
662
519
|
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_statistics_get ...'
|
@@ -687,10 +544,10 @@ module SparteraApiSdk
|
|
687
544
|
post_body = opts[:debug_body]
|
688
545
|
|
689
546
|
# return_type
|
690
|
-
return_type = opts[:debug_return_type] || '
|
547
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsGet200Response'
|
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",
|
@@ -713,7 +570,7 @@ module SparteraApiSdk
|
|
713
570
|
# @param company_id [String]
|
714
571
|
# @param asset_id [String]
|
715
572
|
# @param [Hash] opts the optional parameters
|
716
|
-
# @return [
|
573
|
+
# @return [CompaniesCompanyIdAssetsGet200Response]
|
717
574
|
def companies_company_id_assets_asset_id_test_get(company_id, asset_id, opts = {})
|
718
575
|
data, _status_code, _headers = companies_company_id_assets_asset_id_test_get_with_http_info(company_id, asset_id, opts)
|
719
576
|
data
|
@@ -723,7 +580,7 @@ module SparteraApiSdk
|
|
723
580
|
# @param company_id [String]
|
724
581
|
# @param asset_id [String]
|
725
582
|
# @param [Hash] opts the optional parameters
|
726
|
-
# @return [Array<(
|
583
|
+
# @return [Array<(CompaniesCompanyIdAssetsGet200Response, Integer, Hash)>] CompaniesCompanyIdAssetsGet200Response data, response status code and response headers
|
727
584
|
def companies_company_id_assets_asset_id_test_get_with_http_info(company_id, asset_id, opts = {})
|
728
585
|
if @api_client.config.debugging
|
729
586
|
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_test_get ...'
|
@@ -754,10 +611,10 @@ module SparteraApiSdk
|
|
754
611
|
post_body = opts[:debug_body]
|
755
612
|
|
756
613
|
# return_type
|
757
|
-
return_type = opts[:debug_return_type] || '
|
614
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsGet200Response'
|
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",
|
@@ -779,7 +636,7 @@ module SparteraApiSdk
|
|
779
636
|
# Get all assets for a specific company
|
780
637
|
# @param company_id [String]
|
781
638
|
# @param [Hash] opts the optional parameters
|
782
|
-
# @return [
|
639
|
+
# @return [CompaniesCompanyIdAssetsGet200Response]
|
783
640
|
def companies_company_id_assets_get(company_id, opts = {})
|
784
641
|
data, _status_code, _headers = companies_company_id_assets_get_with_http_info(company_id, opts)
|
785
642
|
data
|
@@ -788,7 +645,7 @@ module SparteraApiSdk
|
|
788
645
|
# Get all assets for a specific company
|
789
646
|
# @param company_id [String]
|
790
647
|
# @param [Hash] opts the optional parameters
|
791
|
-
# @return [Array<(
|
648
|
+
# @return [Array<(CompaniesCompanyIdAssetsGet200Response, Integer, Hash)>] CompaniesCompanyIdAssetsGet200Response data, response status code and response headers
|
792
649
|
def companies_company_id_assets_get_with_http_info(company_id, opts = {})
|
793
650
|
if @api_client.config.debugging
|
794
651
|
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_get ...'
|
@@ -815,10 +672,10 @@ module SparteraApiSdk
|
|
815
672
|
post_body = opts[:debug_body]
|
816
673
|
|
817
674
|
# return_type
|
818
|
-
return_type = opts[:debug_return_type] || '
|
675
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsGet200Response'
|
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",
|
@@ -841,7 +698,7 @@ module SparteraApiSdk
|
|
841
698
|
# @param company_id [String]
|
842
699
|
# @param asset [Asset]
|
843
700
|
# @param [Hash] opts the optional parameters
|
844
|
-
# @return [
|
701
|
+
# @return [CompaniesCompanyIdAssetsPost200Response]
|
845
702
|
def companies_company_id_assets_post(company_id, asset, opts = {})
|
846
703
|
data, _status_code, _headers = companies_company_id_assets_post_with_http_info(company_id, asset, opts)
|
847
704
|
data
|
@@ -851,7 +708,7 @@ module SparteraApiSdk
|
|
851
708
|
# @param company_id [String]
|
852
709
|
# @param asset [Asset]
|
853
710
|
# @param [Hash] opts the optional parameters
|
854
|
-
# @return [Array<(
|
711
|
+
# @return [Array<(CompaniesCompanyIdAssetsPost200Response, Integer, Hash)>] CompaniesCompanyIdAssetsPost200Response data, response status code and response headers
|
855
712
|
def companies_company_id_assets_post_with_http_info(company_id, asset, opts = {})
|
856
713
|
if @api_client.config.debugging
|
857
714
|
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_post ...'
|
@@ -887,10 +744,10 @@ module SparteraApiSdk
|
|
887
744
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(asset)
|
888
745
|
|
889
746
|
# return_type
|
890
|
-
return_type = opts[:debug_return_type] || '
|
747
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsPost200Response'
|
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,143 +766,10 @@ 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
|
1048
|
-
# @return [
|
772
|
+
# @return [CompaniesCompanyIdAssetsGet200Response]
|
1049
773
|
def companies_company_id_assets_statistics_get(company_id, opts = {})
|
1050
774
|
data, _status_code, _headers = companies_company_id_assets_statistics_get_with_http_info(company_id, opts)
|
1051
775
|
data
|
@@ -1054,7 +778,7 @@ module SparteraApiSdk
|
|
1054
778
|
# Get statistics for all assets the user has access to
|
1055
779
|
# @param company_id [String]
|
1056
780
|
# @param [Hash] opts the optional parameters
|
1057
|
-
# @return [Array<(
|
781
|
+
# @return [Array<(CompaniesCompanyIdAssetsGet200Response, Integer, Hash)>] CompaniesCompanyIdAssetsGet200Response data, response status code and response headers
|
1058
782
|
def companies_company_id_assets_statistics_get_with_http_info(company_id, opts = {})
|
1059
783
|
if @api_client.config.debugging
|
1060
784
|
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_statistics_get ...'
|
@@ -1081,10 +805,10 @@ module SparteraApiSdk
|
|
1081
805
|
post_body = opts[:debug_body]
|
1082
806
|
|
1083
807
|
# return_type
|
1084
|
-
return_type = opts[:debug_return_type] || '
|
808
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdAssetsGet200Response'
|
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",
|