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