spartera_api_sdk 1.0.77 → 1.0.78
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/CHANGELOG.md +5 -0
- data/Gemfile +9 -0
- data/README.md +333 -324
- data/Rakefile +10 -0
- data/docs/APIKeysApi.md +150 -126
- data/docs/Alerts.md +13 -13
- data/docs/AlertsApi.md +139 -139
- data/docs/AlertsInput.md +7 -7
- data/docs/AlertsUpdate.md +7 -7
- data/docs/ApiKeys.md +19 -11
- data/docs/ApiKeysInput.md +13 -5
- data/docs/ApiKeysUpdate.md +13 -5
- data/docs/AssetPriceHistory.md +14 -12
- data/docs/AssetPriceHistoryApi.md +164 -164
- data/docs/AssetPriceHistoryInput.md +8 -6
- data/docs/AssetPriceHistoryUpdate.md +8 -6
- data/docs/AssetUsecases.md +28 -0
- data/docs/AssetUsecasesApi.md +157 -0
- data/docs/Assets.md +113 -83
- data/docs/AssetsApi.md +534 -206
- data/docs/AssetsInput.md +100 -70
- data/docs/AssetsUpdate.md +100 -70
- data/docs/CloudProviders.md +12 -12
- data/docs/CloudProvidersApi.md +44 -31
- data/docs/CloudProvidersInput.md +6 -6
- data/docs/CloudProvidersUpdate.md +6 -6
- data/docs/Companies.md +27 -23
- data/docs/CompaniesApi.md +313 -147
- data/docs/CompaniesInput.md +21 -17
- data/docs/CompaniesUpdate.md +21 -17
- data/docs/Connections.md +22 -22
- data/docs/ConnectionsApi.md +149 -125
- data/docs/ConnectionsInput.md +16 -16
- data/docs/ConnectionsUpdate.md +16 -16
- data/docs/CreateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsPost200ResponseData.md → CreateAlerts200ResponseData.md} +2 -2
- data/docs/CreateApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysPost200ResponseData.md → CreateApiKeys200ResponseData.md} +2 -2
- data/docs/{CompaniesCompanyIdPatch200Response.md → CreateAssetPriceHistory200Response.md} +3 -3
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesPost200ResponseData.md → CreateAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/CreateAssetsAnalyze200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsPost200ResponseData.md → CreateAssetsAnalyze200ResponseData.md} +2 -2
- data/docs/CreateConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsPost200ResponseData.md → CreateConnections200ResponseData.md} +2 -2
- data/docs/CreateEndpoints200Response.md +20 -0
- data/docs/CreateEndpoints200ResponseData.md +18 -0
- data/docs/CreateFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesPost200ResponseData.md → CreateFavorites200ResponseData.md} +2 -2
- data/docs/CreatePostgenIntegrations200Response.md +20 -0
- data/docs/CreatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/CreatePosts200Response.md +20 -0
- data/docs/CreatePosts200ResponseData.md +18 -0
- data/docs/CreateUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersPost200ResponseData.md → CreateUsers200ResponseData.md} +2 -2
- data/docs/DeleteAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200ResponseData.md → DeleteAlerts200ResponseData.md} +2 -2
- data/docs/DeleteApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdDelete200ResponseData.md → DeleteApiKeys200ResponseData.md} +2 -2
- data/docs/DeleteAssetPriceHistory200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200ResponseData.md → DeleteAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/DeleteAssets200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdDelete200ResponseData.md → DeleteAssets200ResponseData.md} +2 -2
- data/docs/DeleteConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdDelete200ResponseData.md → DeleteConnections200ResponseData.md} +2 -2
- data/docs/DeleteEndpoints200Response.md +20 -0
- data/docs/DeleteEndpoints200ResponseData.md +18 -0
- data/docs/DeleteFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200ResponseData.md → DeleteFavorites200ResponseData.md} +2 -2
- data/docs/DeletePostgenIntegrations200Response.md +20 -0
- data/docs/DeletePostgenIntegrations200ResponseData.md +18 -0
- data/docs/DeletePosts200Response.md +20 -0
- data/docs/DeletePosts200ResponseData.md +18 -0
- data/docs/DeleteUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdDelete200ResponseData.md → DeleteUsers200ResponseData.md} +2 -2
- data/docs/Endpoints.md +80 -0
- data/docs/EndpointsApi.md +1043 -0
- data/docs/EndpointsInput.md +78 -0
- data/docs/EndpointsUpdate.md +78 -0
- data/docs/Favorites.md +15 -15
- data/docs/FavoritesApi.md +159 -159
- data/docs/FavoritesInput.md +9 -9
- data/docs/FavoritesUpdate.md +9 -9
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAssetAssetIdGet200Response.md → GetAlertsById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdGet200Response.md → GetApiKeysById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdGet200Response.md → GetAssetPriceHistoryById200Response.md} +2 -2
- data/docs/GetAssetUsecasesById200Response.md +20 -0
- data/docs/{AnalyzeCompanyHandleAssetsAssetSlugGet200Response.md → GetAssetsByIdAnalyze200Response.md} +2 -2
- data/docs/{CloudProvidersProviderIdGet200Response.md → GetCloudProvidersById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdGet200Response.md → GetCompaniesById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdGet200Response.md → GetConnectionsById200Response.md} +2 -2
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesCategoryCategoryGet200Response.md → GetFavoritesById200Response.md} +2 -2
- data/docs/GetIndustriesById200Response.md +20 -0
- data/docs/{JobFunctionsFunctionIdGet200Response.md → GetJobFunctionsById200Response.md} +2 -2
- data/docs/GetPostgenIntegrationsById200Response.md +20 -0
- data/docs/GetPostsById200Response.md +20 -0
- data/docs/GetStorageEnginesById200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdGet200Response.md → GetUsersById200Response.md} +2 -2
- data/docs/Industries.md +32 -0
- data/docs/IndustriesApi.md +237 -0
- data/docs/InlineObject4.md +20 -0
- data/docs/InlineObject5.md +20 -0
- data/docs/InlineObject6.md +22 -0
- data/docs/InlineObject7.md +20 -0
- data/docs/JobFunctions.md +8 -8
- data/docs/JobFunctionsApi.md +38 -25
- data/docs/JobFunctionsInput.md +2 -2
- data/docs/JobFunctionsUpdate.md +2 -2
- data/docs/{CompaniesCompanyIdApiKeysGet200Response.md → ListApiKeys200Response.md} +2 -2
- data/docs/ListAssetUsecases200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsGet200Response.md → ListAssets200Response.md} +2 -2
- data/docs/{CloudProvidersGet200Response.md → ListCloudProviders200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdAnalyticsAssetsGet200Response.md → ListCompaniesAnalyticsAssets200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdConnectionsGet200Response.md → ListConnections200Response.md} +2 -2
- data/docs/ListEndpoints200Response.md +20 -0
- data/docs/ListIndustries200Response.md +20 -0
- data/docs/{JobFunctionsGet200Response.md → ListJobFunctions200Response.md} +2 -2
- data/docs/ListPostgenIntegrations200Response.md +20 -0
- data/docs/ListPosts200Response.md +20 -0
- data/docs/ListStorageEngines200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersGet200Response.md → ListUsers200Response.md} +2 -2
- data/docs/PostPublications.md +40 -0
- data/docs/PostPublicationsInput.md +34 -0
- data/docs/PostPublicationsUpdate.md +34 -0
- data/docs/PostgenIntegrations.md +36 -0
- data/docs/PostgenIntegrationsApi.md +463 -0
- data/docs/PostgenIntegrationsInput.md +30 -0
- data/docs/PostgenIntegrationsUpdate.md +30 -0
- data/docs/Posts.md +68 -0
- data/docs/PostsApi.md +843 -0
- data/docs/PostsInput.md +62 -0
- data/docs/PostsUpdate.md +62 -0
- data/docs/StorageEngines.md +32 -0
- data/docs/StorageEnginesApi.md +40 -28
- data/docs/UpdateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200ResponseData.md → UpdateAlerts200ResponseData.md} +2 -2
- data/docs/UpdateApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdPatch200ResponseData.md → UpdateApiKeys200ResponseData.md} +2 -2
- data/docs/UpdateAssetPriceHistory200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200ResponseData.md → UpdateAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/UpdateAssets200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPatch200ResponseData.md → UpdateAssets200ResponseData.md} +2 -2
- data/docs/UpdateCompanies200Response.md +20 -0
- data/docs/{CompaniesCompanyIdPatch200ResponseData.md → UpdateCompanies200ResponseData.md} +2 -2
- data/docs/UpdateConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdPatch200ResponseData.md → UpdateConnections200ResponseData.md} +2 -2
- data/docs/UpdateEndpoints200Response.md +20 -0
- data/docs/UpdateEndpoints200ResponseData.md +18 -0
- data/docs/UpdateFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200ResponseData.md → UpdateFavorites200ResponseData.md} +2 -2
- data/docs/UpdatePostgenIntegrations200Response.md +20 -0
- data/docs/UpdatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/UpdatePosts200Response.md +20 -0
- data/docs/UpdatePosts200ResponseData.md +18 -0
- data/docs/UpdateUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdPatch200ResponseData.md → UpdateUsers200ResponseData.md} +2 -2
- data/docs/Users.md +20 -16
- data/docs/UsersApi.md +302 -97
- data/docs/UsersInput.md +14 -10
- data/docs/UsersUpdate.md +14 -10
- data/git_push.sh +57 -0
- data/lib/spartera_api_sdk/api/alerts_api.rb +414 -167
- data/lib/spartera_api_sdk/api/api_keys_api.rb +386 -152
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +454 -207
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +190 -0
- data/lib/spartera_api_sdk/api/assets_api.rb +949 -225
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +83 -31
- data/lib/spartera_api_sdk/api/companies_api.rb +651 -148
- data/lib/spartera_api_sdk/api/connections_api.rb +376 -142
- data/lib/spartera_api_sdk/api/endpoints_api.rb +1416 -0
- data/lib/spartera_api_sdk/api/favorites_api.rb +456 -196
- data/lib/spartera_api_sdk/api/industries_api.rb +284 -0
- data/lib/spartera_api_sdk/api/job_functions_api.rb +75 -23
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +634 -0
- data/lib/spartera_api_sdk/api/posts_api.rb +1190 -0
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +107 -29
- data/lib/spartera_api_sdk/api/users_api.rb +574 -105
- data/lib/spartera_api_sdk/api_client.rb +8 -4
- data/lib/spartera_api_sdk/api_error.rb +2 -2
- data/lib/spartera_api_sdk/api_model_base.rb +88 -0
- data/lib/spartera_api_sdk/configuration.rb +2 -2
- data/lib/spartera_api_sdk/models/alerts.rb +10 -77
- data/lib/spartera_api_sdk/models/alerts_input.rb +6 -76
- data/lib/spartera_api_sdk/models/alerts_update.rb +6 -76
- data/lib/spartera_api_sdk/models/api_keys.rb +82 -78
- data/lib/spartera_api_sdk/models/api_keys_input.rb +44 -77
- data/lib/spartera_api_sdk/models/api_keys_update.rb +44 -77
- data/lib/spartera_api_sdk/models/asset_price_history.rb +21 -96
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +17 -95
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +17 -78
- data/lib/spartera_api_sdk/models/asset_usecases.rb +216 -0
- data/lib/spartera_api_sdk/models/assets.rb +262 -93
- data/lib/spartera_api_sdk/models/assets_input.rb +238 -91
- data/lib/spartera_api_sdk/models/assets_update.rb +238 -91
- data/lib/spartera_api_sdk/models/cloud_providers.rb +10 -77
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +6 -76
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +6 -76
- data/lib/spartera_api_sdk/models/companies.rb +72 -81
- data/lib/spartera_api_sdk/models/companies_input.rb +68 -80
- data/lib/spartera_api_sdk/models/companies_update.rb +68 -80
- data/lib/spartera_api_sdk/models/connections.rb +15 -78
- data/lib/spartera_api_sdk/models/connections_input.rb +11 -77
- data/lib/spartera_api_sdk/models/connections_update.rb +11 -77
- data/lib/spartera_api_sdk/models/{cloud_providers_provider_id_get200_response.rb → create_alerts200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_post200_response_data.rb → create_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_post200_response_data.rb → create_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_patch200_response.rb → create_asset_price_history200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_post200_response_data.rb → create_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_post200_response_data.rb → create_assets_analyze200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_post200_response_data.rb → create_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_post200_response_data.rb → create_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/{job_functions_function_id_get200_response.rb → create_postgen_integrations200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_post200_response_data.rb → create_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_alert_id_delete200_response_data.rb → delete_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_delete200_response_data.rb → delete_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data.rb → delete_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_delete200_response_data.rb → delete_assets200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_delete200_response_data.rb → delete_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data.rb → delete_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_delete200_response_data.rb → delete_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/endpoints.rb +684 -0
- data/lib/spartera_api_sdk/models/endpoints_input.rb +582 -0
- data/lib/spartera_api_sdk/models/endpoints_update.rb +531 -0
- data/lib/spartera_api_sdk/models/error.rb +3 -76
- data/lib/spartera_api_sdk/models/favorites.rb +10 -77
- data/lib/spartera_api_sdk/models/favorites_input.rb +6 -76
- data/lib/spartera_api_sdk/models/favorites_update.rb +6 -76
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_get200_response.rb → get_api_keys_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_get200_response.rb → get_asset_price_history_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{analyze_company_handle_assets_asset_slug_get200_response.rb → get_assets_by_id_analyze200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_get200_response.rb → get_cloud_providers_by_id200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_get200_response.rb → get_connections_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_delete200_response.rb → get_endpoints_by_id_connections_describe200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_get200_response.rb → get_postgen_integrations_by_id200_response.rb} +7 -82
- data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_get200_response.rb → get_users_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/industries.rb +253 -0
- data/lib/spartera_api_sdk/models/inline_object.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object1.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object2.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object3.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object4.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object5.rb +156 -0
- data/lib/spartera_api_sdk/models/{cloud_providers_provider_id_storage_engines_get200_response.rb → inline_object6.rb} +22 -102
- data/lib/spartera_api_sdk/models/inline_object7.rb +156 -0
- data/lib/spartera_api_sdk/models/job_functions.rb +8 -77
- data/lib/spartera_api_sdk/models/job_functions_input.rb +4 -76
- data/lib/spartera_api_sdk/models/job_functions_update.rb +4 -76
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{cloud_providers_get200_response.rb → list_asset_usecases200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_get200_response.rb → list_assets200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_get200_response.rb → list_companies_analytics_assets200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{job_functions_get200_response.rb → list_connections200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_users200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/post_publications.rb +327 -0
- data/lib/spartera_api_sdk/models/post_publications_input.rb +280 -0
- data/lib/spartera_api_sdk/models/post_publications_update.rb +229 -0
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +341 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +294 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +209 -0
- data/lib/spartera_api_sdk/models/posts.rb +586 -0
- data/lib/spartera_api_sdk/models/posts_input.rb +437 -0
- data/lib/spartera_api_sdk/models/posts_update.rb +369 -0
- data/lib/spartera_api_sdk/models/storage_engines.rb +294 -0
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_alert_id_patch200_response_data.rb → update_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_patch200_response_data.rb → update_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data.rb → update_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_patch200_response_data.rb → update_assets200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_patch200_response_data.rb → update_companies200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_patch200_response_data.rb → update_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data.rb → update_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_patch200_response_data.rb → update_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/users.rb +70 -82
- data/lib/spartera_api_sdk/models/users_input.rb +32 -81
- data/lib/spartera_api_sdk/models/users_update.rb +32 -81
- data/lib/spartera_api_sdk/version.rb +13 -1
- data/lib/spartera_api_sdk.rb +118 -67
- data/spartera_api_sdk.gemspec +39 -0
- data/spec/api/alerts_api_spec.rb +50 -50
- data/spec/api/api_keys_api_spec.rb +53 -43
- data/spec/api/asset_price_history_api_spec.rb +57 -57
- data/spec/api/asset_usecases_api_spec.rb +61 -0
- data/spec/api/assets_api_spec.rb +134 -69
- data/spec/api/cloud_providers_api_spec.rb +16 -11
- data/spec/api/companies_api_spec.rb +99 -48
- data/spec/api/connections_api_spec.rb +53 -43
- data/spec/api/endpoints_api_spec.rb +215 -0
- data/spec/api/favorites_api_spec.rb +56 -56
- data/spec/api/industries_api_spec.rb +76 -0
- data/spec/api/job_functions_api_spec.rb +14 -9
- data/spec/api/postgen_integrations_api_spec.rb +117 -0
- data/spec/api/posts_api_spec.rb +186 -0
- data/spec/api/storage_engines_api_spec.rb +16 -11
- data/spec/api/users_api_spec.rb +81 -32
- data/spec/models/alerts_input_spec.rb +3 -3
- data/spec/models/alerts_spec.rb +3 -3
- data/spec/models/alerts_update_spec.rb +3 -3
- data/spec/models/api_keys_input_spec.rb +27 -3
- data/spec/models/api_keys_spec.rb +27 -3
- data/spec/models/api_keys_update_spec.rb +27 -3
- data/spec/models/asset_price_history_input_spec.rb +9 -3
- data/spec/models/asset_price_history_spec.rb +9 -3
- data/spec/models/asset_price_history_update_spec.rb +9 -3
- data/spec/models/asset_usecases_spec.rb +66 -0
- data/spec/models/assets_input_spec.rb +110 -4
- data/spec/models/assets_spec.rb +110 -4
- data/spec/models/assets_update_spec.rb +110 -4
- data/spec/models/cloud_providers_input_spec.rb +3 -3
- data/spec/models/cloud_providers_spec.rb +3 -3
- data/spec/models/cloud_providers_update_spec.rb +3 -3
- data/spec/models/companies_input_spec.rb +19 -3
- data/spec/models/companies_spec.rb +19 -3
- data/spec/models/companies_update_spec.rb +19 -3
- data/spec/models/connections_input_spec.rb +3 -3
- data/spec/models/connections_spec.rb +3 -3
- data/spec/models/connections_update_spec.rb +3 -3
- data/spec/models/create_alerts200_response_data_spec.rb +36 -0
- data/spec/models/create_alerts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_api_keys_post200_response_data_spec.rb → create_api_keys200_response_data_spec.rb} +8 -8
- data/spec/models/create_api_keys200_response_spec.rb +42 -0
- data/spec/models/create_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/{companies_company_id_patch200_response_spec.rb → create_asset_price_history200_response_spec.rb} +8 -8
- data/spec/models/{companies_company_id_assets_post200_response_data_spec.rb → create_assets_analyze200_response_data_spec.rb} +8 -8
- data/spec/models/create_assets_analyze200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_connections_post200_response_data_spec.rb → create_connections200_response_data_spec.rb} +8 -8
- data/spec/models/{cloud_providers_get200_response_spec.rb → create_connections200_response_spec.rb} +8 -8
- data/spec/models/create_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/create_endpoints200_response_spec.rb +42 -0
- data/spec/models/create_favorites200_response_data_spec.rb +36 -0
- data/spec/models/create_favorites200_response_spec.rb +42 -0
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/{job_functions_function_id_get200_response_spec.rb → create_postgen_integrations200_response_spec.rb} +8 -8
- data/spec/models/create_posts200_response_data_spec.rb +36 -0
- data/spec/models/create_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_post200_response_data_spec.rb → create_users200_response_data_spec.rb} +8 -8
- data/spec/models/create_users200_response_spec.rb +42 -0
- data/spec/models/delete_alerts200_response_data_spec.rb +36 -0
- data/spec/models/delete_alerts200_response_spec.rb +42 -0
- data/spec/models/delete_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/delete_api_keys200_response_spec.rb +42 -0
- data/spec/models/delete_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/delete_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_assets_asset_id_patch200_response_data_spec.rb → delete_assets200_response_data_spec.rb} +8 -8
- data/spec/models/delete_assets200_response_spec.rb +42 -0
- data/spec/models/delete_connections200_response_data_spec.rb +36 -0
- data/spec/models/delete_connections200_response_spec.rb +42 -0
- data/spec/models/delete_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/delete_endpoints200_response_spec.rb +42 -0
- data/spec/models/delete_favorites200_response_data_spec.rb +36 -0
- data/spec/models/delete_favorites200_response_spec.rb +42 -0
- data/spec/models/delete_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/delete_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/delete_posts200_response_data_spec.rb +36 -0
- data/spec/models/delete_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_patch200_response_data_spec.rb → delete_users200_response_data_spec.rb} +8 -8
- data/spec/models/delete_users200_response_spec.rb +42 -0
- data/spec/models/endpoints_input_spec.rb +236 -0
- data/spec/models/endpoints_spec.rb +242 -0
- data/spec/models/endpoints_update_spec.rb +236 -0
- data/spec/models/error_spec.rb +3 -3
- data/spec/models/favorites_input_spec.rb +3 -3
- data/spec/models/favorites_spec.rb +3 -3
- data/spec/models/favorites_update_spec.rb +3 -3
- data/spec/models/get_alerts_by_id200_response_spec.rb +42 -0
- data/spec/models/{job_functions_get200_response_spec.rb → get_api_keys_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_asset_price_history_by_id200_response_spec.rb +42 -0
- data/spec/models/get_asset_usecases_by_id200_response_spec.rb +42 -0
- data/spec/models/get_assets_by_id_analyze200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_get200_response_spec.rb → get_cloud_providers_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_companies_by_id200_response_spec.rb +42 -0
- data/spec/models/get_connections_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_delete200_response_spec.rb → get_endpoints_by_id_connections_describe200_response_spec.rb} +8 -8
- data/spec/models/get_favorites_by_id200_response_spec.rb +42 -0
- data/spec/models/get_industries_by_id200_response_spec.rb +42 -0
- data/spec/models/get_job_functions_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_get200_response_spec.rb → get_postgen_integrations_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_posts_by_id200_response_spec.rb +42 -0
- data/spec/models/get_storage_engines_by_id200_response_spec.rb +42 -0
- data/spec/models/get_users_by_id200_response_spec.rb +42 -0
- data/spec/models/industries_spec.rb +78 -0
- data/spec/models/inline_object1_spec.rb +3 -3
- data/spec/models/inline_object2_spec.rb +3 -3
- data/spec/models/inline_object3_spec.rb +3 -3
- data/spec/models/inline_object4_spec.rb +42 -0
- data/spec/models/inline_object5_spec.rb +42 -0
- data/spec/models/{cloud_providers_provider_id_get200_response_spec.rb → inline_object6_spec.rb} +15 -9
- data/spec/models/inline_object7_spec.rb +42 -0
- data/spec/models/inline_object_spec.rb +3 -3
- data/spec/models/job_functions_input_spec.rb +3 -3
- data/spec/models/job_functions_spec.rb +3 -3
- data/spec/models/job_functions_update_spec.rb +3 -3
- data/spec/models/list_api_keys200_response_spec.rb +42 -0
- data/spec/models/list_asset_usecases200_response_spec.rb +42 -0
- data/spec/models/list_assets200_response_spec.rb +42 -0
- data/spec/models/list_cloud_providers200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_api_keys_get200_response_spec.rb → list_companies_analytics_assets200_response_spec.rb} +8 -8
- data/spec/models/list_connections200_response_spec.rb +42 -0
- data/spec/models/list_endpoints200_response_spec.rb +42 -0
- data/spec/models/list_industries200_response_spec.rb +42 -0
- data/spec/models/list_job_functions200_response_spec.rb +42 -0
- data/spec/models/list_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/list_posts200_response_spec.rb +42 -0
- data/spec/models/list_storage_engines200_response_spec.rb +42 -0
- data/spec/models/list_users200_response_spec.rb +42 -0
- data/spec/models/post_publications_input_spec.rb +84 -0
- data/spec/models/post_publications_spec.rb +102 -0
- data/spec/models/post_publications_update_spec.rb +84 -0
- data/spec/models/postgen_integrations_input_spec.rb +72 -0
- data/spec/models/postgen_integrations_spec.rb +90 -0
- data/spec/models/postgen_integrations_update_spec.rb +72 -0
- data/spec/models/posts_input_spec.rb +168 -0
- data/spec/models/posts_spec.rb +186 -0
- data/spec/models/posts_update_spec.rb +168 -0
- data/spec/models/storage_engines_spec.rb +82 -0
- data/spec/models/update_alerts200_response_data_spec.rb +36 -0
- data/spec/models/update_alerts200_response_spec.rb +42 -0
- data/spec/models/update_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/update_api_keys200_response_spec.rb +42 -0
- data/spec/models/update_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/update_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/update_assets200_response_data_spec.rb +36 -0
- data/spec/models/update_assets200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_patch200_response_data_spec.rb → update_companies200_response_data_spec.rb} +8 -8
- data/spec/models/update_companies200_response_spec.rb +42 -0
- data/spec/models/update_connections200_response_data_spec.rb +36 -0
- data/spec/models/update_connections200_response_spec.rb +42 -0
- data/spec/models/update_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/update_endpoints200_response_spec.rb +42 -0
- data/spec/models/update_favorites200_response_data_spec.rb +36 -0
- data/spec/models/update_favorites200_response_spec.rb +42 -0
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/update_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/update_posts200_response_data_spec.rb +36 -0
- data/spec/models/update_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_delete200_response_data_spec.rb → update_users200_response_data_spec.rb} +8 -8
- data/spec/models/update_users200_response_spec.rb +42 -0
- data/spec/models/users_input_spec.rb +15 -3
- data/spec/models/users_spec.rb +15 -3
- data/spec/models/users_update_spec.rb +15 -3
- data/spec/spec_helper.rb +111 -0
- metadata +515 -337
- data/docs/CloudProvidersProviderIdStorageEnginesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdPatch200Response.md +0 -20
- data/lib/spartera_api_sdk/models/companies_company_id_analytics_assets_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_asset_asset_id_get200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_category_category_get200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response.rb +0 -264
- data/spec/models/analyze_company_handle_assets_asset_slug_get200_response_spec.rb +0 -42
- data/spec/models/cloud_providers_provider_id_storage_engines_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_analytics_assets_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_asset_asset_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_category_category_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_patch200_response_spec.rb +0 -42
|
@@ -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: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.25.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -19,32 +19,162 @@ 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
|
+
# Create a new asset
|
|
23
|
+
# @param company_id [String] Unique identifier for the Company
|
|
24
|
+
# @param assets_input [AssetsInput]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
27
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
28
|
+
# @option opts [String] :sort_by Field to sort by
|
|
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)
|
|
34
|
+
data
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Create a new asset
|
|
38
|
+
# @param company_id [String] Unique identifier for the Company
|
|
39
|
+
# @param assets_input [AssetsInput]
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
42
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
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 = {})
|
|
48
|
+
if @api_client.config.debugging
|
|
49
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.create_assets ...'
|
|
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.'
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
60
|
+
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.create_assets, the character length must be greater than or equal to 1.'
|
|
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.'
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
93
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling AssetsApi.create_assets, the character length must be greater than or equal to 1.'
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# resource path
|
|
97
|
+
local_var_path = '/companies/{company_id}/assets'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
98
|
+
|
|
99
|
+
# query parameters
|
|
100
|
+
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
|
+
|
|
107
|
+
# header parameters
|
|
108
|
+
header_params = opts[:header_params] || {}
|
|
109
|
+
# HTTP header 'Accept' (if needed)
|
|
110
|
+
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
|
+
|
|
117
|
+
# form parameters
|
|
118
|
+
form_params = opts[:form_params] || {}
|
|
119
|
+
|
|
120
|
+
# http body (model)
|
|
121
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(assets_input)
|
|
122
|
+
|
|
123
|
+
# return_type
|
|
124
|
+
return_type = opts[:debug_return_type] || 'CreateAssetsAnalyze200Response'
|
|
125
|
+
|
|
126
|
+
# auth_names
|
|
127
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
128
|
+
|
|
129
|
+
new_options = opts.merge(
|
|
130
|
+
:operation => :"AssetsApi.create_assets",
|
|
131
|
+
:header_params => header_params,
|
|
132
|
+
:query_params => query_params,
|
|
133
|
+
:form_params => form_params,
|
|
134
|
+
:body => post_body,
|
|
135
|
+
:auth_names => auth_names,
|
|
136
|
+
:return_type => return_type
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
140
|
+
if @api_client.config.debugging
|
|
141
|
+
@api_client.config.logger.debug "API called: AssetsApi#create_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
|
+
end
|
|
143
|
+
return data, status_code, headers
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Process (analyze) an asset with dynamic rate limiting applied via decorator.
|
|
147
|
+
# @param asset_slug [String] URL-friendly slug for the Asset
|
|
148
|
+
# @param company_handle [String] Human-readable handle for the Company
|
|
149
|
+
# @param assets_input [AssetsInput]
|
|
25
150
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
151
|
+
# @return [CreateAssetsAnalyze200Response]
|
|
152
|
+
def create_assets_analyze(asset_slug, company_handle, assets_input, opts = {})
|
|
153
|
+
data, _status_code, _headers = create_assets_analyze_with_http_info(asset_slug, company_handle, assets_input, opts)
|
|
29
154
|
data
|
|
30
155
|
end
|
|
31
156
|
|
|
32
|
-
# Process (analyze) an asset.
|
|
33
|
-
# @param asset_slug [String]
|
|
34
|
-
# @param company_handle [String]
|
|
157
|
+
# Process (analyze) an asset with dynamic rate limiting applied via decorator.
|
|
158
|
+
# @param asset_slug [String] URL-friendly slug for the Asset
|
|
159
|
+
# @param company_handle [String] Human-readable handle for the Company
|
|
160
|
+
# @param assets_input [AssetsInput]
|
|
35
161
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(
|
|
37
|
-
def
|
|
162
|
+
# @return [Array<(CreateAssetsAnalyze200Response, Integer, Hash)>] CreateAssetsAnalyze200Response data, response status code and response headers
|
|
163
|
+
def create_assets_analyze_with_http_info(asset_slug, company_handle, assets_input, opts = {})
|
|
38
164
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
165
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.create_assets_analyze ...'
|
|
40
166
|
end
|
|
41
167
|
# verify the required parameter 'asset_slug' is set
|
|
42
168
|
if @api_client.config.client_side_validation && asset_slug.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'asset_slug' when calling AssetsApi.
|
|
169
|
+
fail ArgumentError, "Missing the required parameter 'asset_slug' when calling AssetsApi.create_assets_analyze"
|
|
44
170
|
end
|
|
45
171
|
# verify the required parameter 'company_handle' is set
|
|
46
172
|
if @api_client.config.client_side_validation && company_handle.nil?
|
|
47
|
-
fail ArgumentError, "Missing the required parameter 'company_handle' when calling AssetsApi.
|
|
173
|
+
fail ArgumentError, "Missing the required parameter 'company_handle' when calling AssetsApi.create_assets_analyze"
|
|
174
|
+
end
|
|
175
|
+
# verify the required parameter 'assets_input' is set
|
|
176
|
+
if @api_client.config.client_side_validation && assets_input.nil?
|
|
177
|
+
fail ArgumentError, "Missing the required parameter 'assets_input' when calling AssetsApi.create_assets_analyze"
|
|
48
178
|
end
|
|
49
179
|
# resource path
|
|
50
180
|
local_var_path = '/analyze/{company_handle}/assets/{asset_slug}'.sub('{' + 'asset_slug' + '}', CGI.escape(asset_slug.to_s)).sub('{' + 'company_handle' + '}', CGI.escape(company_handle.to_s))
|
|
@@ -56,21 +186,26 @@ module SparteraApiSdk
|
|
|
56
186
|
header_params = opts[:header_params] || {}
|
|
57
187
|
# HTTP header 'Accept' (if needed)
|
|
58
188
|
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
|
|
59
194
|
|
|
60
195
|
# form parameters
|
|
61
196
|
form_params = opts[:form_params] || {}
|
|
62
197
|
|
|
63
198
|
# http body (model)
|
|
64
|
-
post_body = opts[:debug_body]
|
|
199
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(assets_input)
|
|
65
200
|
|
|
66
201
|
# return_type
|
|
67
|
-
return_type = opts[:debug_return_type] || '
|
|
202
|
+
return_type = opts[:debug_return_type] || 'CreateAssetsAnalyze200Response'
|
|
68
203
|
|
|
69
204
|
# auth_names
|
|
70
205
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
71
206
|
|
|
72
207
|
new_options = opts.merge(
|
|
73
|
-
:operation => :"AssetsApi.
|
|
208
|
+
:operation => :"AssetsApi.create_assets_analyze",
|
|
74
209
|
:header_params => header_params,
|
|
75
210
|
:query_params => query_params,
|
|
76
211
|
:form_params => form_params,
|
|
@@ -79,40 +214,274 @@ module SparteraApiSdk
|
|
|
79
214
|
:return_type => return_type
|
|
80
215
|
)
|
|
81
216
|
|
|
82
|
-
data, status_code, headers = @api_client.call_api(:
|
|
217
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
83
218
|
if @api_client.config.debugging
|
|
84
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
219
|
+
@api_client.config.logger.debug "API called: AssetsApi#create_assets_analyze\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
220
|
+
end
|
|
221
|
+
return data, status_code, headers
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Scan a column in the asset's table to retrieve distinct values Request Body: column (str): Column name to scan limit (int, optional): Maximum distinct values to return (default 1000, max 5000) Returns: Flask Response with scan results
|
|
225
|
+
# @param company_id [String] Unique identifier for the Company
|
|
226
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
227
|
+
# @param assets_input [AssetsInput]
|
|
228
|
+
# @param [Hash] opts the optional parameters
|
|
229
|
+
# @return [CreateAssetsAnalyze200Response]
|
|
230
|
+
def create_assets_scan_column(company_id, asset_id, assets_input, opts = {})
|
|
231
|
+
data, _status_code, _headers = create_assets_scan_column_with_http_info(company_id, asset_id, assets_input, opts)
|
|
232
|
+
data
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Scan a column in the asset's table to retrieve distinct values Request Body: column (str): Column name to scan limit (int, optional): Maximum distinct values to return (default 1000, max 5000) Returns: Flask Response with scan results
|
|
236
|
+
# @param company_id [String] Unique identifier for the Company
|
|
237
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
238
|
+
# @param assets_input [AssetsInput]
|
|
239
|
+
# @param [Hash] opts the optional parameters
|
|
240
|
+
# @return [Array<(CreateAssetsAnalyze200Response, Integer, Hash)>] CreateAssetsAnalyze200Response data, response status code and response headers
|
|
241
|
+
def create_assets_scan_column_with_http_info(company_id, asset_id, assets_input, opts = {})
|
|
242
|
+
if @api_client.config.debugging
|
|
243
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.create_assets_scan_column ...'
|
|
244
|
+
end
|
|
245
|
+
# verify the required parameter 'company_id' is set
|
|
246
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
247
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.create_assets_scan_column"
|
|
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}."
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# verify the required parameter 'asset_id' is set
|
|
263
|
+
if @api_client.config.client_side_validation && asset_id.nil?
|
|
264
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.create_assets_scan_column"
|
|
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"
|
|
282
|
+
end
|
|
283
|
+
# resource path
|
|
284
|
+
local_var_path = '/companies/{company_id}/assets/{asset_id}/scan_column'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
285
|
+
|
|
286
|
+
# query parameters
|
|
287
|
+
query_params = opts[:query_params] || {}
|
|
288
|
+
|
|
289
|
+
# header parameters
|
|
290
|
+
header_params = opts[:header_params] || {}
|
|
291
|
+
# HTTP header 'Accept' (if needed)
|
|
292
|
+
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
|
+
|
|
299
|
+
# form parameters
|
|
300
|
+
form_params = opts[:form_params] || {}
|
|
301
|
+
|
|
302
|
+
# http body (model)
|
|
303
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(assets_input)
|
|
304
|
+
|
|
305
|
+
# return_type
|
|
306
|
+
return_type = opts[:debug_return_type] || 'CreateAssetsAnalyze200Response'
|
|
307
|
+
|
|
308
|
+
# auth_names
|
|
309
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
310
|
+
|
|
311
|
+
new_options = opts.merge(
|
|
312
|
+
:operation => :"AssetsApi.create_assets_scan_column",
|
|
313
|
+
:header_params => header_params,
|
|
314
|
+
:query_params => query_params,
|
|
315
|
+
:form_params => form_params,
|
|
316
|
+
:body => post_body,
|
|
317
|
+
:auth_names => auth_names,
|
|
318
|
+
:return_type => return_type
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
322
|
+
if @api_client.config.debugging
|
|
323
|
+
@api_client.config.logger.debug "API called: AssetsApi#create_assets_scan_column\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
324
|
+
end
|
|
325
|
+
return data, status_code, headers
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# POST /companies/{company_id}/assets/{asset_id}/test
|
|
329
|
+
# @param company_id [String] Unique identifier for the Company
|
|
330
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
331
|
+
# @param assets_input [AssetsInput]
|
|
332
|
+
# @param [Hash] opts the optional parameters
|
|
333
|
+
# @return [CreateAssetsAnalyze200Response]
|
|
334
|
+
def create_assets_test(company_id, asset_id, assets_input, opts = {})
|
|
335
|
+
data, _status_code, _headers = create_assets_test_with_http_info(company_id, asset_id, assets_input, opts)
|
|
336
|
+
data
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# POST /companies/{company_id}/assets/{asset_id}/test
|
|
340
|
+
# @param company_id [String] Unique identifier for the Company
|
|
341
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
342
|
+
# @param assets_input [AssetsInput]
|
|
343
|
+
# @param [Hash] opts the optional parameters
|
|
344
|
+
# @return [Array<(CreateAssetsAnalyze200Response, Integer, Hash)>] CreateAssetsAnalyze200Response data, response status code and response headers
|
|
345
|
+
def create_assets_test_with_http_info(company_id, asset_id, assets_input, opts = {})
|
|
346
|
+
if @api_client.config.debugging
|
|
347
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.create_assets_test ...'
|
|
348
|
+
end
|
|
349
|
+
# verify the required parameter 'company_id' is set
|
|
350
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
351
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.create_assets_test"
|
|
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.'
|
|
355
|
+
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
|
+
# verify the required parameter 'asset_id' is set
|
|
367
|
+
if @api_client.config.client_side_validation && asset_id.nil?
|
|
368
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.create_assets_test"
|
|
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"
|
|
386
|
+
end
|
|
387
|
+
# resource path
|
|
388
|
+
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))
|
|
389
|
+
|
|
390
|
+
# query parameters
|
|
391
|
+
query_params = opts[:query_params] || {}
|
|
392
|
+
|
|
393
|
+
# header parameters
|
|
394
|
+
header_params = opts[:header_params] || {}
|
|
395
|
+
# HTTP header 'Accept' (if needed)
|
|
396
|
+
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
|
+
|
|
403
|
+
# form parameters
|
|
404
|
+
form_params = opts[:form_params] || {}
|
|
405
|
+
|
|
406
|
+
# http body (model)
|
|
407
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(assets_input)
|
|
408
|
+
|
|
409
|
+
# return_type
|
|
410
|
+
return_type = opts[:debug_return_type] || 'CreateAssetsAnalyze200Response'
|
|
411
|
+
|
|
412
|
+
# auth_names
|
|
413
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
414
|
+
|
|
415
|
+
new_options = opts.merge(
|
|
416
|
+
:operation => :"AssetsApi.create_assets_test",
|
|
417
|
+
:header_params => header_params,
|
|
418
|
+
:query_params => query_params,
|
|
419
|
+
:form_params => form_params,
|
|
420
|
+
:body => post_body,
|
|
421
|
+
:auth_names => auth_names,
|
|
422
|
+
:return_type => return_type
|
|
423
|
+
)
|
|
424
|
+
|
|
425
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
426
|
+
if @api_client.config.debugging
|
|
427
|
+
@api_client.config.logger.debug "API called: AssetsApi#create_assets_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
85
428
|
end
|
|
86
429
|
return data, status_code, headers
|
|
87
430
|
end
|
|
88
431
|
|
|
89
432
|
# Delete single asset by ID
|
|
90
|
-
# @param company_id [String]
|
|
91
|
-
# @param asset_id [String]
|
|
433
|
+
# @param company_id [String] Unique identifier for the Company
|
|
434
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
92
435
|
# @param [Hash] opts the optional parameters
|
|
93
|
-
# @return [
|
|
94
|
-
def
|
|
95
|
-
data, _status_code, _headers =
|
|
436
|
+
# @return [DeleteAssets200Response]
|
|
437
|
+
def delete_assets(company_id, asset_id, opts = {})
|
|
438
|
+
data, _status_code, _headers = delete_assets_with_http_info(company_id, asset_id, opts)
|
|
96
439
|
data
|
|
97
440
|
end
|
|
98
441
|
|
|
99
442
|
# Delete single asset by ID
|
|
100
|
-
# @param company_id [String]
|
|
101
|
-
# @param asset_id [String]
|
|
443
|
+
# @param company_id [String] Unique identifier for the Company
|
|
444
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
102
445
|
# @param [Hash] opts the optional parameters
|
|
103
|
-
# @return [Array<(
|
|
104
|
-
def
|
|
446
|
+
# @return [Array<(DeleteAssets200Response, Integer, Hash)>] DeleteAssets200Response data, response status code and response headers
|
|
447
|
+
def delete_assets_with_http_info(company_id, asset_id, opts = {})
|
|
105
448
|
if @api_client.config.debugging
|
|
106
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
449
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.delete_assets ...'
|
|
107
450
|
end
|
|
108
451
|
# verify the required parameter 'company_id' is set
|
|
109
452
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
110
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
453
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.delete_assets"
|
|
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.'
|
|
111
461
|
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
|
+
|
|
112
468
|
# verify the required parameter 'asset_id' is set
|
|
113
469
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
114
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
470
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.delete_assets"
|
|
471
|
+
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.'
|
|
115
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
|
+
|
|
116
485
|
# resource path
|
|
117
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))
|
|
118
487
|
|
|
@@ -131,13 +500,13 @@ module SparteraApiSdk
|
|
|
131
500
|
post_body = opts[:debug_body]
|
|
132
501
|
|
|
133
502
|
# return_type
|
|
134
|
-
return_type = opts[:debug_return_type] || '
|
|
503
|
+
return_type = opts[:debug_return_type] || 'DeleteAssets200Response'
|
|
135
504
|
|
|
136
505
|
# auth_names
|
|
137
506
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
138
507
|
|
|
139
508
|
new_options = opts.merge(
|
|
140
|
-
:operation => :"AssetsApi.
|
|
509
|
+
:operation => :"AssetsApi.delete_assets",
|
|
141
510
|
:header_params => header_params,
|
|
142
511
|
:query_params => query_params,
|
|
143
512
|
:form_params => form_params,
|
|
@@ -148,38 +517,64 @@ module SparteraApiSdk
|
|
|
148
517
|
|
|
149
518
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
150
519
|
if @api_client.config.debugging
|
|
151
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
520
|
+
@api_client.config.logger.debug "API called: AssetsApi#delete_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
152
521
|
end
|
|
153
522
|
return data, status_code, headers
|
|
154
523
|
end
|
|
155
524
|
|
|
156
525
|
# Get single asset by ID
|
|
157
|
-
# @param company_id [String]
|
|
158
|
-
# @param asset_id [String]
|
|
526
|
+
# @param company_id [String] Unique identifier for the Company
|
|
527
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
159
528
|
# @param [Hash] opts the optional parameters
|
|
160
|
-
# @return [
|
|
161
|
-
def
|
|
162
|
-
data, _status_code, _headers =
|
|
529
|
+
# @return [GetAssetsByIdAnalyze200Response]
|
|
530
|
+
def get_assets_by_id(company_id, asset_id, opts = {})
|
|
531
|
+
data, _status_code, _headers = get_assets_by_id_with_http_info(company_id, asset_id, opts)
|
|
163
532
|
data
|
|
164
533
|
end
|
|
165
534
|
|
|
166
535
|
# Get single asset by ID
|
|
167
|
-
# @param company_id [String]
|
|
168
|
-
# @param asset_id [String]
|
|
536
|
+
# @param company_id [String] Unique identifier for the Company
|
|
537
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
169
538
|
# @param [Hash] opts the optional parameters
|
|
170
|
-
# @return [Array<(
|
|
171
|
-
def
|
|
539
|
+
# @return [Array<(GetAssetsByIdAnalyze200Response, Integer, Hash)>] GetAssetsByIdAnalyze200Response data, response status code and response headers
|
|
540
|
+
def get_assets_by_id_with_http_info(company_id, asset_id, opts = {})
|
|
172
541
|
if @api_client.config.debugging
|
|
173
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
542
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.get_assets_by_id ...'
|
|
174
543
|
end
|
|
175
544
|
# verify the required parameter 'company_id' is set
|
|
176
545
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
177
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
546
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.get_assets_by_id"
|
|
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.'
|
|
550
|
+
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}."
|
|
178
559
|
end
|
|
560
|
+
|
|
179
561
|
# verify the required parameter 'asset_id' is set
|
|
180
562
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
181
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
563
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.get_assets_by_id"
|
|
564
|
+
end
|
|
565
|
+
if @api_client.config.client_side_validation && asset_id.to_s.length > 255
|
|
566
|
+
fail ArgumentError, 'invalid value for "asset_id" when calling AssetsApi.get_assets_by_id, the character length must be smaller than or equal to 255.'
|
|
567
|
+
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}."
|
|
182
576
|
end
|
|
577
|
+
|
|
183
578
|
# resource path
|
|
184
579
|
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))
|
|
185
580
|
|
|
@@ -198,13 +593,13 @@ module SparteraApiSdk
|
|
|
198
593
|
post_body = opts[:debug_body]
|
|
199
594
|
|
|
200
595
|
# return_type
|
|
201
|
-
return_type = opts[:debug_return_type] || '
|
|
596
|
+
return_type = opts[:debug_return_type] || 'GetAssetsByIdAnalyze200Response'
|
|
202
597
|
|
|
203
598
|
# auth_names
|
|
204
599
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
205
600
|
|
|
206
601
|
new_options = opts.merge(
|
|
207
|
-
:operation => :"AssetsApi.
|
|
602
|
+
:operation => :"AssetsApi.get_assets_by_id",
|
|
208
603
|
:header_params => header_params,
|
|
209
604
|
:query_params => query_params,
|
|
210
605
|
:form_params => form_params,
|
|
@@ -215,40 +610,66 @@ module SparteraApiSdk
|
|
|
215
610
|
|
|
216
611
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
217
612
|
if @api_client.config.debugging
|
|
218
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
613
|
+
@api_client.config.logger.debug "API called: AssetsApi#get_assets_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
219
614
|
end
|
|
220
615
|
return data, status_code, headers
|
|
221
616
|
end
|
|
222
617
|
|
|
223
|
-
# Get
|
|
224
|
-
# @param company_id [String]
|
|
225
|
-
# @param asset_id [String]
|
|
618
|
+
# Get statistics for a specific asset (public endpoint)
|
|
619
|
+
# @param company_id [String] Unique identifier for the Company
|
|
620
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
226
621
|
# @param [Hash] opts the optional parameters
|
|
227
|
-
# @return [
|
|
228
|
-
def
|
|
229
|
-
data, _status_code, _headers =
|
|
622
|
+
# @return [GetAssetsByIdAnalyze200Response]
|
|
623
|
+
def get_assets_by_id2(company_id, asset_id, opts = {})
|
|
624
|
+
data, _status_code, _headers = get_assets_by_id2_with_http_info(company_id, asset_id, opts)
|
|
230
625
|
data
|
|
231
626
|
end
|
|
232
627
|
|
|
233
|
-
# Get
|
|
234
|
-
# @param company_id [String]
|
|
235
|
-
# @param asset_id [String]
|
|
628
|
+
# Get statistics for a specific asset (public endpoint)
|
|
629
|
+
# @param company_id [String] Unique identifier for the Company
|
|
630
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
236
631
|
# @param [Hash] opts the optional parameters
|
|
237
|
-
# @return [Array<(
|
|
238
|
-
def
|
|
632
|
+
# @return [Array<(GetAssetsByIdAnalyze200Response, Integer, Hash)>] GetAssetsByIdAnalyze200Response data, response status code and response headers
|
|
633
|
+
def get_assets_by_id2_with_http_info(company_id, asset_id, opts = {})
|
|
239
634
|
if @api_client.config.debugging
|
|
240
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
635
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.get_assets_by_id2 ...'
|
|
241
636
|
end
|
|
242
637
|
# verify the required parameter 'company_id' is set
|
|
243
638
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
244
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
639
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.get_assets_by_id2"
|
|
245
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.'
|
|
643
|
+
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
|
+
|
|
246
654
|
# verify the required parameter 'asset_id' is set
|
|
247
655
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
248
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
656
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.get_assets_by_id2"
|
|
249
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.'
|
|
660
|
+
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
|
+
|
|
250
671
|
# resource path
|
|
251
|
-
local_var_path = '/companies/{company_id}/assets/{asset_id}/
|
|
672
|
+
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))
|
|
252
673
|
|
|
253
674
|
# query parameters
|
|
254
675
|
query_params = opts[:query_params] || {}
|
|
@@ -265,13 +686,13 @@ module SparteraApiSdk
|
|
|
265
686
|
post_body = opts[:debug_body]
|
|
266
687
|
|
|
267
688
|
# return_type
|
|
268
|
-
return_type = opts[:debug_return_type] || '
|
|
689
|
+
return_type = opts[:debug_return_type] || 'GetAssetsByIdAnalyze200Response'
|
|
269
690
|
|
|
270
691
|
# auth_names
|
|
271
692
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
272
693
|
|
|
273
694
|
new_options = opts.merge(
|
|
274
|
-
:operation => :"AssetsApi.
|
|
695
|
+
:operation => :"AssetsApi.get_assets_by_id2",
|
|
275
696
|
:header_params => header_params,
|
|
276
697
|
:query_params => query_params,
|
|
277
698
|
:form_params => form_params,
|
|
@@ -282,40 +703,133 @@ module SparteraApiSdk
|
|
|
282
703
|
|
|
283
704
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
284
705
|
if @api_client.config.debugging
|
|
285
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
706
|
+
@api_client.config.logger.debug "API called: AssetsApi#get_assets_by_id2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
286
707
|
end
|
|
287
708
|
return data, status_code, headers
|
|
288
709
|
end
|
|
289
710
|
|
|
290
|
-
#
|
|
291
|
-
# @param
|
|
292
|
-
# @param
|
|
711
|
+
# Process (analyze) an asset with dynamic rate limiting applied via decorator.
|
|
712
|
+
# @param asset_slug [String] URL-friendly slug for the Asset
|
|
713
|
+
# @param company_handle [String] Human-readable handle for the Company
|
|
293
714
|
# @param [Hash] opts the optional parameters
|
|
294
|
-
# @return [
|
|
295
|
-
def
|
|
296
|
-
data, _status_code, _headers =
|
|
715
|
+
# @return [GetAssetsByIdAnalyze200Response]
|
|
716
|
+
def get_assets_by_id_analyze(asset_slug, company_handle, opts = {})
|
|
717
|
+
data, _status_code, _headers = get_assets_by_id_analyze_with_http_info(asset_slug, company_handle, opts)
|
|
297
718
|
data
|
|
298
719
|
end
|
|
299
720
|
|
|
300
|
-
#
|
|
301
|
-
# @param
|
|
302
|
-
# @param
|
|
721
|
+
# Process (analyze) an asset with dynamic rate limiting applied via decorator.
|
|
722
|
+
# @param asset_slug [String] URL-friendly slug for the Asset
|
|
723
|
+
# @param company_handle [String] Human-readable handle for the Company
|
|
724
|
+
# @param [Hash] opts the optional parameters
|
|
725
|
+
# @return [Array<(GetAssetsByIdAnalyze200Response, Integer, Hash)>] GetAssetsByIdAnalyze200Response data, response status code and response headers
|
|
726
|
+
def get_assets_by_id_analyze_with_http_info(asset_slug, company_handle, opts = {})
|
|
727
|
+
if @api_client.config.debugging
|
|
728
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.get_assets_by_id_analyze ...'
|
|
729
|
+
end
|
|
730
|
+
# verify the required parameter 'asset_slug' is set
|
|
731
|
+
if @api_client.config.client_side_validation && asset_slug.nil?
|
|
732
|
+
fail ArgumentError, "Missing the required parameter 'asset_slug' when calling AssetsApi.get_assets_by_id_analyze"
|
|
733
|
+
end
|
|
734
|
+
# verify the required parameter 'company_handle' is set
|
|
735
|
+
if @api_client.config.client_side_validation && company_handle.nil?
|
|
736
|
+
fail ArgumentError, "Missing the required parameter 'company_handle' when calling AssetsApi.get_assets_by_id_analyze"
|
|
737
|
+
end
|
|
738
|
+
# resource path
|
|
739
|
+
local_var_path = '/analyze/{company_handle}/assets/{asset_slug}'.sub('{' + 'asset_slug' + '}', CGI.escape(asset_slug.to_s)).sub('{' + 'company_handle' + '}', CGI.escape(company_handle.to_s))
|
|
740
|
+
|
|
741
|
+
# query parameters
|
|
742
|
+
query_params = opts[:query_params] || {}
|
|
743
|
+
|
|
744
|
+
# header parameters
|
|
745
|
+
header_params = opts[:header_params] || {}
|
|
746
|
+
# HTTP header 'Accept' (if needed)
|
|
747
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
748
|
+
|
|
749
|
+
# form parameters
|
|
750
|
+
form_params = opts[:form_params] || {}
|
|
751
|
+
|
|
752
|
+
# http body (model)
|
|
753
|
+
post_body = opts[:debug_body]
|
|
754
|
+
|
|
755
|
+
# return_type
|
|
756
|
+
return_type = opts[:debug_return_type] || 'GetAssetsByIdAnalyze200Response'
|
|
757
|
+
|
|
758
|
+
# auth_names
|
|
759
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
760
|
+
|
|
761
|
+
new_options = opts.merge(
|
|
762
|
+
:operation => :"AssetsApi.get_assets_by_id_analyze",
|
|
763
|
+
:header_params => header_params,
|
|
764
|
+
:query_params => query_params,
|
|
765
|
+
:form_params => form_params,
|
|
766
|
+
:body => post_body,
|
|
767
|
+
:auth_names => auth_names,
|
|
768
|
+
:return_type => return_type
|
|
769
|
+
)
|
|
770
|
+
|
|
771
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
772
|
+
if @api_client.config.debugging
|
|
773
|
+
@api_client.config.logger.debug "API called: AssetsApi#get_assets_by_id_analyze\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
774
|
+
end
|
|
775
|
+
return data, status_code, headers
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
# Get the information schema for a specific asset's table
|
|
779
|
+
# @param company_id [String] Unique identifier for the Company
|
|
780
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
303
781
|
# @param [Hash] opts the optional parameters
|
|
304
|
-
# @return [
|
|
305
|
-
def
|
|
782
|
+
# @return [GetAssetsByIdAnalyze200Response]
|
|
783
|
+
def get_assets_by_id_infoschema(company_id, asset_id, opts = {})
|
|
784
|
+
data, _status_code, _headers = get_assets_by_id_infoschema_with_http_info(company_id, asset_id, opts)
|
|
785
|
+
data
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
# Get the information schema for a specific asset's table
|
|
789
|
+
# @param company_id [String] Unique identifier for the Company
|
|
790
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
791
|
+
# @param [Hash] opts the optional parameters
|
|
792
|
+
# @return [Array<(GetAssetsByIdAnalyze200Response, Integer, Hash)>] GetAssetsByIdAnalyze200Response data, response status code and response headers
|
|
793
|
+
def get_assets_by_id_infoschema_with_http_info(company_id, asset_id, opts = {})
|
|
306
794
|
if @api_client.config.debugging
|
|
307
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
795
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.get_assets_by_id_infoschema ...'
|
|
308
796
|
end
|
|
309
797
|
# verify the required parameter 'company_id' is set
|
|
310
798
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
311
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
799
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.get_assets_by_id_infoschema"
|
|
312
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.'
|
|
807
|
+
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
|
+
|
|
313
814
|
# verify the required parameter 'asset_id' is set
|
|
314
815
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
315
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
816
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.get_assets_by_id_infoschema"
|
|
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}."
|
|
316
829
|
end
|
|
830
|
+
|
|
317
831
|
# resource path
|
|
318
|
-
local_var_path = '/companies/{company_id}/assets/{asset_id}/infoschema
|
|
832
|
+
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))
|
|
319
833
|
|
|
320
834
|
# query parameters
|
|
321
835
|
query_params = opts[:query_params] || {}
|
|
@@ -332,13 +846,13 @@ module SparteraApiSdk
|
|
|
332
846
|
post_body = opts[:debug_body]
|
|
333
847
|
|
|
334
848
|
# return_type
|
|
335
|
-
return_type = opts[:debug_return_type] || '
|
|
849
|
+
return_type = opts[:debug_return_type] || 'GetAssetsByIdAnalyze200Response'
|
|
336
850
|
|
|
337
851
|
# auth_names
|
|
338
852
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
339
853
|
|
|
340
854
|
new_options = opts.merge(
|
|
341
|
-
:operation => :"AssetsApi.
|
|
855
|
+
:operation => :"AssetsApi.get_assets_by_id_infoschema",
|
|
342
856
|
:header_params => header_params,
|
|
343
857
|
:query_params => query_params,
|
|
344
858
|
:form_params => form_params,
|
|
@@ -349,46 +863,66 @@ module SparteraApiSdk
|
|
|
349
863
|
|
|
350
864
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
351
865
|
if @api_client.config.debugging
|
|
352
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
866
|
+
@api_client.config.logger.debug "API called: AssetsApi#get_assets_by_id_infoschema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
353
867
|
end
|
|
354
868
|
return data, status_code, headers
|
|
355
869
|
end
|
|
356
870
|
|
|
357
|
-
#
|
|
358
|
-
# @param company_id [String]
|
|
359
|
-
# @param asset_id [String]
|
|
360
|
-
# @param assets_update [AssetsUpdate]
|
|
871
|
+
# Retrieve and save an asset's information schema
|
|
872
|
+
# @param company_id [String] Unique identifier for the Company
|
|
873
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
361
874
|
# @param [Hash] opts the optional parameters
|
|
362
|
-
# @return [
|
|
363
|
-
def
|
|
364
|
-
data, _status_code, _headers =
|
|
875
|
+
# @return [GetAssetsByIdAnalyze200Response]
|
|
876
|
+
def get_assets_by_id_infoschema_save(company_id, asset_id, opts = {})
|
|
877
|
+
data, _status_code, _headers = get_assets_by_id_infoschema_save_with_http_info(company_id, asset_id, opts)
|
|
365
878
|
data
|
|
366
879
|
end
|
|
367
880
|
|
|
368
|
-
#
|
|
369
|
-
# @param company_id [String]
|
|
370
|
-
# @param asset_id [String]
|
|
371
|
-
# @param assets_update [AssetsUpdate]
|
|
881
|
+
# Retrieve and save an asset's information schema
|
|
882
|
+
# @param company_id [String] Unique identifier for the Company
|
|
883
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
372
884
|
# @param [Hash] opts the optional parameters
|
|
373
|
-
# @return [Array<(
|
|
374
|
-
def
|
|
885
|
+
# @return [Array<(GetAssetsByIdAnalyze200Response, Integer, Hash)>] GetAssetsByIdAnalyze200Response data, response status code and response headers
|
|
886
|
+
def get_assets_by_id_infoschema_save_with_http_info(company_id, asset_id, opts = {})
|
|
375
887
|
if @api_client.config.debugging
|
|
376
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
888
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.get_assets_by_id_infoschema_save ...'
|
|
377
889
|
end
|
|
378
890
|
# verify the required parameter 'company_id' is set
|
|
379
891
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
380
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
892
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.get_assets_by_id_infoschema_save"
|
|
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.'
|
|
381
900
|
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
|
+
|
|
382
907
|
# verify the required parameter 'asset_id' is set
|
|
383
908
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
384
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
909
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.get_assets_by_id_infoschema_save"
|
|
385
910
|
end
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
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}."
|
|
389
922
|
end
|
|
923
|
+
|
|
390
924
|
# resource path
|
|
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))
|
|
925
|
+
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))
|
|
392
926
|
|
|
393
927
|
# query parameters
|
|
394
928
|
query_params = opts[:query_params] || {}
|
|
@@ -397,26 +931,21 @@ module SparteraApiSdk
|
|
|
397
931
|
header_params = opts[:header_params] || {}
|
|
398
932
|
# HTTP header 'Accept' (if needed)
|
|
399
933
|
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
|
|
405
934
|
|
|
406
935
|
# form parameters
|
|
407
936
|
form_params = opts[:form_params] || {}
|
|
408
937
|
|
|
409
938
|
# http body (model)
|
|
410
|
-
post_body = opts[:debug_body]
|
|
939
|
+
post_body = opts[:debug_body]
|
|
411
940
|
|
|
412
941
|
# return_type
|
|
413
|
-
return_type = opts[:debug_return_type] || '
|
|
942
|
+
return_type = opts[:debug_return_type] || 'GetAssetsByIdAnalyze200Response'
|
|
414
943
|
|
|
415
944
|
# auth_names
|
|
416
945
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
417
946
|
|
|
418
947
|
new_options = opts.merge(
|
|
419
|
-
:operation => :"AssetsApi.
|
|
948
|
+
:operation => :"AssetsApi.get_assets_by_id_infoschema_save",
|
|
420
949
|
:header_params => header_params,
|
|
421
950
|
:query_params => query_params,
|
|
422
951
|
:form_params => form_params,
|
|
@@ -425,40 +954,66 @@ module SparteraApiSdk
|
|
|
425
954
|
:return_type => return_type
|
|
426
955
|
)
|
|
427
956
|
|
|
428
|
-
data, status_code, headers = @api_client.call_api(:
|
|
957
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
429
958
|
if @api_client.config.debugging
|
|
430
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
959
|
+
@api_client.config.logger.debug "API called: AssetsApi#get_assets_by_id_infoschema_save\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
431
960
|
end
|
|
432
961
|
return data, status_code, headers
|
|
433
962
|
end
|
|
434
963
|
|
|
435
964
|
# Get AI-predicted pricing for a specific asset
|
|
436
|
-
# @param company_id [String]
|
|
437
|
-
# @param asset_id [String]
|
|
965
|
+
# @param company_id [String] Unique identifier for the Company
|
|
966
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
438
967
|
# @param [Hash] opts the optional parameters
|
|
439
|
-
# @return [
|
|
440
|
-
def
|
|
441
|
-
data, _status_code, _headers =
|
|
968
|
+
# @return [GetAssetsByIdAnalyze200Response]
|
|
969
|
+
def get_assets_by_id_predicted_price(company_id, asset_id, opts = {})
|
|
970
|
+
data, _status_code, _headers = get_assets_by_id_predicted_price_with_http_info(company_id, asset_id, opts)
|
|
442
971
|
data
|
|
443
972
|
end
|
|
444
973
|
|
|
445
974
|
# Get AI-predicted pricing for a specific asset
|
|
446
|
-
# @param company_id [String]
|
|
447
|
-
# @param asset_id [String]
|
|
975
|
+
# @param company_id [String] Unique identifier for the Company
|
|
976
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
448
977
|
# @param [Hash] opts the optional parameters
|
|
449
|
-
# @return [Array<(
|
|
450
|
-
def
|
|
978
|
+
# @return [Array<(GetAssetsByIdAnalyze200Response, Integer, Hash)>] GetAssetsByIdAnalyze200Response data, response status code and response headers
|
|
979
|
+
def get_assets_by_id_predicted_price_with_http_info(company_id, asset_id, opts = {})
|
|
451
980
|
if @api_client.config.debugging
|
|
452
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
981
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.get_assets_by_id_predicted_price ...'
|
|
453
982
|
end
|
|
454
983
|
# verify the required parameter 'company_id' is set
|
|
455
984
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
456
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
985
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.get_assets_by_id_predicted_price"
|
|
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}."
|
|
457
998
|
end
|
|
999
|
+
|
|
458
1000
|
# verify the required parameter 'asset_id' is set
|
|
459
1001
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
460
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
1002
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.get_assets_by_id_predicted_price"
|
|
461
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.'
|
|
1006
|
+
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
|
+
|
|
462
1017
|
# resource path
|
|
463
1018
|
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))
|
|
464
1019
|
|
|
@@ -477,13 +1032,13 @@ module SparteraApiSdk
|
|
|
477
1032
|
post_body = opts[:debug_body]
|
|
478
1033
|
|
|
479
1034
|
# return_type
|
|
480
|
-
return_type = opts[:debug_return_type] || '
|
|
1035
|
+
return_type = opts[:debug_return_type] || 'GetAssetsByIdAnalyze200Response'
|
|
481
1036
|
|
|
482
1037
|
# auth_names
|
|
483
1038
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
484
1039
|
|
|
485
1040
|
new_options = opts.merge(
|
|
486
|
-
:operation => :"AssetsApi.
|
|
1041
|
+
:operation => :"AssetsApi.get_assets_by_id_predicted_price",
|
|
487
1042
|
:header_params => header_params,
|
|
488
1043
|
:query_params => query_params,
|
|
489
1044
|
:form_params => form_params,
|
|
@@ -494,40 +1049,47 @@ module SparteraApiSdk
|
|
|
494
1049
|
|
|
495
1050
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
496
1051
|
if @api_client.config.debugging
|
|
497
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
1052
|
+
@api_client.config.logger.debug "API called: AssetsApi#get_assets_by_id_predicted_price\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
498
1053
|
end
|
|
499
1054
|
return data, status_code, headers
|
|
500
1055
|
end
|
|
501
1056
|
|
|
502
|
-
# Get statistics for
|
|
503
|
-
# @param company_id [String]
|
|
504
|
-
# @param asset_id [String]
|
|
1057
|
+
# Get statistics for all assets the user has access to
|
|
1058
|
+
# @param company_id [String] Unique identifier for the Company
|
|
505
1059
|
# @param [Hash] opts the optional parameters
|
|
506
|
-
# @return [
|
|
507
|
-
def
|
|
508
|
-
data, _status_code, _headers =
|
|
1060
|
+
# @return [GetAssetsByIdAnalyze200Response]
|
|
1061
|
+
def get_assets_by_id_statistics(company_id, opts = {})
|
|
1062
|
+
data, _status_code, _headers = get_assets_by_id_statistics_with_http_info(company_id, opts)
|
|
509
1063
|
data
|
|
510
1064
|
end
|
|
511
1065
|
|
|
512
|
-
# Get statistics for
|
|
513
|
-
# @param company_id [String]
|
|
514
|
-
# @param asset_id [String]
|
|
1066
|
+
# Get statistics for all assets the user has access to
|
|
1067
|
+
# @param company_id [String] Unique identifier for the Company
|
|
515
1068
|
# @param [Hash] opts the optional parameters
|
|
516
|
-
# @return [Array<(
|
|
517
|
-
def
|
|
1069
|
+
# @return [Array<(GetAssetsByIdAnalyze200Response, Integer, Hash)>] GetAssetsByIdAnalyze200Response data, response status code and response headers
|
|
1070
|
+
def get_assets_by_id_statistics_with_http_info(company_id, opts = {})
|
|
518
1071
|
if @api_client.config.debugging
|
|
519
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
1072
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.get_assets_by_id_statistics ...'
|
|
520
1073
|
end
|
|
521
1074
|
# verify the required parameter 'company_id' is set
|
|
522
1075
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
523
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
1076
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.get_assets_by_id_statistics"
|
|
524
1077
|
end
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
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}."
|
|
528
1089
|
end
|
|
1090
|
+
|
|
529
1091
|
# resource path
|
|
530
|
-
local_var_path = '/companies/{company_id}/assets/
|
|
1092
|
+
local_var_path = '/companies/{company_id}/assets/statistics'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
531
1093
|
|
|
532
1094
|
# query parameters
|
|
533
1095
|
query_params = opts[:query_params] || {}
|
|
@@ -544,13 +1106,13 @@ module SparteraApiSdk
|
|
|
544
1106
|
post_body = opts[:debug_body]
|
|
545
1107
|
|
|
546
1108
|
# return_type
|
|
547
|
-
return_type = opts[:debug_return_type] || '
|
|
1109
|
+
return_type = opts[:debug_return_type] || 'GetAssetsByIdAnalyze200Response'
|
|
548
1110
|
|
|
549
1111
|
# auth_names
|
|
550
1112
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
551
1113
|
|
|
552
1114
|
new_options = opts.merge(
|
|
553
|
-
:operation => :"AssetsApi.
|
|
1115
|
+
:operation => :"AssetsApi.get_assets_by_id_statistics",
|
|
554
1116
|
:header_params => header_params,
|
|
555
1117
|
:query_params => query_params,
|
|
556
1118
|
:form_params => form_params,
|
|
@@ -561,38 +1123,64 @@ module SparteraApiSdk
|
|
|
561
1123
|
|
|
562
1124
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
563
1125
|
if @api_client.config.debugging
|
|
564
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
1126
|
+
@api_client.config.logger.debug "API called: AssetsApi#get_assets_by_id_statistics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
565
1127
|
end
|
|
566
1128
|
return data, status_code, headers
|
|
567
1129
|
end
|
|
568
1130
|
|
|
569
|
-
#
|
|
570
|
-
# @param company_id [String]
|
|
571
|
-
# @param asset_id [String]
|
|
1131
|
+
# GET /companies/{company_id}/assets/{asset_id}/test
|
|
1132
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1133
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
572
1134
|
# @param [Hash] opts the optional parameters
|
|
573
|
-
# @return [
|
|
574
|
-
def
|
|
575
|
-
data, _status_code, _headers =
|
|
1135
|
+
# @return [GetAssetsByIdAnalyze200Response]
|
|
1136
|
+
def get_assets_by_id_test(company_id, asset_id, opts = {})
|
|
1137
|
+
data, _status_code, _headers = get_assets_by_id_test_with_http_info(company_id, asset_id, opts)
|
|
576
1138
|
data
|
|
577
1139
|
end
|
|
578
1140
|
|
|
579
|
-
#
|
|
580
|
-
# @param company_id [String]
|
|
581
|
-
# @param asset_id [String]
|
|
1141
|
+
# GET /companies/{company_id}/assets/{asset_id}/test
|
|
1142
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1143
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
582
1144
|
# @param [Hash] opts the optional parameters
|
|
583
|
-
# @return [Array<(
|
|
584
|
-
def
|
|
1145
|
+
# @return [Array<(GetAssetsByIdAnalyze200Response, Integer, Hash)>] GetAssetsByIdAnalyze200Response data, response status code and response headers
|
|
1146
|
+
def get_assets_by_id_test_with_http_info(company_id, asset_id, opts = {})
|
|
585
1147
|
if @api_client.config.debugging
|
|
586
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
1148
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.get_assets_by_id_test ...'
|
|
587
1149
|
end
|
|
588
1150
|
# verify the required parameter 'company_id' is set
|
|
589
1151
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
590
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
1152
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.get_assets_by_id_test"
|
|
1153
|
+
end
|
|
1154
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
1155
|
+
fail ArgumentError, 'invalid value for "company_id" when calling AssetsApi.get_assets_by_id_test, the character length must be smaller than or equal to 255.'
|
|
1156
|
+
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}."
|
|
591
1165
|
end
|
|
1166
|
+
|
|
592
1167
|
# verify the required parameter 'asset_id' is set
|
|
593
1168
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
594
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.
|
|
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}."
|
|
595
1182
|
end
|
|
1183
|
+
|
|
596
1184
|
# resource path
|
|
597
1185
|
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))
|
|
598
1186
|
|
|
@@ -611,13 +1199,13 @@ module SparteraApiSdk
|
|
|
611
1199
|
post_body = opts[:debug_body]
|
|
612
1200
|
|
|
613
1201
|
# return_type
|
|
614
|
-
return_type = opts[:debug_return_type] || '
|
|
1202
|
+
return_type = opts[:debug_return_type] || 'GetAssetsByIdAnalyze200Response'
|
|
615
1203
|
|
|
616
1204
|
# auth_names
|
|
617
1205
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
618
1206
|
|
|
619
1207
|
new_options = opts.merge(
|
|
620
|
-
:operation => :"AssetsApi.
|
|
1208
|
+
:operation => :"AssetsApi.get_assets_by_id_test",
|
|
621
1209
|
:header_params => header_params,
|
|
622
1210
|
:query_params => query_params,
|
|
623
1211
|
:form_params => form_params,
|
|
@@ -628,37 +1216,89 @@ module SparteraApiSdk
|
|
|
628
1216
|
|
|
629
1217
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
630
1218
|
if @api_client.config.debugging
|
|
631
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
1219
|
+
@api_client.config.logger.debug "API called: AssetsApi#get_assets_by_id_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
632
1220
|
end
|
|
633
1221
|
return data, status_code, headers
|
|
634
1222
|
end
|
|
635
1223
|
|
|
636
1224
|
# Get all assets for a specific company
|
|
637
|
-
# @param company_id [String]
|
|
1225
|
+
# @param company_id [String] Unique identifier for the Company
|
|
638
1226
|
# @param [Hash] opts the optional parameters
|
|
639
|
-
# @
|
|
640
|
-
|
|
641
|
-
|
|
1227
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
1228
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
1229
|
+
# @option opts [String] :sort_by Field to sort by
|
|
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)
|
|
642
1235
|
data
|
|
643
1236
|
end
|
|
644
1237
|
|
|
645
1238
|
# Get all assets for a specific company
|
|
646
|
-
# @param company_id [String]
|
|
1239
|
+
# @param company_id [String] Unique identifier for the Company
|
|
647
1240
|
# @param [Hash] opts the optional parameters
|
|
648
|
-
# @
|
|
649
|
-
|
|
1241
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
1242
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
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 = {})
|
|
650
1248
|
if @api_client.config.debugging
|
|
651
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
1249
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.list_assets ...'
|
|
652
1250
|
end
|
|
653
1251
|
# verify the required parameter 'company_id' is set
|
|
654
1252
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
655
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
1253
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.list_assets"
|
|
656
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.'
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
allowable_values = ["asc", "desc"]
|
|
1281
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
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.'
|
|
1290
|
+
end
|
|
1291
|
+
|
|
657
1292
|
# resource path
|
|
658
1293
|
local_var_path = '/companies/{company_id}/assets'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
659
1294
|
|
|
660
1295
|
# query parameters
|
|
661
1296
|
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?
|
|
662
1302
|
|
|
663
1303
|
# header parameters
|
|
664
1304
|
header_params = opts[:header_params] || {}
|
|
@@ -672,13 +1312,13 @@ module SparteraApiSdk
|
|
|
672
1312
|
post_body = opts[:debug_body]
|
|
673
1313
|
|
|
674
1314
|
# return_type
|
|
675
|
-
return_type = opts[:debug_return_type] || '
|
|
1315
|
+
return_type = opts[:debug_return_type] || 'ListAssets200Response'
|
|
676
1316
|
|
|
677
1317
|
# auth_names
|
|
678
1318
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
679
1319
|
|
|
680
1320
|
new_options = opts.merge(
|
|
681
|
-
:operation => :"AssetsApi.
|
|
1321
|
+
:operation => :"AssetsApi.list_assets",
|
|
682
1322
|
:header_params => header_params,
|
|
683
1323
|
:query_params => query_params,
|
|
684
1324
|
:form_params => form_params,
|
|
@@ -689,68 +1329,109 @@ module SparteraApiSdk
|
|
|
689
1329
|
|
|
690
1330
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
691
1331
|
if @api_client.config.debugging
|
|
692
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
1332
|
+
@api_client.config.logger.debug "API called: AssetsApi#list_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
693
1333
|
end
|
|
694
1334
|
return data, status_code, headers
|
|
695
1335
|
end
|
|
696
1336
|
|
|
697
|
-
#
|
|
698
|
-
# @param company_id [String]
|
|
699
|
-
# @param assets_input [AssetsInput]
|
|
1337
|
+
# Search and filter assets with advanced options Query Parameters: q: Search query string category: Filter by category sport: Filter by sport tag sort_by: Sort field (name|recent|popular|trending) limit: Number of results (default 20, max 100) offset: Offset for pagination include_recommended: Include recommendations (true/false) include_schema: Include asset_schema in response (true/false, default false)
|
|
1338
|
+
# @param company_id [String] Unique identifier for the Company
|
|
700
1339
|
# @param [Hash] opts the optional parameters
|
|
701
|
-
# @
|
|
702
|
-
|
|
703
|
-
|
|
1340
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
1341
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
1342
|
+
# @option opts [String] :sort_by Field to sort by
|
|
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)
|
|
704
1348
|
data
|
|
705
1349
|
end
|
|
706
1350
|
|
|
707
|
-
#
|
|
708
|
-
# @param company_id [String]
|
|
709
|
-
# @param assets_input [AssetsInput]
|
|
1351
|
+
# Search and filter assets with advanced options Query Parameters: q: Search query string category: Filter by category sport: Filter by sport tag sort_by: Sort field (name|recent|popular|trending) limit: Number of results (default 20, max 100) offset: Offset for pagination include_recommended: Include recommendations (true/false) include_schema: Include asset_schema in response (true/false, default false)
|
|
1352
|
+
# @param company_id [String] Unique identifier for the Company
|
|
710
1353
|
# @param [Hash] opts the optional parameters
|
|
711
|
-
# @
|
|
712
|
-
|
|
1354
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
1355
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
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 = {})
|
|
713
1361
|
if @api_client.config.debugging
|
|
714
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
1362
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.list_assets_search ...'
|
|
715
1363
|
end
|
|
716
1364
|
# verify the required parameter 'company_id' is set
|
|
717
1365
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
718
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
1366
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.list_assets_search"
|
|
719
1367
|
end
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
fail ArgumentError, "Missing the required parameter 'assets_input' when calling AssetsApi.companies_company_id_assets_post"
|
|
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.'
|
|
723
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.'
|
|
1387
|
+
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
|
+
|
|
724
1405
|
# resource path
|
|
725
|
-
local_var_path = '/companies/{company_id}/assets'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
1406
|
+
local_var_path = '/companies/{company_id}/assets/search'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
726
1407
|
|
|
727
1408
|
# query parameters
|
|
728
1409
|
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?
|
|
729
1415
|
|
|
730
1416
|
# header parameters
|
|
731
1417
|
header_params = opts[:header_params] || {}
|
|
732
1418
|
# HTTP header 'Accept' (if needed)
|
|
733
1419
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
734
|
-
# HTTP header 'Content-Type'
|
|
735
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
736
|
-
if !content_type.nil?
|
|
737
|
-
header_params['Content-Type'] = content_type
|
|
738
|
-
end
|
|
739
1420
|
|
|
740
1421
|
# form parameters
|
|
741
1422
|
form_params = opts[:form_params] || {}
|
|
742
1423
|
|
|
743
1424
|
# http body (model)
|
|
744
|
-
post_body = opts[:debug_body]
|
|
1425
|
+
post_body = opts[:debug_body]
|
|
745
1426
|
|
|
746
1427
|
# return_type
|
|
747
|
-
return_type = opts[:debug_return_type] || '
|
|
1428
|
+
return_type = opts[:debug_return_type] || 'ListAssets200Response'
|
|
748
1429
|
|
|
749
1430
|
# auth_names
|
|
750
1431
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
751
1432
|
|
|
752
1433
|
new_options = opts.merge(
|
|
753
|
-
:operation => :"AssetsApi.
|
|
1434
|
+
:operation => :"AssetsApi.list_assets_search",
|
|
754
1435
|
:header_params => header_params,
|
|
755
1436
|
:query_params => query_params,
|
|
756
1437
|
:form_params => form_params,
|
|
@@ -759,36 +1440,74 @@ module SparteraApiSdk
|
|
|
759
1440
|
:return_type => return_type
|
|
760
1441
|
)
|
|
761
1442
|
|
|
762
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1443
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
763
1444
|
if @api_client.config.debugging
|
|
764
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
1445
|
+
@api_client.config.logger.debug "API called: AssetsApi#list_assets_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
765
1446
|
end
|
|
766
1447
|
return data, status_code, headers
|
|
767
1448
|
end
|
|
768
1449
|
|
|
769
|
-
#
|
|
770
|
-
# @param company_id [String]
|
|
1450
|
+
# Update an existing asset by ID
|
|
1451
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1452
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
1453
|
+
# @param assets_update [AssetsUpdate]
|
|
771
1454
|
# @param [Hash] opts the optional parameters
|
|
772
|
-
# @return [
|
|
773
|
-
def
|
|
774
|
-
data, _status_code, _headers =
|
|
1455
|
+
# @return [UpdateAssets200Response]
|
|
1456
|
+
def update_assets(company_id, asset_id, assets_update, opts = {})
|
|
1457
|
+
data, _status_code, _headers = update_assets_with_http_info(company_id, asset_id, assets_update, opts)
|
|
775
1458
|
data
|
|
776
1459
|
end
|
|
777
1460
|
|
|
778
|
-
#
|
|
779
|
-
# @param company_id [String]
|
|
1461
|
+
# Update an existing asset by ID
|
|
1462
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1463
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
1464
|
+
# @param assets_update [AssetsUpdate]
|
|
780
1465
|
# @param [Hash] opts the optional parameters
|
|
781
|
-
# @return [Array<(
|
|
782
|
-
def
|
|
1466
|
+
# @return [Array<(UpdateAssets200Response, Integer, Hash)>] UpdateAssets200Response data, response status code and response headers
|
|
1467
|
+
def update_assets_with_http_info(company_id, asset_id, assets_update, opts = {})
|
|
783
1468
|
if @api_client.config.debugging
|
|
784
|
-
@api_client.config.logger.debug 'Calling API: AssetsApi.
|
|
1469
|
+
@api_client.config.logger.debug 'Calling API: AssetsApi.update_assets ...'
|
|
785
1470
|
end
|
|
786
1471
|
# verify the required parameter 'company_id' is set
|
|
787
1472
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
788
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.
|
|
1473
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling AssetsApi.update_assets"
|
|
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"
|
|
789
1508
|
end
|
|
790
1509
|
# resource path
|
|
791
|
-
local_var_path = '/companies/{company_id}/assets/
|
|
1510
|
+
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))
|
|
792
1511
|
|
|
793
1512
|
# query parameters
|
|
794
1513
|
query_params = opts[:query_params] || {}
|
|
@@ -797,21 +1516,26 @@ module SparteraApiSdk
|
|
|
797
1516
|
header_params = opts[:header_params] || {}
|
|
798
1517
|
# HTTP header 'Accept' (if needed)
|
|
799
1518
|
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
|
|
800
1524
|
|
|
801
1525
|
# form parameters
|
|
802
1526
|
form_params = opts[:form_params] || {}
|
|
803
1527
|
|
|
804
1528
|
# http body (model)
|
|
805
|
-
post_body = opts[:debug_body]
|
|
1529
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(assets_update)
|
|
806
1530
|
|
|
807
1531
|
# return_type
|
|
808
|
-
return_type = opts[:debug_return_type] || '
|
|
1532
|
+
return_type = opts[:debug_return_type] || 'UpdateAssets200Response'
|
|
809
1533
|
|
|
810
1534
|
# auth_names
|
|
811
1535
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
812
1536
|
|
|
813
1537
|
new_options = opts.merge(
|
|
814
|
-
:operation => :"AssetsApi.
|
|
1538
|
+
:operation => :"AssetsApi.update_assets",
|
|
815
1539
|
:header_params => header_params,
|
|
816
1540
|
:query_params => query_params,
|
|
817
1541
|
:form_params => form_params,
|
|
@@ -820,9 +1544,9 @@ module SparteraApiSdk
|
|
|
820
1544
|
:return_type => return_type
|
|
821
1545
|
)
|
|
822
1546
|
|
|
823
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1547
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
824
1548
|
if @api_client.config.debugging
|
|
825
|
-
@api_client.config.logger.debug "API called: AssetsApi#
|
|
1549
|
+
@api_client.config.logger.debug "API called: AssetsApi#update_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
826
1550
|
end
|
|
827
1551
|
return data, status_code, headers
|
|
828
1552
|
end
|