spartera_api_sdk 1.0.74 → 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 +261 -87
- data/docs/Alerts.md +30 -0
- data/docs/AlertsApi.md +139 -139
- data/docs/AlertsInput.md +24 -0
- data/docs/AlertsUpdate.md +24 -0
- data/docs/ApiKeys.md +40 -0
- data/docs/ApiKeysInput.md +34 -0
- data/docs/ApiKeysUpdate.md +34 -0
- data/docs/AssetPriceHistory.md +30 -0
- data/docs/AssetPriceHistoryApi.md +162 -154
- data/docs/AssetPriceHistoryInput.md +24 -0
- data/docs/AssetPriceHistoryUpdate.md +24 -0
- data/docs/AssetUsecases.md +28 -0
- data/docs/AssetUsecasesApi.md +157 -0
- data/docs/Assets.md +138 -0
- data/docs/AssetsApi.md +534 -206
- data/docs/AssetsInput.md +124 -0
- data/docs/AssetsUpdate.md +124 -0
- data/docs/CloudProviders.md +28 -0
- data/docs/CloudProvidersApi.md +44 -31
- data/docs/CloudProvidersInput.md +22 -0
- data/docs/CloudProvidersUpdate.md +22 -0
- data/docs/Companies.md +46 -0
- data/docs/CompaniesApi.md +312 -144
- data/docs/CompaniesInput.md +40 -0
- data/docs/CompaniesUpdate.md +40 -0
- data/docs/Connections.md +38 -0
- data/docs/ConnectionsApi.md +149 -125
- data/docs/ConnectionsInput.md +32 -0
- data/docs/ConnectionsUpdate.md +32 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdGet200Response.md → CreateAlerts200Response.md} +3 -3
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsPost200ResponseData.md → CreateAlerts200ResponseData.md} +2 -2
- data/docs/CreateApiKeys200Response.md +20 -0
- data/docs/CreateApiKeys200ResponseData.md +18 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdGet200Response.md → CreateAssetPriceHistory200Response.md} +3 -3
- data/docs/CreateAssetPriceHistory200ResponseData.md +18 -0
- 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/{CompaniesCompanyIdAssetsGet200Response.md → CreatePosts200Response.md} +3 -3
- 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/DeleteApiKeys200ResponseData.md +18 -0
- data/docs/DeleteAssetPriceHistory200Response.md +20 -0
- data/docs/DeleteAssetPriceHistory200ResponseData.md +18 -0
- 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 +34 -0
- data/docs/FavoritesApi.md +159 -159
- data/docs/FavoritesInput.md +28 -0
- data/docs/FavoritesUpdate.md +28 -0
- data/docs/{CompaniesCompanyIdUsersUserIdGet200Response.md → GetAlertsById200Response.md} +3 -3
- data/docs/{CompaniesCompanyIdUsersGet200Response.md → GetApiKeysById200Response.md} +3 -3
- data/docs/GetAssetPriceHistoryById200Response.md +20 -0
- data/docs/GetAssetUsecasesById200Response.md +20 -0
- data/docs/GetAssetsByIdAnalyze200Response.md +20 -0
- data/docs/GetCloudProvidersById200Response.md +20 -0
- data/docs/GetCompaniesById200Response.md +20 -0
- data/docs/GetConnectionsById200Response.md +20 -0
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +20 -0
- data/docs/GetFavoritesById200Response.md +20 -0
- data/docs/GetIndustriesById200Response.md +20 -0
- data/docs/GetJobFunctionsById200Response.md +20 -0
- data/docs/GetPostgenIntegrationsById200Response.md +20 -0
- data/docs/GetPostsById200Response.md +20 -0
- data/docs/GetStorageEnginesById200Response.md +20 -0
- data/docs/GetUsersById200Response.md +20 -0
- data/docs/Industries.md +32 -0
- data/docs/IndustriesApi.md +237 -0
- data/docs/InlineObject4.md +20 -0
- data/docs/InlineObject5.md +20 -0
- data/docs/InlineObject6.md +22 -0
- data/docs/InlineObject7.md +20 -0
- data/docs/JobFunctions.md +24 -0
- data/docs/JobFunctionsApi.md +157 -0
- data/docs/JobFunctionsInput.md +18 -0
- data/docs/JobFunctionsUpdate.md +18 -0
- data/docs/ListApiKeys200Response.md +20 -0
- data/docs/ListAssetUsecases200Response.md +20 -0
- data/docs/ListAssets200Response.md +20 -0
- data/docs/ListCloudProviders200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysGet200Response.md → ListCompaniesAnalyticsAssets200Response.md} +3 -3
- data/docs/ListConnections200Response.md +20 -0
- data/docs/ListEndpoints200Response.md +20 -0
- data/docs/ListIndustries200Response.md +20 -0
- data/docs/ListJobFunctions200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsGet200Response.md → ListPostgenIntegrations200Response.md} +3 -3
- data/docs/ListPosts200Response.md +20 -0
- data/docs/ListStorageEngines200Response.md +20 -0
- data/docs/ListUsers200Response.md +20 -0
- data/docs/PostPublications.md +40 -0
- data/docs/PostPublicationsInput.md +34 -0
- data/docs/PostPublicationsUpdate.md +34 -0
- data/docs/PostgenIntegrations.md +36 -0
- data/docs/PostgenIntegrationsApi.md +463 -0
- data/docs/PostgenIntegrationsInput.md +30 -0
- data/docs/PostgenIntegrationsUpdate.md +30 -0
- data/docs/Posts.md +68 -0
- data/docs/PostsApi.md +843 -0
- data/docs/PostsInput.md +62 -0
- data/docs/PostsUpdate.md +62 -0
- data/docs/StorageEngines.md +32 -0
- data/docs/StorageEnginesApi.md +40 -28
- data/docs/UpdateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200ResponseData.md → UpdateAlerts200ResponseData.md} +2 -2
- data/docs/UpdateApiKeys200Response.md +20 -0
- data/docs/UpdateApiKeys200ResponseData.md +18 -0
- data/docs/UpdateAssetPriceHistory200Response.md +20 -0
- data/docs/UpdateAssetPriceHistory200ResponseData.md +18 -0
- data/docs/UpdateAssets200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPatch200ResponseData.md → UpdateAssets200ResponseData.md} +2 -2
- data/docs/UpdateCompanies200Response.md +20 -0
- data/docs/UpdateCompanies200ResponseData.md +18 -0
- 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 +36 -0
- data/docs/UsersApi.md +306 -101
- data/docs/UsersInput.md +30 -0
- data/docs/UsersUpdate.md +30 -0
- data/git_push.sh +57 -0
- data/lib/spartera_api_sdk/api/alerts_api.rb +414 -167
- data/lib/spartera_api_sdk/api/api_keys_api.rb +491 -90
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +460 -169
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +190 -0
- data/lib/spartera_api_sdk/api/assets_api.rb +952 -228
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +83 -31
- data/lib/spartera_api_sdk/api/companies_api.rb +651 -137
- 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 +190 -0
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +634 -0
- data/lib/spartera_api_sdk/api/posts_api.rb +1190 -0
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +107 -29
- data/lib/spartera_api_sdk/api/users_api.rb +581 -112
- 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/{alert.rb → alerts.rb} +46 -139
- data/lib/spartera_api_sdk/models/alerts_input.rb +213 -0
- data/lib/spartera_api_sdk/models/alerts_update.rb +179 -0
- data/lib/spartera_api_sdk/models/{apikey.rb → api_keys.rb} +98 -124
- data/lib/spartera_api_sdk/models/api_keys_input.rb +263 -0
- data/lib/spartera_api_sdk/models/api_keys_update.rb +229 -0
- data/lib/spartera_api_sdk/models/asset_price_history.rb +209 -0
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +179 -0
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +179 -0
- data/lib/spartera_api_sdk/models/asset_usecases.rb +216 -0
- data/lib/spartera_api_sdk/models/assets.rb +1048 -0
- data/lib/spartera_api_sdk/models/assets_input.rb +898 -0
- data/lib/spartera_api_sdk/models/assets_update.rb +857 -0
- data/lib/spartera_api_sdk/models/{cloudprovider.rb → cloud_providers.rb} +35 -111
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +186 -0
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +169 -0
- data/lib/spartera_api_sdk/models/{company.rb → companies.rb} +90 -105
- data/lib/spartera_api_sdk/models/companies_input.rb +327 -0
- data/lib/spartera_api_sdk/models/companies_update.rb +293 -0
- data/lib/spartera_api_sdk/models/{connection.rb → connections.rb} +69 -186
- data/lib/spartera_api_sdk/models/connections_input.rb +287 -0
- data/lib/spartera_api_sdk/models/connections_update.rb +253 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_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/{companies_company_id_assets_asset_id_get200_response.rb → create_api_keys200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{me_get200_response_api_key_info.rb → create_api_keys200_response_data.rb} +27 -94
- data/lib/spartera_api_sdk/models/{companies_company_id_users_post200_response.rb → create_asset_price_history200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{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/create_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{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/delete_api_keys200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{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/{favorite.rb → favorites.rb} +38 -111
- data/lib/spartera_api_sdk/models/favorites_input.rb +233 -0
- data/lib/spartera_api_sdk/models/favorites_update.rb +199 -0
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_api_keys_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_asset_price_history_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_assets_by_id_analyze200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_cloud_providers_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_connections_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{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/get_users_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/industries.rb +253 -0
- data/lib/spartera_api_sdk/models/inline_object.rb +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/{companies_company_id_api_keys_get200_response.rb → inline_object6.rb} +22 -104
- data/lib/spartera_api_sdk/models/inline_object7.rb +156 -0
- data/lib/spartera_api_sdk/models/job_functions.rb +213 -0
- data/lib/spartera_api_sdk/models/job_functions_input.rb +166 -0
- data/lib/spartera_api_sdk/models/job_functions_update.rb +149 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_get200_response.rb → list_api_keys200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_get200_response.rb → list_asset_usecases200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_get200_response.rb → list_assets200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_post200_response.rb → list_companies_analytics_assets200_response.rb} +9 -80
- data/lib/spartera_api_sdk/models/list_connections200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_users200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/post_publications.rb +327 -0
- data/lib/spartera_api_sdk/models/post_publications_input.rb +280 -0
- data/lib/spartera_api_sdk/models/post_publications_update.rb +229 -0
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +341 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +294 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +209 -0
- data/lib/spartera_api_sdk/models/posts.rb +586 -0
- data/lib/spartera_api_sdk/models/posts_input.rb +437 -0
- data/lib/spartera_api_sdk/models/posts_update.rb +369 -0
- data/lib/spartera_api_sdk/models/storage_engines.rb +294 -0
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{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/update_api_keys200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{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/update_companies200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{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/{user.rb → users.rb} +112 -108
- data/lib/spartera_api_sdk/models/{me_get200_response_profile.rb → users_input.rb} +54 -139
- data/lib/spartera_api_sdk/models/{me_get200_response_token_metadata.rb → users_update.rb} +101 -110
- data/lib/spartera_api_sdk/version.rb +13 -1
- data/lib/spartera_api_sdk.rb +149 -56
- data/spartera_api_sdk.gemspec +39 -0
- data/spec/api/alerts_api_spec.rb +50 -50
- data/spec/api/api_keys_api_spec.rb +67 -30
- data/spec/api/asset_price_history_api_spec.rb +57 -53
- 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 -47
- 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 +61 -0
- data/spec/api/postgen_integrations_api_spec.rb +117 -0
- data/spec/api/posts_api_spec.rb +186 -0
- data/spec/api/storage_engines_api_spec.rb +16 -11
- data/spec/api/users_api_spec.rb +83 -34
- data/spec/models/{me_get200_response_token_metadata_spec.rb → alerts_input_spec.rb} +12 -12
- data/spec/models/alerts_spec.rb +72 -0
- data/spec/models/alerts_update_spec.rb +54 -0
- data/spec/models/{apikey_spec.rb → api_keys_input_spec.rb} +14 -20
- data/spec/models/{assetpricehistory_spec.rb → api_keys_spec.rb} +25 -19
- data/spec/models/{user_spec.rb → api_keys_update_spec.rb} +15 -15
- data/spec/models/asset_price_history_input_spec.rb +54 -0
- data/spec/models/asset_price_history_spec.rb +72 -0
- data/spec/models/asset_price_history_update_spec.rb +54 -0
- data/spec/models/asset_usecases_spec.rb +66 -0
- data/spec/models/{asset_spec.rb → assets_input_spec.rb} +122 -28
- data/spec/models/assets_spec.rb +452 -0
- data/spec/models/assets_update_spec.rb +406 -0
- data/spec/models/{companies_company_id_assets_asset_id_get200_response_spec.rb → cloud_providers_input_spec.rb} +16 -10
- data/spec/models/{cloudprovider_spec.rb → cloud_providers_spec.rb} +14 -20
- data/spec/models/{companies_company_id_assets_asset_id_delete200_response_spec.rb → cloud_providers_update_spec.rb} +16 -10
- data/spec/models/companies_input_spec.rb +106 -0
- data/spec/models/{company_spec.rb → companies_spec.rb} +26 -16
- data/spec/models/companies_update_spec.rb +106 -0
- data/spec/models/connections_input_spec.rb +82 -0
- data/spec/models/{me_get200_response_spec.rb → connections_spec.rb} +28 -22
- data/spec/models/connections_update_spec.rb +82 -0
- data/spec/models/create_alerts200_response_data_spec.rb +36 -0
- data/spec/models/create_alerts200_response_spec.rb +42 -0
- data/spec/models/create_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/create_api_keys200_response_spec.rb +42 -0
- data/spec/models/create_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/{companies_company_id_assets_post200_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/{companies_company_id_users_post200_response_spec.rb → create_assets_analyze200_response_spec.rb} +8 -8
- data/spec/models/{companies_company_id_connections_post200_response_data_spec.rb → create_connections200_response_data_spec.rb} +8 -8
- data/spec/models/create_connections200_response_spec.rb +42 -0
- data/spec/models/create_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/create_endpoints200_response_spec.rb +42 -0
- data/spec/models/create_favorites200_response_data_spec.rb +36 -0
- data/spec/models/create_favorites200_response_spec.rb +42 -0
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/create_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/create_posts200_response_data_spec.rb +36 -0
- data/spec/models/create_posts200_response_spec.rb +42 -0
- data/spec/models/{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 +66 -0
- data/spec/models/{favorite_spec.rb → favorites_spec.rb} +17 -23
- data/spec/models/favorites_update_spec.rb +66 -0
- data/spec/models/get_alerts_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_assets_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/get_cloud_providers_by_id200_response_spec.rb +42 -0
- data/spec/models/get_companies_by_id200_response_spec.rb +42 -0
- data/spec/models/get_connections_by_id200_response_spec.rb +42 -0
- data/spec/models/{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/{companies_company_id_connections_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 +36 -0
- data/spec/models/job_functions_spec.rb +54 -0
- data/spec/models/job_functions_update_spec.rb +36 -0
- data/spec/models/list_api_keys200_response_spec.rb +42 -0
- data/spec/models/list_asset_usecases200_response_spec.rb +42 -0
- data/spec/models/list_assets200_response_spec.rb +42 -0
- data/spec/models/list_cloud_providers200_response_spec.rb +42 -0
- data/spec/models/{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/{alert_spec.rb → postgen_integrations_spec.rb} +17 -17
- data/spec/models/postgen_integrations_update_spec.rb +72 -0
- data/spec/models/{connection_spec.rb → posts_input_spec.rb} +51 -27
- data/spec/models/posts_spec.rb +186 -0
- data/spec/models/posts_update_spec.rb +168 -0
- data/spec/models/storage_engines_spec.rb +82 -0
- data/spec/models/update_alerts200_response_data_spec.rb +36 -0
- data/spec/models/update_alerts200_response_spec.rb +42 -0
- data/spec/models/update_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/update_api_keys200_response_spec.rb +42 -0
- data/spec/models/update_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/update_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/update_assets200_response_data_spec.rb +36 -0
- data/spec/models/update_assets200_response_spec.rb +42 -0
- data/spec/models/update_companies200_response_data_spec.rb +36 -0
- data/spec/models/update_companies200_response_spec.rb +42 -0
- data/spec/models/update_connections200_response_data_spec.rb +36 -0
- data/spec/models/update_connections200_response_spec.rb +42 -0
- data/spec/models/update_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/update_endpoints200_response_spec.rb +42 -0
- data/spec/models/update_favorites200_response_data_spec.rb +36 -0
- data/spec/models/update_favorites200_response_spec.rb +42 -0
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/update_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/update_posts200_response_data_spec.rb +36 -0
- data/spec/models/update_posts200_response_spec.rb +42 -0
- data/spec/models/{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 +76 -0
- data/spec/models/{me_get200_response_profile_spec.rb → users_spec.rb} +22 -22
- data/spec/models/users_update_spec.rb +76 -0
- data/spec/spec_helper.rb +2 -2
- metadata +623 -283
- data/docs/Alert.md +0 -36
- data/docs/Apikey.md +0 -36
- data/docs/Asset.md +0 -110
- data/docs/Assetpricehistory.md +0 -38
- data/docs/Cloudprovider.md +0 -30
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200Response.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/CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response.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/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdGet200Response.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/docs/Company.md +0 -44
- data/docs/Connection.md +0 -54
- data/docs/Favorite.md +0 -36
- data/docs/MeGet200Response.md +0 -36
- data/docs/MeGet200ResponseApiKeyInfo.md +0 -20
- data/docs/MeGet200ResponseProfile.md +0 -36
- data/docs/MeGet200ResponseTokenMetadata.md +0 -24
- data/docs/User.md +0 -34
- data/example.rb +0 -51
- data/lib/spartera_api_sdk/models/asset.rb +0 -686
- data/lib/spartera_api_sdk/models/assetpricehistory.rb +0 -345
- 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_connections_connection_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_get200_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_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_get200_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_post200_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_get200_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/lib/spartera_api_sdk/models/me_get200_response.rb +0 -417
- 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_patch200_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_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_get200_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_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_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_get200_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
- data/spec/models/me_get200_response_api_key_info_spec.rb +0 -42
|
@@ -0,0 +1,1043 @@
|
|
|
1
|
+
# SparteraApiSdk::EndpointsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.spartera.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_endpoints**](EndpointsApi.md#create_endpoints) | **POST** /companies/{company_id}/endpoints | Create a new endpoint |
|
|
8
|
+
| [**create_endpoints_keys**](EndpointsApi.md#create_endpoints_keys) | **POST** /companies/{company_id}/endpoints/{endpoint_id}/keys | POST /companies/{company_id}/endpoints/{endpoint_id}/keys |
|
|
9
|
+
| [**delete_endpoints**](EndpointsApi.md#delete_endpoints) | **DELETE** /companies/{company_id}/endpoints/{endpoint_id} | Delete single endpoint by ID |
|
|
10
|
+
| [**delete_endpoints_keys**](EndpointsApi.md#delete_endpoints_keys) | **DELETE** /companies/{company_id}/endpoints/{endpoint_id}/keys/{api_key_id} | DELETE /companies/{company_id}/endpoints/{endpoint_id}/keys/{api_key_id} |
|
|
11
|
+
| [**get_endpoints_by_id**](EndpointsApi.md#get_endpoints_by_id) | **GET** /companies/{company_id}/endpoints/{endpoint_id} | Get single endpoint by ID |
|
|
12
|
+
| [**get_endpoints_by_id_available_endpoints**](EndpointsApi.md#get_endpoints_by_id_available_endpoints) | **GET** /companies/{company_id}/endpoints/{endpoint_id}/available-endpoints | GET /companies/{company_id}/endpoints/{endpoint_id}/available-endpoints |
|
|
13
|
+
| [**get_endpoints_by_id_connections_describe**](EndpointsApi.md#get_endpoints_by_id_connections_describe) | **GET** /companies/{company_id}/endpoints/../connections/{connection_id}/describe | Get schema information for a connection Query parameters: include_fields: Whether to include field information (default: true) schemas: Optional comma-separated schemas to include tables: Optional comma-separated tables to include |
|
|
14
|
+
| [**get_endpoints_by_id_execute**](EndpointsApi.md#get_endpoints_by_id_execute) | **GET** /companies/{company_id}/endpoints/{endpoint_id}/execute | Execute an endpoint with pagination support. Customer-facing route that returns paginated data. Query params: ?start=0&limit=100 |
|
|
15
|
+
| [**get_endpoints_by_id_keys**](EndpointsApi.md#get_endpoints_by_id_keys) | **GET** /companies/{company_id}/endpoints/{endpoint_id}/keys | GET /companies/{company_id}/endpoints/{endpoint_id}/keys |
|
|
16
|
+
| [**get_endpoints_by_id_stats**](EndpointsApi.md#get_endpoints_by_id_stats) | **GET** /companies/{company_id}/endpoints/{endpoint_id}/stats | Get usage statistics for an endpoint Query parameters: days: Number of days to analyze (default: 30) |
|
|
17
|
+
| [**get_endpoints_by_id_test**](EndpointsApi.md#get_endpoints_by_id_test) | **GET** /companies/{company_id}/endpoints/{endpoint_id}/test | Test an endpoint with sample data Request body (optional): limit: Number of sample rows to return (default: 10) |
|
|
18
|
+
| [**get_endpoints_by_id_url**](EndpointsApi.md#get_endpoints_by_id_url) | **GET** /companies/{company_id}/endpoints/{endpoint_id}/url | GET /companies/{company_id}/endpoints/{endpoint_id}/url |
|
|
19
|
+
| [**list_endpoints**](EndpointsApi.md#list_endpoints) | **GET** /companies/{company_id}/endpoints | Get all endpoints for a specific company with pagination, filtering, and sorting |
|
|
20
|
+
| [**update_endpoints**](EndpointsApi.md#update_endpoints) | **PATCH** /companies/{company_id}/endpoints/{endpoint_id} | Update an existing endpoint by ID |
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## create_endpoints
|
|
24
|
+
|
|
25
|
+
> <CreateEndpoints200Response> create_endpoints(company_id, endpoints_input, opts)
|
|
26
|
+
|
|
27
|
+
Create a new endpoint
|
|
28
|
+
|
|
29
|
+
### Examples
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
require 'time'
|
|
33
|
+
require 'spartera_api_sdk'
|
|
34
|
+
# setup authorization
|
|
35
|
+
SparteraApiSdk.configure do |config|
|
|
36
|
+
# Configure API key authorization: ApiKeyAuth
|
|
37
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
38
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
39
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
43
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
44
|
+
endpoints_input = SparteraApiSdk::EndpointsInput.new({company_id: 'company_id_abc123', connection_id: 'connection_id_abc123', name: 'Example Name'}) # EndpointsInput |
|
|
45
|
+
opts = {
|
|
46
|
+
page: 56, # Integer | Page number for pagination
|
|
47
|
+
limit: 56, # Integer | Number of items per page
|
|
48
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
49
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
50
|
+
search: 'search_example' # String | Search term to filter results
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
begin
|
|
54
|
+
# Create a new endpoint
|
|
55
|
+
result = api_instance.create_endpoints(company_id, endpoints_input, opts)
|
|
56
|
+
p result
|
|
57
|
+
rescue SparteraApiSdk::ApiError => e
|
|
58
|
+
puts "Error when calling EndpointsApi->create_endpoints: #{e}"
|
|
59
|
+
end
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
#### Using the create_endpoints_with_http_info variant
|
|
63
|
+
|
|
64
|
+
This returns an Array which contains the response data, status code and headers.
|
|
65
|
+
|
|
66
|
+
> <Array(<CreateEndpoints200Response>, Integer, Hash)> create_endpoints_with_http_info(company_id, endpoints_input, opts)
|
|
67
|
+
|
|
68
|
+
```ruby
|
|
69
|
+
begin
|
|
70
|
+
# Create a new endpoint
|
|
71
|
+
data, status_code, headers = api_instance.create_endpoints_with_http_info(company_id, endpoints_input, opts)
|
|
72
|
+
p status_code # => 2xx
|
|
73
|
+
p headers # => { ... }
|
|
74
|
+
p data # => <CreateEndpoints200Response>
|
|
75
|
+
rescue SparteraApiSdk::ApiError => e
|
|
76
|
+
puts "Error when calling EndpointsApi->create_endpoints_with_http_info: #{e}"
|
|
77
|
+
end
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Parameters
|
|
81
|
+
|
|
82
|
+
| Name | Type | Description | Notes |
|
|
83
|
+
| ---- | ---- | ----------- | ----- |
|
|
84
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
85
|
+
| **endpoints_input** | [**EndpointsInput**](EndpointsInput.md) | | |
|
|
86
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
87
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
88
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
89
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
90
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
[**CreateEndpoints200Response**](CreateEndpoints200Response.md)
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: application/json
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## create_endpoints_keys
|
|
107
|
+
|
|
108
|
+
> <CreateEndpoints200Response> create_endpoints_keys(company_id, endpoint_id, endpoints_input)
|
|
109
|
+
|
|
110
|
+
POST /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
111
|
+
|
|
112
|
+
### Examples
|
|
113
|
+
|
|
114
|
+
```ruby
|
|
115
|
+
require 'time'
|
|
116
|
+
require 'spartera_api_sdk'
|
|
117
|
+
# setup authorization
|
|
118
|
+
SparteraApiSdk.configure do |config|
|
|
119
|
+
# Configure API key authorization: ApiKeyAuth
|
|
120
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
121
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
122
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
126
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
127
|
+
endpoint_id = 'endpoint_id_example' # String | Unique identifier for the Endpoint
|
|
128
|
+
endpoints_input = SparteraApiSdk::EndpointsInput.new({company_id: 'company_id_abc123', connection_id: 'connection_id_abc123', name: 'Example Name'}) # EndpointsInput |
|
|
129
|
+
|
|
130
|
+
begin
|
|
131
|
+
# POST /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
132
|
+
result = api_instance.create_endpoints_keys(company_id, endpoint_id, endpoints_input)
|
|
133
|
+
p result
|
|
134
|
+
rescue SparteraApiSdk::ApiError => e
|
|
135
|
+
puts "Error when calling EndpointsApi->create_endpoints_keys: #{e}"
|
|
136
|
+
end
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
#### Using the create_endpoints_keys_with_http_info variant
|
|
140
|
+
|
|
141
|
+
This returns an Array which contains the response data, status code and headers.
|
|
142
|
+
|
|
143
|
+
> <Array(<CreateEndpoints200Response>, Integer, Hash)> create_endpoints_keys_with_http_info(company_id, endpoint_id, endpoints_input)
|
|
144
|
+
|
|
145
|
+
```ruby
|
|
146
|
+
begin
|
|
147
|
+
# POST /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
148
|
+
data, status_code, headers = api_instance.create_endpoints_keys_with_http_info(company_id, endpoint_id, endpoints_input)
|
|
149
|
+
p status_code # => 2xx
|
|
150
|
+
p headers # => { ... }
|
|
151
|
+
p data # => <CreateEndpoints200Response>
|
|
152
|
+
rescue SparteraApiSdk::ApiError => e
|
|
153
|
+
puts "Error when calling EndpointsApi->create_endpoints_keys_with_http_info: #{e}"
|
|
154
|
+
end
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Parameters
|
|
158
|
+
|
|
159
|
+
| Name | Type | Description | Notes |
|
|
160
|
+
| ---- | ---- | ----------- | ----- |
|
|
161
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
162
|
+
| **endpoint_id** | **String** | Unique identifier for the Endpoint | |
|
|
163
|
+
| **endpoints_input** | [**EndpointsInput**](EndpointsInput.md) | | |
|
|
164
|
+
|
|
165
|
+
### Return type
|
|
166
|
+
|
|
167
|
+
[**CreateEndpoints200Response**](CreateEndpoints200Response.md)
|
|
168
|
+
|
|
169
|
+
### Authorization
|
|
170
|
+
|
|
171
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
172
|
+
|
|
173
|
+
### HTTP request headers
|
|
174
|
+
|
|
175
|
+
- **Content-Type**: application/json
|
|
176
|
+
- **Accept**: application/json
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
## delete_endpoints
|
|
180
|
+
|
|
181
|
+
> <DeleteEndpoints200Response> delete_endpoints(company_id, endpoint_id)
|
|
182
|
+
|
|
183
|
+
Delete single endpoint by ID
|
|
184
|
+
|
|
185
|
+
### Examples
|
|
186
|
+
|
|
187
|
+
```ruby
|
|
188
|
+
require 'time'
|
|
189
|
+
require 'spartera_api_sdk'
|
|
190
|
+
# setup authorization
|
|
191
|
+
SparteraApiSdk.configure do |config|
|
|
192
|
+
# Configure API key authorization: ApiKeyAuth
|
|
193
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
194
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
195
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
199
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
200
|
+
endpoint_id = 'endpoint_id_example' # String | Unique identifier for the Endpoint
|
|
201
|
+
|
|
202
|
+
begin
|
|
203
|
+
# Delete single endpoint by ID
|
|
204
|
+
result = api_instance.delete_endpoints(company_id, endpoint_id)
|
|
205
|
+
p result
|
|
206
|
+
rescue SparteraApiSdk::ApiError => e
|
|
207
|
+
puts "Error when calling EndpointsApi->delete_endpoints: #{e}"
|
|
208
|
+
end
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
#### Using the delete_endpoints_with_http_info variant
|
|
212
|
+
|
|
213
|
+
This returns an Array which contains the response data, status code and headers.
|
|
214
|
+
|
|
215
|
+
> <Array(<DeleteEndpoints200Response>, Integer, Hash)> delete_endpoints_with_http_info(company_id, endpoint_id)
|
|
216
|
+
|
|
217
|
+
```ruby
|
|
218
|
+
begin
|
|
219
|
+
# Delete single endpoint by ID
|
|
220
|
+
data, status_code, headers = api_instance.delete_endpoints_with_http_info(company_id, endpoint_id)
|
|
221
|
+
p status_code # => 2xx
|
|
222
|
+
p headers # => { ... }
|
|
223
|
+
p data # => <DeleteEndpoints200Response>
|
|
224
|
+
rescue SparteraApiSdk::ApiError => e
|
|
225
|
+
puts "Error when calling EndpointsApi->delete_endpoints_with_http_info: #{e}"
|
|
226
|
+
end
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### Parameters
|
|
230
|
+
|
|
231
|
+
| Name | Type | Description | Notes |
|
|
232
|
+
| ---- | ---- | ----------- | ----- |
|
|
233
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
234
|
+
| **endpoint_id** | **String** | Unique identifier for the Endpoint | |
|
|
235
|
+
|
|
236
|
+
### Return type
|
|
237
|
+
|
|
238
|
+
[**DeleteEndpoints200Response**](DeleteEndpoints200Response.md)
|
|
239
|
+
|
|
240
|
+
### Authorization
|
|
241
|
+
|
|
242
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
243
|
+
|
|
244
|
+
### HTTP request headers
|
|
245
|
+
|
|
246
|
+
- **Content-Type**: Not defined
|
|
247
|
+
- **Accept**: application/json
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
## delete_endpoints_keys
|
|
251
|
+
|
|
252
|
+
> <DeleteEndpoints200Response> delete_endpoints_keys(company_id, endpoint_id, api_key_id)
|
|
253
|
+
|
|
254
|
+
DELETE /companies/{company_id}/endpoints/{endpoint_id}/keys/{api_key_id}
|
|
255
|
+
|
|
256
|
+
### Examples
|
|
257
|
+
|
|
258
|
+
```ruby
|
|
259
|
+
require 'time'
|
|
260
|
+
require 'spartera_api_sdk'
|
|
261
|
+
# setup authorization
|
|
262
|
+
SparteraApiSdk.configure do |config|
|
|
263
|
+
# Configure API key authorization: ApiKeyAuth
|
|
264
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
265
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
266
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
270
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
271
|
+
endpoint_id = 'endpoint_id_example' # String | Unique identifier for the Endpoint
|
|
272
|
+
api_key_id = 'api_key_id_example' # String | Unique identifier for the Api Key
|
|
273
|
+
|
|
274
|
+
begin
|
|
275
|
+
# DELETE /companies/{company_id}/endpoints/{endpoint_id}/keys/{api_key_id}
|
|
276
|
+
result = api_instance.delete_endpoints_keys(company_id, endpoint_id, api_key_id)
|
|
277
|
+
p result
|
|
278
|
+
rescue SparteraApiSdk::ApiError => e
|
|
279
|
+
puts "Error when calling EndpointsApi->delete_endpoints_keys: #{e}"
|
|
280
|
+
end
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
#### Using the delete_endpoints_keys_with_http_info variant
|
|
284
|
+
|
|
285
|
+
This returns an Array which contains the response data, status code and headers.
|
|
286
|
+
|
|
287
|
+
> <Array(<DeleteEndpoints200Response>, Integer, Hash)> delete_endpoints_keys_with_http_info(company_id, endpoint_id, api_key_id)
|
|
288
|
+
|
|
289
|
+
```ruby
|
|
290
|
+
begin
|
|
291
|
+
# DELETE /companies/{company_id}/endpoints/{endpoint_id}/keys/{api_key_id}
|
|
292
|
+
data, status_code, headers = api_instance.delete_endpoints_keys_with_http_info(company_id, endpoint_id, api_key_id)
|
|
293
|
+
p status_code # => 2xx
|
|
294
|
+
p headers # => { ... }
|
|
295
|
+
p data # => <DeleteEndpoints200Response>
|
|
296
|
+
rescue SparteraApiSdk::ApiError => e
|
|
297
|
+
puts "Error when calling EndpointsApi->delete_endpoints_keys_with_http_info: #{e}"
|
|
298
|
+
end
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
### Parameters
|
|
302
|
+
|
|
303
|
+
| Name | Type | Description | Notes |
|
|
304
|
+
| ---- | ---- | ----------- | ----- |
|
|
305
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
306
|
+
| **endpoint_id** | **String** | Unique identifier for the Endpoint | |
|
|
307
|
+
| **api_key_id** | **String** | Unique identifier for the Api Key | |
|
|
308
|
+
|
|
309
|
+
### Return type
|
|
310
|
+
|
|
311
|
+
[**DeleteEndpoints200Response**](DeleteEndpoints200Response.md)
|
|
312
|
+
|
|
313
|
+
### Authorization
|
|
314
|
+
|
|
315
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
316
|
+
|
|
317
|
+
### HTTP request headers
|
|
318
|
+
|
|
319
|
+
- **Content-Type**: Not defined
|
|
320
|
+
- **Accept**: application/json
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
## get_endpoints_by_id
|
|
324
|
+
|
|
325
|
+
> <GetEndpointsByIdConnectionsDescribe200Response> get_endpoints_by_id(company_id, endpoint_id)
|
|
326
|
+
|
|
327
|
+
Get single endpoint by ID
|
|
328
|
+
|
|
329
|
+
### Examples
|
|
330
|
+
|
|
331
|
+
```ruby
|
|
332
|
+
require 'time'
|
|
333
|
+
require 'spartera_api_sdk'
|
|
334
|
+
# setup authorization
|
|
335
|
+
SparteraApiSdk.configure do |config|
|
|
336
|
+
# Configure API key authorization: ApiKeyAuth
|
|
337
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
338
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
339
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
343
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
344
|
+
endpoint_id = 'endpoint_id_example' # String | Unique identifier for the Endpoint
|
|
345
|
+
|
|
346
|
+
begin
|
|
347
|
+
# Get single endpoint by ID
|
|
348
|
+
result = api_instance.get_endpoints_by_id(company_id, endpoint_id)
|
|
349
|
+
p result
|
|
350
|
+
rescue SparteraApiSdk::ApiError => e
|
|
351
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id: #{e}"
|
|
352
|
+
end
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
#### Using the get_endpoints_by_id_with_http_info variant
|
|
356
|
+
|
|
357
|
+
This returns an Array which contains the response data, status code and headers.
|
|
358
|
+
|
|
359
|
+
> <Array(<GetEndpointsByIdConnectionsDescribe200Response>, Integer, Hash)> get_endpoints_by_id_with_http_info(company_id, endpoint_id)
|
|
360
|
+
|
|
361
|
+
```ruby
|
|
362
|
+
begin
|
|
363
|
+
# Get single endpoint by ID
|
|
364
|
+
data, status_code, headers = api_instance.get_endpoints_by_id_with_http_info(company_id, endpoint_id)
|
|
365
|
+
p status_code # => 2xx
|
|
366
|
+
p headers # => { ... }
|
|
367
|
+
p data # => <GetEndpointsByIdConnectionsDescribe200Response>
|
|
368
|
+
rescue SparteraApiSdk::ApiError => e
|
|
369
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_with_http_info: #{e}"
|
|
370
|
+
end
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Parameters
|
|
374
|
+
|
|
375
|
+
| Name | Type | Description | Notes |
|
|
376
|
+
| ---- | ---- | ----------- | ----- |
|
|
377
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
378
|
+
| **endpoint_id** | **String** | Unique identifier for the Endpoint | |
|
|
379
|
+
|
|
380
|
+
### Return type
|
|
381
|
+
|
|
382
|
+
[**GetEndpointsByIdConnectionsDescribe200Response**](GetEndpointsByIdConnectionsDescribe200Response.md)
|
|
383
|
+
|
|
384
|
+
### Authorization
|
|
385
|
+
|
|
386
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
387
|
+
|
|
388
|
+
### HTTP request headers
|
|
389
|
+
|
|
390
|
+
- **Content-Type**: Not defined
|
|
391
|
+
- **Accept**: application/json
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
## get_endpoints_by_id_available_endpoints
|
|
395
|
+
|
|
396
|
+
> <GetEndpointsByIdConnectionsDescribe200Response> get_endpoints_by_id_available_endpoints(company_id, endpoint_id)
|
|
397
|
+
|
|
398
|
+
GET /companies/{company_id}/endpoints/{endpoint_id}/available-endpoints
|
|
399
|
+
|
|
400
|
+
### Examples
|
|
401
|
+
|
|
402
|
+
```ruby
|
|
403
|
+
require 'time'
|
|
404
|
+
require 'spartera_api_sdk'
|
|
405
|
+
# setup authorization
|
|
406
|
+
SparteraApiSdk.configure do |config|
|
|
407
|
+
# Configure API key authorization: ApiKeyAuth
|
|
408
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
409
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
410
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
414
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
415
|
+
endpoint_id = 'endpoint_id_example' # String | Unique identifier for the Endpoint
|
|
416
|
+
|
|
417
|
+
begin
|
|
418
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/available-endpoints
|
|
419
|
+
result = api_instance.get_endpoints_by_id_available_endpoints(company_id, endpoint_id)
|
|
420
|
+
p result
|
|
421
|
+
rescue SparteraApiSdk::ApiError => e
|
|
422
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_available_endpoints: #{e}"
|
|
423
|
+
end
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
#### Using the get_endpoints_by_id_available_endpoints_with_http_info variant
|
|
427
|
+
|
|
428
|
+
This returns an Array which contains the response data, status code and headers.
|
|
429
|
+
|
|
430
|
+
> <Array(<GetEndpointsByIdConnectionsDescribe200Response>, Integer, Hash)> get_endpoints_by_id_available_endpoints_with_http_info(company_id, endpoint_id)
|
|
431
|
+
|
|
432
|
+
```ruby
|
|
433
|
+
begin
|
|
434
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/available-endpoints
|
|
435
|
+
data, status_code, headers = api_instance.get_endpoints_by_id_available_endpoints_with_http_info(company_id, endpoint_id)
|
|
436
|
+
p status_code # => 2xx
|
|
437
|
+
p headers # => { ... }
|
|
438
|
+
p data # => <GetEndpointsByIdConnectionsDescribe200Response>
|
|
439
|
+
rescue SparteraApiSdk::ApiError => e
|
|
440
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_available_endpoints_with_http_info: #{e}"
|
|
441
|
+
end
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
### Parameters
|
|
445
|
+
|
|
446
|
+
| Name | Type | Description | Notes |
|
|
447
|
+
| ---- | ---- | ----------- | ----- |
|
|
448
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
449
|
+
| **endpoint_id** | **String** | Unique identifier for the Endpoint | |
|
|
450
|
+
|
|
451
|
+
### Return type
|
|
452
|
+
|
|
453
|
+
[**GetEndpointsByIdConnectionsDescribe200Response**](GetEndpointsByIdConnectionsDescribe200Response.md)
|
|
454
|
+
|
|
455
|
+
### Authorization
|
|
456
|
+
|
|
457
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
458
|
+
|
|
459
|
+
### HTTP request headers
|
|
460
|
+
|
|
461
|
+
- **Content-Type**: Not defined
|
|
462
|
+
- **Accept**: application/json
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
## get_endpoints_by_id_connections_describe
|
|
466
|
+
|
|
467
|
+
> <GetEndpointsByIdConnectionsDescribe200Response> get_endpoints_by_id_connections_describe(company_id, connection_id)
|
|
468
|
+
|
|
469
|
+
Get schema information for a connection Query parameters: include_fields: Whether to include field information (default: true) schemas: Optional comma-separated schemas to include tables: Optional comma-separated tables to include
|
|
470
|
+
|
|
471
|
+
### Examples
|
|
472
|
+
|
|
473
|
+
```ruby
|
|
474
|
+
require 'time'
|
|
475
|
+
require 'spartera_api_sdk'
|
|
476
|
+
# setup authorization
|
|
477
|
+
SparteraApiSdk.configure do |config|
|
|
478
|
+
# Configure API key authorization: ApiKeyAuth
|
|
479
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
480
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
481
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
485
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
486
|
+
connection_id = 'connection_id_example' # String | Unique identifier for the Connection
|
|
487
|
+
|
|
488
|
+
begin
|
|
489
|
+
# Get schema information for a connection Query parameters: include_fields: Whether to include field information (default: true) schemas: Optional comma-separated schemas to include tables: Optional comma-separated tables to include
|
|
490
|
+
result = api_instance.get_endpoints_by_id_connections_describe(company_id, connection_id)
|
|
491
|
+
p result
|
|
492
|
+
rescue SparteraApiSdk::ApiError => e
|
|
493
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_connections_describe: #{e}"
|
|
494
|
+
end
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
#### Using the get_endpoints_by_id_connections_describe_with_http_info variant
|
|
498
|
+
|
|
499
|
+
This returns an Array which contains the response data, status code and headers.
|
|
500
|
+
|
|
501
|
+
> <Array(<GetEndpointsByIdConnectionsDescribe200Response>, Integer, Hash)> get_endpoints_by_id_connections_describe_with_http_info(company_id, connection_id)
|
|
502
|
+
|
|
503
|
+
```ruby
|
|
504
|
+
begin
|
|
505
|
+
# Get schema information for a connection Query parameters: include_fields: Whether to include field information (default: true) schemas: Optional comma-separated schemas to include tables: Optional comma-separated tables to include
|
|
506
|
+
data, status_code, headers = api_instance.get_endpoints_by_id_connections_describe_with_http_info(company_id, connection_id)
|
|
507
|
+
p status_code # => 2xx
|
|
508
|
+
p headers # => { ... }
|
|
509
|
+
p data # => <GetEndpointsByIdConnectionsDescribe200Response>
|
|
510
|
+
rescue SparteraApiSdk::ApiError => e
|
|
511
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_connections_describe_with_http_info: #{e}"
|
|
512
|
+
end
|
|
513
|
+
```
|
|
514
|
+
|
|
515
|
+
### Parameters
|
|
516
|
+
|
|
517
|
+
| Name | Type | Description | Notes |
|
|
518
|
+
| ---- | ---- | ----------- | ----- |
|
|
519
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
520
|
+
| **connection_id** | **String** | Unique identifier for the Connection | |
|
|
521
|
+
|
|
522
|
+
### Return type
|
|
523
|
+
|
|
524
|
+
[**GetEndpointsByIdConnectionsDescribe200Response**](GetEndpointsByIdConnectionsDescribe200Response.md)
|
|
525
|
+
|
|
526
|
+
### Authorization
|
|
527
|
+
|
|
528
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
529
|
+
|
|
530
|
+
### HTTP request headers
|
|
531
|
+
|
|
532
|
+
- **Content-Type**: Not defined
|
|
533
|
+
- **Accept**: application/json
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
## get_endpoints_by_id_execute
|
|
537
|
+
|
|
538
|
+
> <GetEndpointsByIdConnectionsDescribe200Response> get_endpoints_by_id_execute(company_id, endpoint_id)
|
|
539
|
+
|
|
540
|
+
Execute an endpoint with pagination support. Customer-facing route that returns paginated data. Query params: ?start=0&limit=100
|
|
541
|
+
|
|
542
|
+
### Examples
|
|
543
|
+
|
|
544
|
+
```ruby
|
|
545
|
+
require 'time'
|
|
546
|
+
require 'spartera_api_sdk'
|
|
547
|
+
# setup authorization
|
|
548
|
+
SparteraApiSdk.configure do |config|
|
|
549
|
+
# Configure API key authorization: ApiKeyAuth
|
|
550
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
551
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
552
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
556
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
557
|
+
endpoint_id = 'endpoint_id_example' # String | Unique identifier for the Endpoint
|
|
558
|
+
|
|
559
|
+
begin
|
|
560
|
+
# Execute an endpoint with pagination support. Customer-facing route that returns paginated data. Query params: ?start=0&limit=100
|
|
561
|
+
result = api_instance.get_endpoints_by_id_execute(company_id, endpoint_id)
|
|
562
|
+
p result
|
|
563
|
+
rescue SparteraApiSdk::ApiError => e
|
|
564
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_execute: #{e}"
|
|
565
|
+
end
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
#### Using the get_endpoints_by_id_execute_with_http_info variant
|
|
569
|
+
|
|
570
|
+
This returns an Array which contains the response data, status code and headers.
|
|
571
|
+
|
|
572
|
+
> <Array(<GetEndpointsByIdConnectionsDescribe200Response>, Integer, Hash)> get_endpoints_by_id_execute_with_http_info(company_id, endpoint_id)
|
|
573
|
+
|
|
574
|
+
```ruby
|
|
575
|
+
begin
|
|
576
|
+
# Execute an endpoint with pagination support. Customer-facing route that returns paginated data. Query params: ?start=0&limit=100
|
|
577
|
+
data, status_code, headers = api_instance.get_endpoints_by_id_execute_with_http_info(company_id, endpoint_id)
|
|
578
|
+
p status_code # => 2xx
|
|
579
|
+
p headers # => { ... }
|
|
580
|
+
p data # => <GetEndpointsByIdConnectionsDescribe200Response>
|
|
581
|
+
rescue SparteraApiSdk::ApiError => e
|
|
582
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_execute_with_http_info: #{e}"
|
|
583
|
+
end
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
### Parameters
|
|
587
|
+
|
|
588
|
+
| Name | Type | Description | Notes |
|
|
589
|
+
| ---- | ---- | ----------- | ----- |
|
|
590
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
591
|
+
| **endpoint_id** | **String** | Unique identifier for the Endpoint | |
|
|
592
|
+
|
|
593
|
+
### Return type
|
|
594
|
+
|
|
595
|
+
[**GetEndpointsByIdConnectionsDescribe200Response**](GetEndpointsByIdConnectionsDescribe200Response.md)
|
|
596
|
+
|
|
597
|
+
### Authorization
|
|
598
|
+
|
|
599
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
600
|
+
|
|
601
|
+
### HTTP request headers
|
|
602
|
+
|
|
603
|
+
- **Content-Type**: Not defined
|
|
604
|
+
- **Accept**: application/json
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
## get_endpoints_by_id_keys
|
|
608
|
+
|
|
609
|
+
> <GetEndpointsByIdConnectionsDescribe200Response> get_endpoints_by_id_keys(company_id, endpoint_id)
|
|
610
|
+
|
|
611
|
+
GET /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
612
|
+
|
|
613
|
+
### Examples
|
|
614
|
+
|
|
615
|
+
```ruby
|
|
616
|
+
require 'time'
|
|
617
|
+
require 'spartera_api_sdk'
|
|
618
|
+
# setup authorization
|
|
619
|
+
SparteraApiSdk.configure do |config|
|
|
620
|
+
# Configure API key authorization: ApiKeyAuth
|
|
621
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
622
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
623
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
627
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
628
|
+
endpoint_id = 'endpoint_id_example' # String | Unique identifier for the Endpoint
|
|
629
|
+
|
|
630
|
+
begin
|
|
631
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
632
|
+
result = api_instance.get_endpoints_by_id_keys(company_id, endpoint_id)
|
|
633
|
+
p result
|
|
634
|
+
rescue SparteraApiSdk::ApiError => e
|
|
635
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_keys: #{e}"
|
|
636
|
+
end
|
|
637
|
+
```
|
|
638
|
+
|
|
639
|
+
#### Using the get_endpoints_by_id_keys_with_http_info variant
|
|
640
|
+
|
|
641
|
+
This returns an Array which contains the response data, status code and headers.
|
|
642
|
+
|
|
643
|
+
> <Array(<GetEndpointsByIdConnectionsDescribe200Response>, Integer, Hash)> get_endpoints_by_id_keys_with_http_info(company_id, endpoint_id)
|
|
644
|
+
|
|
645
|
+
```ruby
|
|
646
|
+
begin
|
|
647
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
648
|
+
data, status_code, headers = api_instance.get_endpoints_by_id_keys_with_http_info(company_id, endpoint_id)
|
|
649
|
+
p status_code # => 2xx
|
|
650
|
+
p headers # => { ... }
|
|
651
|
+
p data # => <GetEndpointsByIdConnectionsDescribe200Response>
|
|
652
|
+
rescue SparteraApiSdk::ApiError => e
|
|
653
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_keys_with_http_info: #{e}"
|
|
654
|
+
end
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
### Parameters
|
|
658
|
+
|
|
659
|
+
| Name | Type | Description | Notes |
|
|
660
|
+
| ---- | ---- | ----------- | ----- |
|
|
661
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
662
|
+
| **endpoint_id** | **String** | Unique identifier for the Endpoint | |
|
|
663
|
+
|
|
664
|
+
### Return type
|
|
665
|
+
|
|
666
|
+
[**GetEndpointsByIdConnectionsDescribe200Response**](GetEndpointsByIdConnectionsDescribe200Response.md)
|
|
667
|
+
|
|
668
|
+
### Authorization
|
|
669
|
+
|
|
670
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
671
|
+
|
|
672
|
+
### HTTP request headers
|
|
673
|
+
|
|
674
|
+
- **Content-Type**: Not defined
|
|
675
|
+
- **Accept**: application/json
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
## get_endpoints_by_id_stats
|
|
679
|
+
|
|
680
|
+
> <GetEndpointsByIdConnectionsDescribe200Response> get_endpoints_by_id_stats(company_id, endpoint_id)
|
|
681
|
+
|
|
682
|
+
Get usage statistics for an endpoint Query parameters: days: Number of days to analyze (default: 30)
|
|
683
|
+
|
|
684
|
+
### Examples
|
|
685
|
+
|
|
686
|
+
```ruby
|
|
687
|
+
require 'time'
|
|
688
|
+
require 'spartera_api_sdk'
|
|
689
|
+
# setup authorization
|
|
690
|
+
SparteraApiSdk.configure do |config|
|
|
691
|
+
# Configure API key authorization: ApiKeyAuth
|
|
692
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
693
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
694
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
695
|
+
end
|
|
696
|
+
|
|
697
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
698
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
699
|
+
endpoint_id = 'endpoint_id_example' # String | Unique identifier for the Endpoint
|
|
700
|
+
|
|
701
|
+
begin
|
|
702
|
+
# Get usage statistics for an endpoint Query parameters: days: Number of days to analyze (default: 30)
|
|
703
|
+
result = api_instance.get_endpoints_by_id_stats(company_id, endpoint_id)
|
|
704
|
+
p result
|
|
705
|
+
rescue SparteraApiSdk::ApiError => e
|
|
706
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_stats: #{e}"
|
|
707
|
+
end
|
|
708
|
+
```
|
|
709
|
+
|
|
710
|
+
#### Using the get_endpoints_by_id_stats_with_http_info variant
|
|
711
|
+
|
|
712
|
+
This returns an Array which contains the response data, status code and headers.
|
|
713
|
+
|
|
714
|
+
> <Array(<GetEndpointsByIdConnectionsDescribe200Response>, Integer, Hash)> get_endpoints_by_id_stats_with_http_info(company_id, endpoint_id)
|
|
715
|
+
|
|
716
|
+
```ruby
|
|
717
|
+
begin
|
|
718
|
+
# Get usage statistics for an endpoint Query parameters: days: Number of days to analyze (default: 30)
|
|
719
|
+
data, status_code, headers = api_instance.get_endpoints_by_id_stats_with_http_info(company_id, endpoint_id)
|
|
720
|
+
p status_code # => 2xx
|
|
721
|
+
p headers # => { ... }
|
|
722
|
+
p data # => <GetEndpointsByIdConnectionsDescribe200Response>
|
|
723
|
+
rescue SparteraApiSdk::ApiError => e
|
|
724
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_stats_with_http_info: #{e}"
|
|
725
|
+
end
|
|
726
|
+
```
|
|
727
|
+
|
|
728
|
+
### Parameters
|
|
729
|
+
|
|
730
|
+
| Name | Type | Description | Notes |
|
|
731
|
+
| ---- | ---- | ----------- | ----- |
|
|
732
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
733
|
+
| **endpoint_id** | **String** | Unique identifier for the Endpoint | |
|
|
734
|
+
|
|
735
|
+
### Return type
|
|
736
|
+
|
|
737
|
+
[**GetEndpointsByIdConnectionsDescribe200Response**](GetEndpointsByIdConnectionsDescribe200Response.md)
|
|
738
|
+
|
|
739
|
+
### Authorization
|
|
740
|
+
|
|
741
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
742
|
+
|
|
743
|
+
### HTTP request headers
|
|
744
|
+
|
|
745
|
+
- **Content-Type**: Not defined
|
|
746
|
+
- **Accept**: application/json
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
## get_endpoints_by_id_test
|
|
750
|
+
|
|
751
|
+
> <GetEndpointsByIdConnectionsDescribe200Response> get_endpoints_by_id_test(company_id, endpoint_id)
|
|
752
|
+
|
|
753
|
+
Test an endpoint with sample data Request body (optional): limit: Number of sample rows to return (default: 10)
|
|
754
|
+
|
|
755
|
+
### Examples
|
|
756
|
+
|
|
757
|
+
```ruby
|
|
758
|
+
require 'time'
|
|
759
|
+
require 'spartera_api_sdk'
|
|
760
|
+
# setup authorization
|
|
761
|
+
SparteraApiSdk.configure do |config|
|
|
762
|
+
# Configure API key authorization: ApiKeyAuth
|
|
763
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
764
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
765
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
766
|
+
end
|
|
767
|
+
|
|
768
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
769
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
770
|
+
endpoint_id = 'endpoint_id_example' # String | Unique identifier for the Endpoint
|
|
771
|
+
|
|
772
|
+
begin
|
|
773
|
+
# Test an endpoint with sample data Request body (optional): limit: Number of sample rows to return (default: 10)
|
|
774
|
+
result = api_instance.get_endpoints_by_id_test(company_id, endpoint_id)
|
|
775
|
+
p result
|
|
776
|
+
rescue SparteraApiSdk::ApiError => e
|
|
777
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_test: #{e}"
|
|
778
|
+
end
|
|
779
|
+
```
|
|
780
|
+
|
|
781
|
+
#### Using the get_endpoints_by_id_test_with_http_info variant
|
|
782
|
+
|
|
783
|
+
This returns an Array which contains the response data, status code and headers.
|
|
784
|
+
|
|
785
|
+
> <Array(<GetEndpointsByIdConnectionsDescribe200Response>, Integer, Hash)> get_endpoints_by_id_test_with_http_info(company_id, endpoint_id)
|
|
786
|
+
|
|
787
|
+
```ruby
|
|
788
|
+
begin
|
|
789
|
+
# Test an endpoint with sample data Request body (optional): limit: Number of sample rows to return (default: 10)
|
|
790
|
+
data, status_code, headers = api_instance.get_endpoints_by_id_test_with_http_info(company_id, endpoint_id)
|
|
791
|
+
p status_code # => 2xx
|
|
792
|
+
p headers # => { ... }
|
|
793
|
+
p data # => <GetEndpointsByIdConnectionsDescribe200Response>
|
|
794
|
+
rescue SparteraApiSdk::ApiError => e
|
|
795
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_test_with_http_info: #{e}"
|
|
796
|
+
end
|
|
797
|
+
```
|
|
798
|
+
|
|
799
|
+
### Parameters
|
|
800
|
+
|
|
801
|
+
| Name | Type | Description | Notes |
|
|
802
|
+
| ---- | ---- | ----------- | ----- |
|
|
803
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
804
|
+
| **endpoint_id** | **String** | Unique identifier for the Endpoint | |
|
|
805
|
+
|
|
806
|
+
### Return type
|
|
807
|
+
|
|
808
|
+
[**GetEndpointsByIdConnectionsDescribe200Response**](GetEndpointsByIdConnectionsDescribe200Response.md)
|
|
809
|
+
|
|
810
|
+
### Authorization
|
|
811
|
+
|
|
812
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
813
|
+
|
|
814
|
+
### HTTP request headers
|
|
815
|
+
|
|
816
|
+
- **Content-Type**: Not defined
|
|
817
|
+
- **Accept**: application/json
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
## get_endpoints_by_id_url
|
|
821
|
+
|
|
822
|
+
> <GetEndpointsByIdConnectionsDescribe200Response> get_endpoints_by_id_url(company_id, endpoint_id)
|
|
823
|
+
|
|
824
|
+
GET /companies/{company_id}/endpoints/{endpoint_id}/url
|
|
825
|
+
|
|
826
|
+
### Examples
|
|
827
|
+
|
|
828
|
+
```ruby
|
|
829
|
+
require 'time'
|
|
830
|
+
require 'spartera_api_sdk'
|
|
831
|
+
# setup authorization
|
|
832
|
+
SparteraApiSdk.configure do |config|
|
|
833
|
+
# Configure API key authorization: ApiKeyAuth
|
|
834
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
835
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
836
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
840
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
841
|
+
endpoint_id = 'endpoint_id_example' # String | Unique identifier for the Endpoint
|
|
842
|
+
|
|
843
|
+
begin
|
|
844
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/url
|
|
845
|
+
result = api_instance.get_endpoints_by_id_url(company_id, endpoint_id)
|
|
846
|
+
p result
|
|
847
|
+
rescue SparteraApiSdk::ApiError => e
|
|
848
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_url: #{e}"
|
|
849
|
+
end
|
|
850
|
+
```
|
|
851
|
+
|
|
852
|
+
#### Using the get_endpoints_by_id_url_with_http_info variant
|
|
853
|
+
|
|
854
|
+
This returns an Array which contains the response data, status code and headers.
|
|
855
|
+
|
|
856
|
+
> <Array(<GetEndpointsByIdConnectionsDescribe200Response>, Integer, Hash)> get_endpoints_by_id_url_with_http_info(company_id, endpoint_id)
|
|
857
|
+
|
|
858
|
+
```ruby
|
|
859
|
+
begin
|
|
860
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/url
|
|
861
|
+
data, status_code, headers = api_instance.get_endpoints_by_id_url_with_http_info(company_id, endpoint_id)
|
|
862
|
+
p status_code # => 2xx
|
|
863
|
+
p headers # => { ... }
|
|
864
|
+
p data # => <GetEndpointsByIdConnectionsDescribe200Response>
|
|
865
|
+
rescue SparteraApiSdk::ApiError => e
|
|
866
|
+
puts "Error when calling EndpointsApi->get_endpoints_by_id_url_with_http_info: #{e}"
|
|
867
|
+
end
|
|
868
|
+
```
|
|
869
|
+
|
|
870
|
+
### Parameters
|
|
871
|
+
|
|
872
|
+
| Name | Type | Description | Notes |
|
|
873
|
+
| ---- | ---- | ----------- | ----- |
|
|
874
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
875
|
+
| **endpoint_id** | **String** | Unique identifier for the Endpoint | |
|
|
876
|
+
|
|
877
|
+
### Return type
|
|
878
|
+
|
|
879
|
+
[**GetEndpointsByIdConnectionsDescribe200Response**](GetEndpointsByIdConnectionsDescribe200Response.md)
|
|
880
|
+
|
|
881
|
+
### Authorization
|
|
882
|
+
|
|
883
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
884
|
+
|
|
885
|
+
### HTTP request headers
|
|
886
|
+
|
|
887
|
+
- **Content-Type**: Not defined
|
|
888
|
+
- **Accept**: application/json
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
## list_endpoints
|
|
892
|
+
|
|
893
|
+
> <ListEndpoints200Response> list_endpoints(company_id, opts)
|
|
894
|
+
|
|
895
|
+
Get all endpoints for a specific company with pagination, filtering, and sorting
|
|
896
|
+
|
|
897
|
+
### Examples
|
|
898
|
+
|
|
899
|
+
```ruby
|
|
900
|
+
require 'time'
|
|
901
|
+
require 'spartera_api_sdk'
|
|
902
|
+
# setup authorization
|
|
903
|
+
SparteraApiSdk.configure do |config|
|
|
904
|
+
# Configure API key authorization: ApiKeyAuth
|
|
905
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
906
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
907
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
911
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
912
|
+
opts = {
|
|
913
|
+
page: 56, # Integer | Page number for pagination
|
|
914
|
+
limit: 56, # Integer | Number of items per page
|
|
915
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
916
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
917
|
+
search: 'search_example' # String | Search term to filter results
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
begin
|
|
921
|
+
# Get all endpoints for a specific company with pagination, filtering, and sorting
|
|
922
|
+
result = api_instance.list_endpoints(company_id, opts)
|
|
923
|
+
p result
|
|
924
|
+
rescue SparteraApiSdk::ApiError => e
|
|
925
|
+
puts "Error when calling EndpointsApi->list_endpoints: #{e}"
|
|
926
|
+
end
|
|
927
|
+
```
|
|
928
|
+
|
|
929
|
+
#### Using the list_endpoints_with_http_info variant
|
|
930
|
+
|
|
931
|
+
This returns an Array which contains the response data, status code and headers.
|
|
932
|
+
|
|
933
|
+
> <Array(<ListEndpoints200Response>, Integer, Hash)> list_endpoints_with_http_info(company_id, opts)
|
|
934
|
+
|
|
935
|
+
```ruby
|
|
936
|
+
begin
|
|
937
|
+
# Get all endpoints for a specific company with pagination, filtering, and sorting
|
|
938
|
+
data, status_code, headers = api_instance.list_endpoints_with_http_info(company_id, opts)
|
|
939
|
+
p status_code # => 2xx
|
|
940
|
+
p headers # => { ... }
|
|
941
|
+
p data # => <ListEndpoints200Response>
|
|
942
|
+
rescue SparteraApiSdk::ApiError => e
|
|
943
|
+
puts "Error when calling EndpointsApi->list_endpoints_with_http_info: #{e}"
|
|
944
|
+
end
|
|
945
|
+
```
|
|
946
|
+
|
|
947
|
+
### Parameters
|
|
948
|
+
|
|
949
|
+
| Name | Type | Description | Notes |
|
|
950
|
+
| ---- | ---- | ----------- | ----- |
|
|
951
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
952
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
953
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
954
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
955
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
956
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
957
|
+
|
|
958
|
+
### Return type
|
|
959
|
+
|
|
960
|
+
[**ListEndpoints200Response**](ListEndpoints200Response.md)
|
|
961
|
+
|
|
962
|
+
### Authorization
|
|
963
|
+
|
|
964
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
965
|
+
|
|
966
|
+
### HTTP request headers
|
|
967
|
+
|
|
968
|
+
- **Content-Type**: Not defined
|
|
969
|
+
- **Accept**: application/json
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
## update_endpoints
|
|
973
|
+
|
|
974
|
+
> <UpdateEndpoints200Response> update_endpoints(company_id, endpoint_id, endpoints_update)
|
|
975
|
+
|
|
976
|
+
Update an existing endpoint by ID
|
|
977
|
+
|
|
978
|
+
### Examples
|
|
979
|
+
|
|
980
|
+
```ruby
|
|
981
|
+
require 'time'
|
|
982
|
+
require 'spartera_api_sdk'
|
|
983
|
+
# setup authorization
|
|
984
|
+
SparteraApiSdk.configure do |config|
|
|
985
|
+
# Configure API key authorization: ApiKeyAuth
|
|
986
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
987
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
988
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
989
|
+
end
|
|
990
|
+
|
|
991
|
+
api_instance = SparteraApiSdk::EndpointsApi.new
|
|
992
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
993
|
+
endpoint_id = 'endpoint_id_example' # String | Unique identifier for the Endpoint
|
|
994
|
+
endpoints_update = SparteraApiSdk::EndpointsUpdate.new # EndpointsUpdate |
|
|
995
|
+
|
|
996
|
+
begin
|
|
997
|
+
# Update an existing endpoint by ID
|
|
998
|
+
result = api_instance.update_endpoints(company_id, endpoint_id, endpoints_update)
|
|
999
|
+
p result
|
|
1000
|
+
rescue SparteraApiSdk::ApiError => e
|
|
1001
|
+
puts "Error when calling EndpointsApi->update_endpoints: #{e}"
|
|
1002
|
+
end
|
|
1003
|
+
```
|
|
1004
|
+
|
|
1005
|
+
#### Using the update_endpoints_with_http_info variant
|
|
1006
|
+
|
|
1007
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1008
|
+
|
|
1009
|
+
> <Array(<UpdateEndpoints200Response>, Integer, Hash)> update_endpoints_with_http_info(company_id, endpoint_id, endpoints_update)
|
|
1010
|
+
|
|
1011
|
+
```ruby
|
|
1012
|
+
begin
|
|
1013
|
+
# Update an existing endpoint by ID
|
|
1014
|
+
data, status_code, headers = api_instance.update_endpoints_with_http_info(company_id, endpoint_id, endpoints_update)
|
|
1015
|
+
p status_code # => 2xx
|
|
1016
|
+
p headers # => { ... }
|
|
1017
|
+
p data # => <UpdateEndpoints200Response>
|
|
1018
|
+
rescue SparteraApiSdk::ApiError => e
|
|
1019
|
+
puts "Error when calling EndpointsApi->update_endpoints_with_http_info: #{e}"
|
|
1020
|
+
end
|
|
1021
|
+
```
|
|
1022
|
+
|
|
1023
|
+
### Parameters
|
|
1024
|
+
|
|
1025
|
+
| Name | Type | Description | Notes |
|
|
1026
|
+
| ---- | ---- | ----------- | ----- |
|
|
1027
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
1028
|
+
| **endpoint_id** | **String** | Unique identifier for the Endpoint | |
|
|
1029
|
+
| **endpoints_update** | [**EndpointsUpdate**](EndpointsUpdate.md) | | |
|
|
1030
|
+
|
|
1031
|
+
### Return type
|
|
1032
|
+
|
|
1033
|
+
[**UpdateEndpoints200Response**](UpdateEndpoints200Response.md)
|
|
1034
|
+
|
|
1035
|
+
### Authorization
|
|
1036
|
+
|
|
1037
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1038
|
+
|
|
1039
|
+
### HTTP request headers
|
|
1040
|
+
|
|
1041
|
+
- **Content-Type**: application/json
|
|
1042
|
+
- **Accept**: application/json
|
|
1043
|
+
|