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,1416 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Spartera API Documentation
|
|
3
|
+
|
|
4
|
+
#Auto-generated API documentation for REST services of the Spartera platform
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.25.0
|
|
7
|
+
Contact: support@spartera.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module SparteraApiSdk
|
|
16
|
+
class EndpointsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create a new endpoint
|
|
23
|
+
# @param company_id [String] Unique identifier for the Company
|
|
24
|
+
# @param endpoints_input [EndpointsInput]
|
|
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 [CreateEndpoints200Response]
|
|
32
|
+
def create_endpoints(company_id, endpoints_input, opts = {})
|
|
33
|
+
data, _status_code, _headers = create_endpoints_with_http_info(company_id, endpoints_input, opts)
|
|
34
|
+
data
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Create a new endpoint
|
|
38
|
+
# @param company_id [String] Unique identifier for the Company
|
|
39
|
+
# @param endpoints_input [EndpointsInput]
|
|
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<(CreateEndpoints200Response, Integer, Hash)>] CreateEndpoints200Response data, response status code and response headers
|
|
47
|
+
def create_endpoints_with_http_info(company_id, endpoints_input, opts = {})
|
|
48
|
+
if @api_client.config.debugging
|
|
49
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.create_endpoints ...'
|
|
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 EndpointsApi.create_endpoints"
|
|
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 EndpointsApi.create_endpoints, 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 EndpointsApi.create_endpoints, 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 EndpointsApi.create_endpoints, must conform to the pattern #{pattern}."
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# verify the required parameter 'endpoints_input' is set
|
|
69
|
+
if @api_client.config.client_side_validation && endpoints_input.nil?
|
|
70
|
+
fail ArgumentError, "Missing the required parameter 'endpoints_input' when calling EndpointsApi.create_endpoints"
|
|
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 EndpointsApi.create_endpoints, 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 EndpointsApi.create_endpoints, 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 EndpointsApi.create_endpoints, 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 EndpointsApi.create_endpoints, 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 EndpointsApi.create_endpoints, the character length must be greater than or equal to 1.'
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# resource path
|
|
97
|
+
local_var_path = '/companies/{company_id}/endpoints'.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(endpoints_input)
|
|
122
|
+
|
|
123
|
+
# return_type
|
|
124
|
+
return_type = opts[:debug_return_type] || 'CreateEndpoints200Response'
|
|
125
|
+
|
|
126
|
+
# auth_names
|
|
127
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
128
|
+
|
|
129
|
+
new_options = opts.merge(
|
|
130
|
+
:operation => :"EndpointsApi.create_endpoints",
|
|
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: EndpointsApi#create_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
|
+
end
|
|
143
|
+
return data, status_code, headers
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# POST /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
147
|
+
# @param company_id [String] Unique identifier for the Company
|
|
148
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
149
|
+
# @param endpoints_input [EndpointsInput]
|
|
150
|
+
# @param [Hash] opts the optional parameters
|
|
151
|
+
# @return [CreateEndpoints200Response]
|
|
152
|
+
def create_endpoints_keys(company_id, endpoint_id, endpoints_input, opts = {})
|
|
153
|
+
data, _status_code, _headers = create_endpoints_keys_with_http_info(company_id, endpoint_id, endpoints_input, opts)
|
|
154
|
+
data
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# POST /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
158
|
+
# @param company_id [String] Unique identifier for the Company
|
|
159
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
160
|
+
# @param endpoints_input [EndpointsInput]
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @return [Array<(CreateEndpoints200Response, Integer, Hash)>] CreateEndpoints200Response data, response status code and response headers
|
|
163
|
+
def create_endpoints_keys_with_http_info(company_id, endpoint_id, endpoints_input, opts = {})
|
|
164
|
+
if @api_client.config.debugging
|
|
165
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.create_endpoints_keys ...'
|
|
166
|
+
end
|
|
167
|
+
# verify the required parameter 'company_id' is set
|
|
168
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
169
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.create_endpoints_keys"
|
|
170
|
+
end
|
|
171
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
172
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.create_endpoints_keys, the character length must be smaller than or equal to 255.'
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
176
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.create_endpoints_keys, the character length must be greater than or equal to 1.'
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
180
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
181
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.create_endpoints_keys, must conform to the pattern #{pattern}."
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# verify the required parameter 'endpoint_id' is set
|
|
185
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
186
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointsApi.create_endpoints_keys"
|
|
187
|
+
end
|
|
188
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 255
|
|
189
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.create_endpoints_keys, the character length must be smaller than or equal to 255.'
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
|
193
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.create_endpoints_keys, the character length must be greater than or equal to 1.'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
197
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
|
198
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointsApi.create_endpoints_keys, must conform to the pattern #{pattern}."
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# verify the required parameter 'endpoints_input' is set
|
|
202
|
+
if @api_client.config.client_side_validation && endpoints_input.nil?
|
|
203
|
+
fail ArgumentError, "Missing the required parameter 'endpoints_input' when calling EndpointsApi.create_endpoints_keys"
|
|
204
|
+
end
|
|
205
|
+
# resource path
|
|
206
|
+
local_var_path = '/companies/{company_id}/endpoints/{endpoint_id}/keys'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
|
207
|
+
|
|
208
|
+
# query parameters
|
|
209
|
+
query_params = opts[:query_params] || {}
|
|
210
|
+
|
|
211
|
+
# header parameters
|
|
212
|
+
header_params = opts[:header_params] || {}
|
|
213
|
+
# HTTP header 'Accept' (if needed)
|
|
214
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
215
|
+
# HTTP header 'Content-Type'
|
|
216
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
217
|
+
if !content_type.nil?
|
|
218
|
+
header_params['Content-Type'] = content_type
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# form parameters
|
|
222
|
+
form_params = opts[:form_params] || {}
|
|
223
|
+
|
|
224
|
+
# http body (model)
|
|
225
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoints_input)
|
|
226
|
+
|
|
227
|
+
# return_type
|
|
228
|
+
return_type = opts[:debug_return_type] || 'CreateEndpoints200Response'
|
|
229
|
+
|
|
230
|
+
# auth_names
|
|
231
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
232
|
+
|
|
233
|
+
new_options = opts.merge(
|
|
234
|
+
:operation => :"EndpointsApi.create_endpoints_keys",
|
|
235
|
+
:header_params => header_params,
|
|
236
|
+
:query_params => query_params,
|
|
237
|
+
:form_params => form_params,
|
|
238
|
+
:body => post_body,
|
|
239
|
+
:auth_names => auth_names,
|
|
240
|
+
:return_type => return_type
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
244
|
+
if @api_client.config.debugging
|
|
245
|
+
@api_client.config.logger.debug "API called: EndpointsApi#create_endpoints_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
246
|
+
end
|
|
247
|
+
return data, status_code, headers
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Delete single endpoint by ID
|
|
251
|
+
# @param company_id [String] Unique identifier for the Company
|
|
252
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
253
|
+
# @param [Hash] opts the optional parameters
|
|
254
|
+
# @return [DeleteEndpoints200Response]
|
|
255
|
+
def delete_endpoints(company_id, endpoint_id, opts = {})
|
|
256
|
+
data, _status_code, _headers = delete_endpoints_with_http_info(company_id, endpoint_id, opts)
|
|
257
|
+
data
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Delete single endpoint by ID
|
|
261
|
+
# @param company_id [String] Unique identifier for the Company
|
|
262
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
263
|
+
# @param [Hash] opts the optional parameters
|
|
264
|
+
# @return [Array<(DeleteEndpoints200Response, Integer, Hash)>] DeleteEndpoints200Response data, response status code and response headers
|
|
265
|
+
def delete_endpoints_with_http_info(company_id, endpoint_id, opts = {})
|
|
266
|
+
if @api_client.config.debugging
|
|
267
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.delete_endpoints ...'
|
|
268
|
+
end
|
|
269
|
+
# verify the required parameter 'company_id' is set
|
|
270
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
271
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.delete_endpoints"
|
|
272
|
+
end
|
|
273
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
274
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.delete_endpoints, the character length must be smaller than or equal to 255.'
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
278
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.delete_endpoints, the character length must be greater than or equal to 1.'
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
282
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
283
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.delete_endpoints, must conform to the pattern #{pattern}."
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# verify the required parameter 'endpoint_id' is set
|
|
287
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
288
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointsApi.delete_endpoints"
|
|
289
|
+
end
|
|
290
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 255
|
|
291
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.delete_endpoints, the character length must be smaller than or equal to 255.'
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
|
295
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.delete_endpoints, the character length must be greater than or equal to 1.'
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
299
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
|
300
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointsApi.delete_endpoints, must conform to the pattern #{pattern}."
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# resource path
|
|
304
|
+
local_var_path = '/companies/{company_id}/endpoints/{endpoint_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
|
305
|
+
|
|
306
|
+
# query parameters
|
|
307
|
+
query_params = opts[:query_params] || {}
|
|
308
|
+
|
|
309
|
+
# header parameters
|
|
310
|
+
header_params = opts[:header_params] || {}
|
|
311
|
+
# HTTP header 'Accept' (if needed)
|
|
312
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
313
|
+
|
|
314
|
+
# form parameters
|
|
315
|
+
form_params = opts[:form_params] || {}
|
|
316
|
+
|
|
317
|
+
# http body (model)
|
|
318
|
+
post_body = opts[:debug_body]
|
|
319
|
+
|
|
320
|
+
# return_type
|
|
321
|
+
return_type = opts[:debug_return_type] || 'DeleteEndpoints200Response'
|
|
322
|
+
|
|
323
|
+
# auth_names
|
|
324
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
325
|
+
|
|
326
|
+
new_options = opts.merge(
|
|
327
|
+
:operation => :"EndpointsApi.delete_endpoints",
|
|
328
|
+
:header_params => header_params,
|
|
329
|
+
:query_params => query_params,
|
|
330
|
+
:form_params => form_params,
|
|
331
|
+
:body => post_body,
|
|
332
|
+
:auth_names => auth_names,
|
|
333
|
+
:return_type => return_type
|
|
334
|
+
)
|
|
335
|
+
|
|
336
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
337
|
+
if @api_client.config.debugging
|
|
338
|
+
@api_client.config.logger.debug "API called: EndpointsApi#delete_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
339
|
+
end
|
|
340
|
+
return data, status_code, headers
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# DELETE /companies/{company_id}/endpoints/{endpoint_id}/keys/{api_key_id}
|
|
344
|
+
# @param company_id [String] Unique identifier for the Company
|
|
345
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
346
|
+
# @param api_key_id [String] Unique identifier for the Api Key
|
|
347
|
+
# @param [Hash] opts the optional parameters
|
|
348
|
+
# @return [DeleteEndpoints200Response]
|
|
349
|
+
def delete_endpoints_keys(company_id, endpoint_id, api_key_id, opts = {})
|
|
350
|
+
data, _status_code, _headers = delete_endpoints_keys_with_http_info(company_id, endpoint_id, api_key_id, opts)
|
|
351
|
+
data
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# DELETE /companies/{company_id}/endpoints/{endpoint_id}/keys/{api_key_id}
|
|
355
|
+
# @param company_id [String] Unique identifier for the Company
|
|
356
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
357
|
+
# @param api_key_id [String] Unique identifier for the Api Key
|
|
358
|
+
# @param [Hash] opts the optional parameters
|
|
359
|
+
# @return [Array<(DeleteEndpoints200Response, Integer, Hash)>] DeleteEndpoints200Response data, response status code and response headers
|
|
360
|
+
def delete_endpoints_keys_with_http_info(company_id, endpoint_id, api_key_id, opts = {})
|
|
361
|
+
if @api_client.config.debugging
|
|
362
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.delete_endpoints_keys ...'
|
|
363
|
+
end
|
|
364
|
+
# verify the required parameter 'company_id' is set
|
|
365
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
366
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.delete_endpoints_keys"
|
|
367
|
+
end
|
|
368
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
369
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.delete_endpoints_keys, the character length must be smaller than or equal to 255.'
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
373
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.delete_endpoints_keys, the character length must be greater than or equal to 1.'
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
377
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
378
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.delete_endpoints_keys, must conform to the pattern #{pattern}."
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# verify the required parameter 'endpoint_id' is set
|
|
382
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
383
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointsApi.delete_endpoints_keys"
|
|
384
|
+
end
|
|
385
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 255
|
|
386
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.delete_endpoints_keys, the character length must be smaller than or equal to 255.'
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
|
390
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.delete_endpoints_keys, the character length must be greater than or equal to 1.'
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
394
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
|
395
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointsApi.delete_endpoints_keys, must conform to the pattern #{pattern}."
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# verify the required parameter 'api_key_id' is set
|
|
399
|
+
if @api_client.config.client_side_validation && api_key_id.nil?
|
|
400
|
+
fail ArgumentError, "Missing the required parameter 'api_key_id' when calling EndpointsApi.delete_endpoints_keys"
|
|
401
|
+
end
|
|
402
|
+
if @api_client.config.client_side_validation && api_key_id.to_s.length > 255
|
|
403
|
+
fail ArgumentError, 'invalid value for "api_key_id" when calling EndpointsApi.delete_endpoints_keys, the character length must be smaller than or equal to 255.'
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
if @api_client.config.client_side_validation && api_key_id.to_s.length < 1
|
|
407
|
+
fail ArgumentError, 'invalid value for "api_key_id" when calling EndpointsApi.delete_endpoints_keys, the character length must be greater than or equal to 1.'
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
411
|
+
if @api_client.config.client_side_validation && api_key_id !~ pattern
|
|
412
|
+
fail ArgumentError, "invalid value for 'api_key_id' when calling EndpointsApi.delete_endpoints_keys, must conform to the pattern #{pattern}."
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
# resource path
|
|
416
|
+
local_var_path = '/companies/{company_id}/endpoints/{endpoint_id}/keys/{api_key_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'api_key_id' + '}', CGI.escape(api_key_id.to_s))
|
|
417
|
+
|
|
418
|
+
# query parameters
|
|
419
|
+
query_params = opts[:query_params] || {}
|
|
420
|
+
|
|
421
|
+
# header parameters
|
|
422
|
+
header_params = opts[:header_params] || {}
|
|
423
|
+
# HTTP header 'Accept' (if needed)
|
|
424
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
425
|
+
|
|
426
|
+
# form parameters
|
|
427
|
+
form_params = opts[:form_params] || {}
|
|
428
|
+
|
|
429
|
+
# http body (model)
|
|
430
|
+
post_body = opts[:debug_body]
|
|
431
|
+
|
|
432
|
+
# return_type
|
|
433
|
+
return_type = opts[:debug_return_type] || 'DeleteEndpoints200Response'
|
|
434
|
+
|
|
435
|
+
# auth_names
|
|
436
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
437
|
+
|
|
438
|
+
new_options = opts.merge(
|
|
439
|
+
:operation => :"EndpointsApi.delete_endpoints_keys",
|
|
440
|
+
:header_params => header_params,
|
|
441
|
+
:query_params => query_params,
|
|
442
|
+
:form_params => form_params,
|
|
443
|
+
:body => post_body,
|
|
444
|
+
:auth_names => auth_names,
|
|
445
|
+
:return_type => return_type
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
449
|
+
if @api_client.config.debugging
|
|
450
|
+
@api_client.config.logger.debug "API called: EndpointsApi#delete_endpoints_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
451
|
+
end
|
|
452
|
+
return data, status_code, headers
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
# Get single endpoint by ID
|
|
456
|
+
# @param company_id [String] Unique identifier for the Company
|
|
457
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
458
|
+
# @param [Hash] opts the optional parameters
|
|
459
|
+
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
460
|
+
def get_endpoints_by_id(company_id, endpoint_id, opts = {})
|
|
461
|
+
data, _status_code, _headers = get_endpoints_by_id_with_http_info(company_id, endpoint_id, opts)
|
|
462
|
+
data
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
# Get single endpoint by ID
|
|
466
|
+
# @param company_id [String] Unique identifier for the Company
|
|
467
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
468
|
+
# @param [Hash] opts the optional parameters
|
|
469
|
+
# @return [Array<(GetEndpointsByIdConnectionsDescribe200Response, Integer, Hash)>] GetEndpointsByIdConnectionsDescribe200Response data, response status code and response headers
|
|
470
|
+
def get_endpoints_by_id_with_http_info(company_id, endpoint_id, opts = {})
|
|
471
|
+
if @api_client.config.debugging
|
|
472
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.get_endpoints_by_id ...'
|
|
473
|
+
end
|
|
474
|
+
# verify the required parameter 'company_id' is set
|
|
475
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
476
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.get_endpoints_by_id"
|
|
477
|
+
end
|
|
478
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
479
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id, the character length must be smaller than or equal to 255.'
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
483
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id, the character length must be greater than or equal to 1.'
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
487
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
488
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.get_endpoints_by_id, must conform to the pattern #{pattern}."
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
# verify the required parameter 'endpoint_id' is set
|
|
492
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
493
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id"
|
|
494
|
+
end
|
|
495
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 255
|
|
496
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id, the character length must be smaller than or equal to 255.'
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
|
500
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id, the character length must be greater than or equal to 1.'
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
504
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
|
505
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id, must conform to the pattern #{pattern}."
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
# resource path
|
|
509
|
+
local_var_path = '/companies/{company_id}/endpoints/{endpoint_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
|
510
|
+
|
|
511
|
+
# query parameters
|
|
512
|
+
query_params = opts[:query_params] || {}
|
|
513
|
+
|
|
514
|
+
# header parameters
|
|
515
|
+
header_params = opts[:header_params] || {}
|
|
516
|
+
# HTTP header 'Accept' (if needed)
|
|
517
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
518
|
+
|
|
519
|
+
# form parameters
|
|
520
|
+
form_params = opts[:form_params] || {}
|
|
521
|
+
|
|
522
|
+
# http body (model)
|
|
523
|
+
post_body = opts[:debug_body]
|
|
524
|
+
|
|
525
|
+
# return_type
|
|
526
|
+
return_type = opts[:debug_return_type] || 'GetEndpointsByIdConnectionsDescribe200Response'
|
|
527
|
+
|
|
528
|
+
# auth_names
|
|
529
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
530
|
+
|
|
531
|
+
new_options = opts.merge(
|
|
532
|
+
:operation => :"EndpointsApi.get_endpoints_by_id",
|
|
533
|
+
:header_params => header_params,
|
|
534
|
+
:query_params => query_params,
|
|
535
|
+
:form_params => form_params,
|
|
536
|
+
:body => post_body,
|
|
537
|
+
:auth_names => auth_names,
|
|
538
|
+
:return_type => return_type
|
|
539
|
+
)
|
|
540
|
+
|
|
541
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
542
|
+
if @api_client.config.debugging
|
|
543
|
+
@api_client.config.logger.debug "API called: EndpointsApi#get_endpoints_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
544
|
+
end
|
|
545
|
+
return data, status_code, headers
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/available-endpoints
|
|
549
|
+
# @param company_id [String] Unique identifier for the Company
|
|
550
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
551
|
+
# @param [Hash] opts the optional parameters
|
|
552
|
+
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
553
|
+
def get_endpoints_by_id_available_endpoints(company_id, endpoint_id, opts = {})
|
|
554
|
+
data, _status_code, _headers = get_endpoints_by_id_available_endpoints_with_http_info(company_id, endpoint_id, opts)
|
|
555
|
+
data
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/available-endpoints
|
|
559
|
+
# @param company_id [String] Unique identifier for the Company
|
|
560
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
561
|
+
# @param [Hash] opts the optional parameters
|
|
562
|
+
# @return [Array<(GetEndpointsByIdConnectionsDescribe200Response, Integer, Hash)>] GetEndpointsByIdConnectionsDescribe200Response data, response status code and response headers
|
|
563
|
+
def get_endpoints_by_id_available_endpoints_with_http_info(company_id, endpoint_id, opts = {})
|
|
564
|
+
if @api_client.config.debugging
|
|
565
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.get_endpoints_by_id_available_endpoints ...'
|
|
566
|
+
end
|
|
567
|
+
# verify the required parameter 'company_id' is set
|
|
568
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
569
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.get_endpoints_by_id_available_endpoints"
|
|
570
|
+
end
|
|
571
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
572
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_available_endpoints, the character length must be smaller than or equal to 255.'
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
576
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_available_endpoints, the character length must be greater than or equal to 1.'
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
580
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
581
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.get_endpoints_by_id_available_endpoints, must conform to the pattern #{pattern}."
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
# verify the required parameter 'endpoint_id' is set
|
|
585
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
586
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_available_endpoints"
|
|
587
|
+
end
|
|
588
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 255
|
|
589
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_available_endpoints, the character length must be smaller than or equal to 255.'
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
|
593
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_available_endpoints, the character length must be greater than or equal to 1.'
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
597
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
|
598
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_available_endpoints, must conform to the pattern #{pattern}."
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
# resource path
|
|
602
|
+
local_var_path = '/companies/{company_id}/endpoints/{endpoint_id}/available-endpoints'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
|
603
|
+
|
|
604
|
+
# query parameters
|
|
605
|
+
query_params = opts[:query_params] || {}
|
|
606
|
+
|
|
607
|
+
# header parameters
|
|
608
|
+
header_params = opts[:header_params] || {}
|
|
609
|
+
# HTTP header 'Accept' (if needed)
|
|
610
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
611
|
+
|
|
612
|
+
# form parameters
|
|
613
|
+
form_params = opts[:form_params] || {}
|
|
614
|
+
|
|
615
|
+
# http body (model)
|
|
616
|
+
post_body = opts[:debug_body]
|
|
617
|
+
|
|
618
|
+
# return_type
|
|
619
|
+
return_type = opts[:debug_return_type] || 'GetEndpointsByIdConnectionsDescribe200Response'
|
|
620
|
+
|
|
621
|
+
# auth_names
|
|
622
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
623
|
+
|
|
624
|
+
new_options = opts.merge(
|
|
625
|
+
:operation => :"EndpointsApi.get_endpoints_by_id_available_endpoints",
|
|
626
|
+
:header_params => header_params,
|
|
627
|
+
:query_params => query_params,
|
|
628
|
+
:form_params => form_params,
|
|
629
|
+
:body => post_body,
|
|
630
|
+
:auth_names => auth_names,
|
|
631
|
+
:return_type => return_type
|
|
632
|
+
)
|
|
633
|
+
|
|
634
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
635
|
+
if @api_client.config.debugging
|
|
636
|
+
@api_client.config.logger.debug "API called: EndpointsApi#get_endpoints_by_id_available_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
637
|
+
end
|
|
638
|
+
return data, status_code, headers
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
# 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
|
|
642
|
+
# @param company_id [String] Unique identifier for the Company
|
|
643
|
+
# @param connection_id [String] Unique identifier for the Connection
|
|
644
|
+
# @param [Hash] opts the optional parameters
|
|
645
|
+
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
646
|
+
def get_endpoints_by_id_connections_describe(company_id, connection_id, opts = {})
|
|
647
|
+
data, _status_code, _headers = get_endpoints_by_id_connections_describe_with_http_info(company_id, connection_id, opts)
|
|
648
|
+
data
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
# 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
|
|
652
|
+
# @param company_id [String] Unique identifier for the Company
|
|
653
|
+
# @param connection_id [String] Unique identifier for the Connection
|
|
654
|
+
# @param [Hash] opts the optional parameters
|
|
655
|
+
# @return [Array<(GetEndpointsByIdConnectionsDescribe200Response, Integer, Hash)>] GetEndpointsByIdConnectionsDescribe200Response data, response status code and response headers
|
|
656
|
+
def get_endpoints_by_id_connections_describe_with_http_info(company_id, connection_id, opts = {})
|
|
657
|
+
if @api_client.config.debugging
|
|
658
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.get_endpoints_by_id_connections_describe ...'
|
|
659
|
+
end
|
|
660
|
+
# verify the required parameter 'company_id' is set
|
|
661
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
662
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.get_endpoints_by_id_connections_describe"
|
|
663
|
+
end
|
|
664
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
665
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_connections_describe, the character length must be smaller than or equal to 255.'
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
669
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_connections_describe, the character length must be greater than or equal to 1.'
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
673
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
674
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.get_endpoints_by_id_connections_describe, must conform to the pattern #{pattern}."
|
|
675
|
+
end
|
|
676
|
+
|
|
677
|
+
# verify the required parameter 'connection_id' is set
|
|
678
|
+
if @api_client.config.client_side_validation && connection_id.nil?
|
|
679
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling EndpointsApi.get_endpoints_by_id_connections_describe"
|
|
680
|
+
end
|
|
681
|
+
if @api_client.config.client_side_validation && connection_id.to_s.length > 255
|
|
682
|
+
fail ArgumentError, 'invalid value for "connection_id" when calling EndpointsApi.get_endpoints_by_id_connections_describe, the character length must be smaller than or equal to 255.'
|
|
683
|
+
end
|
|
684
|
+
|
|
685
|
+
if @api_client.config.client_side_validation && connection_id.to_s.length < 1
|
|
686
|
+
fail ArgumentError, 'invalid value for "connection_id" when calling EndpointsApi.get_endpoints_by_id_connections_describe, the character length must be greater than or equal to 1.'
|
|
687
|
+
end
|
|
688
|
+
|
|
689
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
690
|
+
if @api_client.config.client_side_validation && connection_id !~ pattern
|
|
691
|
+
fail ArgumentError, "invalid value for 'connection_id' when calling EndpointsApi.get_endpoints_by_id_connections_describe, must conform to the pattern #{pattern}."
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
# resource path
|
|
695
|
+
local_var_path = '/companies/{company_id}/endpoints/../connections/{connection_id}/describe'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'connection_id' + '}', CGI.escape(connection_id.to_s))
|
|
696
|
+
|
|
697
|
+
# query parameters
|
|
698
|
+
query_params = opts[:query_params] || {}
|
|
699
|
+
|
|
700
|
+
# header parameters
|
|
701
|
+
header_params = opts[:header_params] || {}
|
|
702
|
+
# HTTP header 'Accept' (if needed)
|
|
703
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
704
|
+
|
|
705
|
+
# form parameters
|
|
706
|
+
form_params = opts[:form_params] || {}
|
|
707
|
+
|
|
708
|
+
# http body (model)
|
|
709
|
+
post_body = opts[:debug_body]
|
|
710
|
+
|
|
711
|
+
# return_type
|
|
712
|
+
return_type = opts[:debug_return_type] || 'GetEndpointsByIdConnectionsDescribe200Response'
|
|
713
|
+
|
|
714
|
+
# auth_names
|
|
715
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
716
|
+
|
|
717
|
+
new_options = opts.merge(
|
|
718
|
+
:operation => :"EndpointsApi.get_endpoints_by_id_connections_describe",
|
|
719
|
+
:header_params => header_params,
|
|
720
|
+
:query_params => query_params,
|
|
721
|
+
:form_params => form_params,
|
|
722
|
+
:body => post_body,
|
|
723
|
+
:auth_names => auth_names,
|
|
724
|
+
:return_type => return_type
|
|
725
|
+
)
|
|
726
|
+
|
|
727
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
728
|
+
if @api_client.config.debugging
|
|
729
|
+
@api_client.config.logger.debug "API called: EndpointsApi#get_endpoints_by_id_connections_describe\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
730
|
+
end
|
|
731
|
+
return data, status_code, headers
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
# Execute an endpoint with pagination support. Customer-facing route that returns paginated data. Query params: ?start=0&limit=100
|
|
735
|
+
# @param company_id [String] Unique identifier for the Company
|
|
736
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
737
|
+
# @param [Hash] opts the optional parameters
|
|
738
|
+
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
739
|
+
def get_endpoints_by_id_execute(company_id, endpoint_id, opts = {})
|
|
740
|
+
data, _status_code, _headers = get_endpoints_by_id_execute_with_http_info(company_id, endpoint_id, opts)
|
|
741
|
+
data
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
# Execute an endpoint with pagination support. Customer-facing route that returns paginated data. Query params: ?start=0&limit=100
|
|
745
|
+
# @param company_id [String] Unique identifier for the Company
|
|
746
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
747
|
+
# @param [Hash] opts the optional parameters
|
|
748
|
+
# @return [Array<(GetEndpointsByIdConnectionsDescribe200Response, Integer, Hash)>] GetEndpointsByIdConnectionsDescribe200Response data, response status code and response headers
|
|
749
|
+
def get_endpoints_by_id_execute_with_http_info(company_id, endpoint_id, opts = {})
|
|
750
|
+
if @api_client.config.debugging
|
|
751
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.get_endpoints_by_id_execute ...'
|
|
752
|
+
end
|
|
753
|
+
# verify the required parameter 'company_id' is set
|
|
754
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
755
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.get_endpoints_by_id_execute"
|
|
756
|
+
end
|
|
757
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
758
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_execute, the character length must be smaller than or equal to 255.'
|
|
759
|
+
end
|
|
760
|
+
|
|
761
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
762
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_execute, the character length must be greater than or equal to 1.'
|
|
763
|
+
end
|
|
764
|
+
|
|
765
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
766
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
767
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.get_endpoints_by_id_execute, must conform to the pattern #{pattern}."
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
# verify the required parameter 'endpoint_id' is set
|
|
771
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
772
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_execute"
|
|
773
|
+
end
|
|
774
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 255
|
|
775
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_execute, the character length must be smaller than or equal to 255.'
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
|
779
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_execute, the character length must be greater than or equal to 1.'
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
783
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
|
784
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_execute, must conform to the pattern #{pattern}."
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
# resource path
|
|
788
|
+
local_var_path = '/companies/{company_id}/endpoints/{endpoint_id}/execute'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
|
789
|
+
|
|
790
|
+
# query parameters
|
|
791
|
+
query_params = opts[:query_params] || {}
|
|
792
|
+
|
|
793
|
+
# header parameters
|
|
794
|
+
header_params = opts[:header_params] || {}
|
|
795
|
+
# HTTP header 'Accept' (if needed)
|
|
796
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
797
|
+
|
|
798
|
+
# form parameters
|
|
799
|
+
form_params = opts[:form_params] || {}
|
|
800
|
+
|
|
801
|
+
# http body (model)
|
|
802
|
+
post_body = opts[:debug_body]
|
|
803
|
+
|
|
804
|
+
# return_type
|
|
805
|
+
return_type = opts[:debug_return_type] || 'GetEndpointsByIdConnectionsDescribe200Response'
|
|
806
|
+
|
|
807
|
+
# auth_names
|
|
808
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
809
|
+
|
|
810
|
+
new_options = opts.merge(
|
|
811
|
+
:operation => :"EndpointsApi.get_endpoints_by_id_execute",
|
|
812
|
+
:header_params => header_params,
|
|
813
|
+
:query_params => query_params,
|
|
814
|
+
:form_params => form_params,
|
|
815
|
+
:body => post_body,
|
|
816
|
+
:auth_names => auth_names,
|
|
817
|
+
:return_type => return_type
|
|
818
|
+
)
|
|
819
|
+
|
|
820
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
821
|
+
if @api_client.config.debugging
|
|
822
|
+
@api_client.config.logger.debug "API called: EndpointsApi#get_endpoints_by_id_execute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
823
|
+
end
|
|
824
|
+
return data, status_code, headers
|
|
825
|
+
end
|
|
826
|
+
|
|
827
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
828
|
+
# @param company_id [String] Unique identifier for the Company
|
|
829
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
830
|
+
# @param [Hash] opts the optional parameters
|
|
831
|
+
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
832
|
+
def get_endpoints_by_id_keys(company_id, endpoint_id, opts = {})
|
|
833
|
+
data, _status_code, _headers = get_endpoints_by_id_keys_with_http_info(company_id, endpoint_id, opts)
|
|
834
|
+
data
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
838
|
+
# @param company_id [String] Unique identifier for the Company
|
|
839
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
840
|
+
# @param [Hash] opts the optional parameters
|
|
841
|
+
# @return [Array<(GetEndpointsByIdConnectionsDescribe200Response, Integer, Hash)>] GetEndpointsByIdConnectionsDescribe200Response data, response status code and response headers
|
|
842
|
+
def get_endpoints_by_id_keys_with_http_info(company_id, endpoint_id, opts = {})
|
|
843
|
+
if @api_client.config.debugging
|
|
844
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.get_endpoints_by_id_keys ...'
|
|
845
|
+
end
|
|
846
|
+
# verify the required parameter 'company_id' is set
|
|
847
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
848
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.get_endpoints_by_id_keys"
|
|
849
|
+
end
|
|
850
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
851
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_keys, the character length must be smaller than or equal to 255.'
|
|
852
|
+
end
|
|
853
|
+
|
|
854
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
855
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_keys, the character length must be greater than or equal to 1.'
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
859
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
860
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.get_endpoints_by_id_keys, must conform to the pattern #{pattern}."
|
|
861
|
+
end
|
|
862
|
+
|
|
863
|
+
# verify the required parameter 'endpoint_id' is set
|
|
864
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
865
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_keys"
|
|
866
|
+
end
|
|
867
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 255
|
|
868
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_keys, the character length must be smaller than or equal to 255.'
|
|
869
|
+
end
|
|
870
|
+
|
|
871
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
|
872
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_keys, the character length must be greater than or equal to 1.'
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
876
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
|
877
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_keys, must conform to the pattern #{pattern}."
|
|
878
|
+
end
|
|
879
|
+
|
|
880
|
+
# resource path
|
|
881
|
+
local_var_path = '/companies/{company_id}/endpoints/{endpoint_id}/keys'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
|
882
|
+
|
|
883
|
+
# query parameters
|
|
884
|
+
query_params = opts[:query_params] || {}
|
|
885
|
+
|
|
886
|
+
# header parameters
|
|
887
|
+
header_params = opts[:header_params] || {}
|
|
888
|
+
# HTTP header 'Accept' (if needed)
|
|
889
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
890
|
+
|
|
891
|
+
# form parameters
|
|
892
|
+
form_params = opts[:form_params] || {}
|
|
893
|
+
|
|
894
|
+
# http body (model)
|
|
895
|
+
post_body = opts[:debug_body]
|
|
896
|
+
|
|
897
|
+
# return_type
|
|
898
|
+
return_type = opts[:debug_return_type] || 'GetEndpointsByIdConnectionsDescribe200Response'
|
|
899
|
+
|
|
900
|
+
# auth_names
|
|
901
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
902
|
+
|
|
903
|
+
new_options = opts.merge(
|
|
904
|
+
:operation => :"EndpointsApi.get_endpoints_by_id_keys",
|
|
905
|
+
:header_params => header_params,
|
|
906
|
+
:query_params => query_params,
|
|
907
|
+
:form_params => form_params,
|
|
908
|
+
:body => post_body,
|
|
909
|
+
:auth_names => auth_names,
|
|
910
|
+
:return_type => return_type
|
|
911
|
+
)
|
|
912
|
+
|
|
913
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
914
|
+
if @api_client.config.debugging
|
|
915
|
+
@api_client.config.logger.debug "API called: EndpointsApi#get_endpoints_by_id_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
916
|
+
end
|
|
917
|
+
return data, status_code, headers
|
|
918
|
+
end
|
|
919
|
+
|
|
920
|
+
# Get usage statistics for an endpoint Query parameters: days: Number of days to analyze (default: 30)
|
|
921
|
+
# @param company_id [String] Unique identifier for the Company
|
|
922
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
923
|
+
# @param [Hash] opts the optional parameters
|
|
924
|
+
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
925
|
+
def get_endpoints_by_id_stats(company_id, endpoint_id, opts = {})
|
|
926
|
+
data, _status_code, _headers = get_endpoints_by_id_stats_with_http_info(company_id, endpoint_id, opts)
|
|
927
|
+
data
|
|
928
|
+
end
|
|
929
|
+
|
|
930
|
+
# Get usage statistics for an endpoint Query parameters: days: Number of days to analyze (default: 30)
|
|
931
|
+
# @param company_id [String] Unique identifier for the Company
|
|
932
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
933
|
+
# @param [Hash] opts the optional parameters
|
|
934
|
+
# @return [Array<(GetEndpointsByIdConnectionsDescribe200Response, Integer, Hash)>] GetEndpointsByIdConnectionsDescribe200Response data, response status code and response headers
|
|
935
|
+
def get_endpoints_by_id_stats_with_http_info(company_id, endpoint_id, opts = {})
|
|
936
|
+
if @api_client.config.debugging
|
|
937
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.get_endpoints_by_id_stats ...'
|
|
938
|
+
end
|
|
939
|
+
# verify the required parameter 'company_id' is set
|
|
940
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
941
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.get_endpoints_by_id_stats"
|
|
942
|
+
end
|
|
943
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
944
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_stats, the character length must be smaller than or equal to 255.'
|
|
945
|
+
end
|
|
946
|
+
|
|
947
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
948
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_stats, the character length must be greater than or equal to 1.'
|
|
949
|
+
end
|
|
950
|
+
|
|
951
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
952
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
953
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.get_endpoints_by_id_stats, must conform to the pattern #{pattern}."
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
# verify the required parameter 'endpoint_id' is set
|
|
957
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
958
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_stats"
|
|
959
|
+
end
|
|
960
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 255
|
|
961
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_stats, the character length must be smaller than or equal to 255.'
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
|
965
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_stats, the character length must be greater than or equal to 1.'
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
969
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
|
970
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_stats, must conform to the pattern #{pattern}."
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
# resource path
|
|
974
|
+
local_var_path = '/companies/{company_id}/endpoints/{endpoint_id}/stats'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
|
975
|
+
|
|
976
|
+
# query parameters
|
|
977
|
+
query_params = opts[:query_params] || {}
|
|
978
|
+
|
|
979
|
+
# header parameters
|
|
980
|
+
header_params = opts[:header_params] || {}
|
|
981
|
+
# HTTP header 'Accept' (if needed)
|
|
982
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
983
|
+
|
|
984
|
+
# form parameters
|
|
985
|
+
form_params = opts[:form_params] || {}
|
|
986
|
+
|
|
987
|
+
# http body (model)
|
|
988
|
+
post_body = opts[:debug_body]
|
|
989
|
+
|
|
990
|
+
# return_type
|
|
991
|
+
return_type = opts[:debug_return_type] || 'GetEndpointsByIdConnectionsDescribe200Response'
|
|
992
|
+
|
|
993
|
+
# auth_names
|
|
994
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
995
|
+
|
|
996
|
+
new_options = opts.merge(
|
|
997
|
+
:operation => :"EndpointsApi.get_endpoints_by_id_stats",
|
|
998
|
+
:header_params => header_params,
|
|
999
|
+
:query_params => query_params,
|
|
1000
|
+
:form_params => form_params,
|
|
1001
|
+
:body => post_body,
|
|
1002
|
+
:auth_names => auth_names,
|
|
1003
|
+
:return_type => return_type
|
|
1004
|
+
)
|
|
1005
|
+
|
|
1006
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1007
|
+
if @api_client.config.debugging
|
|
1008
|
+
@api_client.config.logger.debug "API called: EndpointsApi#get_endpoints_by_id_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1009
|
+
end
|
|
1010
|
+
return data, status_code, headers
|
|
1011
|
+
end
|
|
1012
|
+
|
|
1013
|
+
# Test an endpoint with sample data Request body (optional): limit: Number of sample rows to return (default: 10)
|
|
1014
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1015
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
1016
|
+
# @param [Hash] opts the optional parameters
|
|
1017
|
+
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
1018
|
+
def get_endpoints_by_id_test(company_id, endpoint_id, opts = {})
|
|
1019
|
+
data, _status_code, _headers = get_endpoints_by_id_test_with_http_info(company_id, endpoint_id, opts)
|
|
1020
|
+
data
|
|
1021
|
+
end
|
|
1022
|
+
|
|
1023
|
+
# Test an endpoint with sample data Request body (optional): limit: Number of sample rows to return (default: 10)
|
|
1024
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1025
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
1026
|
+
# @param [Hash] opts the optional parameters
|
|
1027
|
+
# @return [Array<(GetEndpointsByIdConnectionsDescribe200Response, Integer, Hash)>] GetEndpointsByIdConnectionsDescribe200Response data, response status code and response headers
|
|
1028
|
+
def get_endpoints_by_id_test_with_http_info(company_id, endpoint_id, opts = {})
|
|
1029
|
+
if @api_client.config.debugging
|
|
1030
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.get_endpoints_by_id_test ...'
|
|
1031
|
+
end
|
|
1032
|
+
# verify the required parameter 'company_id' is set
|
|
1033
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
1034
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.get_endpoints_by_id_test"
|
|
1035
|
+
end
|
|
1036
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
1037
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_test, the character length must be smaller than or equal to 255.'
|
|
1038
|
+
end
|
|
1039
|
+
|
|
1040
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
1041
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_test, the character length must be greater than or equal to 1.'
|
|
1042
|
+
end
|
|
1043
|
+
|
|
1044
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1045
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
1046
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.get_endpoints_by_id_test, must conform to the pattern #{pattern}."
|
|
1047
|
+
end
|
|
1048
|
+
|
|
1049
|
+
# verify the required parameter 'endpoint_id' is set
|
|
1050
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
1051
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_test"
|
|
1052
|
+
end
|
|
1053
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 255
|
|
1054
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_test, the character length must be smaller than or equal to 255.'
|
|
1055
|
+
end
|
|
1056
|
+
|
|
1057
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
|
1058
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_test, the character length must be greater than or equal to 1.'
|
|
1059
|
+
end
|
|
1060
|
+
|
|
1061
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1062
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
|
1063
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_test, must conform to the pattern #{pattern}."
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
# resource path
|
|
1067
|
+
local_var_path = '/companies/{company_id}/endpoints/{endpoint_id}/test'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
|
1068
|
+
|
|
1069
|
+
# query parameters
|
|
1070
|
+
query_params = opts[:query_params] || {}
|
|
1071
|
+
|
|
1072
|
+
# header parameters
|
|
1073
|
+
header_params = opts[:header_params] || {}
|
|
1074
|
+
# HTTP header 'Accept' (if needed)
|
|
1075
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1076
|
+
|
|
1077
|
+
# form parameters
|
|
1078
|
+
form_params = opts[:form_params] || {}
|
|
1079
|
+
|
|
1080
|
+
# http body (model)
|
|
1081
|
+
post_body = opts[:debug_body]
|
|
1082
|
+
|
|
1083
|
+
# return_type
|
|
1084
|
+
return_type = opts[:debug_return_type] || 'GetEndpointsByIdConnectionsDescribe200Response'
|
|
1085
|
+
|
|
1086
|
+
# auth_names
|
|
1087
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1088
|
+
|
|
1089
|
+
new_options = opts.merge(
|
|
1090
|
+
:operation => :"EndpointsApi.get_endpoints_by_id_test",
|
|
1091
|
+
:header_params => header_params,
|
|
1092
|
+
:query_params => query_params,
|
|
1093
|
+
:form_params => form_params,
|
|
1094
|
+
:body => post_body,
|
|
1095
|
+
:auth_names => auth_names,
|
|
1096
|
+
:return_type => return_type
|
|
1097
|
+
)
|
|
1098
|
+
|
|
1099
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1100
|
+
if @api_client.config.debugging
|
|
1101
|
+
@api_client.config.logger.debug "API called: EndpointsApi#get_endpoints_by_id_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1102
|
+
end
|
|
1103
|
+
return data, status_code, headers
|
|
1104
|
+
end
|
|
1105
|
+
|
|
1106
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/url
|
|
1107
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1108
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
1109
|
+
# @param [Hash] opts the optional parameters
|
|
1110
|
+
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
1111
|
+
def get_endpoints_by_id_url(company_id, endpoint_id, opts = {})
|
|
1112
|
+
data, _status_code, _headers = get_endpoints_by_id_url_with_http_info(company_id, endpoint_id, opts)
|
|
1113
|
+
data
|
|
1114
|
+
end
|
|
1115
|
+
|
|
1116
|
+
# GET /companies/{company_id}/endpoints/{endpoint_id}/url
|
|
1117
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1118
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
1119
|
+
# @param [Hash] opts the optional parameters
|
|
1120
|
+
# @return [Array<(GetEndpointsByIdConnectionsDescribe200Response, Integer, Hash)>] GetEndpointsByIdConnectionsDescribe200Response data, response status code and response headers
|
|
1121
|
+
def get_endpoints_by_id_url_with_http_info(company_id, endpoint_id, opts = {})
|
|
1122
|
+
if @api_client.config.debugging
|
|
1123
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.get_endpoints_by_id_url ...'
|
|
1124
|
+
end
|
|
1125
|
+
# verify the required parameter 'company_id' is set
|
|
1126
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
1127
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.get_endpoints_by_id_url"
|
|
1128
|
+
end
|
|
1129
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
1130
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_url, the character length must be smaller than or equal to 255.'
|
|
1131
|
+
end
|
|
1132
|
+
|
|
1133
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
1134
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.get_endpoints_by_id_url, the character length must be greater than or equal to 1.'
|
|
1135
|
+
end
|
|
1136
|
+
|
|
1137
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1138
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
1139
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.get_endpoints_by_id_url, must conform to the pattern #{pattern}."
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1142
|
+
# verify the required parameter 'endpoint_id' is set
|
|
1143
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
1144
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_url"
|
|
1145
|
+
end
|
|
1146
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 255
|
|
1147
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_url, the character length must be smaller than or equal to 255.'
|
|
1148
|
+
end
|
|
1149
|
+
|
|
1150
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
|
1151
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.get_endpoints_by_id_url, the character length must be greater than or equal to 1.'
|
|
1152
|
+
end
|
|
1153
|
+
|
|
1154
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1155
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
|
1156
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointsApi.get_endpoints_by_id_url, must conform to the pattern #{pattern}."
|
|
1157
|
+
end
|
|
1158
|
+
|
|
1159
|
+
# resource path
|
|
1160
|
+
local_var_path = '/companies/{company_id}/endpoints/{endpoint_id}/url'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
|
1161
|
+
|
|
1162
|
+
# query parameters
|
|
1163
|
+
query_params = opts[:query_params] || {}
|
|
1164
|
+
|
|
1165
|
+
# header parameters
|
|
1166
|
+
header_params = opts[:header_params] || {}
|
|
1167
|
+
# HTTP header 'Accept' (if needed)
|
|
1168
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1169
|
+
|
|
1170
|
+
# form parameters
|
|
1171
|
+
form_params = opts[:form_params] || {}
|
|
1172
|
+
|
|
1173
|
+
# http body (model)
|
|
1174
|
+
post_body = opts[:debug_body]
|
|
1175
|
+
|
|
1176
|
+
# return_type
|
|
1177
|
+
return_type = opts[:debug_return_type] || 'GetEndpointsByIdConnectionsDescribe200Response'
|
|
1178
|
+
|
|
1179
|
+
# auth_names
|
|
1180
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1181
|
+
|
|
1182
|
+
new_options = opts.merge(
|
|
1183
|
+
:operation => :"EndpointsApi.get_endpoints_by_id_url",
|
|
1184
|
+
:header_params => header_params,
|
|
1185
|
+
:query_params => query_params,
|
|
1186
|
+
:form_params => form_params,
|
|
1187
|
+
:body => post_body,
|
|
1188
|
+
:auth_names => auth_names,
|
|
1189
|
+
:return_type => return_type
|
|
1190
|
+
)
|
|
1191
|
+
|
|
1192
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1193
|
+
if @api_client.config.debugging
|
|
1194
|
+
@api_client.config.logger.debug "API called: EndpointsApi#get_endpoints_by_id_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1195
|
+
end
|
|
1196
|
+
return data, status_code, headers
|
|
1197
|
+
end
|
|
1198
|
+
|
|
1199
|
+
# Get all endpoints for a specific company with pagination, filtering, and sorting
|
|
1200
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1201
|
+
# @param [Hash] opts the optional parameters
|
|
1202
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
1203
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
1204
|
+
# @option opts [String] :sort_by Field to sort by
|
|
1205
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
1206
|
+
# @option opts [String] :search Search term to filter results
|
|
1207
|
+
# @return [ListEndpoints200Response]
|
|
1208
|
+
def list_endpoints(company_id, opts = {})
|
|
1209
|
+
data, _status_code, _headers = list_endpoints_with_http_info(company_id, opts)
|
|
1210
|
+
data
|
|
1211
|
+
end
|
|
1212
|
+
|
|
1213
|
+
# Get all endpoints for a specific company with pagination, filtering, and sorting
|
|
1214
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1215
|
+
# @param [Hash] opts the optional parameters
|
|
1216
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
1217
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
1218
|
+
# @option opts [String] :sort_by Field to sort by
|
|
1219
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
1220
|
+
# @option opts [String] :search Search term to filter results
|
|
1221
|
+
# @return [Array<(ListEndpoints200Response, Integer, Hash)>] ListEndpoints200Response data, response status code and response headers
|
|
1222
|
+
def list_endpoints_with_http_info(company_id, opts = {})
|
|
1223
|
+
if @api_client.config.debugging
|
|
1224
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.list_endpoints ...'
|
|
1225
|
+
end
|
|
1226
|
+
# verify the required parameter 'company_id' is set
|
|
1227
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
1228
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.list_endpoints"
|
|
1229
|
+
end
|
|
1230
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
1231
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.list_endpoints, the character length must be smaller than or equal to 255.'
|
|
1232
|
+
end
|
|
1233
|
+
|
|
1234
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
1235
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.list_endpoints, the character length must be greater than or equal to 1.'
|
|
1236
|
+
end
|
|
1237
|
+
|
|
1238
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1239
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
1240
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.list_endpoints, must conform to the pattern #{pattern}."
|
|
1241
|
+
end
|
|
1242
|
+
|
|
1243
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
1244
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling EndpointsApi.list_endpoints, must be greater than or equal to 1.'
|
|
1245
|
+
end
|
|
1246
|
+
|
|
1247
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
1248
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointsApi.list_endpoints, must be smaller than or equal to 100.'
|
|
1249
|
+
end
|
|
1250
|
+
|
|
1251
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1252
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointsApi.list_endpoints, must be greater than or equal to 1.'
|
|
1253
|
+
end
|
|
1254
|
+
|
|
1255
|
+
allowable_values = ["asc", "desc"]
|
|
1256
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
1257
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
1258
|
+
end
|
|
1259
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
1260
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling EndpointsApi.list_endpoints, the character length must be smaller than or equal to 255.'
|
|
1261
|
+
end
|
|
1262
|
+
|
|
1263
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
1264
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling EndpointsApi.list_endpoints, the character length must be greater than or equal to 1.'
|
|
1265
|
+
end
|
|
1266
|
+
|
|
1267
|
+
# resource path
|
|
1268
|
+
local_var_path = '/companies/{company_id}/endpoints'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
1269
|
+
|
|
1270
|
+
# query parameters
|
|
1271
|
+
query_params = opts[:query_params] || {}
|
|
1272
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
1273
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1274
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
1275
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
1276
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
1277
|
+
|
|
1278
|
+
# header parameters
|
|
1279
|
+
header_params = opts[:header_params] || {}
|
|
1280
|
+
# HTTP header 'Accept' (if needed)
|
|
1281
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1282
|
+
|
|
1283
|
+
# form parameters
|
|
1284
|
+
form_params = opts[:form_params] || {}
|
|
1285
|
+
|
|
1286
|
+
# http body (model)
|
|
1287
|
+
post_body = opts[:debug_body]
|
|
1288
|
+
|
|
1289
|
+
# return_type
|
|
1290
|
+
return_type = opts[:debug_return_type] || 'ListEndpoints200Response'
|
|
1291
|
+
|
|
1292
|
+
# auth_names
|
|
1293
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1294
|
+
|
|
1295
|
+
new_options = opts.merge(
|
|
1296
|
+
:operation => :"EndpointsApi.list_endpoints",
|
|
1297
|
+
:header_params => header_params,
|
|
1298
|
+
:query_params => query_params,
|
|
1299
|
+
:form_params => form_params,
|
|
1300
|
+
:body => post_body,
|
|
1301
|
+
:auth_names => auth_names,
|
|
1302
|
+
:return_type => return_type
|
|
1303
|
+
)
|
|
1304
|
+
|
|
1305
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1306
|
+
if @api_client.config.debugging
|
|
1307
|
+
@api_client.config.logger.debug "API called: EndpointsApi#list_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1308
|
+
end
|
|
1309
|
+
return data, status_code, headers
|
|
1310
|
+
end
|
|
1311
|
+
|
|
1312
|
+
# Update an existing endpoint by ID
|
|
1313
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1314
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
1315
|
+
# @param endpoints_update [EndpointsUpdate]
|
|
1316
|
+
# @param [Hash] opts the optional parameters
|
|
1317
|
+
# @return [UpdateEndpoints200Response]
|
|
1318
|
+
def update_endpoints(company_id, endpoint_id, endpoints_update, opts = {})
|
|
1319
|
+
data, _status_code, _headers = update_endpoints_with_http_info(company_id, endpoint_id, endpoints_update, opts)
|
|
1320
|
+
data
|
|
1321
|
+
end
|
|
1322
|
+
|
|
1323
|
+
# Update an existing endpoint by ID
|
|
1324
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1325
|
+
# @param endpoint_id [String] Unique identifier for the Endpoint
|
|
1326
|
+
# @param endpoints_update [EndpointsUpdate]
|
|
1327
|
+
# @param [Hash] opts the optional parameters
|
|
1328
|
+
# @return [Array<(UpdateEndpoints200Response, Integer, Hash)>] UpdateEndpoints200Response data, response status code and response headers
|
|
1329
|
+
def update_endpoints_with_http_info(company_id, endpoint_id, endpoints_update, opts = {})
|
|
1330
|
+
if @api_client.config.debugging
|
|
1331
|
+
@api_client.config.logger.debug 'Calling API: EndpointsApi.update_endpoints ...'
|
|
1332
|
+
end
|
|
1333
|
+
# verify the required parameter 'company_id' is set
|
|
1334
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
1335
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling EndpointsApi.update_endpoints"
|
|
1336
|
+
end
|
|
1337
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
1338
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.update_endpoints, the character length must be smaller than or equal to 255.'
|
|
1339
|
+
end
|
|
1340
|
+
|
|
1341
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
1342
|
+
fail ArgumentError, 'invalid value for "company_id" when calling EndpointsApi.update_endpoints, the character length must be greater than or equal to 1.'
|
|
1343
|
+
end
|
|
1344
|
+
|
|
1345
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1346
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
1347
|
+
fail ArgumentError, "invalid value for 'company_id' when calling EndpointsApi.update_endpoints, must conform to the pattern #{pattern}."
|
|
1348
|
+
end
|
|
1349
|
+
|
|
1350
|
+
# verify the required parameter 'endpoint_id' is set
|
|
1351
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
1352
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointsApi.update_endpoints"
|
|
1353
|
+
end
|
|
1354
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 255
|
|
1355
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.update_endpoints, the character length must be smaller than or equal to 255.'
|
|
1356
|
+
end
|
|
1357
|
+
|
|
1358
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
|
1359
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointsApi.update_endpoints, the character length must be greater than or equal to 1.'
|
|
1360
|
+
end
|
|
1361
|
+
|
|
1362
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1363
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
|
1364
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointsApi.update_endpoints, must conform to the pattern #{pattern}."
|
|
1365
|
+
end
|
|
1366
|
+
|
|
1367
|
+
# verify the required parameter 'endpoints_update' is set
|
|
1368
|
+
if @api_client.config.client_side_validation && endpoints_update.nil?
|
|
1369
|
+
fail ArgumentError, "Missing the required parameter 'endpoints_update' when calling EndpointsApi.update_endpoints"
|
|
1370
|
+
end
|
|
1371
|
+
# resource path
|
|
1372
|
+
local_var_path = '/companies/{company_id}/endpoints/{endpoint_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
|
1373
|
+
|
|
1374
|
+
# query parameters
|
|
1375
|
+
query_params = opts[:query_params] || {}
|
|
1376
|
+
|
|
1377
|
+
# header parameters
|
|
1378
|
+
header_params = opts[:header_params] || {}
|
|
1379
|
+
# HTTP header 'Accept' (if needed)
|
|
1380
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1381
|
+
# HTTP header 'Content-Type'
|
|
1382
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1383
|
+
if !content_type.nil?
|
|
1384
|
+
header_params['Content-Type'] = content_type
|
|
1385
|
+
end
|
|
1386
|
+
|
|
1387
|
+
# form parameters
|
|
1388
|
+
form_params = opts[:form_params] || {}
|
|
1389
|
+
|
|
1390
|
+
# http body (model)
|
|
1391
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoints_update)
|
|
1392
|
+
|
|
1393
|
+
# return_type
|
|
1394
|
+
return_type = opts[:debug_return_type] || 'UpdateEndpoints200Response'
|
|
1395
|
+
|
|
1396
|
+
# auth_names
|
|
1397
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1398
|
+
|
|
1399
|
+
new_options = opts.merge(
|
|
1400
|
+
:operation => :"EndpointsApi.update_endpoints",
|
|
1401
|
+
:header_params => header_params,
|
|
1402
|
+
:query_params => query_params,
|
|
1403
|
+
:form_params => form_params,
|
|
1404
|
+
:body => post_body,
|
|
1405
|
+
:auth_names => auth_names,
|
|
1406
|
+
:return_type => return_type
|
|
1407
|
+
)
|
|
1408
|
+
|
|
1409
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1410
|
+
if @api_client.config.debugging
|
|
1411
|
+
@api_client.config.logger.debug "API called: EndpointsApi#update_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1412
|
+
end
|
|
1413
|
+
return data, status_code, headers
|
|
1414
|
+
end
|
|
1415
|
+
end
|
|
1416
|
+
end
|