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
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#Auto-generated API documentation for REST services of the Spartera platform
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.13.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -19,115 +19,58 @@ module SparteraApiSdk
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
#
|
|
23
|
-
# @param
|
|
24
|
-
# @param
|
|
22
|
+
# 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)
|
|
23
|
+
# @param company_handle [String]
|
|
24
|
+
# @param asset_slug [String]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
30
|
-
# @option opts [String] :search Search term to filter results
|
|
31
|
-
# @return [CreateAssetsAnalyze200Response]
|
|
32
|
-
def create_assets(company_id, assets_input, opts = {})
|
|
33
|
-
data, _status_code, _headers = create_assets_with_http_info(company_id, assets_input, opts)
|
|
26
|
+
# @return [Object]
|
|
27
|
+
def analyze_company_handle_assets_asset_slug_get(company_handle, asset_slug, opts = {})
|
|
28
|
+
data, _status_code, _headers = analyze_company_handle_assets_asset_slug_get_with_http_info(company_handle, asset_slug, opts)
|
|
34
29
|
data
|
|
35
30
|
end
|
|
36
31
|
|
|
37
|
-
#
|
|
38
|
-
# @param
|
|
39
|
-
# @param
|
|
32
|
+
# 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)
|
|
33
|
+
# @param company_handle [String]
|
|
34
|
+
# @param asset_slug [String]
|
|
40
35
|
# @param [Hash] opts the optional parameters
|
|
41
|
-
# @
|
|
42
|
-
|
|
43
|
-
# @option opts [String] :sort_by Field to sort by
|
|
44
|
-
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
45
|
-
# @option opts [String] :search Search term to filter results
|
|
46
|
-
# @return [Array<(CreateAssetsAnalyze200Response, Integer, Hash)>] CreateAssetsAnalyze200Response data, response status code and response headers
|
|
47
|
-
def create_assets_with_http_info(company_id, assets_input, opts = {})
|
|
36
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
37
|
+
def analyze_company_handle_assets_asset_slug_get_with_http_info(company_handle, asset_slug, opts = {})
|
|
48
38
|
if @api_client.config.debugging
|
|
49
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
50
|
-
end
|
|
51
|
-
# verify the required parameter 'company_id' is set
|
|
52
|
-
if @api_client.config.client_side_validation && company_id.nil?
|
|
53
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.create_assets"
|
|
54
|
-
end
|
|
55
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
56
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.create_assets, the character length must be smaller than or equal to 255.'
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.analyze_company_handle_assets_asset_slug_get ...'
|
|
57
40
|
end
|
|
58
|
-
|
|
59
|
-
if @api_client.config.client_side_validation &&
|
|
60
|
-
fail ArgumentError,
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
64
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
65
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.create_assets, must conform to the pattern #{pattern}."
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
# verify the required parameter 'assets_input' is set
|
|
69
|
-
if @api_client.config.client_side_validation && assets_input.nil?
|
|
70
|
-
fail ArgumentError, "Missing the required parameter 'assets_input' when calling AssetsApi.create_assets"
|
|
71
|
-
end
|
|
72
|
-
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
73
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling AssetsApi.create_assets, must be greater than or equal to 1.'
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
77
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AssetsApi.create_assets, must be smaller than or equal to 100.'
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
81
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AssetsApi.create_assets, must be greater than or equal to 1.'
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
allowable_values = ["asc", "desc"]
|
|
85
|
-
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
86
|
-
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
87
|
-
end
|
|
88
|
-
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
89
|
-
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling AssetsApi.create_assets, the character length must be smaller than or equal to 255.'
|
|
41
|
+
# verify the required parameter 'company_handle' is set
|
|
42
|
+
if @api_client.config.client_side_validation && company_handle.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'company_handle' when calling AssetsApi.analyze_company_handle_assets_asset_slug_get"
|
|
90
44
|
end
|
|
91
|
-
|
|
92
|
-
if @api_client.config.client_side_validation &&
|
|
93
|
-
fail ArgumentError,
|
|
45
|
+
# verify the required parameter 'asset_slug' is set
|
|
46
|
+
if @api_client.config.client_side_validation && asset_slug.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'asset_slug' when calling AssetsApi.analyze_company_handle_assets_asset_slug_get"
|
|
94
48
|
end
|
|
95
|
-
|
|
96
49
|
# resource path
|
|
97
|
-
local_var_path = '/
|
|
50
|
+
local_var_path = '/analyze/{company_handle}/assets/{asset_slug}'.sub('{' + 'company_handle' + '}', CGI.escape(company_handle.to_s)).sub('{' + 'asset_slug' + '}', CGI.escape(asset_slug.to_s))
|
|
98
51
|
|
|
99
52
|
# query parameters
|
|
100
53
|
query_params = opts[:query_params] || {}
|
|
101
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
102
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
103
|
-
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
104
|
-
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
105
|
-
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
106
54
|
|
|
107
55
|
# header parameters
|
|
108
56
|
header_params = opts[:header_params] || {}
|
|
109
57
|
# HTTP header 'Accept' (if needed)
|
|
110
58
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
111
|
-
# HTTP header 'Content-Type'
|
|
112
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
113
|
-
if !content_type.nil?
|
|
114
|
-
header_params['Content-Type'] = content_type
|
|
115
|
-
end
|
|
116
59
|
|
|
117
60
|
# form parameters
|
|
118
61
|
form_params = opts[:form_params] || {}
|
|
119
62
|
|
|
120
63
|
# http body (model)
|
|
121
|
-
post_body = opts[:debug_body]
|
|
64
|
+
post_body = opts[:debug_body]
|
|
122
65
|
|
|
123
66
|
# return_type
|
|
124
|
-
return_type = opts[:debug_return_type] || '
|
|
67
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
125
68
|
|
|
126
69
|
# auth_names
|
|
127
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
70
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
128
71
|
|
|
129
72
|
new_options = opts.merge(
|
|
130
|
-
:operation => :"AssetsApi.
|
|
73
|
+
:operation => :"AssetsApi.analyze_company_handle_assets_asset_slug_get",
|
|
131
74
|
:header_params => header_params,
|
|
132
75
|
:query_params => query_params,
|
|
133
76
|
:form_params => form_params,
|
|
@@ -136,48 +79,42 @@ module SparteraApiSdk
|
|
|
136
79
|
:return_type => return_type
|
|
137
80
|
)
|
|
138
81
|
|
|
139
|
-
data, status_code, headers = @api_client.call_api(:
|
|
82
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
140
83
|
if @api_client.config.debugging
|
|
141
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
84
|
+
@api_client.config.logger.debug "API called: AssetsApi#analyze_company_handle_assets_asset_slug_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
85
|
end
|
|
143
86
|
return data, status_code, headers
|
|
144
87
|
end
|
|
145
88
|
|
|
146
|
-
#
|
|
147
|
-
# @param
|
|
148
|
-
# @param
|
|
149
|
-
# @param assets_input [AssetsInput]
|
|
89
|
+
# Delete single asset by ID
|
|
90
|
+
# @param company_id [String]
|
|
91
|
+
# @param asset_id [String]
|
|
150
92
|
# @param [Hash] opts the optional parameters
|
|
151
|
-
# @return [
|
|
152
|
-
def
|
|
153
|
-
data, _status_code, _headers =
|
|
93
|
+
# @return [Object]
|
|
94
|
+
def companies_company_id_assets_asset_id_delete(company_id, asset_id, opts = {})
|
|
95
|
+
data, _status_code, _headers = companies_company_id_assets_asset_id_delete_with_http_info(company_id, asset_id, opts)
|
|
154
96
|
data
|
|
155
97
|
end
|
|
156
98
|
|
|
157
|
-
#
|
|
158
|
-
# @param
|
|
159
|
-
# @param
|
|
160
|
-
# @param assets_input [AssetsInput]
|
|
99
|
+
# Delete single asset by ID
|
|
100
|
+
# @param company_id [String]
|
|
101
|
+
# @param asset_id [String]
|
|
161
102
|
# @param [Hash] opts the optional parameters
|
|
162
|
-
# @return [Array<(
|
|
163
|
-
def
|
|
103
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
104
|
+
def companies_company_id_assets_asset_id_delete_with_http_info(company_id, asset_id, opts = {})
|
|
164
105
|
if @api_client.config.debugging
|
|
165
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
106
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_delete ...'
|
|
166
107
|
end
|
|
167
|
-
# verify the required parameter '
|
|
168
|
-
if @api_client.config.client_side_validation &&
|
|
169
|
-
fail ArgumentError, "Missing the required parameter '
|
|
170
|
-
end
|
|
171
|
-
# verify the required parameter 'asset_slug' is set
|
|
172
|
-
if @api_client.config.client_side_validation && asset_slug.nil?
|
|
173
|
-
fail ArgumentError, "Missing the required parameter 'asset_slug' when calling AssetsApi.create_assets_analyze"
|
|
108
|
+
# verify the required parameter 'company_id' is set
|
|
109
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
110
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_delete"
|
|
174
111
|
end
|
|
175
|
-
# verify the required parameter '
|
|
176
|
-
if @api_client.config.client_side_validation &&
|
|
177
|
-
fail ArgumentError, "Missing the required parameter '
|
|
112
|
+
# verify the required parameter 'asset_id' is set
|
|
113
|
+
if @api_client.config.client_side_validation && asset_id.nil?
|
|
114
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_delete"
|
|
178
115
|
end
|
|
179
116
|
# resource path
|
|
180
|
-
local_var_path = '/
|
|
117
|
+
local_var_path = '/companies/{company_id}/assets/{asset_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
181
118
|
|
|
182
119
|
# query parameters
|
|
183
120
|
query_params = opts[:query_params] || {}
|
|
@@ -186,26 +123,21 @@ module SparteraApiSdk
|
|
|
186
123
|
header_params = opts[:header_params] || {}
|
|
187
124
|
# HTTP header 'Accept' (if needed)
|
|
188
125
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
189
|
-
# HTTP header 'Content-Type'
|
|
190
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
191
|
-
if !content_type.nil?
|
|
192
|
-
header_params['Content-Type'] = content_type
|
|
193
|
-
end
|
|
194
126
|
|
|
195
127
|
# form parameters
|
|
196
128
|
form_params = opts[:form_params] || {}
|
|
197
129
|
|
|
198
130
|
# http body (model)
|
|
199
|
-
post_body = opts[:debug_body]
|
|
131
|
+
post_body = opts[:debug_body]
|
|
200
132
|
|
|
201
133
|
# return_type
|
|
202
|
-
return_type = opts[:debug_return_type] || '
|
|
134
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
203
135
|
|
|
204
136
|
# auth_names
|
|
205
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
137
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
206
138
|
|
|
207
139
|
new_options = opts.merge(
|
|
208
|
-
:operation => :"AssetsApi.
|
|
140
|
+
:operation => :"AssetsApi.companies_company_id_assets_asset_id_delete",
|
|
209
141
|
:header_params => header_params,
|
|
210
142
|
:query_params => query_params,
|
|
211
143
|
:form_params => form_params,
|
|
@@ -214,74 +146,42 @@ module SparteraApiSdk
|
|
|
214
146
|
:return_type => return_type
|
|
215
147
|
)
|
|
216
148
|
|
|
217
|
-
data, status_code, headers = @api_client.call_api(:
|
|
149
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
218
150
|
if @api_client.config.debugging
|
|
219
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
151
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
220
152
|
end
|
|
221
153
|
return data, status_code, headers
|
|
222
154
|
end
|
|
223
155
|
|
|
224
|
-
#
|
|
225
|
-
# @param company_id [String]
|
|
226
|
-
# @param asset_id [String]
|
|
227
|
-
# @param assets_input [AssetsInput]
|
|
156
|
+
# Get single asset by ID
|
|
157
|
+
# @param company_id [String]
|
|
158
|
+
# @param asset_id [String]
|
|
228
159
|
# @param [Hash] opts the optional parameters
|
|
229
|
-
# @return [
|
|
230
|
-
def
|
|
231
|
-
data, _status_code, _headers =
|
|
160
|
+
# @return [Object]
|
|
161
|
+
def companies_company_id_assets_asset_id_get(company_id, asset_id, opts = {})
|
|
162
|
+
data, _status_code, _headers = companies_company_id_assets_asset_id_get_with_http_info(company_id, asset_id, opts)
|
|
232
163
|
data
|
|
233
164
|
end
|
|
234
165
|
|
|
235
|
-
#
|
|
236
|
-
# @param company_id [String]
|
|
237
|
-
# @param asset_id [String]
|
|
238
|
-
# @param assets_input [AssetsInput]
|
|
166
|
+
# Get single asset by ID
|
|
167
|
+
# @param company_id [String]
|
|
168
|
+
# @param asset_id [String]
|
|
239
169
|
# @param [Hash] opts the optional parameters
|
|
240
|
-
# @return [Array<(
|
|
241
|
-
def
|
|
170
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
171
|
+
def companies_company_id_assets_asset_id_get_with_http_info(company_id, asset_id, opts = {})
|
|
242
172
|
if @api_client.config.debugging
|
|
243
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
173
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_get ...'
|
|
244
174
|
end
|
|
245
175
|
# verify the required parameter 'company_id' is set
|
|
246
176
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
247
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
248
|
-
end
|
|
249
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
250
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.create_assets_scan_column, the character length must be smaller than or equal to 255.'
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
254
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.create_assets_scan_column, the character length must be greater than or equal to 1.'
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
258
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
259
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.create_assets_scan_column, must conform to the pattern #{pattern}."
|
|
177
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_get"
|
|
260
178
|
end
|
|
261
|
-
|
|
262
179
|
# verify the required parameter 'asset_id' is set
|
|
263
180
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
264
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
265
|
-
end
|
|
266
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length > 255
|
|
267
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.create_assets_scan_column, the character length must be smaller than or equal to 255.'
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length < 1
|
|
271
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.create_assets_scan_column, the character length must be greater than or equal to 1.'
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
275
|
-
if @api_client.config.client_side_validation && asset_id !~ pattern
|
|
276
|
-
fail ArgumentError, "invalid value for 'asset_id' when calling AssetsApi.create_assets_scan_column, must conform to the pattern #{pattern}."
|
|
277
|
-
end
|
|
278
|
-
|
|
279
|
-
# verify the required parameter 'assets_input' is set
|
|
280
|
-
if @api_client.config.client_side_validation && assets_input.nil?
|
|
281
|
-
fail ArgumentError, "Missing the required parameter 'assets_input' when calling AssetsApi.create_assets_scan_column"
|
|
181
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_get"
|
|
282
182
|
end
|
|
283
183
|
# resource path
|
|
284
|
-
local_var_path = '/companies/{company_id}/assets/{asset_id}
|
|
184
|
+
local_var_path = '/companies/{company_id}/assets/{asset_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
285
185
|
|
|
286
186
|
# query parameters
|
|
287
187
|
query_params = opts[:query_params] || {}
|
|
@@ -290,26 +190,21 @@ module SparteraApiSdk
|
|
|
290
190
|
header_params = opts[:header_params] || {}
|
|
291
191
|
# HTTP header 'Accept' (if needed)
|
|
292
192
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
293
|
-
# HTTP header 'Content-Type'
|
|
294
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
295
|
-
if !content_type.nil?
|
|
296
|
-
header_params['Content-Type'] = content_type
|
|
297
|
-
end
|
|
298
193
|
|
|
299
194
|
# form parameters
|
|
300
195
|
form_params = opts[:form_params] || {}
|
|
301
196
|
|
|
302
197
|
# http body (model)
|
|
303
|
-
post_body = opts[:debug_body]
|
|
198
|
+
post_body = opts[:debug_body]
|
|
304
199
|
|
|
305
200
|
# return_type
|
|
306
|
-
return_type = opts[:debug_return_type] || '
|
|
201
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
307
202
|
|
|
308
203
|
# auth_names
|
|
309
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
204
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
310
205
|
|
|
311
206
|
new_options = opts.merge(
|
|
312
|
-
:operation => :"AssetsApi.
|
|
207
|
+
:operation => :"AssetsApi.companies_company_id_assets_asset_id_get",
|
|
313
208
|
:header_params => header_params,
|
|
314
209
|
:query_params => query_params,
|
|
315
210
|
:form_params => form_params,
|
|
@@ -318,74 +213,42 @@ module SparteraApiSdk
|
|
|
318
213
|
:return_type => return_type
|
|
319
214
|
)
|
|
320
215
|
|
|
321
|
-
data, status_code, headers = @api_client.call_api(:
|
|
216
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
322
217
|
if @api_client.config.debugging
|
|
323
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
218
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
324
219
|
end
|
|
325
220
|
return data, status_code, headers
|
|
326
221
|
end
|
|
327
222
|
|
|
328
|
-
#
|
|
329
|
-
# @param company_id [String]
|
|
330
|
-
# @param asset_id [String]
|
|
331
|
-
# @param assets_input [AssetsInput]
|
|
223
|
+
# Get the information schema for a specific asset's table
|
|
224
|
+
# @param company_id [String]
|
|
225
|
+
# @param asset_id [String]
|
|
332
226
|
# @param [Hash] opts the optional parameters
|
|
333
|
-
# @return [
|
|
334
|
-
def
|
|
335
|
-
data, _status_code, _headers =
|
|
227
|
+
# @return [Object]
|
|
228
|
+
def companies_company_id_assets_asset_id_infoschema_get(company_id, asset_id, opts = {})
|
|
229
|
+
data, _status_code, _headers = companies_company_id_assets_asset_id_infoschema_get_with_http_info(company_id, asset_id, opts)
|
|
336
230
|
data
|
|
337
231
|
end
|
|
338
232
|
|
|
339
|
-
#
|
|
340
|
-
# @param company_id [String]
|
|
341
|
-
# @param asset_id [String]
|
|
342
|
-
# @param assets_input [AssetsInput]
|
|
233
|
+
# Get the information schema for a specific asset's table
|
|
234
|
+
# @param company_id [String]
|
|
235
|
+
# @param asset_id [String]
|
|
343
236
|
# @param [Hash] opts the optional parameters
|
|
344
|
-
# @return [Array<(
|
|
345
|
-
def
|
|
237
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
238
|
+
def companies_company_id_assets_asset_id_infoschema_get_with_http_info(company_id, asset_id, opts = {})
|
|
346
239
|
if @api_client.config.debugging
|
|
347
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
240
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_infoschema_get ...'
|
|
348
241
|
end
|
|
349
242
|
# verify the required parameter 'company_id' is set
|
|
350
243
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
351
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
352
|
-
end
|
|
353
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
354
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.create_assets_test, the character length must be smaller than or equal to 255.'
|
|
244
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_infoschema_get"
|
|
355
245
|
end
|
|
356
|
-
|
|
357
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
358
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.create_assets_test, the character length must be greater than or equal to 1.'
|
|
359
|
-
end
|
|
360
|
-
|
|
361
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
362
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
363
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.create_assets_test, must conform to the pattern #{pattern}."
|
|
364
|
-
end
|
|
365
|
-
|
|
366
246
|
# verify the required parameter 'asset_id' is set
|
|
367
247
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
368
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
369
|
-
end
|
|
370
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length > 255
|
|
371
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.create_assets_test, the character length must be smaller than or equal to 255.'
|
|
372
|
-
end
|
|
373
|
-
|
|
374
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length < 1
|
|
375
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.create_assets_test, the character length must be greater than or equal to 1.'
|
|
376
|
-
end
|
|
377
|
-
|
|
378
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
379
|
-
if @api_client.config.client_side_validation && asset_id !~ pattern
|
|
380
|
-
fail ArgumentError, "invalid value for 'asset_id' when calling AssetsApi.create_assets_test, must conform to the pattern #{pattern}."
|
|
381
|
-
end
|
|
382
|
-
|
|
383
|
-
# verify the required parameter 'assets_input' is set
|
|
384
|
-
if @api_client.config.client_side_validation && assets_input.nil?
|
|
385
|
-
fail ArgumentError, "Missing the required parameter 'assets_input' when calling AssetsApi.create_assets_test"
|
|
248
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_infoschema_get"
|
|
386
249
|
end
|
|
387
250
|
# resource path
|
|
388
|
-
local_var_path = '/companies/{company_id}/assets/{asset_id}/
|
|
251
|
+
local_var_path = '/companies/{company_id}/assets/{asset_id}/infoschema'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
389
252
|
|
|
390
253
|
# query parameters
|
|
391
254
|
query_params = opts[:query_params] || {}
|
|
@@ -394,26 +257,21 @@ module SparteraApiSdk
|
|
|
394
257
|
header_params = opts[:header_params] || {}
|
|
395
258
|
# HTTP header 'Accept' (if needed)
|
|
396
259
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
397
|
-
# HTTP header 'Content-Type'
|
|
398
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
399
|
-
if !content_type.nil?
|
|
400
|
-
header_params['Content-Type'] = content_type
|
|
401
|
-
end
|
|
402
260
|
|
|
403
261
|
# form parameters
|
|
404
262
|
form_params = opts[:form_params] || {}
|
|
405
263
|
|
|
406
264
|
# http body (model)
|
|
407
|
-
post_body = opts[:debug_body]
|
|
265
|
+
post_body = opts[:debug_body]
|
|
408
266
|
|
|
409
267
|
# return_type
|
|
410
|
-
return_type = opts[:debug_return_type] || '
|
|
268
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
411
269
|
|
|
412
270
|
# auth_names
|
|
413
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
271
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
414
272
|
|
|
415
273
|
new_options = opts.merge(
|
|
416
|
-
:operation => :"AssetsApi.
|
|
274
|
+
:operation => :"AssetsApi.companies_company_id_assets_asset_id_infoschema_get",
|
|
417
275
|
:header_params => header_params,
|
|
418
276
|
:query_params => query_params,
|
|
419
277
|
:form_params => form_params,
|
|
@@ -422,68 +280,42 @@ module SparteraApiSdk
|
|
|
422
280
|
:return_type => return_type
|
|
423
281
|
)
|
|
424
282
|
|
|
425
|
-
data, status_code, headers = @api_client.call_api(:
|
|
283
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
426
284
|
if @api_client.config.debugging
|
|
427
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
285
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_infoschema_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
428
286
|
end
|
|
429
287
|
return data, status_code, headers
|
|
430
288
|
end
|
|
431
289
|
|
|
432
|
-
#
|
|
433
|
-
# @param company_id [String]
|
|
434
|
-
# @param asset_id [String]
|
|
290
|
+
# Get the information schema for a specific asset and save it to the asset's asset_schema field
|
|
291
|
+
# @param company_id [String]
|
|
292
|
+
# @param asset_id [String]
|
|
435
293
|
# @param [Hash] opts the optional parameters
|
|
436
|
-
# @return [
|
|
437
|
-
def
|
|
438
|
-
data, _status_code, _headers =
|
|
294
|
+
# @return [Object]
|
|
295
|
+
def companies_company_id_assets_asset_id_infoschema_save_get(company_id, asset_id, opts = {})
|
|
296
|
+
data, _status_code, _headers = companies_company_id_assets_asset_id_infoschema_save_get_with_http_info(company_id, asset_id, opts)
|
|
439
297
|
data
|
|
440
298
|
end
|
|
441
299
|
|
|
442
|
-
#
|
|
443
|
-
# @param company_id [String]
|
|
444
|
-
# @param asset_id [String]
|
|
300
|
+
# Get the information schema for a specific asset and save it to the asset's asset_schema field
|
|
301
|
+
# @param company_id [String]
|
|
302
|
+
# @param asset_id [String]
|
|
445
303
|
# @param [Hash] opts the optional parameters
|
|
446
|
-
# @return [Array<(
|
|
447
|
-
def
|
|
304
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
305
|
+
def companies_company_id_assets_asset_id_infoschema_save_get_with_http_info(company_id, asset_id, opts = {})
|
|
448
306
|
if @api_client.config.debugging
|
|
449
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
307
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_infoschema_save_get ...'
|
|
450
308
|
end
|
|
451
309
|
# verify the required parameter 'company_id' is set
|
|
452
310
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
453
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
454
|
-
end
|
|
455
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
456
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.delete_assets, the character length must be smaller than or equal to 255.'
|
|
457
|
-
end
|
|
458
|
-
|
|
459
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
460
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.delete_assets, the character length must be greater than or equal to 1.'
|
|
311
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_infoschema_save_get"
|
|
461
312
|
end
|
|
462
|
-
|
|
463
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
464
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
465
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.delete_assets, must conform to the pattern #{pattern}."
|
|
466
|
-
end
|
|
467
|
-
|
|
468
313
|
# verify the required parameter 'asset_id' is set
|
|
469
314
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
470
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
315
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_infoschema_save_get"
|
|
471
316
|
end
|
|
472
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length > 255
|
|
473
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.delete_assets, the character length must be smaller than or equal to 255.'
|
|
474
|
-
end
|
|
475
|
-
|
|
476
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length < 1
|
|
477
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.delete_assets, the character length must be greater than or equal to 1.'
|
|
478
|
-
end
|
|
479
|
-
|
|
480
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
481
|
-
if @api_client.config.client_side_validation && asset_id !~ pattern
|
|
482
|
-
fail ArgumentError, "invalid value for 'asset_id' when calling AssetsApi.delete_assets, must conform to the pattern #{pattern}."
|
|
483
|
-
end
|
|
484
|
-
|
|
485
317
|
# resource path
|
|
486
|
-
local_var_path = '/companies/{company_id}/assets/{asset_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
318
|
+
local_var_path = '/companies/{company_id}/assets/{asset_id}/infoschema/save'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
487
319
|
|
|
488
320
|
# query parameters
|
|
489
321
|
query_params = opts[:query_params] || {}
|
|
@@ -500,13 +332,13 @@ module SparteraApiSdk
|
|
|
500
332
|
post_body = opts[:debug_body]
|
|
501
333
|
|
|
502
334
|
# return_type
|
|
503
|
-
return_type = opts[:debug_return_type] || '
|
|
335
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
504
336
|
|
|
505
337
|
# auth_names
|
|
506
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
338
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
507
339
|
|
|
508
340
|
new_options = opts.merge(
|
|
509
|
-
:operation => :"AssetsApi.
|
|
341
|
+
:operation => :"AssetsApi.companies_company_id_assets_asset_id_infoschema_save_get",
|
|
510
342
|
:header_params => header_params,
|
|
511
343
|
:query_params => query_params,
|
|
512
344
|
:form_params => form_params,
|
|
@@ -515,66 +347,46 @@ module SparteraApiSdk
|
|
|
515
347
|
:return_type => return_type
|
|
516
348
|
)
|
|
517
349
|
|
|
518
|
-
data, status_code, headers = @api_client.call_api(:
|
|
350
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
519
351
|
if @api_client.config.debugging
|
|
520
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
352
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_infoschema_save_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
521
353
|
end
|
|
522
354
|
return data, status_code, headers
|
|
523
355
|
end
|
|
524
356
|
|
|
525
|
-
#
|
|
526
|
-
# @param company_id [String]
|
|
527
|
-
# @param asset_id [String]
|
|
357
|
+
# Update an existing asset by ID
|
|
358
|
+
# @param company_id [String]
|
|
359
|
+
# @param asset_id [String]
|
|
360
|
+
# @param asset [Asset]
|
|
528
361
|
# @param [Hash] opts the optional parameters
|
|
529
|
-
# @return [
|
|
530
|
-
def
|
|
531
|
-
data, _status_code, _headers =
|
|
362
|
+
# @return [Object]
|
|
363
|
+
def companies_company_id_assets_asset_id_patch(company_id, asset_id, asset, opts = {})
|
|
364
|
+
data, _status_code, _headers = companies_company_id_assets_asset_id_patch_with_http_info(company_id, asset_id, asset, opts)
|
|
532
365
|
data
|
|
533
366
|
end
|
|
534
367
|
|
|
535
|
-
#
|
|
536
|
-
# @param company_id [String]
|
|
537
|
-
# @param asset_id [String]
|
|
368
|
+
# Update an existing asset by ID
|
|
369
|
+
# @param company_id [String]
|
|
370
|
+
# @param asset_id [String]
|
|
371
|
+
# @param asset [Asset]
|
|
538
372
|
# @param [Hash] opts the optional parameters
|
|
539
|
-
# @return [Array<(
|
|
540
|
-
def
|
|
373
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
374
|
+
def companies_company_id_assets_asset_id_patch_with_http_info(company_id, asset_id, asset, opts = {})
|
|
541
375
|
if @api_client.config.debugging
|
|
542
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
376
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_patch ...'
|
|
543
377
|
end
|
|
544
378
|
# verify the required parameter 'company_id' is set
|
|
545
379
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
546
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
547
|
-
end
|
|
548
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
549
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id, the character length must be smaller than or equal to 255.'
|
|
380
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_patch"
|
|
550
381
|
end
|
|
551
|
-
|
|
552
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
553
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id, the character length must be greater than or equal to 1.'
|
|
554
|
-
end
|
|
555
|
-
|
|
556
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
557
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
558
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.get_assets_by_id, must conform to the pattern #{pattern}."
|
|
559
|
-
end
|
|
560
|
-
|
|
561
382
|
# verify the required parameter 'asset_id' is set
|
|
562
383
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
563
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
384
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_patch"
|
|
564
385
|
end
|
|
565
|
-
|
|
566
|
-
|
|
386
|
+
# verify the required parameter 'asset' is set
|
|
387
|
+
if @api_client.config.client_side_validation && asset.nil?
|
|
388
|
+
fail ArgumentError, "Missing the required parameter 'asset' when calling AssetsApi.companies_company_id_assets_asset_id_patch"
|
|
567
389
|
end
|
|
568
|
-
|
|
569
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length < 1
|
|
570
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id, the character length must be greater than or equal to 1.'
|
|
571
|
-
end
|
|
572
|
-
|
|
573
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
574
|
-
if @api_client.config.client_side_validation && asset_id !~ pattern
|
|
575
|
-
fail ArgumentError, "invalid value for 'asset_id' when calling AssetsApi.get_assets_by_id, must conform to the pattern #{pattern}."
|
|
576
|
-
end
|
|
577
|
-
|
|
578
390
|
# resource path
|
|
579
391
|
local_var_path = '/companies/{company_id}/assets/{asset_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
580
392
|
|
|
@@ -585,21 +397,26 @@ module SparteraApiSdk
|
|
|
585
397
|
header_params = opts[:header_params] || {}
|
|
586
398
|
# HTTP header 'Accept' (if needed)
|
|
587
399
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
400
|
+
# HTTP header 'Content-Type'
|
|
401
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
402
|
+
if !content_type.nil?
|
|
403
|
+
header_params['Content-Type'] = content_type
|
|
404
|
+
end
|
|
588
405
|
|
|
589
406
|
# form parameters
|
|
590
407
|
form_params = opts[:form_params] || {}
|
|
591
408
|
|
|
592
409
|
# http body (model)
|
|
593
|
-
post_body = opts[:debug_body]
|
|
410
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(asset)
|
|
594
411
|
|
|
595
412
|
# return_type
|
|
596
|
-
return_type = opts[:debug_return_type] || '
|
|
413
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
597
414
|
|
|
598
415
|
# auth_names
|
|
599
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
416
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
600
417
|
|
|
601
418
|
new_options = opts.merge(
|
|
602
|
-
:operation => :"AssetsApi.
|
|
419
|
+
:operation => :"AssetsApi.companies_company_id_assets_asset_id_patch",
|
|
603
420
|
:header_params => header_params,
|
|
604
421
|
:query_params => query_params,
|
|
605
422
|
:form_params => form_params,
|
|
@@ -608,68 +425,42 @@ module SparteraApiSdk
|
|
|
608
425
|
:return_type => return_type
|
|
609
426
|
)
|
|
610
427
|
|
|
611
|
-
data, status_code, headers = @api_client.call_api(:
|
|
428
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
612
429
|
if @api_client.config.debugging
|
|
613
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
430
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
614
431
|
end
|
|
615
432
|
return data, status_code, headers
|
|
616
433
|
end
|
|
617
434
|
|
|
618
|
-
# Get
|
|
619
|
-
# @param company_id [String]
|
|
620
|
-
# @param asset_id [String]
|
|
435
|
+
# Get AI-predicted pricing for a specific asset
|
|
436
|
+
# @param company_id [String]
|
|
437
|
+
# @param asset_id [String]
|
|
621
438
|
# @param [Hash] opts the optional parameters
|
|
622
|
-
# @return [
|
|
623
|
-
def
|
|
624
|
-
data, _status_code, _headers =
|
|
439
|
+
# @return [Object]
|
|
440
|
+
def companies_company_id_assets_asset_id_predicted_price_get(company_id, asset_id, opts = {})
|
|
441
|
+
data, _status_code, _headers = companies_company_id_assets_asset_id_predicted_price_get_with_http_info(company_id, asset_id, opts)
|
|
625
442
|
data
|
|
626
443
|
end
|
|
627
444
|
|
|
628
|
-
# Get
|
|
629
|
-
# @param company_id [String]
|
|
630
|
-
# @param asset_id [String]
|
|
445
|
+
# Get AI-predicted pricing for a specific asset
|
|
446
|
+
# @param company_id [String]
|
|
447
|
+
# @param asset_id [String]
|
|
631
448
|
# @param [Hash] opts the optional parameters
|
|
632
|
-
# @return [Array<(
|
|
633
|
-
def
|
|
449
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
450
|
+
def companies_company_id_assets_asset_id_predicted_price_get_with_http_info(company_id, asset_id, opts = {})
|
|
634
451
|
if @api_client.config.debugging
|
|
635
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
452
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_predicted_price_get ...'
|
|
636
453
|
end
|
|
637
454
|
# verify the required parameter 'company_id' is set
|
|
638
455
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
639
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
640
|
-
end
|
|
641
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
642
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id2, the character length must be smaller than or equal to 255.'
|
|
456
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_predicted_price_get"
|
|
643
457
|
end
|
|
644
|
-
|
|
645
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
646
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id2, the character length must be greater than or equal to 1.'
|
|
647
|
-
end
|
|
648
|
-
|
|
649
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
650
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
651
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.get_assets_by_id2, must conform to the pattern #{pattern}."
|
|
652
|
-
end
|
|
653
|
-
|
|
654
458
|
# verify the required parameter 'asset_id' is set
|
|
655
459
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
656
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
657
|
-
end
|
|
658
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length > 255
|
|
659
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id2, the character length must be smaller than or equal to 255.'
|
|
460
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_predicted_price_get"
|
|
660
461
|
end
|
|
661
|
-
|
|
662
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length < 1
|
|
663
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id2, the character length must be greater than or equal to 1.'
|
|
664
|
-
end
|
|
665
|
-
|
|
666
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
667
|
-
if @api_client.config.client_side_validation && asset_id !~ pattern
|
|
668
|
-
fail ArgumentError, "invalid value for 'asset_id' when calling AssetsApi.get_assets_by_id2, must conform to the pattern #{pattern}."
|
|
669
|
-
end
|
|
670
|
-
|
|
671
462
|
# resource path
|
|
672
|
-
local_var_path = '/companies/{company_id}/assets/{asset_id}/
|
|
463
|
+
local_var_path = '/companies/{company_id}/assets/{asset_id}/predicted_price'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
673
464
|
|
|
674
465
|
# query parameters
|
|
675
466
|
query_params = opts[:query_params] || {}
|
|
@@ -686,13 +477,13 @@ module SparteraApiSdk
|
|
|
686
477
|
post_body = opts[:debug_body]
|
|
687
478
|
|
|
688
479
|
# return_type
|
|
689
|
-
return_type = opts[:debug_return_type] || '
|
|
480
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
690
481
|
|
|
691
482
|
# auth_names
|
|
692
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
483
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
693
484
|
|
|
694
485
|
new_options = opts.merge(
|
|
695
|
-
:operation => :"AssetsApi.
|
|
486
|
+
:operation => :"AssetsApi.companies_company_id_assets_asset_id_predicted_price_get",
|
|
696
487
|
:header_params => header_params,
|
|
697
488
|
:query_params => query_params,
|
|
698
489
|
:form_params => form_params,
|
|
@@ -703,40 +494,40 @@ module SparteraApiSdk
|
|
|
703
494
|
|
|
704
495
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
705
496
|
if @api_client.config.debugging
|
|
706
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
497
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_predicted_price_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
707
498
|
end
|
|
708
499
|
return data, status_code, headers
|
|
709
500
|
end
|
|
710
501
|
|
|
711
|
-
#
|
|
712
|
-
# @param
|
|
713
|
-
# @param
|
|
502
|
+
# Get detailed explanation of how asset recommendations are calculated for debugging purposes.
|
|
503
|
+
# @param company_id [String]
|
|
504
|
+
# @param asset_id [String]
|
|
714
505
|
# @param [Hash] opts the optional parameters
|
|
715
|
-
# @return [
|
|
716
|
-
def
|
|
717
|
-
data, _status_code, _headers =
|
|
506
|
+
# @return [Object]
|
|
507
|
+
def companies_company_id_assets_asset_id_recommendations_explain_get(company_id, asset_id, opts = {})
|
|
508
|
+
data, _status_code, _headers = companies_company_id_assets_asset_id_recommendations_explain_get_with_http_info(company_id, asset_id, opts)
|
|
718
509
|
data
|
|
719
510
|
end
|
|
720
511
|
|
|
721
|
-
#
|
|
722
|
-
# @param
|
|
723
|
-
# @param
|
|
512
|
+
# Get detailed explanation of how asset recommendations are calculated for debugging purposes.
|
|
513
|
+
# @param company_id [String]
|
|
514
|
+
# @param asset_id [String]
|
|
724
515
|
# @param [Hash] opts the optional parameters
|
|
725
|
-
# @return [Array<(
|
|
726
|
-
def
|
|
516
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
517
|
+
def companies_company_id_assets_asset_id_recommendations_explain_get_with_http_info(company_id, asset_id, opts = {})
|
|
727
518
|
if @api_client.config.debugging
|
|
728
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
519
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_recommendations_explain_get ...'
|
|
729
520
|
end
|
|
730
|
-
# verify the required parameter '
|
|
731
|
-
if @api_client.config.client_side_validation &&
|
|
732
|
-
fail ArgumentError, "Missing the required parameter '
|
|
521
|
+
# verify the required parameter 'company_id' is set
|
|
522
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
523
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_recommendations_explain_get"
|
|
733
524
|
end
|
|
734
|
-
# verify the required parameter '
|
|
735
|
-
if @api_client.config.client_side_validation &&
|
|
736
|
-
fail ArgumentError, "Missing the required parameter '
|
|
525
|
+
# verify the required parameter 'asset_id' is set
|
|
526
|
+
if @api_client.config.client_side_validation && asset_id.nil?
|
|
527
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_recommendations_explain_get"
|
|
737
528
|
end
|
|
738
529
|
# resource path
|
|
739
|
-
local_var_path = '/
|
|
530
|
+
local_var_path = '/companies/{company_id}/assets/{asset_id}/recommendations/explain'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
740
531
|
|
|
741
532
|
# query parameters
|
|
742
533
|
query_params = opts[:query_params] || {}
|
|
@@ -753,13 +544,13 @@ module SparteraApiSdk
|
|
|
753
544
|
post_body = opts[:debug_body]
|
|
754
545
|
|
|
755
546
|
# return_type
|
|
756
|
-
return_type = opts[:debug_return_type] || '
|
|
547
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
757
548
|
|
|
758
549
|
# auth_names
|
|
759
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
550
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
760
551
|
|
|
761
552
|
new_options = opts.merge(
|
|
762
|
-
:operation => :"AssetsApi.
|
|
553
|
+
:operation => :"AssetsApi.companies_company_id_assets_asset_id_recommendations_explain_get",
|
|
763
554
|
:header_params => header_params,
|
|
764
555
|
:query_params => query_params,
|
|
765
556
|
:form_params => form_params,
|
|
@@ -770,69 +561,52 @@ module SparteraApiSdk
|
|
|
770
561
|
|
|
771
562
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
772
563
|
if @api_client.config.debugging
|
|
773
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
564
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_recommendations_explain_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
774
565
|
end
|
|
775
566
|
return data, status_code, headers
|
|
776
567
|
end
|
|
777
568
|
|
|
778
|
-
# Get
|
|
779
|
-
# @param company_id [String]
|
|
780
|
-
# @param asset_id [String]
|
|
569
|
+
# Get asset recommendations for a specific asset using heuristic waterfall matching Returns list of similar assets based on industry, company, connection, tags, etc. Query Parameters: - limit: Number of recommendations to return (default: 12, max: 50) - min_score: Minimum similarity score threshold (default: 0.1) - include_details: Include component similarity scores (default: false)
|
|
570
|
+
# @param company_id [String]
|
|
571
|
+
# @param asset_id [String]
|
|
781
572
|
# @param [Hash] opts the optional parameters
|
|
782
|
-
# @
|
|
783
|
-
|
|
784
|
-
|
|
573
|
+
# @option opts [String] :limit
|
|
574
|
+
# @option opts [String] :min_score
|
|
575
|
+
# @option opts [String] :include_details
|
|
576
|
+
# @return [Object]
|
|
577
|
+
def companies_company_id_assets_asset_id_recommendations_get(company_id, asset_id, opts = {})
|
|
578
|
+
data, _status_code, _headers = companies_company_id_assets_asset_id_recommendations_get_with_http_info(company_id, asset_id, opts)
|
|
785
579
|
data
|
|
786
580
|
end
|
|
787
581
|
|
|
788
|
-
# Get
|
|
789
|
-
# @param company_id [String]
|
|
790
|
-
# @param asset_id [String]
|
|
582
|
+
# Get asset recommendations for a specific asset using heuristic waterfall matching Returns list of similar assets based on industry, company, connection, tags, etc. Query Parameters: - limit: Number of recommendations to return (default: 12, max: 50) - min_score: Minimum similarity score threshold (default: 0.1) - include_details: Include component similarity scores (default: false)
|
|
583
|
+
# @param company_id [String]
|
|
584
|
+
# @param asset_id [String]
|
|
791
585
|
# @param [Hash] opts the optional parameters
|
|
792
|
-
# @
|
|
793
|
-
|
|
586
|
+
# @option opts [String] :limit
|
|
587
|
+
# @option opts [String] :min_score
|
|
588
|
+
# @option opts [String] :include_details
|
|
589
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
590
|
+
def companies_company_id_assets_asset_id_recommendations_get_with_http_info(company_id, asset_id, opts = {})
|
|
794
591
|
if @api_client.config.debugging
|
|
795
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
592
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_recommendations_get ...'
|
|
796
593
|
end
|
|
797
594
|
# verify the required parameter 'company_id' is set
|
|
798
595
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
799
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
800
|
-
end
|
|
801
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
802
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id_infoschema, the character length must be smaller than or equal to 255.'
|
|
803
|
-
end
|
|
804
|
-
|
|
805
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
806
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id_infoschema, the character length must be greater than or equal to 1.'
|
|
596
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_recommendations_get"
|
|
807
597
|
end
|
|
808
|
-
|
|
809
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
810
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
811
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.get_assets_by_id_infoschema, must conform to the pattern #{pattern}."
|
|
812
|
-
end
|
|
813
|
-
|
|
814
598
|
# verify the required parameter 'asset_id' is set
|
|
815
599
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
816
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
817
|
-
end
|
|
818
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length > 255
|
|
819
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id_infoschema, the character length must be smaller than or equal to 255.'
|
|
820
|
-
end
|
|
821
|
-
|
|
822
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length < 1
|
|
823
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id_infoschema, the character length must be greater than or equal to 1.'
|
|
824
|
-
end
|
|
825
|
-
|
|
826
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
827
|
-
if @api_client.config.client_side_validation && asset_id !~ pattern
|
|
828
|
-
fail ArgumentError, "invalid value for 'asset_id' when calling AssetsApi.get_assets_by_id_infoschema, must conform to the pattern #{pattern}."
|
|
600
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_recommendations_get"
|
|
829
601
|
end
|
|
830
|
-
|
|
831
602
|
# resource path
|
|
832
|
-
local_var_path = '/companies/{company_id}/assets/{asset_id}/
|
|
603
|
+
local_var_path = '/companies/{company_id}/assets/{asset_id}/recommendations'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
833
604
|
|
|
834
605
|
# query parameters
|
|
835
606
|
query_params = opts[:query_params] || {}
|
|
607
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
608
|
+
query_params[:'min_score'] = opts[:'min_score'] if !opts[:'min_score'].nil?
|
|
609
|
+
query_params[:'include_details'] = opts[:'include_details'] if !opts[:'include_details'].nil?
|
|
836
610
|
|
|
837
611
|
# header parameters
|
|
838
612
|
header_params = opts[:header_params] || {}
|
|
@@ -846,13 +620,13 @@ module SparteraApiSdk
|
|
|
846
620
|
post_body = opts[:debug_body]
|
|
847
621
|
|
|
848
622
|
# return_type
|
|
849
|
-
return_type = opts[:debug_return_type] || '
|
|
623
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
850
624
|
|
|
851
625
|
# auth_names
|
|
852
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
626
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
853
627
|
|
|
854
628
|
new_options = opts.merge(
|
|
855
|
-
:operation => :"AssetsApi.
|
|
629
|
+
:operation => :"AssetsApi.companies_company_id_assets_asset_id_recommendations_get",
|
|
856
630
|
:header_params => header_params,
|
|
857
631
|
:query_params => query_params,
|
|
858
632
|
:form_params => form_params,
|
|
@@ -863,66 +637,40 @@ module SparteraApiSdk
|
|
|
863
637
|
|
|
864
638
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
865
639
|
if @api_client.config.debugging
|
|
866
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
640
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_recommendations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
867
641
|
end
|
|
868
642
|
return data, status_code, headers
|
|
869
643
|
end
|
|
870
644
|
|
|
871
|
-
#
|
|
872
|
-
# @param company_id [String]
|
|
873
|
-
# @param asset_id [String]
|
|
645
|
+
# Get statistics for a specific asset (public endpoint)
|
|
646
|
+
# @param company_id [String]
|
|
647
|
+
# @param asset_id [String]
|
|
874
648
|
# @param [Hash] opts the optional parameters
|
|
875
|
-
# @return [
|
|
876
|
-
def
|
|
877
|
-
data, _status_code, _headers =
|
|
649
|
+
# @return [Object]
|
|
650
|
+
def companies_company_id_assets_asset_id_statistics_get(company_id, asset_id, opts = {})
|
|
651
|
+
data, _status_code, _headers = companies_company_id_assets_asset_id_statistics_get_with_http_info(company_id, asset_id, opts)
|
|
878
652
|
data
|
|
879
653
|
end
|
|
880
654
|
|
|
881
|
-
#
|
|
882
|
-
# @param company_id [String]
|
|
883
|
-
# @param asset_id [String]
|
|
655
|
+
# Get statistics for a specific asset (public endpoint)
|
|
656
|
+
# @param company_id [String]
|
|
657
|
+
# @param asset_id [String]
|
|
884
658
|
# @param [Hash] opts the optional parameters
|
|
885
|
-
# @return [Array<(
|
|
886
|
-
def
|
|
659
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
660
|
+
def companies_company_id_assets_asset_id_statistics_get_with_http_info(company_id, asset_id, opts = {})
|
|
887
661
|
if @api_client.config.debugging
|
|
888
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
662
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_statistics_get ...'
|
|
889
663
|
end
|
|
890
664
|
# verify the required parameter 'company_id' is set
|
|
891
665
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
892
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
893
|
-
end
|
|
894
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
895
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id_infoschema_save, the character length must be smaller than or equal to 255.'
|
|
896
|
-
end
|
|
897
|
-
|
|
898
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
899
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id_infoschema_save, the character length must be greater than or equal to 1.'
|
|
666
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_statistics_get"
|
|
900
667
|
end
|
|
901
|
-
|
|
902
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
903
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
904
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.get_assets_by_id_infoschema_save, must conform to the pattern #{pattern}."
|
|
905
|
-
end
|
|
906
|
-
|
|
907
668
|
# verify the required parameter 'asset_id' is set
|
|
908
669
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
909
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
670
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_statistics_get"
|
|
910
671
|
end
|
|
911
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length > 255
|
|
912
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id_infoschema_save, the character length must be smaller than or equal to 255.'
|
|
913
|
-
end
|
|
914
|
-
|
|
915
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length < 1
|
|
916
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id_infoschema_save, the character length must be greater than or equal to 1.'
|
|
917
|
-
end
|
|
918
|
-
|
|
919
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
920
|
-
if @api_client.config.client_side_validation && asset_id !~ pattern
|
|
921
|
-
fail ArgumentError, "invalid value for 'asset_id' when calling AssetsApi.get_assets_by_id_infoschema_save, must conform to the pattern #{pattern}."
|
|
922
|
-
end
|
|
923
|
-
|
|
924
672
|
# resource path
|
|
925
|
-
local_var_path = '/companies/{company_id}/assets/{asset_id}/
|
|
673
|
+
local_var_path = '/companies/{company_id}/assets/{asset_id}/statistics'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
926
674
|
|
|
927
675
|
# query parameters
|
|
928
676
|
query_params = opts[:query_params] || {}
|
|
@@ -939,13 +687,13 @@ module SparteraApiSdk
|
|
|
939
687
|
post_body = opts[:debug_body]
|
|
940
688
|
|
|
941
689
|
# return_type
|
|
942
|
-
return_type = opts[:debug_return_type] || '
|
|
690
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
943
691
|
|
|
944
692
|
# auth_names
|
|
945
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
693
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
946
694
|
|
|
947
695
|
new_options = opts.merge(
|
|
948
|
-
:operation => :"AssetsApi.
|
|
696
|
+
:operation => :"AssetsApi.companies_company_id_assets_asset_id_statistics_get",
|
|
949
697
|
:header_params => header_params,
|
|
950
698
|
:query_params => query_params,
|
|
951
699
|
:form_params => form_params,
|
|
@@ -956,66 +704,40 @@ module SparteraApiSdk
|
|
|
956
704
|
|
|
957
705
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
958
706
|
if @api_client.config.debugging
|
|
959
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
707
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_statistics_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
960
708
|
end
|
|
961
709
|
return data, status_code, headers
|
|
962
710
|
end
|
|
963
711
|
|
|
964
|
-
#
|
|
965
|
-
# @param company_id [String]
|
|
966
|
-
# @param asset_id [String]
|
|
712
|
+
# Test out an Asset (on a subset of data)
|
|
713
|
+
# @param company_id [String]
|
|
714
|
+
# @param asset_id [String]
|
|
967
715
|
# @param [Hash] opts the optional parameters
|
|
968
|
-
# @return [
|
|
969
|
-
def
|
|
970
|
-
data, _status_code, _headers =
|
|
716
|
+
# @return [Object]
|
|
717
|
+
def companies_company_id_assets_asset_id_test_get(company_id, asset_id, opts = {})
|
|
718
|
+
data, _status_code, _headers = companies_company_id_assets_asset_id_test_get_with_http_info(company_id, asset_id, opts)
|
|
971
719
|
data
|
|
972
720
|
end
|
|
973
721
|
|
|
974
|
-
#
|
|
975
|
-
# @param company_id [String]
|
|
976
|
-
# @param asset_id [String]
|
|
722
|
+
# Test out an Asset (on a subset of data)
|
|
723
|
+
# @param company_id [String]
|
|
724
|
+
# @param asset_id [String]
|
|
977
725
|
# @param [Hash] opts the optional parameters
|
|
978
|
-
# @return [Array<(
|
|
979
|
-
def
|
|
726
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
727
|
+
def companies_company_id_assets_asset_id_test_get_with_http_info(company_id, asset_id, opts = {})
|
|
980
728
|
if @api_client.config.debugging
|
|
981
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
729
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_asset_id_test_get ...'
|
|
982
730
|
end
|
|
983
731
|
# verify the required parameter 'company_id' is set
|
|
984
732
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
985
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
986
|
-
end
|
|
987
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
988
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id_predicted_price, the character length must be smaller than or equal to 255.'
|
|
989
|
-
end
|
|
990
|
-
|
|
991
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
992
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id_predicted_price, the character length must be greater than or equal to 1.'
|
|
993
|
-
end
|
|
994
|
-
|
|
995
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
996
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
997
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.get_assets_by_id_predicted_price, must conform to the pattern #{pattern}."
|
|
733
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_asset_id_test_get"
|
|
998
734
|
end
|
|
999
|
-
|
|
1000
735
|
# verify the required parameter 'asset_id' is set
|
|
1001
736
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
1002
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
1003
|
-
end
|
|
1004
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length > 255
|
|
1005
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id_predicted_price, the character length must be smaller than or equal to 255.'
|
|
737
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.companies_company_id_assets_asset_id_test_get"
|
|
1006
738
|
end
|
|
1007
|
-
|
|
1008
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length < 1
|
|
1009
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id_predicted_price, the character length must be greater than or equal to 1.'
|
|
1010
|
-
end
|
|
1011
|
-
|
|
1012
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1013
|
-
if @api_client.config.client_side_validation && asset_id !~ pattern
|
|
1014
|
-
fail ArgumentError, "invalid value for 'asset_id' when calling AssetsApi.get_assets_by_id_predicted_price, must conform to the pattern #{pattern}."
|
|
1015
|
-
end
|
|
1016
|
-
|
|
1017
739
|
# resource path
|
|
1018
|
-
local_var_path = '/companies/{company_id}/assets/{asset_id}/
|
|
740
|
+
local_var_path = '/companies/{company_id}/assets/{asset_id}/test'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
1019
741
|
|
|
1020
742
|
# query parameters
|
|
1021
743
|
query_params = opts[:query_params] || {}
|
|
@@ -1032,13 +754,13 @@ module SparteraApiSdk
|
|
|
1032
754
|
post_body = opts[:debug_body]
|
|
1033
755
|
|
|
1034
756
|
# return_type
|
|
1035
|
-
return_type = opts[:debug_return_type] || '
|
|
757
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1036
758
|
|
|
1037
759
|
# auth_names
|
|
1038
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
760
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1039
761
|
|
|
1040
762
|
new_options = opts.merge(
|
|
1041
|
-
:operation => :"AssetsApi.
|
|
763
|
+
:operation => :"AssetsApi.companies_company_id_assets_asset_id_test_get",
|
|
1042
764
|
:header_params => header_params,
|
|
1043
765
|
:query_params => query_params,
|
|
1044
766
|
:form_params => form_params,
|
|
@@ -1049,47 +771,34 @@ module SparteraApiSdk
|
|
|
1049
771
|
|
|
1050
772
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1051
773
|
if @api_client.config.debugging
|
|
1052
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
774
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_asset_id_test_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1053
775
|
end
|
|
1054
776
|
return data, status_code, headers
|
|
1055
777
|
end
|
|
1056
778
|
|
|
1057
|
-
# Get
|
|
1058
|
-
# @param company_id [String]
|
|
779
|
+
# Get all assets for a specific company
|
|
780
|
+
# @param company_id [String]
|
|
1059
781
|
# @param [Hash] opts the optional parameters
|
|
1060
|
-
# @return [
|
|
1061
|
-
def
|
|
1062
|
-
data, _status_code, _headers =
|
|
782
|
+
# @return [Object]
|
|
783
|
+
def companies_company_id_assets_get(company_id, opts = {})
|
|
784
|
+
data, _status_code, _headers = companies_company_id_assets_get_with_http_info(company_id, opts)
|
|
1063
785
|
data
|
|
1064
786
|
end
|
|
1065
787
|
|
|
1066
|
-
# Get
|
|
1067
|
-
# @param company_id [String]
|
|
788
|
+
# Get all assets for a specific company
|
|
789
|
+
# @param company_id [String]
|
|
1068
790
|
# @param [Hash] opts the optional parameters
|
|
1069
|
-
# @return [Array<(
|
|
1070
|
-
def
|
|
791
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
792
|
+
def companies_company_id_assets_get_with_http_info(company_id, opts = {})
|
|
1071
793
|
if @api_client.config.debugging
|
|
1072
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
794
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_get ...'
|
|
1073
795
|
end
|
|
1074
796
|
# verify the required parameter 'company_id' is set
|
|
1075
797
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
1076
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
1077
|
-
end
|
|
1078
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
1079
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id_statistics, the character length must be smaller than or equal to 255.'
|
|
1080
|
-
end
|
|
1081
|
-
|
|
1082
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
1083
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id_statistics, the character length must be greater than or equal to 1.'
|
|
1084
|
-
end
|
|
1085
|
-
|
|
1086
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1087
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
1088
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.get_assets_by_id_statistics, must conform to the pattern #{pattern}."
|
|
798
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_get"
|
|
1089
799
|
end
|
|
1090
|
-
|
|
1091
800
|
# resource path
|
|
1092
|
-
local_var_path = '/companies/{company_id}/assets
|
|
801
|
+
local_var_path = '/companies/{company_id}/assets'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
1093
802
|
|
|
1094
803
|
# query parameters
|
|
1095
804
|
query_params = opts[:query_params] || {}
|
|
@@ -1106,13 +815,13 @@ module SparteraApiSdk
|
|
|
1106
815
|
post_body = opts[:debug_body]
|
|
1107
816
|
|
|
1108
817
|
# return_type
|
|
1109
|
-
return_type = opts[:debug_return_type] || '
|
|
818
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1110
819
|
|
|
1111
820
|
# auth_names
|
|
1112
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
821
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1113
822
|
|
|
1114
823
|
new_options = opts.merge(
|
|
1115
|
-
:operation => :"AssetsApi.
|
|
824
|
+
:operation => :"AssetsApi.companies_company_id_assets_get",
|
|
1116
825
|
:header_params => header_params,
|
|
1117
826
|
:query_params => query_params,
|
|
1118
827
|
:form_params => form_params,
|
|
@@ -1123,66 +832,40 @@ module SparteraApiSdk
|
|
|
1123
832
|
|
|
1124
833
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1125
834
|
if @api_client.config.debugging
|
|
1126
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
835
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1127
836
|
end
|
|
1128
837
|
return data, status_code, headers
|
|
1129
838
|
end
|
|
1130
839
|
|
|
1131
|
-
#
|
|
1132
|
-
# @param company_id [String]
|
|
1133
|
-
# @param
|
|
840
|
+
# Create a new asset
|
|
841
|
+
# @param company_id [String]
|
|
842
|
+
# @param asset [Asset]
|
|
1134
843
|
# @param [Hash] opts the optional parameters
|
|
1135
|
-
# @return [
|
|
1136
|
-
def
|
|
1137
|
-
data, _status_code, _headers =
|
|
844
|
+
# @return [Object]
|
|
845
|
+
def companies_company_id_assets_post(company_id, asset, opts = {})
|
|
846
|
+
data, _status_code, _headers = companies_company_id_assets_post_with_http_info(company_id, asset, opts)
|
|
1138
847
|
data
|
|
1139
848
|
end
|
|
1140
849
|
|
|
1141
|
-
#
|
|
1142
|
-
# @param company_id [String]
|
|
1143
|
-
# @param
|
|
850
|
+
# Create a new asset
|
|
851
|
+
# @param company_id [String]
|
|
852
|
+
# @param asset [Asset]
|
|
1144
853
|
# @param [Hash] opts the optional parameters
|
|
1145
|
-
# @return [Array<(
|
|
1146
|
-
def
|
|
854
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
855
|
+
def companies_company_id_assets_post_with_http_info(company_id, asset, opts = {})
|
|
1147
856
|
if @api_client.config.debugging
|
|
1148
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
857
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_post ...'
|
|
1149
858
|
end
|
|
1150
859
|
# verify the required parameter 'company_id' is set
|
|
1151
860
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
1152
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
861
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_post"
|
|
1153
862
|
end
|
|
1154
|
-
|
|
1155
|
-
|
|
863
|
+
# verify the required parameter 'asset' is set
|
|
864
|
+
if @api_client.config.client_side_validation && asset.nil?
|
|
865
|
+
fail ArgumentError, "Missing the required parameter 'asset' when calling AssetsApi.companies_company_id_assets_post"
|
|
1156
866
|
end
|
|
1157
|
-
|
|
1158
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
1159
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id_test, the character length must be greater than or equal to 1.'
|
|
1160
|
-
end
|
|
1161
|
-
|
|
1162
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1163
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
1164
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.get_assets_by_id_test, must conform to the pattern #{pattern}."
|
|
1165
|
-
end
|
|
1166
|
-
|
|
1167
|
-
# verify the required parameter 'asset_id' is set
|
|
1168
|
-
if @api_client.config.client_side_validation && asset_id.nil?
|
|
1169
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.get_assets_by_id_test"
|
|
1170
|
-
end
|
|
1171
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length > 255
|
|
1172
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id_test, the character length must be smaller than or equal to 255.'
|
|
1173
|
-
end
|
|
1174
|
-
|
|
1175
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length < 1
|
|
1176
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id_test, the character length must be greater than or equal to 1.'
|
|
1177
|
-
end
|
|
1178
|
-
|
|
1179
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1180
|
-
if @api_client.config.client_side_validation && asset_id !~ pattern
|
|
1181
|
-
fail ArgumentError, "invalid value for 'asset_id' when calling AssetsApi.get_assets_by_id_test, must conform to the pattern #{pattern}."
|
|
1182
|
-
end
|
|
1183
|
-
|
|
1184
867
|
# resource path
|
|
1185
|
-
local_var_path = '/companies/{company_id}/assets
|
|
868
|
+
local_var_path = '/companies/{company_id}/assets'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
1186
869
|
|
|
1187
870
|
# query parameters
|
|
1188
871
|
query_params = opts[:query_params] || {}
|
|
@@ -1191,21 +874,26 @@ module SparteraApiSdk
|
|
|
1191
874
|
header_params = opts[:header_params] || {}
|
|
1192
875
|
# HTTP header 'Accept' (if needed)
|
|
1193
876
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
877
|
+
# HTTP header 'Content-Type'
|
|
878
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
879
|
+
if !content_type.nil?
|
|
880
|
+
header_params['Content-Type'] = content_type
|
|
881
|
+
end
|
|
1194
882
|
|
|
1195
883
|
# form parameters
|
|
1196
884
|
form_params = opts[:form_params] || {}
|
|
1197
885
|
|
|
1198
886
|
# http body (model)
|
|
1199
|
-
post_body = opts[:debug_body]
|
|
887
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(asset)
|
|
1200
888
|
|
|
1201
889
|
# return_type
|
|
1202
|
-
return_type = opts[:debug_return_type] || '
|
|
890
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1203
891
|
|
|
1204
892
|
# auth_names
|
|
1205
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
893
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1206
894
|
|
|
1207
895
|
new_options = opts.merge(
|
|
1208
|
-
:operation => :"AssetsApi.
|
|
896
|
+
:operation => :"AssetsApi.companies_company_id_assets_post",
|
|
1209
897
|
:header_params => header_params,
|
|
1210
898
|
:query_params => query_params,
|
|
1211
899
|
:form_params => form_params,
|
|
@@ -1214,111 +902,70 @@ module SparteraApiSdk
|
|
|
1214
902
|
:return_type => return_type
|
|
1215
903
|
)
|
|
1216
904
|
|
|
1217
|
-
data, status_code, headers = @api_client.call_api(:
|
|
905
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1218
906
|
if @api_client.config.debugging
|
|
1219
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
907
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1220
908
|
end
|
|
1221
909
|
return data, status_code, headers
|
|
1222
910
|
end
|
|
1223
911
|
|
|
1224
|
-
# Get
|
|
1225
|
-
# @param company_id [String]
|
|
912
|
+
# Get recommendations for multiple assets in a single request. Useful for pre-loading recommendations.
|
|
913
|
+
# @param company_id [String]
|
|
914
|
+
# @param asset [Asset]
|
|
1226
915
|
# @param [Hash] opts the optional parameters
|
|
1227
|
-
# @
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
1231
|
-
# @option opts [String] :search Search term to filter results
|
|
1232
|
-
# @return [ListAssets200Response]
|
|
1233
|
-
def list_assets(company_id, opts = {})
|
|
1234
|
-
data, _status_code, _headers = list_assets_with_http_info(company_id, opts)
|
|
916
|
+
# @return [Object]
|
|
917
|
+
def companies_company_id_assets_recommendations_bulk_post(company_id, asset, opts = {})
|
|
918
|
+
data, _status_code, _headers = companies_company_id_assets_recommendations_bulk_post_with_http_info(company_id, asset, opts)
|
|
1235
919
|
data
|
|
1236
920
|
end
|
|
1237
921
|
|
|
1238
|
-
# Get
|
|
1239
|
-
# @param company_id [String]
|
|
922
|
+
# Get recommendations for multiple assets in a single request. Useful for pre-loading recommendations.
|
|
923
|
+
# @param company_id [String]
|
|
924
|
+
# @param asset [Asset]
|
|
1240
925
|
# @param [Hash] opts the optional parameters
|
|
1241
|
-
# @
|
|
1242
|
-
|
|
1243
|
-
# @option opts [String] :sort_by Field to sort by
|
|
1244
|
-
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
1245
|
-
# @option opts [String] :search Search term to filter results
|
|
1246
|
-
# @return [Array<(ListAssets200Response, Integer, Hash)>] ListAssets200Response data, response status code and response headers
|
|
1247
|
-
def list_assets_with_http_info(company_id, opts = {})
|
|
926
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
927
|
+
def companies_company_id_assets_recommendations_bulk_post_with_http_info(company_id, asset, opts = {})
|
|
1248
928
|
if @api_client.config.debugging
|
|
1249
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
929
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_recommendations_bulk_post ...'
|
|
1250
930
|
end
|
|
1251
931
|
# verify the required parameter 'company_id' is set
|
|
1252
932
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
1253
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
1254
|
-
end
|
|
1255
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
1256
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.list_assets, the character length must be smaller than or equal to 255.'
|
|
1257
|
-
end
|
|
1258
|
-
|
|
1259
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
1260
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.list_assets, the character length must be greater than or equal to 1.'
|
|
1261
|
-
end
|
|
1262
|
-
|
|
1263
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1264
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
1265
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.list_assets, must conform to the pattern #{pattern}."
|
|
1266
|
-
end
|
|
1267
|
-
|
|
1268
|
-
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
1269
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling AssetsApi.list_assets, must be greater than or equal to 1.'
|
|
1270
|
-
end
|
|
1271
|
-
|
|
1272
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
1273
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AssetsApi.list_assets, must be smaller than or equal to 100.'
|
|
1274
|
-
end
|
|
1275
|
-
|
|
1276
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1277
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AssetsApi.list_assets, must be greater than or equal to 1.'
|
|
933
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_recommendations_bulk_post"
|
|
1278
934
|
end
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
1283
|
-
end
|
|
1284
|
-
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
1285
|
-
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling AssetsApi.list_assets, the character length must be smaller than or equal to 255.'
|
|
1286
|
-
end
|
|
1287
|
-
|
|
1288
|
-
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
1289
|
-
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling AssetsApi.list_assets, the character length must be greater than or equal to 1.'
|
|
935
|
+
# verify the required parameter 'asset' is set
|
|
936
|
+
if @api_client.config.client_side_validation && asset.nil?
|
|
937
|
+
fail ArgumentError, "Missing the required parameter 'asset' when calling AssetsApi.companies_company_id_assets_recommendations_bulk_post"
|
|
1290
938
|
end
|
|
1291
|
-
|
|
1292
939
|
# resource path
|
|
1293
|
-
local_var_path = '/companies/{company_id}/assets'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
940
|
+
local_var_path = '/companies/{company_id}/assets/recommendations/bulk'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
1294
941
|
|
|
1295
942
|
# query parameters
|
|
1296
943
|
query_params = opts[:query_params] || {}
|
|
1297
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
1298
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1299
|
-
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
1300
|
-
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
1301
|
-
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
1302
944
|
|
|
1303
945
|
# header parameters
|
|
1304
946
|
header_params = opts[:header_params] || {}
|
|
1305
947
|
# HTTP header 'Accept' (if needed)
|
|
1306
948
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
949
|
+
# HTTP header 'Content-Type'
|
|
950
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
951
|
+
if !content_type.nil?
|
|
952
|
+
header_params['Content-Type'] = content_type
|
|
953
|
+
end
|
|
1307
954
|
|
|
1308
955
|
# form parameters
|
|
1309
956
|
form_params = opts[:form_params] || {}
|
|
1310
957
|
|
|
1311
958
|
# http body (model)
|
|
1312
|
-
post_body = opts[:debug_body]
|
|
959
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(asset)
|
|
1313
960
|
|
|
1314
961
|
# return_type
|
|
1315
|
-
return_type = opts[:debug_return_type] || '
|
|
962
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1316
963
|
|
|
1317
964
|
# auth_names
|
|
1318
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
965
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1319
966
|
|
|
1320
967
|
new_options = opts.merge(
|
|
1321
|
-
:operation => :"AssetsApi.
|
|
968
|
+
:operation => :"AssetsApi.companies_company_id_assets_recommendations_bulk_post",
|
|
1322
969
|
:header_params => header_params,
|
|
1323
970
|
:query_params => query_params,
|
|
1324
971
|
:form_params => form_params,
|
|
@@ -1327,91 +974,39 @@ module SparteraApiSdk
|
|
|
1327
974
|
:return_type => return_type
|
|
1328
975
|
)
|
|
1329
976
|
|
|
1330
|
-
data, status_code, headers = @api_client.call_api(:
|
|
977
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1331
978
|
if @api_client.config.debugging
|
|
1332
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
979
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_recommendations_bulk_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1333
980
|
end
|
|
1334
981
|
return data, status_code, headers
|
|
1335
982
|
end
|
|
1336
983
|
|
|
1337
|
-
#
|
|
1338
|
-
# @param company_id [String]
|
|
984
|
+
# Health check for the recommendations system with sample data and performance metrics.
|
|
985
|
+
# @param company_id [String]
|
|
1339
986
|
# @param [Hash] opts the optional parameters
|
|
1340
|
-
# @
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
1344
|
-
# @option opts [String] :search Search term to filter results
|
|
1345
|
-
# @return [ListAssets200Response]
|
|
1346
|
-
def list_assets_search(company_id, opts = {})
|
|
1347
|
-
data, _status_code, _headers = list_assets_search_with_http_info(company_id, opts)
|
|
987
|
+
# @return [Object]
|
|
988
|
+
def companies_company_id_assets_recommendations_health_get(company_id, opts = {})
|
|
989
|
+
data, _status_code, _headers = companies_company_id_assets_recommendations_health_get_with_http_info(company_id, opts)
|
|
1348
990
|
data
|
|
1349
991
|
end
|
|
1350
992
|
|
|
1351
|
-
#
|
|
1352
|
-
# @param company_id [String]
|
|
993
|
+
# Health check for the recommendations system with sample data and performance metrics.
|
|
994
|
+
# @param company_id [String]
|
|
1353
995
|
# @param [Hash] opts the optional parameters
|
|
1354
|
-
# @
|
|
1355
|
-
|
|
1356
|
-
# @option opts [String] :sort_by Field to sort by
|
|
1357
|
-
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
1358
|
-
# @option opts [String] :search Search term to filter results
|
|
1359
|
-
# @return [Array<(ListAssets200Response, Integer, Hash)>] ListAssets200Response data, response status code and response headers
|
|
1360
|
-
def list_assets_search_with_http_info(company_id, opts = {})
|
|
996
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
997
|
+
def companies_company_id_assets_recommendations_health_get_with_http_info(company_id, opts = {})
|
|
1361
998
|
if @api_client.config.debugging
|
|
1362
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
999
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_recommendations_health_get ...'
|
|
1363
1000
|
end
|
|
1364
1001
|
# verify the required parameter 'company_id' is set
|
|
1365
1002
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
1366
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
1367
|
-
end
|
|
1368
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
1369
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.list_assets_search, the character length must be smaller than or equal to 255.'
|
|
1370
|
-
end
|
|
1371
|
-
|
|
1372
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
1373
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.list_assets_search, the character length must be greater than or equal to 1.'
|
|
1374
|
-
end
|
|
1375
|
-
|
|
1376
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1377
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
1378
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.list_assets_search, must conform to the pattern #{pattern}."
|
|
1379
|
-
end
|
|
1380
|
-
|
|
1381
|
-
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
1382
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling AssetsApi.list_assets_search, must be greater than or equal to 1.'
|
|
1383
|
-
end
|
|
1384
|
-
|
|
1385
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
1386
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AssetsApi.list_assets_search, must be smaller than or equal to 100.'
|
|
1003
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_recommendations_health_get"
|
|
1387
1004
|
end
|
|
1388
|
-
|
|
1389
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1390
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AssetsApi.list_assets_search, must be greater than or equal to 1.'
|
|
1391
|
-
end
|
|
1392
|
-
|
|
1393
|
-
allowable_values = ["asc", "desc"]
|
|
1394
|
-
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
1395
|
-
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
1396
|
-
end
|
|
1397
|
-
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
1398
|
-
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling AssetsApi.list_assets_search, the character length must be smaller than or equal to 255.'
|
|
1399
|
-
end
|
|
1400
|
-
|
|
1401
|
-
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
1402
|
-
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling AssetsApi.list_assets_search, the character length must be greater than or equal to 1.'
|
|
1403
|
-
end
|
|
1404
|
-
|
|
1405
1005
|
# resource path
|
|
1406
|
-
local_var_path = '/companies/{company_id}/assets/
|
|
1006
|
+
local_var_path = '/companies/{company_id}/assets/recommendations/health'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
1407
1007
|
|
|
1408
1008
|
# query parameters
|
|
1409
1009
|
query_params = opts[:query_params] || {}
|
|
1410
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
1411
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1412
|
-
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
1413
|
-
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
1414
|
-
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
1415
1010
|
|
|
1416
1011
|
# header parameters
|
|
1417
1012
|
header_params = opts[:header_params] || {}
|
|
@@ -1425,13 +1020,13 @@ module SparteraApiSdk
|
|
|
1425
1020
|
post_body = opts[:debug_body]
|
|
1426
1021
|
|
|
1427
1022
|
# return_type
|
|
1428
|
-
return_type = opts[:debug_return_type] || '
|
|
1023
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1429
1024
|
|
|
1430
1025
|
# auth_names
|
|
1431
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
1026
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1432
1027
|
|
|
1433
1028
|
new_options = opts.merge(
|
|
1434
|
-
:operation => :"AssetsApi.
|
|
1029
|
+
:operation => :"AssetsApi.companies_company_id_assets_recommendations_health_get",
|
|
1435
1030
|
:header_params => header_params,
|
|
1436
1031
|
:query_params => query_params,
|
|
1437
1032
|
:form_params => form_params,
|
|
@@ -1442,72 +1037,34 @@ module SparteraApiSdk
|
|
|
1442
1037
|
|
|
1443
1038
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1444
1039
|
if @api_client.config.debugging
|
|
1445
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
1040
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_recommendations_health_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1446
1041
|
end
|
|
1447
1042
|
return data, status_code, headers
|
|
1448
1043
|
end
|
|
1449
1044
|
|
|
1450
|
-
#
|
|
1451
|
-
# @param company_id [String]
|
|
1452
|
-
# @param asset_id [String] Unique identifier for the Asset
|
|
1453
|
-
# @param assets_update [AssetsUpdate]
|
|
1045
|
+
# Get statistics for all assets the user has access to
|
|
1046
|
+
# @param company_id [String]
|
|
1454
1047
|
# @param [Hash] opts the optional parameters
|
|
1455
|
-
# @return [
|
|
1456
|
-
def
|
|
1457
|
-
data, _status_code, _headers =
|
|
1048
|
+
# @return [Object]
|
|
1049
|
+
def companies_company_id_assets_statistics_get(company_id, opts = {})
|
|
1050
|
+
data, _status_code, _headers = companies_company_id_assets_statistics_get_with_http_info(company_id, opts)
|
|
1458
1051
|
data
|
|
1459
1052
|
end
|
|
1460
1053
|
|
|
1461
|
-
#
|
|
1462
|
-
# @param company_id [String]
|
|
1463
|
-
# @param asset_id [String] Unique identifier for the Asset
|
|
1464
|
-
# @param assets_update [AssetsUpdate]
|
|
1054
|
+
# Get statistics for all assets the user has access to
|
|
1055
|
+
# @param company_id [String]
|
|
1465
1056
|
# @param [Hash] opts the optional parameters
|
|
1466
|
-
# @return [Array<(
|
|
1467
|
-
def
|
|
1057
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
1058
|
+
def companies_company_id_assets_statistics_get_with_http_info(company_id, opts = {})
|
|
1468
1059
|
if @api_client.config.debugging
|
|
1469
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
1060
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.companies_company_id_assets_statistics_get ...'
|
|
1470
1061
|
end
|
|
1471
1062
|
# verify the required parameter 'company_id' is set
|
|
1472
1063
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
1473
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
1474
|
-
end
|
|
1475
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
1476
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.update_assets, the character length must be smaller than or equal to 255.'
|
|
1477
|
-
end
|
|
1478
|
-
|
|
1479
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
1480
|
-
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.update_assets, the character length must be greater than or equal to 1.'
|
|
1481
|
-
end
|
|
1482
|
-
|
|
1483
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1484
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
1485
|
-
fail ArgumentError, "invalid value for 'company_id' when calling AssetsApi.update_assets, must conform to the pattern #{pattern}."
|
|
1486
|
-
end
|
|
1487
|
-
|
|
1488
|
-
# verify the required parameter 'asset_id' is set
|
|
1489
|
-
if @api_client.config.client_side_validation && asset_id.nil?
|
|
1490
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.update_assets"
|
|
1491
|
-
end
|
|
1492
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length > 255
|
|
1493
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.update_assets, the character length must be smaller than or equal to 255.'
|
|
1494
|
-
end
|
|
1495
|
-
|
|
1496
|
-
if @api_client.config.client_side_validation && asset_id.to_s.length < 1
|
|
1497
|
-
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.update_assets, the character length must be greater than or equal to 1.'
|
|
1498
|
-
end
|
|
1499
|
-
|
|
1500
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1501
|
-
if @api_client.config.client_side_validation && asset_id !~ pattern
|
|
1502
|
-
fail ArgumentError, "invalid value for 'asset_id' when calling AssetsApi.update_assets, must conform to the pattern #{pattern}."
|
|
1503
|
-
end
|
|
1504
|
-
|
|
1505
|
-
# verify the required parameter 'assets_update' is set
|
|
1506
|
-
if @api_client.config.client_side_validation && assets_update.nil?
|
|
1507
|
-
fail ArgumentError, "Missing the required parameter 'assets_update' when calling AssetsApi.update_assets"
|
|
1064
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.companies_company_id_assets_statistics_get"
|
|
1508
1065
|
end
|
|
1509
1066
|
# resource path
|
|
1510
|
-
local_var_path = '/companies/{company_id}/assets/
|
|
1067
|
+
local_var_path = '/companies/{company_id}/assets/statistics'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
1511
1068
|
|
|
1512
1069
|
# query parameters
|
|
1513
1070
|
query_params = opts[:query_params] || {}
|
|
@@ -1516,26 +1073,21 @@ module SparteraApiSdk
|
|
|
1516
1073
|
header_params = opts[:header_params] || {}
|
|
1517
1074
|
# HTTP header 'Accept' (if needed)
|
|
1518
1075
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1519
|
-
# HTTP header 'Content-Type'
|
|
1520
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1521
|
-
if !content_type.nil?
|
|
1522
|
-
header_params['Content-Type'] = content_type
|
|
1523
|
-
end
|
|
1524
1076
|
|
|
1525
1077
|
# form parameters
|
|
1526
1078
|
form_params = opts[:form_params] || {}
|
|
1527
1079
|
|
|
1528
1080
|
# http body (model)
|
|
1529
|
-
post_body = opts[:debug_body]
|
|
1081
|
+
post_body = opts[:debug_body]
|
|
1530
1082
|
|
|
1531
1083
|
# return_type
|
|
1532
|
-
return_type = opts[:debug_return_type] || '
|
|
1084
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1533
1085
|
|
|
1534
1086
|
# auth_names
|
|
1535
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
1087
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1536
1088
|
|
|
1537
1089
|
new_options = opts.merge(
|
|
1538
|
-
:operation => :"AssetsApi.
|
|
1090
|
+
:operation => :"AssetsApi.companies_company_id_assets_statistics_get",
|
|
1539
1091
|
:header_params => header_params,
|
|
1540
1092
|
:query_params => query_params,
|
|
1541
1093
|
:form_params => form_params,
|
|
@@ -1544,9 +1096,9 @@ module SparteraApiSdk
|
|
|
1544
1096
|
:return_type => return_type
|
|
1545
1097
|
)
|
|
1546
1098
|
|
|
1547
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1099
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1548
1100
|
if @api_client.config.debugging
|
|
1549
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
1101
|
+
@api_client.config.logger.debug "API called: AssetsApi#companies_company_id_assets_statistics_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1550
1102
|
end
|
|
1551
1103
|
return data, status_code, headers
|
|
1552
1104
|
end
|