spartera_api_sdk 0.4.2 → 1.0.58
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/Gemfile +5 -3
- data/Gemfile.lock +69 -0
- data/README.md +324 -336
- data/config.json +10 -0
- data/docs/APIKeysApi.md +102 -286
- data/docs/Alert.md +36 -0
- data/docs/AlertsApi.md +163 -177
- data/docs/Apikey.md +36 -0
- data/docs/Asset.md +110 -0
- data/docs/AssetPriceHistoryApi.md +178 -202
- data/docs/Assetpricehistory.md +38 -0
- data/docs/AssetsApi.md +352 -418
- data/docs/CloudProvidersApi.md +233 -49
- data/docs/Cloudprovider.md +30 -0
- data/docs/CompaniesApi.md +171 -357
- data/docs/Company.md +44 -0
- data/docs/Connection.md +54 -0
- data/docs/ConnectionsApi.md +139 -249
- data/docs/Favorite.md +36 -0
- data/docs/FavoritesApi.md +183 -199
- data/docs/User.md +34 -0
- data/docs/UsersApi.md +97 -379
- data/example.rb +51 -0
- data/git_push.sh +2 -2
- data/lib/spartera_api_sdk/api/alerts_api.rb +176 -423
- data/lib/spartera_api_sdk/api/api_keys_api.rb +95 -496
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +177 -468
- data/lib/spartera_api_sdk/api/assets_api.rb +358 -806
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +199 -74
- data/lib/spartera_api_sdk/api/companies_api.rb +146 -660
- data/lib/spartera_api_sdk/api/connections_api.rb +139 -466
- data/lib/spartera_api_sdk/api/favorites_api.rb +204 -464
- data/lib/spartera_api_sdk/api/users_api.rb +95 -619
- data/lib/spartera_api_sdk/api_client.rb +4 -8
- data/lib/spartera_api_sdk/api_error.rb +2 -2
- data/lib/spartera_api_sdk/configuration.rb +12 -4
- data/lib/spartera_api_sdk/models/{alerts.rb → alert.rb} +139 -46
- data/lib/spartera_api_sdk/models/{api_keys.rb → apikey.rb} +124 -98
- data/lib/spartera_api_sdk/models/asset.rb +686 -0
- data/lib/spartera_api_sdk/models/{asset_price_history.rb → assetpricehistory.rb} +180 -44
- data/lib/spartera_api_sdk/models/{cloud_providers.rb → cloudprovider.rb} +111 -35
- data/lib/spartera_api_sdk/models/{companies.rb → company.rb} +105 -90
- data/lib/spartera_api_sdk/models/{connections.rb → connection.rb} +186 -69
- data/lib/spartera_api_sdk/models/error.rb +76 -3
- data/lib/spartera_api_sdk/models/{favorites.rb → favorite.rb} +111 -38
- data/lib/spartera_api_sdk/models/inline_object.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object1.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object2.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object3.rb +76 -3
- data/lib/spartera_api_sdk/models/{users.rb → user.rb} +108 -112
- data/lib/spartera_api_sdk/version.rb +3 -3
- data/lib/spartera_api_sdk.rb +11 -150
- data/spartera_api_sdk.gemspec +8 -19
- data/spec/api/alerts_api_spec.rb +51 -51
- data/spec/api/api_keys_api_spec.rb +30 -67
- data/spec/api/asset_price_history_api_spec.rb +53 -57
- data/spec/api/assets_api_spec.rb +99 -114
- data/spec/api/cloud_providers_api_spec.rb +42 -15
- data/spec/api/companies_api_spec.rb +47 -99
- data/spec/api/connections_api_spec.rb +41 -63
- data/spec/api/favorites_api_spec.rb +56 -56
- data/spec/api/users_api_spec.rb +29 -88
- data/spec/models/{postgen_integrations_spec.rb → alert_spec.rb} +17 -17
- data/spec/models/{api_keys_update_spec.rb → apikey_spec.rb} +20 -14
- data/spec/models/{endpoints_spec.rb → asset_spec.rb} +83 -69
- data/spec/models/{api_keys_spec.rb → assetpricehistory_spec.rb} +19 -25
- data/spec/models/{cloud_providers_spec.rb → cloudprovider_spec.rb} +20 -14
- data/spec/models/{companies_spec.rb → company_spec.rb} +16 -26
- data/spec/models/{posts_input_spec.rb → connection_spec.rb} +27 -51
- data/spec/models/error_spec.rb +3 -3
- data/spec/models/{favorites_spec.rb → favorite_spec.rb} +23 -17
- data/spec/models/inline_object1_spec.rb +3 -3
- data/spec/models/inline_object2_spec.rb +3 -3
- data/spec/models/inline_object3_spec.rb +3 -3
- data/spec/models/inline_object_spec.rb +3 -3
- data/spec/models/{api_keys_input_spec.rb → user_spec.rb} +15 -15
- data/spec/spec_helper.rb +2 -2
- data/test.sh +42 -0
- metadata +78 -616
- data/CHANGELOG.md +0 -25
- data/docs/Alerts.md +0 -30
- data/docs/AlertsInput.md +0 -24
- data/docs/AlertsUpdate.md +0 -24
- data/docs/ApiKeys.md +0 -40
- data/docs/ApiKeysInput.md +0 -34
- data/docs/ApiKeysUpdate.md +0 -34
- data/docs/AssetPriceHistory.md +0 -30
- data/docs/AssetPriceHistoryInput.md +0 -24
- data/docs/AssetPriceHistoryUpdate.md +0 -24
- data/docs/AssetUsecases.md +0 -28
- data/docs/AssetUsecasesApi.md +0 -157
- data/docs/Assets.md +0 -142
- data/docs/AssetsInput.md +0 -128
- data/docs/AssetsUpdate.md +0 -128
- data/docs/CloudProviders.md +0 -28
- data/docs/CloudProvidersInput.md +0 -22
- data/docs/CloudProvidersUpdate.md +0 -22
- data/docs/Companies.md +0 -46
- data/docs/CompaniesInput.md +0 -40
- data/docs/CompaniesUpdate.md +0 -40
- data/docs/Connections.md +0 -38
- data/docs/ConnectionsInput.md +0 -32
- data/docs/ConnectionsUpdate.md +0 -32
- data/docs/CreateAlerts200Response.md +0 -20
- data/docs/CreateAlerts200ResponseData.md +0 -18
- data/docs/CreateApiKeys200Response.md +0 -20
- data/docs/CreateApiKeys200ResponseData.md +0 -18
- data/docs/CreateAssetPriceHistory200Response.md +0 -20
- data/docs/CreateAssetPriceHistory200ResponseData.md +0 -18
- data/docs/CreateAssetsAnalyze200Response.md +0 -20
- data/docs/CreateAssetsAnalyze200ResponseData.md +0 -18
- data/docs/CreateConnections200Response.md +0 -20
- data/docs/CreateConnections200ResponseData.md +0 -18
- data/docs/CreateEndpoints200Response.md +0 -20
- data/docs/CreateEndpoints200ResponseData.md +0 -18
- data/docs/CreateFavorites200Response.md +0 -20
- data/docs/CreateFavorites200ResponseData.md +0 -18
- data/docs/CreatePostgenIntegrations200Response.md +0 -20
- data/docs/CreatePostgenIntegrations200ResponseData.md +0 -18
- data/docs/CreatePosts200Response.md +0 -20
- data/docs/CreatePosts200ResponseData.md +0 -18
- data/docs/CreateUsers200Response.md +0 -20
- data/docs/CreateUsers200ResponseData.md +0 -18
- data/docs/DeleteAlerts200Response.md +0 -20
- data/docs/DeleteAlerts200ResponseData.md +0 -18
- data/docs/DeleteApiKeys200Response.md +0 -20
- data/docs/DeleteApiKeys200ResponseData.md +0 -18
- data/docs/DeleteAssetPriceHistory200Response.md +0 -20
- data/docs/DeleteAssetPriceHistory200ResponseData.md +0 -18
- data/docs/DeleteAssets200Response.md +0 -20
- data/docs/DeleteAssets200ResponseData.md +0 -18
- data/docs/DeleteConnections200Response.md +0 -20
- data/docs/DeleteConnections200ResponseData.md +0 -18
- data/docs/DeleteEndpoints200Response.md +0 -20
- data/docs/DeleteEndpoints200ResponseData.md +0 -18
- data/docs/DeleteFavorites200Response.md +0 -20
- data/docs/DeleteFavorites200ResponseData.md +0 -18
- data/docs/DeletePostgenIntegrations200Response.md +0 -20
- data/docs/DeletePostgenIntegrations200ResponseData.md +0 -18
- data/docs/DeletePosts200Response.md +0 -20
- data/docs/DeletePosts200ResponseData.md +0 -18
- data/docs/DeleteUsers200Response.md +0 -20
- data/docs/DeleteUsers200ResponseData.md +0 -18
- data/docs/Endpoints.md +0 -96
- data/docs/EndpointsApi.md +0 -1189
- data/docs/EndpointsInput.md +0 -94
- data/docs/EndpointsUpdate.md +0 -94
- data/docs/Favorites.md +0 -34
- data/docs/FavoritesInput.md +0 -28
- data/docs/FavoritesUpdate.md +0 -28
- data/docs/GetAlertsById200Response.md +0 -20
- data/docs/GetApiKeysById200Response.md +0 -20
- data/docs/GetAssetPriceHistoryById200Response.md +0 -20
- data/docs/GetAssetUsecasesById200Response.md +0 -20
- data/docs/GetAssetsByIdAnalyze200Response.md +0 -20
- data/docs/GetCloudProvidersById200Response.md +0 -20
- data/docs/GetCompaniesById200Response.md +0 -20
- data/docs/GetConnectionsById200Response.md +0 -20
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +0 -20
- data/docs/GetFavoritesById200Response.md +0 -20
- data/docs/GetIndustriesById200Response.md +0 -20
- data/docs/GetJobFunctionsById200Response.md +0 -20
- data/docs/GetPostgenIntegrationsById200Response.md +0 -20
- data/docs/GetPostsById200Response.md +0 -20
- data/docs/GetStorageEnginesById200Response.md +0 -20
- data/docs/GetUsersById200Response.md +0 -20
- data/docs/Industries.md +0 -32
- data/docs/IndustriesApi.md +0 -237
- data/docs/InlineObject4.md +0 -20
- data/docs/InlineObject5.md +0 -20
- data/docs/InlineObject6.md +0 -22
- data/docs/InlineObject7.md +0 -20
- data/docs/JobFunctions.md +0 -24
- data/docs/JobFunctionsApi.md +0 -157
- data/docs/JobFunctionsInput.md +0 -18
- data/docs/JobFunctionsUpdate.md +0 -18
- data/docs/ListApiKeys200Response.md +0 -20
- data/docs/ListAssetUsecases200Response.md +0 -20
- data/docs/ListAssets200Response.md +0 -20
- data/docs/ListCloudProviders200Response.md +0 -20
- data/docs/ListCompaniesAnalyticsAssets200Response.md +0 -20
- data/docs/ListConnections200Response.md +0 -20
- data/docs/ListEndpoints200Response.md +0 -20
- data/docs/ListIndustries200Response.md +0 -20
- data/docs/ListJobFunctions200Response.md +0 -20
- data/docs/ListPostgenIntegrations200Response.md +0 -20
- data/docs/ListPosts200Response.md +0 -20
- data/docs/ListStorageEngines200Response.md +0 -20
- data/docs/ListUsers200Response.md +0 -20
- data/docs/PostPublications.md +0 -40
- data/docs/PostPublicationsInput.md +0 -34
- data/docs/PostPublicationsUpdate.md +0 -34
- data/docs/PostgenIntegrations.md +0 -36
- data/docs/PostgenIntegrationsApi.md +0 -463
- data/docs/PostgenIntegrationsInput.md +0 -30
- data/docs/PostgenIntegrationsUpdate.md +0 -30
- data/docs/Posts.md +0 -68
- data/docs/PostsApi.md +0 -843
- data/docs/PostsInput.md +0 -62
- data/docs/PostsUpdate.md +0 -62
- data/docs/StorageEngines.md +0 -32
- data/docs/StorageEnginesApi.md +0 -161
- data/docs/UpdateAlerts200Response.md +0 -20
- data/docs/UpdateAlerts200ResponseData.md +0 -18
- data/docs/UpdateApiKeys200Response.md +0 -20
- data/docs/UpdateApiKeys200ResponseData.md +0 -18
- data/docs/UpdateAssetPriceHistory200Response.md +0 -20
- data/docs/UpdateAssetPriceHistory200ResponseData.md +0 -18
- data/docs/UpdateAssets200Response.md +0 -20
- data/docs/UpdateAssets200ResponseData.md +0 -18
- data/docs/UpdateCompanies200Response.md +0 -20
- data/docs/UpdateCompanies200ResponseData.md +0 -18
- data/docs/UpdateConnections200Response.md +0 -20
- data/docs/UpdateConnections200ResponseData.md +0 -18
- data/docs/UpdateEndpoints200Response.md +0 -20
- data/docs/UpdateEndpoints200ResponseData.md +0 -18
- data/docs/UpdateFavorites200Response.md +0 -20
- data/docs/UpdateFavorites200ResponseData.md +0 -18
- data/docs/UpdatePostgenIntegrations200Response.md +0 -20
- data/docs/UpdatePostgenIntegrations200ResponseData.md +0 -18
- data/docs/UpdatePosts200Response.md +0 -20
- data/docs/UpdatePosts200ResponseData.md +0 -18
- data/docs/UpdateUsers200Response.md +0 -20
- data/docs/UpdateUsers200ResponseData.md +0 -18
- data/docs/Users.md +0 -36
- data/docs/UsersInput.md +0 -30
- data/docs/UsersUpdate.md +0 -30
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +0 -190
- data/lib/spartera_api_sdk/api/endpoints_api.rb +0 -1613
- data/lib/spartera_api_sdk/api/industries_api.rb +0 -284
- data/lib/spartera_api_sdk/api/job_functions_api.rb +0 -190
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +0 -634
- data/lib/spartera_api_sdk/api/posts_api.rb +0 -1190
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +0 -228
- data/lib/spartera_api_sdk/api_model_base.rb +0 -88
- data/lib/spartera_api_sdk/models/alerts_input.rb +0 -213
- data/lib/spartera_api_sdk/models/alerts_update.rb +0 -179
- data/lib/spartera_api_sdk/models/api_keys_input.rb +0 -263
- data/lib/spartera_api_sdk/models/api_keys_update.rb +0 -229
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +0 -179
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +0 -179
- data/lib/spartera_api_sdk/models/asset_usecases.rb +0 -216
- data/lib/spartera_api_sdk/models/assets.rb +0 -1068
- data/lib/spartera_api_sdk/models/assets_input.rb +0 -918
- data/lib/spartera_api_sdk/models/assets_update.rb +0 -877
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +0 -186
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +0 -169
- data/lib/spartera_api_sdk/models/companies_input.rb +0 -327
- data/lib/spartera_api_sdk/models/companies_update.rb +0 -293
- data/lib/spartera_api_sdk/models/connections_input.rb +0 -287
- data/lib/spartera_api_sdk/models/connections_update.rb +0 -253
- data/lib/spartera_api_sdk/models/create_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_assets200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/endpoints.rb +0 -788
- data/lib/spartera_api_sdk/models/endpoints_input.rb +0 -686
- data/lib/spartera_api_sdk/models/endpoints_update.rb +0 -635
- data/lib/spartera_api_sdk/models/favorites_input.rb +0 -233
- data/lib/spartera_api_sdk/models/favorites_update.rb +0 -199
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_api_keys_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_asset_price_history_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_assets_by_id_analyze200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_cloud_providers_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_connections_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_endpoints_by_id_connections_describe200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_postgen_integrations_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_users_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/industries.rb +0 -253
- data/lib/spartera_api_sdk/models/inline_object4.rb +0 -156
- data/lib/spartera_api_sdk/models/inline_object5.rb +0 -156
- data/lib/spartera_api_sdk/models/inline_object6.rb +0 -166
- data/lib/spartera_api_sdk/models/inline_object7.rb +0 -156
- data/lib/spartera_api_sdk/models/job_functions.rb +0 -213
- data/lib/spartera_api_sdk/models/job_functions_input.rb +0 -166
- data/lib/spartera_api_sdk/models/job_functions_update.rb +0 -149
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_asset_usecases200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_assets200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_companies_analytics_assets200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_connections200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_users200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/post_publications.rb +0 -327
- data/lib/spartera_api_sdk/models/post_publications_input.rb +0 -280
- data/lib/spartera_api_sdk/models/post_publications_update.rb +0 -229
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +0 -341
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +0 -294
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +0 -209
- data/lib/spartera_api_sdk/models/posts.rb +0 -586
- data/lib/spartera_api_sdk/models/posts_input.rb +0 -437
- data/lib/spartera_api_sdk/models/posts_update.rb +0 -369
- data/lib/spartera_api_sdk/models/storage_engines.rb +0 -294
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_assets200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_companies200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/users_input.rb +0 -260
- data/lib/spartera_api_sdk/models/users_update.rb +0 -243
- data/spec/api/asset_usecases_api_spec.rb +0 -61
- data/spec/api/endpoints_api_spec.rb +0 -240
- data/spec/api/industries_api_spec.rb +0 -76
- data/spec/api/job_functions_api_spec.rb +0 -61
- data/spec/api/postgen_integrations_api_spec.rb +0 -117
- data/spec/api/posts_api_spec.rb +0 -186
- data/spec/api/storage_engines_api_spec.rb +0 -63
- data/spec/models/alerts_input_spec.rb +0 -54
- data/spec/models/alerts_spec.rb +0 -72
- data/spec/models/alerts_update_spec.rb +0 -54
- data/spec/models/asset_price_history_input_spec.rb +0 -54
- data/spec/models/asset_price_history_spec.rb +0 -72
- data/spec/models/asset_price_history_update_spec.rb +0 -54
- data/spec/models/asset_usecases_spec.rb +0 -66
- data/spec/models/assets_input_spec.rb +0 -418
- data/spec/models/assets_spec.rb +0 -464
- data/spec/models/assets_update_spec.rb +0 -418
- data/spec/models/cloud_providers_input_spec.rb +0 -48
- data/spec/models/cloud_providers_update_spec.rb +0 -48
- data/spec/models/companies_input_spec.rb +0 -106
- data/spec/models/companies_update_spec.rb +0 -106
- data/spec/models/connections_input_spec.rb +0 -82
- data/spec/models/connections_spec.rb +0 -100
- data/spec/models/connections_update_spec.rb +0 -82
- data/spec/models/create_alerts200_response_data_spec.rb +0 -36
- data/spec/models/create_alerts200_response_spec.rb +0 -42
- data/spec/models/create_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/create_api_keys200_response_spec.rb +0 -42
- data/spec/models/create_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/create_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/create_assets_analyze200_response_data_spec.rb +0 -36
- data/spec/models/create_assets_analyze200_response_spec.rb +0 -42
- data/spec/models/create_connections200_response_data_spec.rb +0 -36
- data/spec/models/create_connections200_response_spec.rb +0 -42
- data/spec/models/create_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/create_endpoints200_response_spec.rb +0 -42
- data/spec/models/create_favorites200_response_data_spec.rb +0 -36
- data/spec/models/create_favorites200_response_spec.rb +0 -42
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/create_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/create_posts200_response_data_spec.rb +0 -36
- data/spec/models/create_posts200_response_spec.rb +0 -42
- data/spec/models/create_users200_response_data_spec.rb +0 -36
- data/spec/models/create_users200_response_spec.rb +0 -42
- data/spec/models/delete_alerts200_response_data_spec.rb +0 -36
- data/spec/models/delete_alerts200_response_spec.rb +0 -42
- data/spec/models/delete_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/delete_api_keys200_response_spec.rb +0 -42
- data/spec/models/delete_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/delete_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/delete_assets200_response_data_spec.rb +0 -36
- data/spec/models/delete_assets200_response_spec.rb +0 -42
- data/spec/models/delete_connections200_response_data_spec.rb +0 -36
- data/spec/models/delete_connections200_response_spec.rb +0 -42
- data/spec/models/delete_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/delete_endpoints200_response_spec.rb +0 -42
- data/spec/models/delete_favorites200_response_data_spec.rb +0 -36
- data/spec/models/delete_favorites200_response_spec.rb +0 -42
- data/spec/models/delete_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/delete_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/delete_posts200_response_data_spec.rb +0 -36
- data/spec/models/delete_posts200_response_spec.rb +0 -42
- data/spec/models/delete_users200_response_data_spec.rb +0 -36
- data/spec/models/delete_users200_response_spec.rb +0 -42
- data/spec/models/endpoints_input_spec.rb +0 -292
- data/spec/models/endpoints_update_spec.rb +0 -292
- data/spec/models/favorites_input_spec.rb +0 -66
- data/spec/models/favorites_update_spec.rb +0 -66
- data/spec/models/get_alerts_by_id200_response_spec.rb +0 -42
- data/spec/models/get_api_keys_by_id200_response_spec.rb +0 -42
- data/spec/models/get_asset_price_history_by_id200_response_spec.rb +0 -42
- data/spec/models/get_asset_usecases_by_id200_response_spec.rb +0 -42
- data/spec/models/get_assets_by_id_analyze200_response_spec.rb +0 -42
- data/spec/models/get_cloud_providers_by_id200_response_spec.rb +0 -42
- data/spec/models/get_companies_by_id200_response_spec.rb +0 -42
- data/spec/models/get_connections_by_id200_response_spec.rb +0 -42
- data/spec/models/get_endpoints_by_id_connections_describe200_response_spec.rb +0 -42
- data/spec/models/get_favorites_by_id200_response_spec.rb +0 -42
- data/spec/models/get_industries_by_id200_response_spec.rb +0 -42
- data/spec/models/get_job_functions_by_id200_response_spec.rb +0 -42
- data/spec/models/get_postgen_integrations_by_id200_response_spec.rb +0 -42
- data/spec/models/get_posts_by_id200_response_spec.rb +0 -42
- data/spec/models/get_storage_engines_by_id200_response_spec.rb +0 -42
- data/spec/models/get_users_by_id200_response_spec.rb +0 -42
- data/spec/models/industries_spec.rb +0 -78
- data/spec/models/inline_object4_spec.rb +0 -42
- data/spec/models/inline_object5_spec.rb +0 -42
- data/spec/models/inline_object6_spec.rb +0 -48
- data/spec/models/inline_object7_spec.rb +0 -42
- data/spec/models/job_functions_input_spec.rb +0 -36
- data/spec/models/job_functions_spec.rb +0 -54
- data/spec/models/job_functions_update_spec.rb +0 -36
- data/spec/models/list_api_keys200_response_spec.rb +0 -42
- data/spec/models/list_asset_usecases200_response_spec.rb +0 -42
- data/spec/models/list_assets200_response_spec.rb +0 -42
- data/spec/models/list_cloud_providers200_response_spec.rb +0 -42
- data/spec/models/list_companies_analytics_assets200_response_spec.rb +0 -42
- data/spec/models/list_connections200_response_spec.rb +0 -42
- data/spec/models/list_endpoints200_response_spec.rb +0 -42
- data/spec/models/list_industries200_response_spec.rb +0 -42
- data/spec/models/list_job_functions200_response_spec.rb +0 -42
- data/spec/models/list_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/list_posts200_response_spec.rb +0 -42
- data/spec/models/list_storage_engines200_response_spec.rb +0 -42
- data/spec/models/list_users200_response_spec.rb +0 -42
- data/spec/models/post_publications_input_spec.rb +0 -84
- data/spec/models/post_publications_spec.rb +0 -102
- data/spec/models/post_publications_update_spec.rb +0 -84
- data/spec/models/postgen_integrations_input_spec.rb +0 -72
- data/spec/models/postgen_integrations_update_spec.rb +0 -72
- data/spec/models/posts_spec.rb +0 -186
- data/spec/models/posts_update_spec.rb +0 -168
- data/spec/models/storage_engines_spec.rb +0 -82
- data/spec/models/update_alerts200_response_data_spec.rb +0 -36
- data/spec/models/update_alerts200_response_spec.rb +0 -42
- data/spec/models/update_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/update_api_keys200_response_spec.rb +0 -42
- data/spec/models/update_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/update_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/update_assets200_response_data_spec.rb +0 -36
- data/spec/models/update_assets200_response_spec.rb +0 -42
- data/spec/models/update_companies200_response_data_spec.rb +0 -36
- data/spec/models/update_companies200_response_spec.rb +0 -42
- data/spec/models/update_connections200_response_data_spec.rb +0 -36
- data/spec/models/update_connections200_response_spec.rb +0 -42
- data/spec/models/update_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/update_endpoints200_response_spec.rb +0 -42
- data/spec/models/update_favorites200_response_data_spec.rb +0 -36
- data/spec/models/update_favorites200_response_spec.rb +0 -42
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/update_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/update_posts200_response_data_spec.rb +0 -36
- data/spec/models/update_posts200_response_spec.rb +0 -42
- data/spec/models/update_users200_response_data_spec.rb +0 -36
- data/spec/models/update_users200_response_spec.rb +0 -42
- data/spec/models/users_input_spec.rb +0 -76
- data/spec/models/users_spec.rb +0 -94
- data/spec/models/users_update_spec.rb +0 -76
data/docs/AssetsApi.md
CHANGED
|
@@ -4,29 +4,29 @@ All URIs are relative to *https://api.spartera.com*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**
|
|
8
|
-
| [**
|
|
9
|
-
| [**
|
|
10
|
-
| [**
|
|
11
|
-
| [**
|
|
12
|
-
| [**
|
|
13
|
-
| [**
|
|
14
|
-
| [**
|
|
15
|
-
| [**
|
|
16
|
-
| [**
|
|
17
|
-
| [**
|
|
18
|
-
| [**
|
|
19
|
-
| [**
|
|
20
|
-
| [**
|
|
21
|
-
| [**
|
|
22
|
-
| [**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
##
|
|
26
|
-
|
|
27
|
-
>
|
|
28
|
-
|
|
29
|
-
|
|
7
|
+
| [**analyze_company_handle_assets_asset_slug_get**](AssetsApi.md#analyze_company_handle_assets_asset_slug_get) | **GET** /analyze/{company_handle}/assets/{asset_slug} | Process assets route that handles both owned and purchased assets. Minimal route function that passes all logic to crudder.process_asset Args: asset_path: The path after /analyze/ containing asset information company_handle: The subdomain from Flask's routing (if available) |
|
|
8
|
+
| [**companies_company_id_assets_asset_id_delete**](AssetsApi.md#companies_company_id_assets_asset_id_delete) | **DELETE** /companies/{company_id}/assets/{asset_id} | Delete single asset by ID |
|
|
9
|
+
| [**companies_company_id_assets_asset_id_get**](AssetsApi.md#companies_company_id_assets_asset_id_get) | **GET** /companies/{company_id}/assets/{asset_id} | Get single asset by ID |
|
|
10
|
+
| [**companies_company_id_assets_asset_id_infoschema_get**](AssetsApi.md#companies_company_id_assets_asset_id_infoschema_get) | **GET** /companies/{company_id}/assets/{asset_id}/infoschema | Get the information schema for a specific asset's table |
|
|
11
|
+
| [**companies_company_id_assets_asset_id_infoschema_save_get**](AssetsApi.md#companies_company_id_assets_asset_id_infoschema_save_get) | **GET** /companies/{company_id}/assets/{asset_id}/infoschema/save | Get the information schema for a specific asset and save it to the asset's asset_schema field |
|
|
12
|
+
| [**companies_company_id_assets_asset_id_patch**](AssetsApi.md#companies_company_id_assets_asset_id_patch) | **PATCH** /companies/{company_id}/assets/{asset_id} | Update an existing asset by ID |
|
|
13
|
+
| [**companies_company_id_assets_asset_id_predicted_price_get**](AssetsApi.md#companies_company_id_assets_asset_id_predicted_price_get) | **GET** /companies/{company_id}/assets/{asset_id}/predicted_price | Get AI-predicted pricing for a specific asset |
|
|
14
|
+
| [**companies_company_id_assets_asset_id_recommendations_explain_get**](AssetsApi.md#companies_company_id_assets_asset_id_recommendations_explain_get) | **GET** /companies/{company_id}/assets/{asset_id}/recommendations/explain | Get detailed explanation of how asset recommendations are calculated for debugging purposes. |
|
|
15
|
+
| [**companies_company_id_assets_asset_id_recommendations_get**](AssetsApi.md#companies_company_id_assets_asset_id_recommendations_get) | **GET** /companies/{company_id}/assets/{asset_id}/recommendations | 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) |
|
|
16
|
+
| [**companies_company_id_assets_asset_id_statistics_get**](AssetsApi.md#companies_company_id_assets_asset_id_statistics_get) | **GET** /companies/{company_id}/assets/{asset_id}/statistics | Get statistics for a specific asset (public endpoint) |
|
|
17
|
+
| [**companies_company_id_assets_asset_id_test_get**](AssetsApi.md#companies_company_id_assets_asset_id_test_get) | **GET** /companies/{company_id}/assets/{asset_id}/test | Test out an Asset (on a subset of data) |
|
|
18
|
+
| [**companies_company_id_assets_get**](AssetsApi.md#companies_company_id_assets_get) | **GET** /companies/{company_id}/assets | Get all assets for a specific company |
|
|
19
|
+
| [**companies_company_id_assets_post**](AssetsApi.md#companies_company_id_assets_post) | **POST** /companies/{company_id}/assets | Create a new asset |
|
|
20
|
+
| [**companies_company_id_assets_recommendations_bulk_post**](AssetsApi.md#companies_company_id_assets_recommendations_bulk_post) | **POST** /companies/{company_id}/assets/recommendations/bulk | Get recommendations for multiple assets in a single request. Useful for pre-loading recommendations. |
|
|
21
|
+
| [**companies_company_id_assets_recommendations_health_get**](AssetsApi.md#companies_company_id_assets_recommendations_health_get) | **GET** /companies/{company_id}/assets/recommendations/health | Health check for the recommendations system with sample data and performance metrics. |
|
|
22
|
+
| [**companies_company_id_assets_statistics_get**](AssetsApi.md#companies_company_id_assets_statistics_get) | **GET** /companies/{company_id}/assets/statistics | Get statistics for all assets the user has access to |
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## analyze_company_handle_assets_asset_slug_get
|
|
26
|
+
|
|
27
|
+
> Object analyze_company_handle_assets_asset_slug_get(company_handle, asset_slug)
|
|
28
|
+
|
|
29
|
+
Process assets route that handles both owned and purchased assets. Minimal route function that passes all logic to crudder.process_asset Args: asset_path: The path after /analyze/ containing asset information company_handle: The subdomain from Flask's routing (if available)
|
|
30
30
|
|
|
31
31
|
### Examples
|
|
32
32
|
|
|
@@ -35,47 +35,38 @@ require 'time'
|
|
|
35
35
|
require 'spartera_api_sdk'
|
|
36
36
|
# setup authorization
|
|
37
37
|
SparteraApiSdk.configure do |config|
|
|
38
|
-
# Configure
|
|
39
|
-
config.
|
|
40
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
41
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
38
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
39
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
42
40
|
end
|
|
43
41
|
|
|
44
42
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
opts = {
|
|
48
|
-
page: 56, # Integer | Page number for pagination
|
|
49
|
-
limit: 56, # Integer | Number of items per page
|
|
50
|
-
sort_by: 'sort_by_example', # String | Field to sort by
|
|
51
|
-
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
52
|
-
search: 'search_example' # String | Search term to filter results
|
|
53
|
-
}
|
|
43
|
+
company_handle = 'company_handle_example' # String |
|
|
44
|
+
asset_slug = 'asset_slug_example' # String |
|
|
54
45
|
|
|
55
46
|
begin
|
|
56
|
-
#
|
|
57
|
-
result = api_instance.
|
|
47
|
+
# Process assets route that handles both owned and purchased assets. Minimal route function that passes all logic to crudder.process_asset Args: asset_path: The path after /analyze/ containing asset information company_handle: The subdomain from Flask's routing (if available)
|
|
48
|
+
result = api_instance.analyze_company_handle_assets_asset_slug_get(company_handle, asset_slug)
|
|
58
49
|
p result
|
|
59
50
|
rescue SparteraApiSdk::ApiError => e
|
|
60
|
-
puts "Error when calling AssetsApi->
|
|
51
|
+
puts "Error when calling AssetsApi->analyze_company_handle_assets_asset_slug_get: #{e}"
|
|
61
52
|
end
|
|
62
53
|
```
|
|
63
54
|
|
|
64
|
-
#### Using the
|
|
55
|
+
#### Using the analyze_company_handle_assets_asset_slug_get_with_http_info variant
|
|
65
56
|
|
|
66
57
|
This returns an Array which contains the response data, status code and headers.
|
|
67
58
|
|
|
68
|
-
> <Array(
|
|
59
|
+
> <Array(Object, Integer, Hash)> analyze_company_handle_assets_asset_slug_get_with_http_info(company_handle, asset_slug)
|
|
69
60
|
|
|
70
61
|
```ruby
|
|
71
62
|
begin
|
|
72
|
-
#
|
|
73
|
-
data, status_code, headers = api_instance.
|
|
63
|
+
# Process assets route that handles both owned and purchased assets. Minimal route function that passes all logic to crudder.process_asset Args: asset_path: The path after /analyze/ containing asset information company_handle: The subdomain from Flask's routing (if available)
|
|
64
|
+
data, status_code, headers = api_instance.analyze_company_handle_assets_asset_slug_get_with_http_info(company_handle, asset_slug)
|
|
74
65
|
p status_code # => 2xx
|
|
75
66
|
p headers # => { ... }
|
|
76
|
-
p data # =>
|
|
67
|
+
p data # => Object
|
|
77
68
|
rescue SparteraApiSdk::ApiError => e
|
|
78
|
-
puts "Error when calling AssetsApi->
|
|
69
|
+
puts "Error when calling AssetsApi->analyze_company_handle_assets_asset_slug_get_with_http_info: #{e}"
|
|
79
70
|
end
|
|
80
71
|
```
|
|
81
72
|
|
|
@@ -83,33 +74,28 @@ end
|
|
|
83
74
|
|
|
84
75
|
| Name | Type | Description | Notes |
|
|
85
76
|
| ---- | ---- | ----------- | ----- |
|
|
86
|
-
| **
|
|
87
|
-
| **
|
|
88
|
-
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
89
|
-
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
90
|
-
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
91
|
-
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
92
|
-
| **search** | **String** | Search term to filter results | [optional] |
|
|
77
|
+
| **company_handle** | **String** | | |
|
|
78
|
+
| **asset_slug** | **String** | | |
|
|
93
79
|
|
|
94
80
|
### Return type
|
|
95
81
|
|
|
96
|
-
|
|
82
|
+
**Object**
|
|
97
83
|
|
|
98
84
|
### Authorization
|
|
99
85
|
|
|
100
|
-
[
|
|
86
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
101
87
|
|
|
102
88
|
### HTTP request headers
|
|
103
89
|
|
|
104
|
-
- **Content-Type**:
|
|
90
|
+
- **Content-Type**: Not defined
|
|
105
91
|
- **Accept**: application/json
|
|
106
92
|
|
|
107
93
|
|
|
108
|
-
##
|
|
94
|
+
## companies_company_id_assets_asset_id_delete
|
|
109
95
|
|
|
110
|
-
>
|
|
96
|
+
> Object companies_company_id_assets_asset_id_delete(company_id, asset_id)
|
|
111
97
|
|
|
112
|
-
|
|
98
|
+
Delete single asset by ID
|
|
113
99
|
|
|
114
100
|
### Examples
|
|
115
101
|
|
|
@@ -118,41 +104,38 @@ require 'time'
|
|
|
118
104
|
require 'spartera_api_sdk'
|
|
119
105
|
# setup authorization
|
|
120
106
|
SparteraApiSdk.configure do |config|
|
|
121
|
-
# Configure
|
|
122
|
-
config.
|
|
123
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
124
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
107
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
108
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
125
109
|
end
|
|
126
110
|
|
|
127
111
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
assets_input = SparteraApiSdk::AssetsInput.new({company_id: 'company_id_abc123', name: 'Example Name', source: 'MANUAL'}) # AssetsInput |
|
|
112
|
+
company_id = 'company_id_example' # String |
|
|
113
|
+
asset_id = 'asset_id_example' # String |
|
|
131
114
|
|
|
132
115
|
begin
|
|
133
|
-
#
|
|
134
|
-
result = api_instance.
|
|
116
|
+
# Delete single asset by ID
|
|
117
|
+
result = api_instance.companies_company_id_assets_asset_id_delete(company_id, asset_id)
|
|
135
118
|
p result
|
|
136
119
|
rescue SparteraApiSdk::ApiError => e
|
|
137
|
-
puts "Error when calling AssetsApi->
|
|
120
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_delete: #{e}"
|
|
138
121
|
end
|
|
139
122
|
```
|
|
140
123
|
|
|
141
|
-
#### Using the
|
|
124
|
+
#### Using the companies_company_id_assets_asset_id_delete_with_http_info variant
|
|
142
125
|
|
|
143
126
|
This returns an Array which contains the response data, status code and headers.
|
|
144
127
|
|
|
145
|
-
> <Array(
|
|
128
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_delete_with_http_info(company_id, asset_id)
|
|
146
129
|
|
|
147
130
|
```ruby
|
|
148
131
|
begin
|
|
149
|
-
#
|
|
150
|
-
data, status_code, headers = api_instance.
|
|
132
|
+
# Delete single asset by ID
|
|
133
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_delete_with_http_info(company_id, asset_id)
|
|
151
134
|
p status_code # => 2xx
|
|
152
135
|
p headers # => { ... }
|
|
153
|
-
p data # =>
|
|
136
|
+
p data # => Object
|
|
154
137
|
rescue SparteraApiSdk::ApiError => e
|
|
155
|
-
puts "Error when calling AssetsApi->
|
|
138
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_delete_with_http_info: #{e}"
|
|
156
139
|
end
|
|
157
140
|
```
|
|
158
141
|
|
|
@@ -160,29 +143,28 @@ end
|
|
|
160
143
|
|
|
161
144
|
| Name | Type | Description | Notes |
|
|
162
145
|
| ---- | ---- | ----------- | ----- |
|
|
163
|
-
| **
|
|
164
|
-
| **
|
|
165
|
-
| **assets_input** | [**AssetsInput**](AssetsInput.md) | | |
|
|
146
|
+
| **company_id** | **String** | | |
|
|
147
|
+
| **asset_id** | **String** | | |
|
|
166
148
|
|
|
167
149
|
### Return type
|
|
168
150
|
|
|
169
|
-
|
|
151
|
+
**Object**
|
|
170
152
|
|
|
171
153
|
### Authorization
|
|
172
154
|
|
|
173
|
-
[
|
|
155
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
174
156
|
|
|
175
157
|
### HTTP request headers
|
|
176
158
|
|
|
177
|
-
- **Content-Type**:
|
|
159
|
+
- **Content-Type**: Not defined
|
|
178
160
|
- **Accept**: application/json
|
|
179
161
|
|
|
180
162
|
|
|
181
|
-
##
|
|
163
|
+
## companies_company_id_assets_asset_id_get
|
|
182
164
|
|
|
183
|
-
>
|
|
165
|
+
> Object companies_company_id_assets_asset_id_get(company_id, asset_id)
|
|
184
166
|
|
|
185
|
-
|
|
167
|
+
Get single asset by ID
|
|
186
168
|
|
|
187
169
|
### Examples
|
|
188
170
|
|
|
@@ -191,41 +173,38 @@ require 'time'
|
|
|
191
173
|
require 'spartera_api_sdk'
|
|
192
174
|
# setup authorization
|
|
193
175
|
SparteraApiSdk.configure do |config|
|
|
194
|
-
# Configure
|
|
195
|
-
config.
|
|
196
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
197
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
176
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
177
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
198
178
|
end
|
|
199
179
|
|
|
200
180
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
201
|
-
company_id = 'company_id_example' # String |
|
|
202
|
-
asset_id = 'asset_id_example' # String |
|
|
203
|
-
assets_input = SparteraApiSdk::AssetsInput.new({company_id: 'company_id_abc123', name: 'Example Name', source: 'MANUAL'}) # AssetsInput |
|
|
181
|
+
company_id = 'company_id_example' # String |
|
|
182
|
+
asset_id = 'asset_id_example' # String |
|
|
204
183
|
|
|
205
184
|
begin
|
|
206
|
-
#
|
|
207
|
-
result = api_instance.
|
|
185
|
+
# Get single asset by ID
|
|
186
|
+
result = api_instance.companies_company_id_assets_asset_id_get(company_id, asset_id)
|
|
208
187
|
p result
|
|
209
188
|
rescue SparteraApiSdk::ApiError => e
|
|
210
|
-
puts "Error when calling AssetsApi->
|
|
189
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_get: #{e}"
|
|
211
190
|
end
|
|
212
191
|
```
|
|
213
192
|
|
|
214
|
-
#### Using the
|
|
193
|
+
#### Using the companies_company_id_assets_asset_id_get_with_http_info variant
|
|
215
194
|
|
|
216
195
|
This returns an Array which contains the response data, status code and headers.
|
|
217
196
|
|
|
218
|
-
> <Array(
|
|
197
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_get_with_http_info(company_id, asset_id)
|
|
219
198
|
|
|
220
199
|
```ruby
|
|
221
200
|
begin
|
|
222
|
-
#
|
|
223
|
-
data, status_code, headers = api_instance.
|
|
201
|
+
# Get single asset by ID
|
|
202
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_get_with_http_info(company_id, asset_id)
|
|
224
203
|
p status_code # => 2xx
|
|
225
204
|
p headers # => { ... }
|
|
226
|
-
p data # =>
|
|
205
|
+
p data # => Object
|
|
227
206
|
rescue SparteraApiSdk::ApiError => e
|
|
228
|
-
puts "Error when calling AssetsApi->
|
|
207
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_get_with_http_info: #{e}"
|
|
229
208
|
end
|
|
230
209
|
```
|
|
231
210
|
|
|
@@ -233,29 +212,28 @@ end
|
|
|
233
212
|
|
|
234
213
|
| Name | Type | Description | Notes |
|
|
235
214
|
| ---- | ---- | ----------- | ----- |
|
|
236
|
-
| **company_id** | **String** |
|
|
237
|
-
| **asset_id** | **String** |
|
|
238
|
-
| **assets_input** | [**AssetsInput**](AssetsInput.md) | | |
|
|
215
|
+
| **company_id** | **String** | | |
|
|
216
|
+
| **asset_id** | **String** | | |
|
|
239
217
|
|
|
240
218
|
### Return type
|
|
241
219
|
|
|
242
|
-
|
|
220
|
+
**Object**
|
|
243
221
|
|
|
244
222
|
### Authorization
|
|
245
223
|
|
|
246
|
-
[
|
|
224
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
247
225
|
|
|
248
226
|
### HTTP request headers
|
|
249
227
|
|
|
250
|
-
- **Content-Type**:
|
|
228
|
+
- **Content-Type**: Not defined
|
|
251
229
|
- **Accept**: application/json
|
|
252
230
|
|
|
253
231
|
|
|
254
|
-
##
|
|
232
|
+
## companies_company_id_assets_asset_id_infoschema_get
|
|
255
233
|
|
|
256
|
-
>
|
|
234
|
+
> Object companies_company_id_assets_asset_id_infoschema_get(company_id, asset_id)
|
|
257
235
|
|
|
258
|
-
|
|
236
|
+
Get the information schema for a specific asset's table
|
|
259
237
|
|
|
260
238
|
### Examples
|
|
261
239
|
|
|
@@ -264,41 +242,38 @@ require 'time'
|
|
|
264
242
|
require 'spartera_api_sdk'
|
|
265
243
|
# setup authorization
|
|
266
244
|
SparteraApiSdk.configure do |config|
|
|
267
|
-
# Configure
|
|
268
|
-
config.
|
|
269
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
270
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
245
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
246
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
271
247
|
end
|
|
272
248
|
|
|
273
249
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
274
|
-
company_id = 'company_id_example' # String |
|
|
275
|
-
asset_id = 'asset_id_example' # String |
|
|
276
|
-
assets_input = SparteraApiSdk::AssetsInput.new({company_id: 'company_id_abc123', name: 'Example Name', source: 'MANUAL'}) # AssetsInput |
|
|
250
|
+
company_id = 'company_id_example' # String |
|
|
251
|
+
asset_id = 'asset_id_example' # String |
|
|
277
252
|
|
|
278
253
|
begin
|
|
279
|
-
#
|
|
280
|
-
result = api_instance.
|
|
254
|
+
# Get the information schema for a specific asset's table
|
|
255
|
+
result = api_instance.companies_company_id_assets_asset_id_infoschema_get(company_id, asset_id)
|
|
281
256
|
p result
|
|
282
257
|
rescue SparteraApiSdk::ApiError => e
|
|
283
|
-
puts "Error when calling AssetsApi->
|
|
258
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_infoschema_get: #{e}"
|
|
284
259
|
end
|
|
285
260
|
```
|
|
286
261
|
|
|
287
|
-
#### Using the
|
|
262
|
+
#### Using the companies_company_id_assets_asset_id_infoschema_get_with_http_info variant
|
|
288
263
|
|
|
289
264
|
This returns an Array which contains the response data, status code and headers.
|
|
290
265
|
|
|
291
|
-
> <Array(
|
|
266
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_infoschema_get_with_http_info(company_id, asset_id)
|
|
292
267
|
|
|
293
268
|
```ruby
|
|
294
269
|
begin
|
|
295
|
-
#
|
|
296
|
-
data, status_code, headers = api_instance.
|
|
270
|
+
# Get the information schema for a specific asset's table
|
|
271
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_infoschema_get_with_http_info(company_id, asset_id)
|
|
297
272
|
p status_code # => 2xx
|
|
298
273
|
p headers # => { ... }
|
|
299
|
-
p data # =>
|
|
274
|
+
p data # => Object
|
|
300
275
|
rescue SparteraApiSdk::ApiError => e
|
|
301
|
-
puts "Error when calling AssetsApi->
|
|
276
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_infoschema_get_with_http_info: #{e}"
|
|
302
277
|
end
|
|
303
278
|
```
|
|
304
279
|
|
|
@@ -306,29 +281,28 @@ end
|
|
|
306
281
|
|
|
307
282
|
| Name | Type | Description | Notes |
|
|
308
283
|
| ---- | ---- | ----------- | ----- |
|
|
309
|
-
| **company_id** | **String** |
|
|
310
|
-
| **asset_id** | **String** |
|
|
311
|
-
| **assets_input** | [**AssetsInput**](AssetsInput.md) | | |
|
|
284
|
+
| **company_id** | **String** | | |
|
|
285
|
+
| **asset_id** | **String** | | |
|
|
312
286
|
|
|
313
287
|
### Return type
|
|
314
288
|
|
|
315
|
-
|
|
289
|
+
**Object**
|
|
316
290
|
|
|
317
291
|
### Authorization
|
|
318
292
|
|
|
319
|
-
[
|
|
293
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
320
294
|
|
|
321
295
|
### HTTP request headers
|
|
322
296
|
|
|
323
|
-
- **Content-Type**:
|
|
297
|
+
- **Content-Type**: Not defined
|
|
324
298
|
- **Accept**: application/json
|
|
325
299
|
|
|
326
300
|
|
|
327
|
-
##
|
|
301
|
+
## companies_company_id_assets_asset_id_infoschema_save_get
|
|
328
302
|
|
|
329
|
-
>
|
|
303
|
+
> Object companies_company_id_assets_asset_id_infoschema_save_get(company_id, asset_id)
|
|
330
304
|
|
|
331
|
-
|
|
305
|
+
Get the information schema for a specific asset and save it to the asset's asset_schema field
|
|
332
306
|
|
|
333
307
|
### Examples
|
|
334
308
|
|
|
@@ -337,40 +311,38 @@ require 'time'
|
|
|
337
311
|
require 'spartera_api_sdk'
|
|
338
312
|
# setup authorization
|
|
339
313
|
SparteraApiSdk.configure do |config|
|
|
340
|
-
# Configure
|
|
341
|
-
config.
|
|
342
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
343
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
314
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
315
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
344
316
|
end
|
|
345
317
|
|
|
346
318
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
347
|
-
company_id = 'company_id_example' # String |
|
|
348
|
-
asset_id = 'asset_id_example' # String |
|
|
319
|
+
company_id = 'company_id_example' # String |
|
|
320
|
+
asset_id = 'asset_id_example' # String |
|
|
349
321
|
|
|
350
322
|
begin
|
|
351
|
-
#
|
|
352
|
-
result = api_instance.
|
|
323
|
+
# Get the information schema for a specific asset and save it to the asset's asset_schema field
|
|
324
|
+
result = api_instance.companies_company_id_assets_asset_id_infoschema_save_get(company_id, asset_id)
|
|
353
325
|
p result
|
|
354
326
|
rescue SparteraApiSdk::ApiError => e
|
|
355
|
-
puts "Error when calling AssetsApi->
|
|
327
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_infoschema_save_get: #{e}"
|
|
356
328
|
end
|
|
357
329
|
```
|
|
358
330
|
|
|
359
|
-
#### Using the
|
|
331
|
+
#### Using the companies_company_id_assets_asset_id_infoschema_save_get_with_http_info variant
|
|
360
332
|
|
|
361
333
|
This returns an Array which contains the response data, status code and headers.
|
|
362
334
|
|
|
363
|
-
> <Array(
|
|
335
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_infoschema_save_get_with_http_info(company_id, asset_id)
|
|
364
336
|
|
|
365
337
|
```ruby
|
|
366
338
|
begin
|
|
367
|
-
#
|
|
368
|
-
data, status_code, headers = api_instance.
|
|
339
|
+
# Get the information schema for a specific asset and save it to the asset's asset_schema field
|
|
340
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_infoschema_save_get_with_http_info(company_id, asset_id)
|
|
369
341
|
p status_code # => 2xx
|
|
370
342
|
p headers # => { ... }
|
|
371
|
-
p data # =>
|
|
343
|
+
p data # => Object
|
|
372
344
|
rescue SparteraApiSdk::ApiError => e
|
|
373
|
-
puts "Error when calling AssetsApi->
|
|
345
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_infoschema_save_get_with_http_info: #{e}"
|
|
374
346
|
end
|
|
375
347
|
```
|
|
376
348
|
|
|
@@ -378,16 +350,16 @@ end
|
|
|
378
350
|
|
|
379
351
|
| Name | Type | Description | Notes |
|
|
380
352
|
| ---- | ---- | ----------- | ----- |
|
|
381
|
-
| **company_id** | **String** |
|
|
382
|
-
| **asset_id** | **String** |
|
|
353
|
+
| **company_id** | **String** | | |
|
|
354
|
+
| **asset_id** | **String** | | |
|
|
383
355
|
|
|
384
356
|
### Return type
|
|
385
357
|
|
|
386
|
-
|
|
358
|
+
**Object**
|
|
387
359
|
|
|
388
360
|
### Authorization
|
|
389
361
|
|
|
390
|
-
[
|
|
362
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
391
363
|
|
|
392
364
|
### HTTP request headers
|
|
393
365
|
|
|
@@ -395,11 +367,11 @@ end
|
|
|
395
367
|
- **Accept**: application/json
|
|
396
368
|
|
|
397
369
|
|
|
398
|
-
##
|
|
370
|
+
## companies_company_id_assets_asset_id_patch
|
|
399
371
|
|
|
400
|
-
>
|
|
372
|
+
> Object companies_company_id_assets_asset_id_patch(company_id, asset_id, asset)
|
|
401
373
|
|
|
402
|
-
|
|
374
|
+
Update an existing asset by ID
|
|
403
375
|
|
|
404
376
|
### Examples
|
|
405
377
|
|
|
@@ -408,40 +380,39 @@ require 'time'
|
|
|
408
380
|
require 'spartera_api_sdk'
|
|
409
381
|
# setup authorization
|
|
410
382
|
SparteraApiSdk.configure do |config|
|
|
411
|
-
# Configure
|
|
412
|
-
config.
|
|
413
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
414
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
383
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
384
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
415
385
|
end
|
|
416
386
|
|
|
417
387
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
418
|
-
company_id = 'company_id_example' # String |
|
|
419
|
-
asset_id = 'asset_id_example' # String |
|
|
388
|
+
company_id = 'company_id_example' # String |
|
|
389
|
+
asset_id = 'asset_id_example' # String |
|
|
390
|
+
asset = SparteraApiSdk::Asset.new({company_id: 'company_id_example', name: 'name_example', source: 'source_example'}) # Asset |
|
|
420
391
|
|
|
421
392
|
begin
|
|
422
|
-
#
|
|
423
|
-
result = api_instance.
|
|
393
|
+
# Update an existing asset by ID
|
|
394
|
+
result = api_instance.companies_company_id_assets_asset_id_patch(company_id, asset_id, asset)
|
|
424
395
|
p result
|
|
425
396
|
rescue SparteraApiSdk::ApiError => e
|
|
426
|
-
puts "Error when calling AssetsApi->
|
|
397
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_patch: #{e}"
|
|
427
398
|
end
|
|
428
399
|
```
|
|
429
400
|
|
|
430
|
-
#### Using the
|
|
401
|
+
#### Using the companies_company_id_assets_asset_id_patch_with_http_info variant
|
|
431
402
|
|
|
432
403
|
This returns an Array which contains the response data, status code and headers.
|
|
433
404
|
|
|
434
|
-
> <Array(
|
|
405
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_patch_with_http_info(company_id, asset_id, asset)
|
|
435
406
|
|
|
436
407
|
```ruby
|
|
437
408
|
begin
|
|
438
|
-
#
|
|
439
|
-
data, status_code, headers = api_instance.
|
|
409
|
+
# Update an existing asset by ID
|
|
410
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_patch_with_http_info(company_id, asset_id, asset)
|
|
440
411
|
p status_code # => 2xx
|
|
441
412
|
p headers # => { ... }
|
|
442
|
-
p data # =>
|
|
413
|
+
p data # => Object
|
|
443
414
|
rescue SparteraApiSdk::ApiError => e
|
|
444
|
-
puts "Error when calling AssetsApi->
|
|
415
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_patch_with_http_info: #{e}"
|
|
445
416
|
end
|
|
446
417
|
```
|
|
447
418
|
|
|
@@ -449,28 +420,29 @@ end
|
|
|
449
420
|
|
|
450
421
|
| Name | Type | Description | Notes |
|
|
451
422
|
| ---- | ---- | ----------- | ----- |
|
|
452
|
-
| **company_id** | **String** |
|
|
453
|
-
| **asset_id** | **String** |
|
|
423
|
+
| **company_id** | **String** | | |
|
|
424
|
+
| **asset_id** | **String** | | |
|
|
425
|
+
| **asset** | [**Asset**](Asset.md) | | |
|
|
454
426
|
|
|
455
427
|
### Return type
|
|
456
428
|
|
|
457
|
-
|
|
429
|
+
**Object**
|
|
458
430
|
|
|
459
431
|
### Authorization
|
|
460
432
|
|
|
461
|
-
[
|
|
433
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
462
434
|
|
|
463
435
|
### HTTP request headers
|
|
464
436
|
|
|
465
|
-
- **Content-Type**:
|
|
437
|
+
- **Content-Type**: application/json
|
|
466
438
|
- **Accept**: application/json
|
|
467
439
|
|
|
468
440
|
|
|
469
|
-
##
|
|
441
|
+
## companies_company_id_assets_asset_id_predicted_price_get
|
|
470
442
|
|
|
471
|
-
>
|
|
443
|
+
> Object companies_company_id_assets_asset_id_predicted_price_get(company_id, asset_id)
|
|
472
444
|
|
|
473
|
-
Get
|
|
445
|
+
Get AI-predicted pricing for a specific asset
|
|
474
446
|
|
|
475
447
|
### Examples
|
|
476
448
|
|
|
@@ -479,40 +451,38 @@ require 'time'
|
|
|
479
451
|
require 'spartera_api_sdk'
|
|
480
452
|
# setup authorization
|
|
481
453
|
SparteraApiSdk.configure do |config|
|
|
482
|
-
# Configure
|
|
483
|
-
config.
|
|
484
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
485
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
454
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
455
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
486
456
|
end
|
|
487
457
|
|
|
488
458
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
489
|
-
company_id = 'company_id_example' # String |
|
|
490
|
-
asset_id = 'asset_id_example' # String |
|
|
459
|
+
company_id = 'company_id_example' # String |
|
|
460
|
+
asset_id = 'asset_id_example' # String |
|
|
491
461
|
|
|
492
462
|
begin
|
|
493
|
-
# Get
|
|
494
|
-
result = api_instance.
|
|
463
|
+
# Get AI-predicted pricing for a specific asset
|
|
464
|
+
result = api_instance.companies_company_id_assets_asset_id_predicted_price_get(company_id, asset_id)
|
|
495
465
|
p result
|
|
496
466
|
rescue SparteraApiSdk::ApiError => e
|
|
497
|
-
puts "Error when calling AssetsApi->
|
|
467
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_predicted_price_get: #{e}"
|
|
498
468
|
end
|
|
499
469
|
```
|
|
500
470
|
|
|
501
|
-
#### Using the
|
|
471
|
+
#### Using the companies_company_id_assets_asset_id_predicted_price_get_with_http_info variant
|
|
502
472
|
|
|
503
473
|
This returns an Array which contains the response data, status code and headers.
|
|
504
474
|
|
|
505
|
-
> <Array(
|
|
475
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_predicted_price_get_with_http_info(company_id, asset_id)
|
|
506
476
|
|
|
507
477
|
```ruby
|
|
508
478
|
begin
|
|
509
|
-
# Get
|
|
510
|
-
data, status_code, headers = api_instance.
|
|
479
|
+
# Get AI-predicted pricing for a specific asset
|
|
480
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_predicted_price_get_with_http_info(company_id, asset_id)
|
|
511
481
|
p status_code # => 2xx
|
|
512
482
|
p headers # => { ... }
|
|
513
|
-
p data # =>
|
|
483
|
+
p data # => Object
|
|
514
484
|
rescue SparteraApiSdk::ApiError => e
|
|
515
|
-
puts "Error when calling AssetsApi->
|
|
485
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_predicted_price_get_with_http_info: #{e}"
|
|
516
486
|
end
|
|
517
487
|
```
|
|
518
488
|
|
|
@@ -520,16 +490,16 @@ end
|
|
|
520
490
|
|
|
521
491
|
| Name | Type | Description | Notes |
|
|
522
492
|
| ---- | ---- | ----------- | ----- |
|
|
523
|
-
| **company_id** | **String** |
|
|
524
|
-
| **asset_id** | **String** |
|
|
493
|
+
| **company_id** | **String** | | |
|
|
494
|
+
| **asset_id** | **String** | | |
|
|
525
495
|
|
|
526
496
|
### Return type
|
|
527
497
|
|
|
528
|
-
|
|
498
|
+
**Object**
|
|
529
499
|
|
|
530
500
|
### Authorization
|
|
531
501
|
|
|
532
|
-
[
|
|
502
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
533
503
|
|
|
534
504
|
### HTTP request headers
|
|
535
505
|
|
|
@@ -537,11 +507,11 @@ end
|
|
|
537
507
|
- **Accept**: application/json
|
|
538
508
|
|
|
539
509
|
|
|
540
|
-
##
|
|
510
|
+
## companies_company_id_assets_asset_id_recommendations_explain_get
|
|
541
511
|
|
|
542
|
-
>
|
|
512
|
+
> Object companies_company_id_assets_asset_id_recommendations_explain_get(company_id, asset_id)
|
|
543
513
|
|
|
544
|
-
|
|
514
|
+
Get detailed explanation of how asset recommendations are calculated for debugging purposes.
|
|
545
515
|
|
|
546
516
|
### Examples
|
|
547
517
|
|
|
@@ -550,40 +520,38 @@ require 'time'
|
|
|
550
520
|
require 'spartera_api_sdk'
|
|
551
521
|
# setup authorization
|
|
552
522
|
SparteraApiSdk.configure do |config|
|
|
553
|
-
# Configure
|
|
554
|
-
config.
|
|
555
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
556
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
523
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
524
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
557
525
|
end
|
|
558
526
|
|
|
559
527
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
560
|
-
|
|
561
|
-
|
|
528
|
+
company_id = 'company_id_example' # String |
|
|
529
|
+
asset_id = 'asset_id_example' # String |
|
|
562
530
|
|
|
563
531
|
begin
|
|
564
|
-
#
|
|
565
|
-
result = api_instance.
|
|
532
|
+
# Get detailed explanation of how asset recommendations are calculated for debugging purposes.
|
|
533
|
+
result = api_instance.companies_company_id_assets_asset_id_recommendations_explain_get(company_id, asset_id)
|
|
566
534
|
p result
|
|
567
535
|
rescue SparteraApiSdk::ApiError => e
|
|
568
|
-
puts "Error when calling AssetsApi->
|
|
536
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_recommendations_explain_get: #{e}"
|
|
569
537
|
end
|
|
570
538
|
```
|
|
571
539
|
|
|
572
|
-
#### Using the
|
|
540
|
+
#### Using the companies_company_id_assets_asset_id_recommendations_explain_get_with_http_info variant
|
|
573
541
|
|
|
574
542
|
This returns an Array which contains the response data, status code and headers.
|
|
575
543
|
|
|
576
|
-
> <Array(
|
|
544
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_recommendations_explain_get_with_http_info(company_id, asset_id)
|
|
577
545
|
|
|
578
546
|
```ruby
|
|
579
547
|
begin
|
|
580
|
-
#
|
|
581
|
-
data, status_code, headers = api_instance.
|
|
548
|
+
# Get detailed explanation of how asset recommendations are calculated for debugging purposes.
|
|
549
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_recommendations_explain_get_with_http_info(company_id, asset_id)
|
|
582
550
|
p status_code # => 2xx
|
|
583
551
|
p headers # => { ... }
|
|
584
|
-
p data # =>
|
|
552
|
+
p data # => Object
|
|
585
553
|
rescue SparteraApiSdk::ApiError => e
|
|
586
|
-
puts "Error when calling AssetsApi->
|
|
554
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_recommendations_explain_get_with_http_info: #{e}"
|
|
587
555
|
end
|
|
588
556
|
```
|
|
589
557
|
|
|
@@ -591,16 +559,16 @@ end
|
|
|
591
559
|
|
|
592
560
|
| Name | Type | Description | Notes |
|
|
593
561
|
| ---- | ---- | ----------- | ----- |
|
|
594
|
-
| **
|
|
595
|
-
| **
|
|
562
|
+
| **company_id** | **String** | | |
|
|
563
|
+
| **asset_id** | **String** | | |
|
|
596
564
|
|
|
597
565
|
### Return type
|
|
598
566
|
|
|
599
|
-
|
|
567
|
+
**Object**
|
|
600
568
|
|
|
601
569
|
### Authorization
|
|
602
570
|
|
|
603
|
-
[
|
|
571
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
604
572
|
|
|
605
573
|
### HTTP request headers
|
|
606
574
|
|
|
@@ -608,11 +576,11 @@ end
|
|
|
608
576
|
- **Accept**: application/json
|
|
609
577
|
|
|
610
578
|
|
|
611
|
-
##
|
|
579
|
+
## companies_company_id_assets_asset_id_recommendations_get
|
|
612
580
|
|
|
613
|
-
>
|
|
581
|
+
> Object companies_company_id_assets_asset_id_recommendations_get(company_id, asset_id, opts)
|
|
614
582
|
|
|
615
|
-
Get
|
|
583
|
+
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)
|
|
616
584
|
|
|
617
585
|
### Examples
|
|
618
586
|
|
|
@@ -621,40 +589,43 @@ require 'time'
|
|
|
621
589
|
require 'spartera_api_sdk'
|
|
622
590
|
# setup authorization
|
|
623
591
|
SparteraApiSdk.configure do |config|
|
|
624
|
-
# Configure
|
|
625
|
-
config.
|
|
626
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
627
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
592
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
593
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
628
594
|
end
|
|
629
595
|
|
|
630
596
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
631
|
-
company_id = 'company_id_example' # String |
|
|
632
|
-
asset_id = 'asset_id_example' # String |
|
|
597
|
+
company_id = 'company_id_example' # String |
|
|
598
|
+
asset_id = 'asset_id_example' # String |
|
|
599
|
+
opts = {
|
|
600
|
+
limit: 'limit_example', # String |
|
|
601
|
+
min_score: 'min_score_example', # String |
|
|
602
|
+
include_details: 'include_details_example' # String |
|
|
603
|
+
}
|
|
633
604
|
|
|
634
605
|
begin
|
|
635
|
-
# Get
|
|
636
|
-
result = api_instance.
|
|
606
|
+
# 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)
|
|
607
|
+
result = api_instance.companies_company_id_assets_asset_id_recommendations_get(company_id, asset_id, opts)
|
|
637
608
|
p result
|
|
638
609
|
rescue SparteraApiSdk::ApiError => e
|
|
639
|
-
puts "Error when calling AssetsApi->
|
|
610
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_recommendations_get: #{e}"
|
|
640
611
|
end
|
|
641
612
|
```
|
|
642
613
|
|
|
643
|
-
#### Using the
|
|
614
|
+
#### Using the companies_company_id_assets_asset_id_recommendations_get_with_http_info variant
|
|
644
615
|
|
|
645
616
|
This returns an Array which contains the response data, status code and headers.
|
|
646
617
|
|
|
647
|
-
> <Array(
|
|
618
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_recommendations_get_with_http_info(company_id, asset_id, opts)
|
|
648
619
|
|
|
649
620
|
```ruby
|
|
650
621
|
begin
|
|
651
|
-
# Get
|
|
652
|
-
data, status_code, headers = api_instance.
|
|
622
|
+
# 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)
|
|
623
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_recommendations_get_with_http_info(company_id, asset_id, opts)
|
|
653
624
|
p status_code # => 2xx
|
|
654
625
|
p headers # => { ... }
|
|
655
|
-
p data # =>
|
|
626
|
+
p data # => Object
|
|
656
627
|
rescue SparteraApiSdk::ApiError => e
|
|
657
|
-
puts "Error when calling AssetsApi->
|
|
628
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_recommendations_get_with_http_info: #{e}"
|
|
658
629
|
end
|
|
659
630
|
```
|
|
660
631
|
|
|
@@ -662,16 +633,19 @@ end
|
|
|
662
633
|
|
|
663
634
|
| Name | Type | Description | Notes |
|
|
664
635
|
| ---- | ---- | ----------- | ----- |
|
|
665
|
-
| **company_id** | **String** |
|
|
666
|
-
| **asset_id** | **String** |
|
|
636
|
+
| **company_id** | **String** | | |
|
|
637
|
+
| **asset_id** | **String** | | |
|
|
638
|
+
| **limit** | **String** | | [optional] |
|
|
639
|
+
| **min_score** | **String** | | [optional] |
|
|
640
|
+
| **include_details** | **String** | | [optional] |
|
|
667
641
|
|
|
668
642
|
### Return type
|
|
669
643
|
|
|
670
|
-
|
|
644
|
+
**Object**
|
|
671
645
|
|
|
672
646
|
### Authorization
|
|
673
647
|
|
|
674
|
-
[
|
|
648
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
675
649
|
|
|
676
650
|
### HTTP request headers
|
|
677
651
|
|
|
@@ -679,11 +653,11 @@ end
|
|
|
679
653
|
- **Accept**: application/json
|
|
680
654
|
|
|
681
655
|
|
|
682
|
-
##
|
|
656
|
+
## companies_company_id_assets_asset_id_statistics_get
|
|
683
657
|
|
|
684
|
-
>
|
|
658
|
+
> Object companies_company_id_assets_asset_id_statistics_get(company_id, asset_id)
|
|
685
659
|
|
|
686
|
-
|
|
660
|
+
Get statistics for a specific asset (public endpoint)
|
|
687
661
|
|
|
688
662
|
### Examples
|
|
689
663
|
|
|
@@ -692,40 +666,38 @@ require 'time'
|
|
|
692
666
|
require 'spartera_api_sdk'
|
|
693
667
|
# setup authorization
|
|
694
668
|
SparteraApiSdk.configure do |config|
|
|
695
|
-
# Configure
|
|
696
|
-
config.
|
|
697
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
698
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
669
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
670
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
699
671
|
end
|
|
700
672
|
|
|
701
673
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
702
|
-
company_id = 'company_id_example' # String |
|
|
703
|
-
asset_id = 'asset_id_example' # String |
|
|
674
|
+
company_id = 'company_id_example' # String |
|
|
675
|
+
asset_id = 'asset_id_example' # String |
|
|
704
676
|
|
|
705
677
|
begin
|
|
706
|
-
#
|
|
707
|
-
result = api_instance.
|
|
678
|
+
# Get statistics for a specific asset (public endpoint)
|
|
679
|
+
result = api_instance.companies_company_id_assets_asset_id_statistics_get(company_id, asset_id)
|
|
708
680
|
p result
|
|
709
681
|
rescue SparteraApiSdk::ApiError => e
|
|
710
|
-
puts "Error when calling AssetsApi->
|
|
682
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_statistics_get: #{e}"
|
|
711
683
|
end
|
|
712
684
|
```
|
|
713
685
|
|
|
714
|
-
#### Using the
|
|
686
|
+
#### Using the companies_company_id_assets_asset_id_statistics_get_with_http_info variant
|
|
715
687
|
|
|
716
688
|
This returns an Array which contains the response data, status code and headers.
|
|
717
689
|
|
|
718
|
-
> <Array(
|
|
690
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_statistics_get_with_http_info(company_id, asset_id)
|
|
719
691
|
|
|
720
692
|
```ruby
|
|
721
693
|
begin
|
|
722
|
-
#
|
|
723
|
-
data, status_code, headers = api_instance.
|
|
694
|
+
# Get statistics for a specific asset (public endpoint)
|
|
695
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_statistics_get_with_http_info(company_id, asset_id)
|
|
724
696
|
p status_code # => 2xx
|
|
725
697
|
p headers # => { ... }
|
|
726
|
-
p data # =>
|
|
698
|
+
p data # => Object
|
|
727
699
|
rescue SparteraApiSdk::ApiError => e
|
|
728
|
-
puts "Error when calling AssetsApi->
|
|
700
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_statistics_get_with_http_info: #{e}"
|
|
729
701
|
end
|
|
730
702
|
```
|
|
731
703
|
|
|
@@ -733,16 +705,16 @@ end
|
|
|
733
705
|
|
|
734
706
|
| Name | Type | Description | Notes |
|
|
735
707
|
| ---- | ---- | ----------- | ----- |
|
|
736
|
-
| **company_id** | **String** |
|
|
737
|
-
| **asset_id** | **String** |
|
|
708
|
+
| **company_id** | **String** | | |
|
|
709
|
+
| **asset_id** | **String** | | |
|
|
738
710
|
|
|
739
711
|
### Return type
|
|
740
712
|
|
|
741
|
-
|
|
713
|
+
**Object**
|
|
742
714
|
|
|
743
715
|
### Authorization
|
|
744
716
|
|
|
745
|
-
[
|
|
717
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
746
718
|
|
|
747
719
|
### HTTP request headers
|
|
748
720
|
|
|
@@ -750,11 +722,11 @@ end
|
|
|
750
722
|
- **Accept**: application/json
|
|
751
723
|
|
|
752
724
|
|
|
753
|
-
##
|
|
725
|
+
## companies_company_id_assets_asset_id_test_get
|
|
754
726
|
|
|
755
|
-
>
|
|
727
|
+
> Object companies_company_id_assets_asset_id_test_get(company_id, asset_id)
|
|
756
728
|
|
|
757
|
-
|
|
729
|
+
Test out an Asset (on a subset of data)
|
|
758
730
|
|
|
759
731
|
### Examples
|
|
760
732
|
|
|
@@ -763,40 +735,38 @@ require 'time'
|
|
|
763
735
|
require 'spartera_api_sdk'
|
|
764
736
|
# setup authorization
|
|
765
737
|
SparteraApiSdk.configure do |config|
|
|
766
|
-
# Configure
|
|
767
|
-
config.
|
|
768
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
769
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
738
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
739
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
770
740
|
end
|
|
771
741
|
|
|
772
742
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
773
|
-
company_id = 'company_id_example' # String |
|
|
774
|
-
asset_id = 'asset_id_example' # String |
|
|
743
|
+
company_id = 'company_id_example' # String |
|
|
744
|
+
asset_id = 'asset_id_example' # String |
|
|
775
745
|
|
|
776
746
|
begin
|
|
777
|
-
#
|
|
778
|
-
result = api_instance.
|
|
747
|
+
# Test out an Asset (on a subset of data)
|
|
748
|
+
result = api_instance.companies_company_id_assets_asset_id_test_get(company_id, asset_id)
|
|
779
749
|
p result
|
|
780
750
|
rescue SparteraApiSdk::ApiError => e
|
|
781
|
-
puts "Error when calling AssetsApi->
|
|
751
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_test_get: #{e}"
|
|
782
752
|
end
|
|
783
753
|
```
|
|
784
754
|
|
|
785
|
-
#### Using the
|
|
755
|
+
#### Using the companies_company_id_assets_asset_id_test_get_with_http_info variant
|
|
786
756
|
|
|
787
757
|
This returns an Array which contains the response data, status code and headers.
|
|
788
758
|
|
|
789
|
-
> <Array(
|
|
759
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_test_get_with_http_info(company_id, asset_id)
|
|
790
760
|
|
|
791
761
|
```ruby
|
|
792
762
|
begin
|
|
793
|
-
#
|
|
794
|
-
data, status_code, headers = api_instance.
|
|
763
|
+
# Test out an Asset (on a subset of data)
|
|
764
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_test_get_with_http_info(company_id, asset_id)
|
|
795
765
|
p status_code # => 2xx
|
|
796
766
|
p headers # => { ... }
|
|
797
|
-
p data # =>
|
|
767
|
+
p data # => Object
|
|
798
768
|
rescue SparteraApiSdk::ApiError => e
|
|
799
|
-
puts "Error when calling AssetsApi->
|
|
769
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_asset_id_test_get_with_http_info: #{e}"
|
|
800
770
|
end
|
|
801
771
|
```
|
|
802
772
|
|
|
@@ -804,16 +774,16 @@ end
|
|
|
804
774
|
|
|
805
775
|
| Name | Type | Description | Notes |
|
|
806
776
|
| ---- | ---- | ----------- | ----- |
|
|
807
|
-
| **company_id** | **String** |
|
|
808
|
-
| **asset_id** | **String** |
|
|
777
|
+
| **company_id** | **String** | | |
|
|
778
|
+
| **asset_id** | **String** | | |
|
|
809
779
|
|
|
810
780
|
### Return type
|
|
811
781
|
|
|
812
|
-
|
|
782
|
+
**Object**
|
|
813
783
|
|
|
814
784
|
### Authorization
|
|
815
785
|
|
|
816
|
-
[
|
|
786
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
817
787
|
|
|
818
788
|
### HTTP request headers
|
|
819
789
|
|
|
@@ -821,11 +791,11 @@ end
|
|
|
821
791
|
- **Accept**: application/json
|
|
822
792
|
|
|
823
793
|
|
|
824
|
-
##
|
|
794
|
+
## companies_company_id_assets_get
|
|
825
795
|
|
|
826
|
-
>
|
|
796
|
+
> Object companies_company_id_assets_get(company_id)
|
|
827
797
|
|
|
828
|
-
Get
|
|
798
|
+
Get all assets for a specific company
|
|
829
799
|
|
|
830
800
|
### Examples
|
|
831
801
|
|
|
@@ -834,39 +804,37 @@ require 'time'
|
|
|
834
804
|
require 'spartera_api_sdk'
|
|
835
805
|
# setup authorization
|
|
836
806
|
SparteraApiSdk.configure do |config|
|
|
837
|
-
# Configure
|
|
838
|
-
config.
|
|
839
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
840
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
807
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
808
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
841
809
|
end
|
|
842
810
|
|
|
843
811
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
844
|
-
company_id = 'company_id_example' # String |
|
|
812
|
+
company_id = 'company_id_example' # String |
|
|
845
813
|
|
|
846
814
|
begin
|
|
847
|
-
# Get
|
|
848
|
-
result = api_instance.
|
|
815
|
+
# Get all assets for a specific company
|
|
816
|
+
result = api_instance.companies_company_id_assets_get(company_id)
|
|
849
817
|
p result
|
|
850
818
|
rescue SparteraApiSdk::ApiError => e
|
|
851
|
-
puts "Error when calling AssetsApi->
|
|
819
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_get: #{e}"
|
|
852
820
|
end
|
|
853
821
|
```
|
|
854
822
|
|
|
855
|
-
#### Using the
|
|
823
|
+
#### Using the companies_company_id_assets_get_with_http_info variant
|
|
856
824
|
|
|
857
825
|
This returns an Array which contains the response data, status code and headers.
|
|
858
826
|
|
|
859
|
-
> <Array(
|
|
827
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_get_with_http_info(company_id)
|
|
860
828
|
|
|
861
829
|
```ruby
|
|
862
830
|
begin
|
|
863
|
-
# Get
|
|
864
|
-
data, status_code, headers = api_instance.
|
|
831
|
+
# Get all assets for a specific company
|
|
832
|
+
data, status_code, headers = api_instance.companies_company_id_assets_get_with_http_info(company_id)
|
|
865
833
|
p status_code # => 2xx
|
|
866
834
|
p headers # => { ... }
|
|
867
|
-
p data # =>
|
|
835
|
+
p data # => Object
|
|
868
836
|
rescue SparteraApiSdk::ApiError => e
|
|
869
|
-
puts "Error when calling AssetsApi->
|
|
837
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_get_with_http_info: #{e}"
|
|
870
838
|
end
|
|
871
839
|
```
|
|
872
840
|
|
|
@@ -874,15 +842,15 @@ end
|
|
|
874
842
|
|
|
875
843
|
| Name | Type | Description | Notes |
|
|
876
844
|
| ---- | ---- | ----------- | ----- |
|
|
877
|
-
| **company_id** | **String** |
|
|
845
|
+
| **company_id** | **String** | | |
|
|
878
846
|
|
|
879
847
|
### Return type
|
|
880
848
|
|
|
881
|
-
|
|
849
|
+
**Object**
|
|
882
850
|
|
|
883
851
|
### Authorization
|
|
884
852
|
|
|
885
|
-
[
|
|
853
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
886
854
|
|
|
887
855
|
### HTTP request headers
|
|
888
856
|
|
|
@@ -890,11 +858,11 @@ end
|
|
|
890
858
|
- **Accept**: application/json
|
|
891
859
|
|
|
892
860
|
|
|
893
|
-
##
|
|
861
|
+
## companies_company_id_assets_post
|
|
894
862
|
|
|
895
|
-
>
|
|
863
|
+
> Object companies_company_id_assets_post(company_id, asset)
|
|
896
864
|
|
|
897
|
-
|
|
865
|
+
Create a new asset
|
|
898
866
|
|
|
899
867
|
### Examples
|
|
900
868
|
|
|
@@ -903,40 +871,38 @@ require 'time'
|
|
|
903
871
|
require 'spartera_api_sdk'
|
|
904
872
|
# setup authorization
|
|
905
873
|
SparteraApiSdk.configure do |config|
|
|
906
|
-
# Configure
|
|
907
|
-
config.
|
|
908
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
909
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
874
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
875
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
910
876
|
end
|
|
911
877
|
|
|
912
878
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
913
|
-
company_id = 'company_id_example' # String |
|
|
914
|
-
|
|
879
|
+
company_id = 'company_id_example' # String |
|
|
880
|
+
asset = SparteraApiSdk::Asset.new({company_id: 'company_id_example', name: 'name_example', source: 'source_example'}) # Asset |
|
|
915
881
|
|
|
916
882
|
begin
|
|
917
|
-
#
|
|
918
|
-
result = api_instance.
|
|
883
|
+
# Create a new asset
|
|
884
|
+
result = api_instance.companies_company_id_assets_post(company_id, asset)
|
|
919
885
|
p result
|
|
920
886
|
rescue SparteraApiSdk::ApiError => e
|
|
921
|
-
puts "Error when calling AssetsApi->
|
|
887
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_post: #{e}"
|
|
922
888
|
end
|
|
923
889
|
```
|
|
924
890
|
|
|
925
|
-
#### Using the
|
|
891
|
+
#### Using the companies_company_id_assets_post_with_http_info variant
|
|
926
892
|
|
|
927
893
|
This returns an Array which contains the response data, status code and headers.
|
|
928
894
|
|
|
929
|
-
> <Array(
|
|
895
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_post_with_http_info(company_id, asset)
|
|
930
896
|
|
|
931
897
|
```ruby
|
|
932
898
|
begin
|
|
933
|
-
#
|
|
934
|
-
data, status_code, headers = api_instance.
|
|
899
|
+
# Create a new asset
|
|
900
|
+
data, status_code, headers = api_instance.companies_company_id_assets_post_with_http_info(company_id, asset)
|
|
935
901
|
p status_code # => 2xx
|
|
936
902
|
p headers # => { ... }
|
|
937
|
-
p data # =>
|
|
903
|
+
p data # => Object
|
|
938
904
|
rescue SparteraApiSdk::ApiError => e
|
|
939
|
-
puts "Error when calling AssetsApi->
|
|
905
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_post_with_http_info: #{e}"
|
|
940
906
|
end
|
|
941
907
|
```
|
|
942
908
|
|
|
@@ -944,28 +910,28 @@ end
|
|
|
944
910
|
|
|
945
911
|
| Name | Type | Description | Notes |
|
|
946
912
|
| ---- | ---- | ----------- | ----- |
|
|
947
|
-
| **company_id** | **String** |
|
|
948
|
-
| **
|
|
913
|
+
| **company_id** | **String** | | |
|
|
914
|
+
| **asset** | [**Asset**](Asset.md) | | |
|
|
949
915
|
|
|
950
916
|
### Return type
|
|
951
917
|
|
|
952
|
-
|
|
918
|
+
**Object**
|
|
953
919
|
|
|
954
920
|
### Authorization
|
|
955
921
|
|
|
956
|
-
[
|
|
922
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
957
923
|
|
|
958
924
|
### HTTP request headers
|
|
959
925
|
|
|
960
|
-
- **Content-Type**:
|
|
926
|
+
- **Content-Type**: application/json
|
|
961
927
|
- **Accept**: application/json
|
|
962
928
|
|
|
963
929
|
|
|
964
|
-
##
|
|
930
|
+
## companies_company_id_assets_recommendations_bulk_post
|
|
965
931
|
|
|
966
|
-
>
|
|
932
|
+
> Object companies_company_id_assets_recommendations_bulk_post(company_id, asset)
|
|
967
933
|
|
|
968
|
-
Get
|
|
934
|
+
Get recommendations for multiple assets in a single request. Useful for pre-loading recommendations.
|
|
969
935
|
|
|
970
936
|
### Examples
|
|
971
937
|
|
|
@@ -974,46 +940,38 @@ require 'time'
|
|
|
974
940
|
require 'spartera_api_sdk'
|
|
975
941
|
# setup authorization
|
|
976
942
|
SparteraApiSdk.configure do |config|
|
|
977
|
-
# Configure
|
|
978
|
-
config.
|
|
979
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
980
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
943
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
944
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
981
945
|
end
|
|
982
946
|
|
|
983
947
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
984
|
-
company_id = 'company_id_example' # String |
|
|
985
|
-
|
|
986
|
-
page: 56, # Integer | Page number for pagination
|
|
987
|
-
limit: 56, # Integer | Number of items per page
|
|
988
|
-
sort_by: 'sort_by_example', # String | Field to sort by
|
|
989
|
-
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
990
|
-
search: 'search_example' # String | Search term to filter results
|
|
991
|
-
}
|
|
948
|
+
company_id = 'company_id_example' # String |
|
|
949
|
+
asset = SparteraApiSdk::Asset.new({company_id: 'company_id_example', name: 'name_example', source: 'source_example'}) # Asset |
|
|
992
950
|
|
|
993
951
|
begin
|
|
994
|
-
# Get
|
|
995
|
-
result = api_instance.
|
|
952
|
+
# Get recommendations for multiple assets in a single request. Useful for pre-loading recommendations.
|
|
953
|
+
result = api_instance.companies_company_id_assets_recommendations_bulk_post(company_id, asset)
|
|
996
954
|
p result
|
|
997
955
|
rescue SparteraApiSdk::ApiError => e
|
|
998
|
-
puts "Error when calling AssetsApi->
|
|
956
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_recommendations_bulk_post: #{e}"
|
|
999
957
|
end
|
|
1000
958
|
```
|
|
1001
959
|
|
|
1002
|
-
#### Using the
|
|
960
|
+
#### Using the companies_company_id_assets_recommendations_bulk_post_with_http_info variant
|
|
1003
961
|
|
|
1004
962
|
This returns an Array which contains the response data, status code and headers.
|
|
1005
963
|
|
|
1006
|
-
> <Array(
|
|
964
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_recommendations_bulk_post_with_http_info(company_id, asset)
|
|
1007
965
|
|
|
1008
966
|
```ruby
|
|
1009
967
|
begin
|
|
1010
|
-
# Get
|
|
1011
|
-
data, status_code, headers = api_instance.
|
|
968
|
+
# Get recommendations for multiple assets in a single request. Useful for pre-loading recommendations.
|
|
969
|
+
data, status_code, headers = api_instance.companies_company_id_assets_recommendations_bulk_post_with_http_info(company_id, asset)
|
|
1012
970
|
p status_code # => 2xx
|
|
1013
971
|
p headers # => { ... }
|
|
1014
|
-
p data # =>
|
|
972
|
+
p data # => Object
|
|
1015
973
|
rescue SparteraApiSdk::ApiError => e
|
|
1016
|
-
puts "Error when calling AssetsApi->
|
|
974
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_recommendations_bulk_post_with_http_info: #{e}"
|
|
1017
975
|
end
|
|
1018
976
|
```
|
|
1019
977
|
|
|
@@ -1021,32 +979,28 @@ end
|
|
|
1021
979
|
|
|
1022
980
|
| Name | Type | Description | Notes |
|
|
1023
981
|
| ---- | ---- | ----------- | ----- |
|
|
1024
|
-
| **company_id** | **String** |
|
|
1025
|
-
| **
|
|
1026
|
-
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
1027
|
-
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
1028
|
-
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
1029
|
-
| **search** | **String** | Search term to filter results | [optional] |
|
|
982
|
+
| **company_id** | **String** | | |
|
|
983
|
+
| **asset** | [**Asset**](Asset.md) | | |
|
|
1030
984
|
|
|
1031
985
|
### Return type
|
|
1032
986
|
|
|
1033
|
-
|
|
987
|
+
**Object**
|
|
1034
988
|
|
|
1035
989
|
### Authorization
|
|
1036
990
|
|
|
1037
|
-
[
|
|
991
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1038
992
|
|
|
1039
993
|
### HTTP request headers
|
|
1040
994
|
|
|
1041
|
-
- **Content-Type**:
|
|
995
|
+
- **Content-Type**: application/json
|
|
1042
996
|
- **Accept**: application/json
|
|
1043
997
|
|
|
1044
998
|
|
|
1045
|
-
##
|
|
999
|
+
## companies_company_id_assets_recommendations_health_get
|
|
1046
1000
|
|
|
1047
|
-
>
|
|
1001
|
+
> Object companies_company_id_assets_recommendations_health_get(company_id)
|
|
1048
1002
|
|
|
1049
|
-
|
|
1003
|
+
Health check for the recommendations system with sample data and performance metrics.
|
|
1050
1004
|
|
|
1051
1005
|
### Examples
|
|
1052
1006
|
|
|
@@ -1055,46 +1009,37 @@ require 'time'
|
|
|
1055
1009
|
require 'spartera_api_sdk'
|
|
1056
1010
|
# setup authorization
|
|
1057
1011
|
SparteraApiSdk.configure do |config|
|
|
1058
|
-
# Configure
|
|
1059
|
-
config.
|
|
1060
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1061
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
1012
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
1013
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1062
1014
|
end
|
|
1063
1015
|
|
|
1064
1016
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
1065
|
-
company_id = 'company_id_example' # String |
|
|
1066
|
-
opts = {
|
|
1067
|
-
page: 56, # Integer | Page number for pagination
|
|
1068
|
-
limit: 56, # Integer | Number of items per page
|
|
1069
|
-
sort_by: 'sort_by_example', # String | Field to sort by
|
|
1070
|
-
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
1071
|
-
search: 'search_example' # String | Search term to filter results
|
|
1072
|
-
}
|
|
1017
|
+
company_id = 'company_id_example' # String |
|
|
1073
1018
|
|
|
1074
1019
|
begin
|
|
1075
|
-
#
|
|
1076
|
-
result = api_instance.
|
|
1020
|
+
# Health check for the recommendations system with sample data and performance metrics.
|
|
1021
|
+
result = api_instance.companies_company_id_assets_recommendations_health_get(company_id)
|
|
1077
1022
|
p result
|
|
1078
1023
|
rescue SparteraApiSdk::ApiError => e
|
|
1079
|
-
puts "Error when calling AssetsApi->
|
|
1024
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_recommendations_health_get: #{e}"
|
|
1080
1025
|
end
|
|
1081
1026
|
```
|
|
1082
1027
|
|
|
1083
|
-
#### Using the
|
|
1028
|
+
#### Using the companies_company_id_assets_recommendations_health_get_with_http_info variant
|
|
1084
1029
|
|
|
1085
1030
|
This returns an Array which contains the response data, status code and headers.
|
|
1086
1031
|
|
|
1087
|
-
> <Array(
|
|
1032
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_recommendations_health_get_with_http_info(company_id)
|
|
1088
1033
|
|
|
1089
1034
|
```ruby
|
|
1090
1035
|
begin
|
|
1091
|
-
#
|
|
1092
|
-
data, status_code, headers = api_instance.
|
|
1036
|
+
# Health check for the recommendations system with sample data and performance metrics.
|
|
1037
|
+
data, status_code, headers = api_instance.companies_company_id_assets_recommendations_health_get_with_http_info(company_id)
|
|
1093
1038
|
p status_code # => 2xx
|
|
1094
1039
|
p headers # => { ... }
|
|
1095
|
-
p data # =>
|
|
1040
|
+
p data # => Object
|
|
1096
1041
|
rescue SparteraApiSdk::ApiError => e
|
|
1097
|
-
puts "Error when calling AssetsApi->
|
|
1042
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_recommendations_health_get_with_http_info: #{e}"
|
|
1098
1043
|
end
|
|
1099
1044
|
```
|
|
1100
1045
|
|
|
@@ -1102,20 +1047,15 @@ end
|
|
|
1102
1047
|
|
|
1103
1048
|
| Name | Type | Description | Notes |
|
|
1104
1049
|
| ---- | ---- | ----------- | ----- |
|
|
1105
|
-
| **company_id** | **String** |
|
|
1106
|
-
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
1107
|
-
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
1108
|
-
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
1109
|
-
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
1110
|
-
| **search** | **String** | Search term to filter results | [optional] |
|
|
1050
|
+
| **company_id** | **String** | | |
|
|
1111
1051
|
|
|
1112
1052
|
### Return type
|
|
1113
1053
|
|
|
1114
|
-
|
|
1054
|
+
**Object**
|
|
1115
1055
|
|
|
1116
1056
|
### Authorization
|
|
1117
1057
|
|
|
1118
|
-
[
|
|
1058
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1119
1059
|
|
|
1120
1060
|
### HTTP request headers
|
|
1121
1061
|
|
|
@@ -1123,11 +1063,11 @@ end
|
|
|
1123
1063
|
- **Accept**: application/json
|
|
1124
1064
|
|
|
1125
1065
|
|
|
1126
|
-
##
|
|
1066
|
+
## companies_company_id_assets_statistics_get
|
|
1127
1067
|
|
|
1128
|
-
>
|
|
1068
|
+
> Object companies_company_id_assets_statistics_get(company_id)
|
|
1129
1069
|
|
|
1130
|
-
|
|
1070
|
+
Get statistics for all assets the user has access to
|
|
1131
1071
|
|
|
1132
1072
|
### Examples
|
|
1133
1073
|
|
|
@@ -1136,41 +1076,37 @@ require 'time'
|
|
|
1136
1076
|
require 'spartera_api_sdk'
|
|
1137
1077
|
# setup authorization
|
|
1138
1078
|
SparteraApiSdk.configure do |config|
|
|
1139
|
-
# Configure
|
|
1140
|
-
config.
|
|
1141
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1142
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
1079
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
1080
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1143
1081
|
end
|
|
1144
1082
|
|
|
1145
1083
|
api_instance = SparteraApiSdk::AssetsApi.new
|
|
1146
|
-
company_id = 'company_id_example' # String |
|
|
1147
|
-
asset_id = 'asset_id_example' # String | Unique identifier for the Asset
|
|
1148
|
-
assets_update = SparteraApiSdk::AssetsUpdate.new # AssetsUpdate |
|
|
1084
|
+
company_id = 'company_id_example' # String |
|
|
1149
1085
|
|
|
1150
1086
|
begin
|
|
1151
|
-
#
|
|
1152
|
-
result = api_instance.
|
|
1087
|
+
# Get statistics for all assets the user has access to
|
|
1088
|
+
result = api_instance.companies_company_id_assets_statistics_get(company_id)
|
|
1153
1089
|
p result
|
|
1154
1090
|
rescue SparteraApiSdk::ApiError => e
|
|
1155
|
-
puts "Error when calling AssetsApi->
|
|
1091
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_statistics_get: #{e}"
|
|
1156
1092
|
end
|
|
1157
1093
|
```
|
|
1158
1094
|
|
|
1159
|
-
#### Using the
|
|
1095
|
+
#### Using the companies_company_id_assets_statistics_get_with_http_info variant
|
|
1160
1096
|
|
|
1161
1097
|
This returns an Array which contains the response data, status code and headers.
|
|
1162
1098
|
|
|
1163
|
-
> <Array(
|
|
1099
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_statistics_get_with_http_info(company_id)
|
|
1164
1100
|
|
|
1165
1101
|
```ruby
|
|
1166
1102
|
begin
|
|
1167
|
-
#
|
|
1168
|
-
data, status_code, headers = api_instance.
|
|
1103
|
+
# Get statistics for all assets the user has access to
|
|
1104
|
+
data, status_code, headers = api_instance.companies_company_id_assets_statistics_get_with_http_info(company_id)
|
|
1169
1105
|
p status_code # => 2xx
|
|
1170
1106
|
p headers # => { ... }
|
|
1171
|
-
p data # =>
|
|
1107
|
+
p data # => Object
|
|
1172
1108
|
rescue SparteraApiSdk::ApiError => e
|
|
1173
|
-
puts "Error when calling AssetsApi->
|
|
1109
|
+
puts "Error when calling AssetsApi->companies_company_id_assets_statistics_get_with_http_info: #{e}"
|
|
1174
1110
|
end
|
|
1175
1111
|
```
|
|
1176
1112
|
|
|
@@ -1178,20 +1114,18 @@ end
|
|
|
1178
1114
|
|
|
1179
1115
|
| Name | Type | Description | Notes |
|
|
1180
1116
|
| ---- | ---- | ----------- | ----- |
|
|
1181
|
-
| **company_id** | **String** |
|
|
1182
|
-
| **asset_id** | **String** | Unique identifier for the Asset | |
|
|
1183
|
-
| **assets_update** | [**AssetsUpdate**](AssetsUpdate.md) | | |
|
|
1117
|
+
| **company_id** | **String** | | |
|
|
1184
1118
|
|
|
1185
1119
|
### Return type
|
|
1186
1120
|
|
|
1187
|
-
|
|
1121
|
+
**Object**
|
|
1188
1122
|
|
|
1189
1123
|
### Authorization
|
|
1190
1124
|
|
|
1191
|
-
[
|
|
1125
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1192
1126
|
|
|
1193
1127
|
### HTTP request headers
|
|
1194
1128
|
|
|
1195
|
-
- **Content-Type**:
|
|
1129
|
+
- **Content-Type**: Not defined
|
|
1196
1130
|
- **Accept**: application/json
|
|
1197
1131
|
|