spartera_api_sdk 0.3.7 → 1.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +5 -3
- data/Gemfile.lock +69 -0
- data/README.md +324 -336
- data/config.json +10 -0
- data/docs/APIKeysApi.md +102 -286
- data/docs/Alert.md +36 -0
- data/docs/AlertsApi.md +163 -177
- data/docs/Apikey.md +36 -0
- data/docs/Asset.md +110 -0
- data/docs/AssetPriceHistoryApi.md +178 -202
- data/docs/Assetpricehistory.md +38 -0
- data/docs/AssetsApi.md +352 -418
- data/docs/CloudProvidersApi.md +233 -49
- data/docs/Cloudprovider.md +30 -0
- data/docs/CompaniesApi.md +171 -357
- data/docs/Company.md +44 -0
- data/docs/Connection.md +54 -0
- data/docs/ConnectionsApi.md +139 -249
- data/docs/Favorite.md +36 -0
- data/docs/FavoritesApi.md +183 -199
- data/docs/User.md +34 -0
- data/docs/UsersApi.md +97 -379
- data/example.rb +51 -0
- data/git_push.sh +2 -2
- data/lib/spartera_api_sdk/api/alerts_api.rb +176 -423
- data/lib/spartera_api_sdk/api/api_keys_api.rb +95 -496
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +177 -468
- data/lib/spartera_api_sdk/api/assets_api.rb +358 -806
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +199 -74
- data/lib/spartera_api_sdk/api/companies_api.rb +146 -660
- data/lib/spartera_api_sdk/api/connections_api.rb +139 -466
- data/lib/spartera_api_sdk/api/favorites_api.rb +204 -464
- data/lib/spartera_api_sdk/api/users_api.rb +95 -619
- data/lib/spartera_api_sdk/api_client.rb +4 -8
- data/lib/spartera_api_sdk/api_error.rb +2 -2
- data/lib/spartera_api_sdk/configuration.rb +12 -4
- data/lib/spartera_api_sdk/models/{alerts.rb → alert.rb} +139 -46
- data/lib/spartera_api_sdk/models/{api_keys.rb → apikey.rb} +124 -98
- data/lib/spartera_api_sdk/models/asset.rb +686 -0
- data/lib/spartera_api_sdk/models/{asset_price_history.rb → assetpricehistory.rb} +180 -44
- data/lib/spartera_api_sdk/models/{cloud_providers.rb → cloudprovider.rb} +111 -35
- data/lib/spartera_api_sdk/models/{companies.rb → company.rb} +105 -90
- data/lib/spartera_api_sdk/models/{connections.rb → connection.rb} +186 -69
- data/lib/spartera_api_sdk/models/error.rb +76 -3
- data/lib/spartera_api_sdk/models/{favorites.rb → favorite.rb} +111 -38
- data/lib/spartera_api_sdk/models/inline_object.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object1.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object2.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object3.rb +76 -3
- data/lib/spartera_api_sdk/models/{users.rb → user.rb} +108 -112
- data/lib/spartera_api_sdk/version.rb +3 -3
- data/lib/spartera_api_sdk.rb +11 -150
- data/spartera_api_sdk.gemspec +8 -19
- data/spec/api/alerts_api_spec.rb +51 -51
- data/spec/api/api_keys_api_spec.rb +30 -67
- data/spec/api/asset_price_history_api_spec.rb +53 -57
- data/spec/api/assets_api_spec.rb +99 -114
- data/spec/api/cloud_providers_api_spec.rb +42 -15
- data/spec/api/companies_api_spec.rb +47 -99
- data/spec/api/connections_api_spec.rb +41 -63
- data/spec/api/favorites_api_spec.rb +56 -56
- data/spec/api/users_api_spec.rb +29 -88
- data/spec/models/{postgen_integrations_spec.rb → alert_spec.rb} +17 -17
- data/spec/models/{api_keys_update_spec.rb → apikey_spec.rb} +20 -14
- data/spec/models/{endpoints_spec.rb → asset_spec.rb} +83 -69
- data/spec/models/{api_keys_spec.rb → assetpricehistory_spec.rb} +19 -25
- data/spec/models/{cloud_providers_spec.rb → cloudprovider_spec.rb} +20 -14
- data/spec/models/{companies_spec.rb → company_spec.rb} +16 -26
- data/spec/models/{posts_input_spec.rb → connection_spec.rb} +27 -51
- data/spec/models/error_spec.rb +3 -3
- data/spec/models/{favorites_spec.rb → favorite_spec.rb} +23 -17
- data/spec/models/inline_object1_spec.rb +3 -3
- data/spec/models/inline_object2_spec.rb +3 -3
- data/spec/models/inline_object3_spec.rb +3 -3
- data/spec/models/inline_object_spec.rb +3 -3
- data/spec/models/{api_keys_input_spec.rb → user_spec.rb} +15 -15
- data/spec/spec_helper.rb +2 -2
- data/test.sh +42 -0
- metadata +77 -615
- data/CHANGELOG.md +0 -13
- data/docs/Alerts.md +0 -30
- data/docs/AlertsInput.md +0 -24
- data/docs/AlertsUpdate.md +0 -24
- data/docs/ApiKeys.md +0 -40
- data/docs/ApiKeysInput.md +0 -34
- data/docs/ApiKeysUpdate.md +0 -34
- data/docs/AssetPriceHistory.md +0 -30
- data/docs/AssetPriceHistoryInput.md +0 -24
- data/docs/AssetPriceHistoryUpdate.md +0 -24
- data/docs/AssetUsecases.md +0 -28
- data/docs/AssetUsecasesApi.md +0 -157
- data/docs/Assets.md +0 -142
- data/docs/AssetsInput.md +0 -128
- data/docs/AssetsUpdate.md +0 -128
- data/docs/CloudProviders.md +0 -28
- data/docs/CloudProvidersInput.md +0 -22
- data/docs/CloudProvidersUpdate.md +0 -22
- data/docs/Companies.md +0 -46
- data/docs/CompaniesInput.md +0 -40
- data/docs/CompaniesUpdate.md +0 -40
- data/docs/Connections.md +0 -38
- data/docs/ConnectionsInput.md +0 -32
- data/docs/ConnectionsUpdate.md +0 -32
- data/docs/CreateAlerts200Response.md +0 -20
- data/docs/CreateAlerts200ResponseData.md +0 -18
- data/docs/CreateApiKeys200Response.md +0 -20
- data/docs/CreateApiKeys200ResponseData.md +0 -18
- data/docs/CreateAssetPriceHistory200Response.md +0 -20
- data/docs/CreateAssetPriceHistory200ResponseData.md +0 -18
- data/docs/CreateAssetsAnalyze200Response.md +0 -20
- data/docs/CreateAssetsAnalyze200ResponseData.md +0 -18
- data/docs/CreateConnections200Response.md +0 -20
- data/docs/CreateConnections200ResponseData.md +0 -18
- data/docs/CreateEndpoints200Response.md +0 -20
- data/docs/CreateEndpoints200ResponseData.md +0 -18
- data/docs/CreateFavorites200Response.md +0 -20
- data/docs/CreateFavorites200ResponseData.md +0 -18
- data/docs/CreatePostgenIntegrations200Response.md +0 -20
- data/docs/CreatePostgenIntegrations200ResponseData.md +0 -18
- data/docs/CreatePosts200Response.md +0 -20
- data/docs/CreatePosts200ResponseData.md +0 -18
- data/docs/CreateUsers200Response.md +0 -20
- data/docs/CreateUsers200ResponseData.md +0 -18
- data/docs/DeleteAlerts200Response.md +0 -20
- data/docs/DeleteAlerts200ResponseData.md +0 -18
- data/docs/DeleteApiKeys200Response.md +0 -20
- data/docs/DeleteApiKeys200ResponseData.md +0 -18
- data/docs/DeleteAssetPriceHistory200Response.md +0 -20
- data/docs/DeleteAssetPriceHistory200ResponseData.md +0 -18
- data/docs/DeleteAssets200Response.md +0 -20
- data/docs/DeleteAssets200ResponseData.md +0 -18
- data/docs/DeleteConnections200Response.md +0 -20
- data/docs/DeleteConnections200ResponseData.md +0 -18
- data/docs/DeleteEndpoints200Response.md +0 -20
- data/docs/DeleteEndpoints200ResponseData.md +0 -18
- data/docs/DeleteFavorites200Response.md +0 -20
- data/docs/DeleteFavorites200ResponseData.md +0 -18
- data/docs/DeletePostgenIntegrations200Response.md +0 -20
- data/docs/DeletePostgenIntegrations200ResponseData.md +0 -18
- data/docs/DeletePosts200Response.md +0 -20
- data/docs/DeletePosts200ResponseData.md +0 -18
- data/docs/DeleteUsers200Response.md +0 -20
- data/docs/DeleteUsers200ResponseData.md +0 -18
- data/docs/Endpoints.md +0 -96
- data/docs/EndpointsApi.md +0 -1189
- data/docs/EndpointsInput.md +0 -94
- data/docs/EndpointsUpdate.md +0 -94
- data/docs/Favorites.md +0 -34
- data/docs/FavoritesInput.md +0 -28
- data/docs/FavoritesUpdate.md +0 -28
- data/docs/GetAlertsById200Response.md +0 -20
- data/docs/GetApiKeysById200Response.md +0 -20
- data/docs/GetAssetPriceHistoryById200Response.md +0 -20
- data/docs/GetAssetUsecasesById200Response.md +0 -20
- data/docs/GetAssetsByIdAnalyze200Response.md +0 -20
- data/docs/GetCloudProvidersById200Response.md +0 -20
- data/docs/GetCompaniesById200Response.md +0 -20
- data/docs/GetConnectionsById200Response.md +0 -20
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +0 -20
- data/docs/GetFavoritesById200Response.md +0 -20
- data/docs/GetIndustriesById200Response.md +0 -20
- data/docs/GetJobFunctionsById200Response.md +0 -20
- data/docs/GetPostgenIntegrationsById200Response.md +0 -20
- data/docs/GetPostsById200Response.md +0 -20
- data/docs/GetStorageEnginesById200Response.md +0 -20
- data/docs/GetUsersById200Response.md +0 -20
- data/docs/Industries.md +0 -32
- data/docs/IndustriesApi.md +0 -237
- data/docs/InlineObject4.md +0 -20
- data/docs/InlineObject5.md +0 -20
- data/docs/InlineObject6.md +0 -22
- data/docs/InlineObject7.md +0 -20
- data/docs/JobFunctions.md +0 -24
- data/docs/JobFunctionsApi.md +0 -157
- data/docs/JobFunctionsInput.md +0 -18
- data/docs/JobFunctionsUpdate.md +0 -18
- data/docs/ListApiKeys200Response.md +0 -20
- data/docs/ListAssetUsecases200Response.md +0 -20
- data/docs/ListAssets200Response.md +0 -20
- data/docs/ListCloudProviders200Response.md +0 -20
- data/docs/ListCompaniesAnalyticsAssets200Response.md +0 -20
- data/docs/ListConnections200Response.md +0 -20
- data/docs/ListEndpoints200Response.md +0 -20
- data/docs/ListIndustries200Response.md +0 -20
- data/docs/ListJobFunctions200Response.md +0 -20
- data/docs/ListPostgenIntegrations200Response.md +0 -20
- data/docs/ListPosts200Response.md +0 -20
- data/docs/ListStorageEngines200Response.md +0 -20
- data/docs/ListUsers200Response.md +0 -20
- data/docs/PostPublications.md +0 -40
- data/docs/PostPublicationsInput.md +0 -34
- data/docs/PostPublicationsUpdate.md +0 -34
- data/docs/PostgenIntegrations.md +0 -36
- data/docs/PostgenIntegrationsApi.md +0 -463
- data/docs/PostgenIntegrationsInput.md +0 -30
- data/docs/PostgenIntegrationsUpdate.md +0 -30
- data/docs/Posts.md +0 -68
- data/docs/PostsApi.md +0 -843
- data/docs/PostsInput.md +0 -62
- data/docs/PostsUpdate.md +0 -62
- data/docs/StorageEngines.md +0 -32
- data/docs/StorageEnginesApi.md +0 -161
- data/docs/UpdateAlerts200Response.md +0 -20
- data/docs/UpdateAlerts200ResponseData.md +0 -18
- data/docs/UpdateApiKeys200Response.md +0 -20
- data/docs/UpdateApiKeys200ResponseData.md +0 -18
- data/docs/UpdateAssetPriceHistory200Response.md +0 -20
- data/docs/UpdateAssetPriceHistory200ResponseData.md +0 -18
- data/docs/UpdateAssets200Response.md +0 -20
- data/docs/UpdateAssets200ResponseData.md +0 -18
- data/docs/UpdateCompanies200Response.md +0 -20
- data/docs/UpdateCompanies200ResponseData.md +0 -18
- data/docs/UpdateConnections200Response.md +0 -20
- data/docs/UpdateConnections200ResponseData.md +0 -18
- data/docs/UpdateEndpoints200Response.md +0 -20
- data/docs/UpdateEndpoints200ResponseData.md +0 -18
- data/docs/UpdateFavorites200Response.md +0 -20
- data/docs/UpdateFavorites200ResponseData.md +0 -18
- data/docs/UpdatePostgenIntegrations200Response.md +0 -20
- data/docs/UpdatePostgenIntegrations200ResponseData.md +0 -18
- data/docs/UpdatePosts200Response.md +0 -20
- data/docs/UpdatePosts200ResponseData.md +0 -18
- data/docs/UpdateUsers200Response.md +0 -20
- data/docs/UpdateUsers200ResponseData.md +0 -18
- data/docs/Users.md +0 -36
- data/docs/UsersInput.md +0 -30
- data/docs/UsersUpdate.md +0 -30
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +0 -190
- data/lib/spartera_api_sdk/api/endpoints_api.rb +0 -1613
- data/lib/spartera_api_sdk/api/industries_api.rb +0 -284
- data/lib/spartera_api_sdk/api/job_functions_api.rb +0 -190
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +0 -634
- data/lib/spartera_api_sdk/api/posts_api.rb +0 -1190
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +0 -228
- data/lib/spartera_api_sdk/api_model_base.rb +0 -88
- data/lib/spartera_api_sdk/models/alerts_input.rb +0 -213
- data/lib/spartera_api_sdk/models/alerts_update.rb +0 -179
- data/lib/spartera_api_sdk/models/api_keys_input.rb +0 -263
- data/lib/spartera_api_sdk/models/api_keys_update.rb +0 -229
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +0 -179
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +0 -179
- data/lib/spartera_api_sdk/models/asset_usecases.rb +0 -216
- data/lib/spartera_api_sdk/models/assets.rb +0 -1068
- data/lib/spartera_api_sdk/models/assets_input.rb +0 -918
- data/lib/spartera_api_sdk/models/assets_update.rb +0 -877
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +0 -186
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +0 -169
- data/lib/spartera_api_sdk/models/companies_input.rb +0 -327
- data/lib/spartera_api_sdk/models/companies_update.rb +0 -293
- data/lib/spartera_api_sdk/models/connections_input.rb +0 -287
- data/lib/spartera_api_sdk/models/connections_update.rb +0 -253
- data/lib/spartera_api_sdk/models/create_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_assets200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/endpoints.rb +0 -788
- data/lib/spartera_api_sdk/models/endpoints_input.rb +0 -686
- data/lib/spartera_api_sdk/models/endpoints_update.rb +0 -635
- data/lib/spartera_api_sdk/models/favorites_input.rb +0 -233
- data/lib/spartera_api_sdk/models/favorites_update.rb +0 -199
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_api_keys_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_asset_price_history_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_assets_by_id_analyze200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_cloud_providers_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_connections_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_endpoints_by_id_connections_describe200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_postgen_integrations_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_users_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/industries.rb +0 -253
- data/lib/spartera_api_sdk/models/inline_object4.rb +0 -156
- data/lib/spartera_api_sdk/models/inline_object5.rb +0 -156
- data/lib/spartera_api_sdk/models/inline_object6.rb +0 -166
- data/lib/spartera_api_sdk/models/inline_object7.rb +0 -156
- data/lib/spartera_api_sdk/models/job_functions.rb +0 -213
- data/lib/spartera_api_sdk/models/job_functions_input.rb +0 -166
- data/lib/spartera_api_sdk/models/job_functions_update.rb +0 -149
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_asset_usecases200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_assets200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_companies_analytics_assets200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_connections200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_users200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/post_publications.rb +0 -327
- data/lib/spartera_api_sdk/models/post_publications_input.rb +0 -280
- data/lib/spartera_api_sdk/models/post_publications_update.rb +0 -229
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +0 -341
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +0 -294
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +0 -209
- data/lib/spartera_api_sdk/models/posts.rb +0 -586
- data/lib/spartera_api_sdk/models/posts_input.rb +0 -437
- data/lib/spartera_api_sdk/models/posts_update.rb +0 -369
- data/lib/spartera_api_sdk/models/storage_engines.rb +0 -294
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_assets200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_companies200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/users_input.rb +0 -260
- data/lib/spartera_api_sdk/models/users_update.rb +0 -243
- data/spec/api/asset_usecases_api_spec.rb +0 -61
- data/spec/api/endpoints_api_spec.rb +0 -240
- data/spec/api/industries_api_spec.rb +0 -76
- data/spec/api/job_functions_api_spec.rb +0 -61
- data/spec/api/postgen_integrations_api_spec.rb +0 -117
- data/spec/api/posts_api_spec.rb +0 -186
- data/spec/api/storage_engines_api_spec.rb +0 -63
- data/spec/models/alerts_input_spec.rb +0 -54
- data/spec/models/alerts_spec.rb +0 -72
- data/spec/models/alerts_update_spec.rb +0 -54
- data/spec/models/asset_price_history_input_spec.rb +0 -54
- data/spec/models/asset_price_history_spec.rb +0 -72
- data/spec/models/asset_price_history_update_spec.rb +0 -54
- data/spec/models/asset_usecases_spec.rb +0 -66
- data/spec/models/assets_input_spec.rb +0 -418
- data/spec/models/assets_spec.rb +0 -464
- data/spec/models/assets_update_spec.rb +0 -418
- data/spec/models/cloud_providers_input_spec.rb +0 -48
- data/spec/models/cloud_providers_update_spec.rb +0 -48
- data/spec/models/companies_input_spec.rb +0 -106
- data/spec/models/companies_update_spec.rb +0 -106
- data/spec/models/connections_input_spec.rb +0 -82
- data/spec/models/connections_spec.rb +0 -100
- data/spec/models/connections_update_spec.rb +0 -82
- data/spec/models/create_alerts200_response_data_spec.rb +0 -36
- data/spec/models/create_alerts200_response_spec.rb +0 -42
- data/spec/models/create_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/create_api_keys200_response_spec.rb +0 -42
- data/spec/models/create_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/create_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/create_assets_analyze200_response_data_spec.rb +0 -36
- data/spec/models/create_assets_analyze200_response_spec.rb +0 -42
- data/spec/models/create_connections200_response_data_spec.rb +0 -36
- data/spec/models/create_connections200_response_spec.rb +0 -42
- data/spec/models/create_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/create_endpoints200_response_spec.rb +0 -42
- data/spec/models/create_favorites200_response_data_spec.rb +0 -36
- data/spec/models/create_favorites200_response_spec.rb +0 -42
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/create_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/create_posts200_response_data_spec.rb +0 -36
- data/spec/models/create_posts200_response_spec.rb +0 -42
- data/spec/models/create_users200_response_data_spec.rb +0 -36
- data/spec/models/create_users200_response_spec.rb +0 -42
- data/spec/models/delete_alerts200_response_data_spec.rb +0 -36
- data/spec/models/delete_alerts200_response_spec.rb +0 -42
- data/spec/models/delete_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/delete_api_keys200_response_spec.rb +0 -42
- data/spec/models/delete_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/delete_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/delete_assets200_response_data_spec.rb +0 -36
- data/spec/models/delete_assets200_response_spec.rb +0 -42
- data/spec/models/delete_connections200_response_data_spec.rb +0 -36
- data/spec/models/delete_connections200_response_spec.rb +0 -42
- data/spec/models/delete_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/delete_endpoints200_response_spec.rb +0 -42
- data/spec/models/delete_favorites200_response_data_spec.rb +0 -36
- data/spec/models/delete_favorites200_response_spec.rb +0 -42
- data/spec/models/delete_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/delete_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/delete_posts200_response_data_spec.rb +0 -36
- data/spec/models/delete_posts200_response_spec.rb +0 -42
- data/spec/models/delete_users200_response_data_spec.rb +0 -36
- data/spec/models/delete_users200_response_spec.rb +0 -42
- data/spec/models/endpoints_input_spec.rb +0 -292
- data/spec/models/endpoints_update_spec.rb +0 -292
- data/spec/models/favorites_input_spec.rb +0 -66
- data/spec/models/favorites_update_spec.rb +0 -66
- data/spec/models/get_alerts_by_id200_response_spec.rb +0 -42
- data/spec/models/get_api_keys_by_id200_response_spec.rb +0 -42
- data/spec/models/get_asset_price_history_by_id200_response_spec.rb +0 -42
- data/spec/models/get_asset_usecases_by_id200_response_spec.rb +0 -42
- data/spec/models/get_assets_by_id_analyze200_response_spec.rb +0 -42
- data/spec/models/get_cloud_providers_by_id200_response_spec.rb +0 -42
- data/spec/models/get_companies_by_id200_response_spec.rb +0 -42
- data/spec/models/get_connections_by_id200_response_spec.rb +0 -42
- data/spec/models/get_endpoints_by_id_connections_describe200_response_spec.rb +0 -42
- data/spec/models/get_favorites_by_id200_response_spec.rb +0 -42
- data/spec/models/get_industries_by_id200_response_spec.rb +0 -42
- data/spec/models/get_job_functions_by_id200_response_spec.rb +0 -42
- data/spec/models/get_postgen_integrations_by_id200_response_spec.rb +0 -42
- data/spec/models/get_posts_by_id200_response_spec.rb +0 -42
- data/spec/models/get_storage_engines_by_id200_response_spec.rb +0 -42
- data/spec/models/get_users_by_id200_response_spec.rb +0 -42
- data/spec/models/industries_spec.rb +0 -78
- data/spec/models/inline_object4_spec.rb +0 -42
- data/spec/models/inline_object5_spec.rb +0 -42
- data/spec/models/inline_object6_spec.rb +0 -48
- data/spec/models/inline_object7_spec.rb +0 -42
- data/spec/models/job_functions_input_spec.rb +0 -36
- data/spec/models/job_functions_spec.rb +0 -54
- data/spec/models/job_functions_update_spec.rb +0 -36
- data/spec/models/list_api_keys200_response_spec.rb +0 -42
- data/spec/models/list_asset_usecases200_response_spec.rb +0 -42
- data/spec/models/list_assets200_response_spec.rb +0 -42
- data/spec/models/list_cloud_providers200_response_spec.rb +0 -42
- data/spec/models/list_companies_analytics_assets200_response_spec.rb +0 -42
- data/spec/models/list_connections200_response_spec.rb +0 -42
- data/spec/models/list_endpoints200_response_spec.rb +0 -42
- data/spec/models/list_industries200_response_spec.rb +0 -42
- data/spec/models/list_job_functions200_response_spec.rb +0 -42
- data/spec/models/list_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/list_posts200_response_spec.rb +0 -42
- data/spec/models/list_storage_engines200_response_spec.rb +0 -42
- data/spec/models/list_users200_response_spec.rb +0 -42
- data/spec/models/post_publications_input_spec.rb +0 -84
- data/spec/models/post_publications_spec.rb +0 -102
- data/spec/models/post_publications_update_spec.rb +0 -84
- data/spec/models/postgen_integrations_input_spec.rb +0 -72
- data/spec/models/postgen_integrations_update_spec.rb +0 -72
- data/spec/models/posts_spec.rb +0 -186
- data/spec/models/posts_update_spec.rb +0 -168
- data/spec/models/storage_engines_spec.rb +0 -82
- data/spec/models/update_alerts200_response_data_spec.rb +0 -36
- data/spec/models/update_alerts200_response_spec.rb +0 -42
- data/spec/models/update_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/update_api_keys200_response_spec.rb +0 -42
- data/spec/models/update_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/update_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/update_assets200_response_data_spec.rb +0 -36
- data/spec/models/update_assets200_response_spec.rb +0 -42
- data/spec/models/update_companies200_response_data_spec.rb +0 -36
- data/spec/models/update_companies200_response_spec.rb +0 -42
- data/spec/models/update_connections200_response_data_spec.rb +0 -36
- data/spec/models/update_connections200_response_spec.rb +0 -42
- data/spec/models/update_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/update_endpoints200_response_spec.rb +0 -42
- data/spec/models/update_favorites200_response_data_spec.rb +0 -36
- data/spec/models/update_favorites200_response_spec.rb +0 -42
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/update_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/update_posts200_response_data_spec.rb +0 -36
- data/spec/models/update_posts200_response_spec.rb +0 -42
- data/spec/models/update_users200_response_data_spec.rb +0 -36
- data/spec/models/update_users200_response_spec.rb +0 -42
- data/spec/models/users_input_spec.rb +0 -76
- data/spec/models/users_spec.rb +0 -94
- data/spec/models/users_update_spec.rb +0 -76
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#Auto-generated API documentation for REST services of the Spartera platform
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.13.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -19,183 +19,33 @@ module SparteraApiSdk
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Create a new connection by ID
|
|
23
|
-
# @param company_id [String] Unique identifier for the Company
|
|
24
|
-
# @param connections_input [ConnectionsInput]
|
|
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 [CreateConnections200Response]
|
|
32
|
-
def create_connections(company_id, connections_input, opts = {})
|
|
33
|
-
data, _status_code, _headers = create_connections_with_http_info(company_id, connections_input, opts)
|
|
34
|
-
data
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# Create a new connection by ID
|
|
38
|
-
# @param company_id [String] Unique identifier for the Company
|
|
39
|
-
# @param connections_input [ConnectionsInput]
|
|
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<(CreateConnections200Response, Integer, Hash)>] CreateConnections200Response data, response status code and response headers
|
|
47
|
-
def create_connections_with_http_info(company_id, connections_input, opts = {})
|
|
48
|
-
if @api_client.config.debugging
|
|
49
|
-
@api_client.config.logger.debug 'Calling API: ConnectionsApi.create_connections ...'
|
|
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 ConnectionsApi.create_connections"
|
|
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 ConnectionsApi.create_connections, 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 ConnectionsApi.create_connections, 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 ConnectionsApi.create_connections, must conform to the pattern #{pattern}."
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
# verify the required parameter 'connections_input' is set
|
|
69
|
-
if @api_client.config.client_side_validation && connections_input.nil?
|
|
70
|
-
fail ArgumentError, "Missing the required parameter 'connections_input' when calling ConnectionsApi.create_connections"
|
|
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 ConnectionsApi.create_connections, 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 ConnectionsApi.create_connections, 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 ConnectionsApi.create_connections, 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 ConnectionsApi.create_connections, 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 ConnectionsApi.create_connections, the character length must be greater than or equal to 1.'
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# resource path
|
|
97
|
-
local_var_path = '/companies/{company_id}/connections'.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(connections_input)
|
|
122
|
-
|
|
123
|
-
# return_type
|
|
124
|
-
return_type = opts[:debug_return_type] || 'CreateConnections200Response'
|
|
125
|
-
|
|
126
|
-
# auth_names
|
|
127
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
128
|
-
|
|
129
|
-
new_options = opts.merge(
|
|
130
|
-
:operation => :"ConnectionsApi.create_connections",
|
|
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: ConnectionsApi#create_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
|
-
end
|
|
143
|
-
return data, status_code, headers
|
|
144
|
-
end
|
|
145
|
-
|
|
146
22
|
# Delete single connection by ID
|
|
147
|
-
# @param company_id [String]
|
|
148
|
-
# @param connection_id [String]
|
|
23
|
+
# @param company_id [String]
|
|
24
|
+
# @param connection_id [String]
|
|
149
25
|
# @param [Hash] opts the optional parameters
|
|
150
|
-
# @return [
|
|
151
|
-
def
|
|
152
|
-
data, _status_code, _headers =
|
|
26
|
+
# @return [Object]
|
|
27
|
+
def companies_company_id_connections_connection_id_delete(company_id, connection_id, opts = {})
|
|
28
|
+
data, _status_code, _headers = companies_company_id_connections_connection_id_delete_with_http_info(company_id, connection_id, opts)
|
|
153
29
|
data
|
|
154
30
|
end
|
|
155
31
|
|
|
156
32
|
# Delete single connection by ID
|
|
157
|
-
# @param company_id [String]
|
|
158
|
-
# @param connection_id [String]
|
|
33
|
+
# @param company_id [String]
|
|
34
|
+
# @param connection_id [String]
|
|
159
35
|
# @param [Hash] opts the optional parameters
|
|
160
|
-
# @return [Array<(
|
|
161
|
-
def
|
|
36
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
37
|
+
def companies_company_id_connections_connection_id_delete_with_http_info(company_id, connection_id, opts = {})
|
|
162
38
|
if @api_client.config.debugging
|
|
163
|
-
@api_client.config.logger.debug 'Calling API: ConnectionsApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ConnectionsApi.companies_company_id_connections_connection_id_delete ...'
|
|
164
40
|
end
|
|
165
41
|
# verify the required parameter 'company_id' is set
|
|
166
42
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
167
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.
|
|
168
|
-
end
|
|
169
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
170
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.delete_connections, the character length must be smaller than or equal to 255.'
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.companies_company_id_connections_connection_id_delete"
|
|
171
44
|
end
|
|
172
|
-
|
|
173
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
174
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.delete_connections, the character length must be greater than or equal to 1.'
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
178
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
179
|
-
fail ArgumentError, "invalid value for 'company_id' when calling ConnectionsApi.delete_connections, must conform to the pattern #{pattern}."
|
|
180
|
-
end
|
|
181
|
-
|
|
182
45
|
# verify the required parameter 'connection_id' is set
|
|
183
46
|
if @api_client.config.client_side_validation && connection_id.nil?
|
|
184
|
-
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.
|
|
185
|
-
end
|
|
186
|
-
if @api_client.config.client_side_validation && connection_id.to_s.length > 255
|
|
187
|
-
fail ArgumentError, 'invalid value for "connection_id" when calling ConnectionsApi.delete_connections, the character length must be smaller than or equal to 255.'
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.companies_company_id_connections_connection_id_delete"
|
|
188
48
|
end
|
|
189
|
-
|
|
190
|
-
if @api_client.config.client_side_validation && connection_id.to_s.length < 1
|
|
191
|
-
fail ArgumentError, 'invalid value for "connection_id" when calling ConnectionsApi.delete_connections, the character length must be greater than or equal to 1.'
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
195
|
-
if @api_client.config.client_side_validation && connection_id !~ pattern
|
|
196
|
-
fail ArgumentError, "invalid value for 'connection_id' when calling ConnectionsApi.delete_connections, must conform to the pattern #{pattern}."
|
|
197
|
-
end
|
|
198
|
-
|
|
199
49
|
# resource path
|
|
200
50
|
local_var_path = '/companies/{company_id}/connections/{connection_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'connection_id' + '}', CGI.escape(connection_id.to_s))
|
|
201
51
|
|
|
@@ -214,13 +64,13 @@ module SparteraApiSdk
|
|
|
214
64
|
post_body = opts[:debug_body]
|
|
215
65
|
|
|
216
66
|
# return_type
|
|
217
|
-
return_type = opts[:debug_return_type] || '
|
|
67
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
218
68
|
|
|
219
69
|
# auth_names
|
|
220
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
70
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
221
71
|
|
|
222
72
|
new_options = opts.merge(
|
|
223
|
-
:operation => :"ConnectionsApi.
|
|
73
|
+
:operation => :"ConnectionsApi.companies_company_id_connections_connection_id_delete",
|
|
224
74
|
:header_params => header_params,
|
|
225
75
|
:query_params => query_params,
|
|
226
76
|
:form_params => form_params,
|
|
@@ -231,64 +81,38 @@ module SparteraApiSdk
|
|
|
231
81
|
|
|
232
82
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
233
83
|
if @api_client.config.debugging
|
|
234
|
-
@api_client.config.logger.debug "API called: ConnectionsApi#
|
|
84
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#companies_company_id_connections_connection_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
235
85
|
end
|
|
236
86
|
return data, status_code, headers
|
|
237
87
|
end
|
|
238
88
|
|
|
239
89
|
# Get single connection by ID
|
|
240
|
-
# @param company_id [String]
|
|
241
|
-
# @param connection_id [String]
|
|
90
|
+
# @param company_id [String]
|
|
91
|
+
# @param connection_id [String]
|
|
242
92
|
# @param [Hash] opts the optional parameters
|
|
243
|
-
# @return [
|
|
244
|
-
def
|
|
245
|
-
data, _status_code, _headers =
|
|
93
|
+
# @return [Object]
|
|
94
|
+
def companies_company_id_connections_connection_id_get(company_id, connection_id, opts = {})
|
|
95
|
+
data, _status_code, _headers = companies_company_id_connections_connection_id_get_with_http_info(company_id, connection_id, opts)
|
|
246
96
|
data
|
|
247
97
|
end
|
|
248
98
|
|
|
249
99
|
# Get single connection by ID
|
|
250
|
-
# @param company_id [String]
|
|
251
|
-
# @param connection_id [String]
|
|
100
|
+
# @param company_id [String]
|
|
101
|
+
# @param connection_id [String]
|
|
252
102
|
# @param [Hash] opts the optional parameters
|
|
253
|
-
# @return [Array<(
|
|
254
|
-
def
|
|
103
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
104
|
+
def companies_company_id_connections_connection_id_get_with_http_info(company_id, connection_id, opts = {})
|
|
255
105
|
if @api_client.config.debugging
|
|
256
|
-
@api_client.config.logger.debug 'Calling API: ConnectionsApi.
|
|
106
|
+
@api_client.config.logger.debug 'Calling API: ConnectionsApi.companies_company_id_connections_connection_id_get ...'
|
|
257
107
|
end
|
|
258
108
|
# verify the required parameter 'company_id' is set
|
|
259
109
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
260
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.
|
|
261
|
-
end
|
|
262
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
263
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.get_connections_by_id, the character length must be smaller than or equal to 255.'
|
|
110
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.companies_company_id_connections_connection_id_get"
|
|
264
111
|
end
|
|
265
|
-
|
|
266
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
267
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.get_connections_by_id, the character length must be greater than or equal to 1.'
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
271
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
272
|
-
fail ArgumentError, "invalid value for 'company_id' when calling ConnectionsApi.get_connections_by_id, must conform to the pattern #{pattern}."
|
|
273
|
-
end
|
|
274
|
-
|
|
275
112
|
# verify the required parameter 'connection_id' is set
|
|
276
113
|
if @api_client.config.client_side_validation && connection_id.nil?
|
|
277
|
-
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.
|
|
278
|
-
end
|
|
279
|
-
if @api_client.config.client_side_validation && connection_id.to_s.length > 255
|
|
280
|
-
fail ArgumentError, 'invalid value for "connection_id" when calling ConnectionsApi.get_connections_by_id, the character length must be smaller than or equal to 255.'
|
|
114
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.companies_company_id_connections_connection_id_get"
|
|
281
115
|
end
|
|
282
|
-
|
|
283
|
-
if @api_client.config.client_side_validation && connection_id.to_s.length < 1
|
|
284
|
-
fail ArgumentError, 'invalid value for "connection_id" when calling ConnectionsApi.get_connections_by_id, the character length must be greater than or equal to 1.'
|
|
285
|
-
end
|
|
286
|
-
|
|
287
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
288
|
-
if @api_client.config.client_side_validation && connection_id !~ pattern
|
|
289
|
-
fail ArgumentError, "invalid value for 'connection_id' when calling ConnectionsApi.get_connections_by_id, must conform to the pattern #{pattern}."
|
|
290
|
-
end
|
|
291
|
-
|
|
292
116
|
# resource path
|
|
293
117
|
local_var_path = '/companies/{company_id}/connections/{connection_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'connection_id' + '}', CGI.escape(connection_id.to_s))
|
|
294
118
|
|
|
@@ -307,13 +131,13 @@ module SparteraApiSdk
|
|
|
307
131
|
post_body = opts[:debug_body]
|
|
308
132
|
|
|
309
133
|
# return_type
|
|
310
|
-
return_type = opts[:debug_return_type] || '
|
|
134
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
311
135
|
|
|
312
136
|
# auth_names
|
|
313
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
137
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
314
138
|
|
|
315
139
|
new_options = opts.merge(
|
|
316
|
-
:operation => :"ConnectionsApi.
|
|
140
|
+
:operation => :"ConnectionsApi.companies_company_id_connections_connection_id_get",
|
|
317
141
|
:header_params => header_params,
|
|
318
142
|
:query_params => query_params,
|
|
319
143
|
:form_params => form_params,
|
|
@@ -324,66 +148,40 @@ module SparteraApiSdk
|
|
|
324
148
|
|
|
325
149
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
326
150
|
if @api_client.config.debugging
|
|
327
|
-
@api_client.config.logger.debug "API called: ConnectionsApi#
|
|
151
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#companies_company_id_connections_connection_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
328
152
|
end
|
|
329
153
|
return data, status_code, headers
|
|
330
154
|
end
|
|
331
155
|
|
|
332
|
-
#
|
|
333
|
-
# @param company_id [String]
|
|
334
|
-
# @param connection_id [String]
|
|
156
|
+
# Retrieve the information schema for the specified connection
|
|
157
|
+
# @param company_id [String]
|
|
158
|
+
# @param connection_id [String]
|
|
335
159
|
# @param [Hash] opts the optional parameters
|
|
336
|
-
# @return [
|
|
337
|
-
def
|
|
338
|
-
data, _status_code, _headers =
|
|
160
|
+
# @return [Object]
|
|
161
|
+
def companies_company_id_connections_connection_id_infoschema_get(company_id, connection_id, opts = {})
|
|
162
|
+
data, _status_code, _headers = companies_company_id_connections_connection_id_infoschema_get_with_http_info(company_id, connection_id, opts)
|
|
339
163
|
data
|
|
340
164
|
end
|
|
341
165
|
|
|
342
|
-
#
|
|
343
|
-
# @param company_id [String]
|
|
344
|
-
# @param connection_id [String]
|
|
166
|
+
# Retrieve the information schema for the specified connection
|
|
167
|
+
# @param company_id [String]
|
|
168
|
+
# @param connection_id [String]
|
|
345
169
|
# @param [Hash] opts the optional parameters
|
|
346
|
-
# @return [Array<(
|
|
347
|
-
def
|
|
170
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
171
|
+
def companies_company_id_connections_connection_id_infoschema_get_with_http_info(company_id, connection_id, opts = {})
|
|
348
172
|
if @api_client.config.debugging
|
|
349
|
-
@api_client.config.logger.debug 'Calling API: ConnectionsApi.
|
|
173
|
+
@api_client.config.logger.debug 'Calling API: ConnectionsApi.companies_company_id_connections_connection_id_infoschema_get ...'
|
|
350
174
|
end
|
|
351
175
|
# verify the required parameter 'company_id' is set
|
|
352
176
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
353
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.
|
|
354
|
-
end
|
|
355
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
356
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.get_connections_by_id2, the character length must be smaller than or equal to 255.'
|
|
357
|
-
end
|
|
358
|
-
|
|
359
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
360
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.get_connections_by_id2, the character length must be greater than or equal to 1.'
|
|
361
|
-
end
|
|
362
|
-
|
|
363
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
364
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
365
|
-
fail ArgumentError, "invalid value for 'company_id' when calling ConnectionsApi.get_connections_by_id2, must conform to the pattern #{pattern}."
|
|
177
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.companies_company_id_connections_connection_id_infoschema_get"
|
|
366
178
|
end
|
|
367
|
-
|
|
368
179
|
# verify the required parameter 'connection_id' is set
|
|
369
180
|
if @api_client.config.client_side_validation && connection_id.nil?
|
|
370
|
-
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.
|
|
371
|
-
end
|
|
372
|
-
if @api_client.config.client_side_validation && connection_id.to_s.length > 255
|
|
373
|
-
fail ArgumentError, 'invalid value for "connection_id" when calling ConnectionsApi.get_connections_by_id2, the character length must be smaller than or equal to 255.'
|
|
374
|
-
end
|
|
375
|
-
|
|
376
|
-
if @api_client.config.client_side_validation && connection_id.to_s.length < 1
|
|
377
|
-
fail ArgumentError, 'invalid value for "connection_id" when calling ConnectionsApi.get_connections_by_id2, the character length must be greater than or equal to 1.'
|
|
378
|
-
end
|
|
379
|
-
|
|
380
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
381
|
-
if @api_client.config.client_side_validation && connection_id !~ pattern
|
|
382
|
-
fail ArgumentError, "invalid value for 'connection_id' when calling ConnectionsApi.get_connections_by_id2, must conform to the pattern #{pattern}."
|
|
181
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.companies_company_id_connections_connection_id_infoschema_get"
|
|
383
182
|
end
|
|
384
|
-
|
|
385
183
|
# resource path
|
|
386
|
-
local_var_path = '/companies/{company_id}/connections/{connection_id}/
|
|
184
|
+
local_var_path = '/companies/{company_id}/connections/{connection_id}/infoschema'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'connection_id' + '}', CGI.escape(connection_id.to_s))
|
|
387
185
|
|
|
388
186
|
# query parameters
|
|
389
187
|
query_params = opts[:query_params] || {}
|
|
@@ -400,13 +198,13 @@ module SparteraApiSdk
|
|
|
400
198
|
post_body = opts[:debug_body]
|
|
401
199
|
|
|
402
200
|
# return_type
|
|
403
|
-
return_type = opts[:debug_return_type] || '
|
|
201
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
404
202
|
|
|
405
203
|
# auth_names
|
|
406
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
204
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
407
205
|
|
|
408
206
|
new_options = opts.merge(
|
|
409
|
-
:operation => :"ConnectionsApi.
|
|
207
|
+
:operation => :"ConnectionsApi.companies_company_id_connections_connection_id_infoschema_get",
|
|
410
208
|
:header_params => header_params,
|
|
411
209
|
:query_params => query_params,
|
|
412
210
|
:form_params => form_params,
|
|
@@ -417,66 +215,46 @@ module SparteraApiSdk
|
|
|
417
215
|
|
|
418
216
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
419
217
|
if @api_client.config.debugging
|
|
420
|
-
@api_client.config.logger.debug "API called: ConnectionsApi#
|
|
218
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#companies_company_id_connections_connection_id_infoschema_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
421
219
|
end
|
|
422
220
|
return data, status_code, headers
|
|
423
221
|
end
|
|
424
222
|
|
|
425
|
-
#
|
|
426
|
-
# @param company_id [String]
|
|
427
|
-
# @param connection_id [String]
|
|
223
|
+
# Update an existing connection by ID
|
|
224
|
+
# @param company_id [String]
|
|
225
|
+
# @param connection_id [String]
|
|
226
|
+
# @param connection [Connection]
|
|
428
227
|
# @param [Hash] opts the optional parameters
|
|
429
|
-
# @return [
|
|
430
|
-
def
|
|
431
|
-
data, _status_code, _headers =
|
|
228
|
+
# @return [Object]
|
|
229
|
+
def companies_company_id_connections_connection_id_patch(company_id, connection_id, connection, opts = {})
|
|
230
|
+
data, _status_code, _headers = companies_company_id_connections_connection_id_patch_with_http_info(company_id, connection_id, connection, opts)
|
|
432
231
|
data
|
|
433
232
|
end
|
|
434
233
|
|
|
435
|
-
#
|
|
436
|
-
# @param company_id [String]
|
|
437
|
-
# @param connection_id [String]
|
|
234
|
+
# Update an existing connection by ID
|
|
235
|
+
# @param company_id [String]
|
|
236
|
+
# @param connection_id [String]
|
|
237
|
+
# @param connection [Connection]
|
|
438
238
|
# @param [Hash] opts the optional parameters
|
|
439
|
-
# @return [Array<(
|
|
440
|
-
def
|
|
239
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
240
|
+
def companies_company_id_connections_connection_id_patch_with_http_info(company_id, connection_id, connection, opts = {})
|
|
441
241
|
if @api_client.config.debugging
|
|
442
|
-
@api_client.config.logger.debug 'Calling API: ConnectionsApi.
|
|
242
|
+
@api_client.config.logger.debug 'Calling API: ConnectionsApi.companies_company_id_connections_connection_id_patch ...'
|
|
443
243
|
end
|
|
444
244
|
# verify the required parameter 'company_id' is set
|
|
445
245
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
446
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.
|
|
447
|
-
end
|
|
448
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
449
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.get_connections_by_id_infoschema, the character length must be smaller than or equal to 255.'
|
|
246
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.companies_company_id_connections_connection_id_patch"
|
|
450
247
|
end
|
|
451
|
-
|
|
452
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
453
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.get_connections_by_id_infoschema, the character length must be greater than or equal to 1.'
|
|
454
|
-
end
|
|
455
|
-
|
|
456
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
457
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
458
|
-
fail ArgumentError, "invalid value for 'company_id' when calling ConnectionsApi.get_connections_by_id_infoschema, must conform to the pattern #{pattern}."
|
|
459
|
-
end
|
|
460
|
-
|
|
461
248
|
# verify the required parameter 'connection_id' is set
|
|
462
249
|
if @api_client.config.client_side_validation && connection_id.nil?
|
|
463
|
-
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.
|
|
464
|
-
end
|
|
465
|
-
if @api_client.config.client_side_validation && connection_id.to_s.length > 255
|
|
466
|
-
fail ArgumentError, 'invalid value for "connection_id" when calling ConnectionsApi.get_connections_by_id_infoschema, the character length must be smaller than or equal to 255.'
|
|
250
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.companies_company_id_connections_connection_id_patch"
|
|
467
251
|
end
|
|
468
|
-
|
|
469
|
-
if @api_client.config.client_side_validation &&
|
|
470
|
-
fail ArgumentError,
|
|
471
|
-
end
|
|
472
|
-
|
|
473
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
474
|
-
if @api_client.config.client_side_validation && connection_id !~ pattern
|
|
475
|
-
fail ArgumentError, "invalid value for 'connection_id' when calling ConnectionsApi.get_connections_by_id_infoschema, must conform to the pattern #{pattern}."
|
|
252
|
+
# verify the required parameter 'connection' is set
|
|
253
|
+
if @api_client.config.client_side_validation && connection.nil?
|
|
254
|
+
fail ArgumentError, "Missing the required parameter 'connection' when calling ConnectionsApi.companies_company_id_connections_connection_id_patch"
|
|
476
255
|
end
|
|
477
|
-
|
|
478
256
|
# resource path
|
|
479
|
-
local_var_path = '/companies/{company_id}/connections/{connection_id}
|
|
257
|
+
local_var_path = '/companies/{company_id}/connections/{connection_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'connection_id' + '}', CGI.escape(connection_id.to_s))
|
|
480
258
|
|
|
481
259
|
# query parameters
|
|
482
260
|
query_params = opts[:query_params] || {}
|
|
@@ -485,21 +263,26 @@ module SparteraApiSdk
|
|
|
485
263
|
header_params = opts[:header_params] || {}
|
|
486
264
|
# HTTP header 'Accept' (if needed)
|
|
487
265
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
266
|
+
# HTTP header 'Content-Type'
|
|
267
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
268
|
+
if !content_type.nil?
|
|
269
|
+
header_params['Content-Type'] = content_type
|
|
270
|
+
end
|
|
488
271
|
|
|
489
272
|
# form parameters
|
|
490
273
|
form_params = opts[:form_params] || {}
|
|
491
274
|
|
|
492
275
|
# http body (model)
|
|
493
|
-
post_body = opts[:debug_body]
|
|
276
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(connection)
|
|
494
277
|
|
|
495
278
|
# return_type
|
|
496
|
-
return_type = opts[:debug_return_type] || '
|
|
279
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
497
280
|
|
|
498
281
|
# auth_names
|
|
499
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
282
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
500
283
|
|
|
501
284
|
new_options = opts.merge(
|
|
502
|
-
:operation => :"ConnectionsApi.
|
|
285
|
+
:operation => :"ConnectionsApi.companies_company_id_connections_connection_id_patch",
|
|
503
286
|
:header_params => header_params,
|
|
504
287
|
:query_params => query_params,
|
|
505
288
|
:form_params => form_params,
|
|
@@ -508,68 +291,42 @@ module SparteraApiSdk
|
|
|
508
291
|
:return_type => return_type
|
|
509
292
|
)
|
|
510
293
|
|
|
511
|
-
data, status_code, headers = @api_client.call_api(:
|
|
294
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
512
295
|
if @api_client.config.debugging
|
|
513
|
-
@api_client.config.logger.debug "API called: ConnectionsApi#
|
|
296
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#companies_company_id_connections_connection_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
514
297
|
end
|
|
515
298
|
return data, status_code, headers
|
|
516
299
|
end
|
|
517
300
|
|
|
518
|
-
#
|
|
519
|
-
# @param company_id [String]
|
|
520
|
-
# @param connection_id [String]
|
|
301
|
+
# Verify the specified connection to ensure it is functioning correctly
|
|
302
|
+
# @param company_id [String]
|
|
303
|
+
# @param connection_id [String]
|
|
521
304
|
# @param [Hash] opts the optional parameters
|
|
522
|
-
# @return [
|
|
523
|
-
def
|
|
524
|
-
data, _status_code, _headers =
|
|
305
|
+
# @return [Object]
|
|
306
|
+
def companies_company_id_connections_connection_id_test_get(company_id, connection_id, opts = {})
|
|
307
|
+
data, _status_code, _headers = companies_company_id_connections_connection_id_test_get_with_http_info(company_id, connection_id, opts)
|
|
525
308
|
data
|
|
526
309
|
end
|
|
527
310
|
|
|
528
|
-
#
|
|
529
|
-
# @param company_id [String]
|
|
530
|
-
# @param connection_id [String]
|
|
311
|
+
# Verify the specified connection to ensure it is functioning correctly
|
|
312
|
+
# @param company_id [String]
|
|
313
|
+
# @param connection_id [String]
|
|
531
314
|
# @param [Hash] opts the optional parameters
|
|
532
|
-
# @return [Array<(
|
|
533
|
-
def
|
|
315
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
316
|
+
def companies_company_id_connections_connection_id_test_get_with_http_info(company_id, connection_id, opts = {})
|
|
534
317
|
if @api_client.config.debugging
|
|
535
|
-
@api_client.config.logger.debug 'Calling API: ConnectionsApi.
|
|
318
|
+
@api_client.config.logger.debug 'Calling API: ConnectionsApi.companies_company_id_connections_connection_id_test_get ...'
|
|
536
319
|
end
|
|
537
320
|
# verify the required parameter 'company_id' is set
|
|
538
321
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
539
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.
|
|
540
|
-
end
|
|
541
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
542
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.get_connections_by_id_sample_data, the character length must be smaller than or equal to 255.'
|
|
322
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.companies_company_id_connections_connection_id_test_get"
|
|
543
323
|
end
|
|
544
|
-
|
|
545
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
546
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.get_connections_by_id_sample_data, the character length must be greater than or equal to 1.'
|
|
547
|
-
end
|
|
548
|
-
|
|
549
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
550
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
551
|
-
fail ArgumentError, "invalid value for 'company_id' when calling ConnectionsApi.get_connections_by_id_sample_data, must conform to the pattern #{pattern}."
|
|
552
|
-
end
|
|
553
|
-
|
|
554
324
|
# verify the required parameter 'connection_id' is set
|
|
555
325
|
if @api_client.config.client_side_validation && connection_id.nil?
|
|
556
|
-
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.
|
|
326
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.companies_company_id_connections_connection_id_test_get"
|
|
557
327
|
end
|
|
558
|
-
if @api_client.config.client_side_validation && connection_id.to_s.length > 255
|
|
559
|
-
fail ArgumentError, 'invalid value for "connection_id" when calling ConnectionsApi.get_connections_by_id_sample_data, the character length must be smaller than or equal to 255.'
|
|
560
|
-
end
|
|
561
|
-
|
|
562
|
-
if @api_client.config.client_side_validation && connection_id.to_s.length < 1
|
|
563
|
-
fail ArgumentError, 'invalid value for "connection_id" when calling ConnectionsApi.get_connections_by_id_sample_data, the character length must be greater than or equal to 1.'
|
|
564
|
-
end
|
|
565
|
-
|
|
566
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
567
|
-
if @api_client.config.client_side_validation && connection_id !~ pattern
|
|
568
|
-
fail ArgumentError, "invalid value for 'connection_id' when calling ConnectionsApi.get_connections_by_id_sample_data, must conform to the pattern #{pattern}."
|
|
569
|
-
end
|
|
570
|
-
|
|
571
328
|
# resource path
|
|
572
|
-
local_var_path = '/companies/{company_id}/connections/{connection_id}/
|
|
329
|
+
local_var_path = '/companies/{company_id}/connections/{connection_id}/test'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'connection_id' + '}', CGI.escape(connection_id.to_s))
|
|
573
330
|
|
|
574
331
|
# query parameters
|
|
575
332
|
query_params = opts[:query_params] || {}
|
|
@@ -586,13 +343,13 @@ module SparteraApiSdk
|
|
|
586
343
|
post_body = opts[:debug_body]
|
|
587
344
|
|
|
588
345
|
# return_type
|
|
589
|
-
return_type = opts[:debug_return_type] || '
|
|
346
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
590
347
|
|
|
591
348
|
# auth_names
|
|
592
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
349
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
593
350
|
|
|
594
351
|
new_options = opts.merge(
|
|
595
|
-
:operation => :"ConnectionsApi.
|
|
352
|
+
:operation => :"ConnectionsApi.companies_company_id_connections_connection_id_test_get",
|
|
596
353
|
:header_params => header_params,
|
|
597
354
|
:query_params => query_params,
|
|
598
355
|
:form_params => form_params,
|
|
@@ -603,89 +360,37 @@ module SparteraApiSdk
|
|
|
603
360
|
|
|
604
361
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
605
362
|
if @api_client.config.debugging
|
|
606
|
-
@api_client.config.logger.debug "API called: ConnectionsApi#
|
|
363
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#companies_company_id_connections_connection_id_test_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
607
364
|
end
|
|
608
365
|
return data, status_code, headers
|
|
609
366
|
end
|
|
610
367
|
|
|
611
368
|
# Get all connections for a specific company
|
|
612
|
-
# @param company_id [String]
|
|
369
|
+
# @param company_id [String]
|
|
613
370
|
# @param [Hash] opts the optional parameters
|
|
614
|
-
# @
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
618
|
-
# @option opts [String] :search Search term to filter results
|
|
619
|
-
# @return [ListConnections200Response]
|
|
620
|
-
def list_connections(company_id, opts = {})
|
|
621
|
-
data, _status_code, _headers = list_connections_with_http_info(company_id, opts)
|
|
371
|
+
# @return [Object]
|
|
372
|
+
def companies_company_id_connections_get(company_id, opts = {})
|
|
373
|
+
data, _status_code, _headers = companies_company_id_connections_get_with_http_info(company_id, opts)
|
|
622
374
|
data
|
|
623
375
|
end
|
|
624
376
|
|
|
625
377
|
# Get all connections for a specific company
|
|
626
|
-
# @param company_id [String]
|
|
378
|
+
# @param company_id [String]
|
|
627
379
|
# @param [Hash] opts the optional parameters
|
|
628
|
-
# @
|
|
629
|
-
|
|
630
|
-
# @option opts [String] :sort_by Field to sort by
|
|
631
|
-
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
632
|
-
# @option opts [String] :search Search term to filter results
|
|
633
|
-
# @return [Array<(ListConnections200Response, Integer, Hash)>] ListConnections200Response data, response status code and response headers
|
|
634
|
-
def list_connections_with_http_info(company_id, opts = {})
|
|
380
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
381
|
+
def companies_company_id_connections_get_with_http_info(company_id, opts = {})
|
|
635
382
|
if @api_client.config.debugging
|
|
636
|
-
@api_client.config.logger.debug 'Calling API: ConnectionsApi.
|
|
383
|
+
@api_client.config.logger.debug 'Calling API: ConnectionsApi.companies_company_id_connections_get ...'
|
|
637
384
|
end
|
|
638
385
|
# verify the required parameter 'company_id' is set
|
|
639
386
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
640
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.
|
|
641
|
-
end
|
|
642
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
643
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.list_connections, the character length must be smaller than or equal to 255.'
|
|
644
|
-
end
|
|
645
|
-
|
|
646
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
647
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.list_connections, the character length must be greater than or equal to 1.'
|
|
648
|
-
end
|
|
649
|
-
|
|
650
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
651
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
652
|
-
fail ArgumentError, "invalid value for 'company_id' when calling ConnectionsApi.list_connections, must conform to the pattern #{pattern}."
|
|
387
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.companies_company_id_connections_get"
|
|
653
388
|
end
|
|
654
|
-
|
|
655
|
-
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
656
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ConnectionsApi.list_connections, must be greater than or equal to 1.'
|
|
657
|
-
end
|
|
658
|
-
|
|
659
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
660
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConnectionsApi.list_connections, must be smaller than or equal to 100.'
|
|
661
|
-
end
|
|
662
|
-
|
|
663
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
664
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConnectionsApi.list_connections, must be greater than or equal to 1.'
|
|
665
|
-
end
|
|
666
|
-
|
|
667
|
-
allowable_values = ["asc", "desc"]
|
|
668
|
-
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
669
|
-
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
670
|
-
end
|
|
671
|
-
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
672
|
-
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling ConnectionsApi.list_connections, the character length must be smaller than or equal to 255.'
|
|
673
|
-
end
|
|
674
|
-
|
|
675
|
-
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
676
|
-
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling ConnectionsApi.list_connections, the character length must be greater than or equal to 1.'
|
|
677
|
-
end
|
|
678
|
-
|
|
679
389
|
# resource path
|
|
680
390
|
local_var_path = '/companies/{company_id}/connections'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
681
391
|
|
|
682
392
|
# query parameters
|
|
683
393
|
query_params = opts[:query_params] || {}
|
|
684
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
685
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
686
|
-
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
687
|
-
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
688
|
-
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
689
394
|
|
|
690
395
|
# header parameters
|
|
691
396
|
header_params = opts[:header_params] || {}
|
|
@@ -699,13 +404,13 @@ module SparteraApiSdk
|
|
|
699
404
|
post_body = opts[:debug_body]
|
|
700
405
|
|
|
701
406
|
# return_type
|
|
702
|
-
return_type = opts[:debug_return_type] || '
|
|
407
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
703
408
|
|
|
704
409
|
# auth_names
|
|
705
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
410
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
706
411
|
|
|
707
412
|
new_options = opts.merge(
|
|
708
|
-
:operation => :"ConnectionsApi.
|
|
413
|
+
:operation => :"ConnectionsApi.companies_company_id_connections_get",
|
|
709
414
|
:header_params => header_params,
|
|
710
415
|
:query_params => query_params,
|
|
711
416
|
:form_params => form_params,
|
|
@@ -716,72 +421,40 @@ module SparteraApiSdk
|
|
|
716
421
|
|
|
717
422
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
718
423
|
if @api_client.config.debugging
|
|
719
|
-
@api_client.config.logger.debug "API called: ConnectionsApi#
|
|
424
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#companies_company_id_connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
720
425
|
end
|
|
721
426
|
return data, status_code, headers
|
|
722
427
|
end
|
|
723
428
|
|
|
724
|
-
#
|
|
725
|
-
# @param company_id [String]
|
|
726
|
-
# @param
|
|
727
|
-
# @param connections_update [ConnectionsUpdate]
|
|
429
|
+
# Create a new connection by ID
|
|
430
|
+
# @param company_id [String]
|
|
431
|
+
# @param connection [Connection]
|
|
728
432
|
# @param [Hash] opts the optional parameters
|
|
729
|
-
# @return [
|
|
730
|
-
def
|
|
731
|
-
data, _status_code, _headers =
|
|
433
|
+
# @return [Object]
|
|
434
|
+
def companies_company_id_connections_post(company_id, connection, opts = {})
|
|
435
|
+
data, _status_code, _headers = companies_company_id_connections_post_with_http_info(company_id, connection, opts)
|
|
732
436
|
data
|
|
733
437
|
end
|
|
734
438
|
|
|
735
|
-
#
|
|
736
|
-
# @param company_id [String]
|
|
737
|
-
# @param
|
|
738
|
-
# @param connections_update [ConnectionsUpdate]
|
|
439
|
+
# Create a new connection by ID
|
|
440
|
+
# @param company_id [String]
|
|
441
|
+
# @param connection [Connection]
|
|
739
442
|
# @param [Hash] opts the optional parameters
|
|
740
|
-
# @return [Array<(
|
|
741
|
-
def
|
|
443
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
444
|
+
def companies_company_id_connections_post_with_http_info(company_id, connection, opts = {})
|
|
742
445
|
if @api_client.config.debugging
|
|
743
|
-
@api_client.config.logger.debug 'Calling API: ConnectionsApi.
|
|
446
|
+
@api_client.config.logger.debug 'Calling API: ConnectionsApi.companies_company_id_connections_post ...'
|
|
744
447
|
end
|
|
745
448
|
# verify the required parameter 'company_id' is set
|
|
746
449
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
747
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.
|
|
748
|
-
end
|
|
749
|
-
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
750
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.update_connections, the character length must be smaller than or equal to 255.'
|
|
751
|
-
end
|
|
752
|
-
|
|
753
|
-
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
754
|
-
fail ArgumentError, 'invalid value for "company_id" when calling ConnectionsApi.update_connections, the character length must be greater than or equal to 1.'
|
|
755
|
-
end
|
|
756
|
-
|
|
757
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
758
|
-
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
759
|
-
fail ArgumentError, "invalid value for 'company_id' when calling ConnectionsApi.update_connections, must conform to the pattern #{pattern}."
|
|
450
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling ConnectionsApi.companies_company_id_connections_post"
|
|
760
451
|
end
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.update_connections"
|
|
765
|
-
end
|
|
766
|
-
if @api_client.config.client_side_validation && connection_id.to_s.length > 255
|
|
767
|
-
fail ArgumentError, 'invalid value for "connection_id" when calling ConnectionsApi.update_connections, the character length must be smaller than or equal to 255.'
|
|
768
|
-
end
|
|
769
|
-
|
|
770
|
-
if @api_client.config.client_side_validation && connection_id.to_s.length < 1
|
|
771
|
-
fail ArgumentError, 'invalid value for "connection_id" when calling ConnectionsApi.update_connections, the character length must be greater than or equal to 1.'
|
|
772
|
-
end
|
|
773
|
-
|
|
774
|
-
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
775
|
-
if @api_client.config.client_side_validation && connection_id !~ pattern
|
|
776
|
-
fail ArgumentError, "invalid value for 'connection_id' when calling ConnectionsApi.update_connections, must conform to the pattern #{pattern}."
|
|
777
|
-
end
|
|
778
|
-
|
|
779
|
-
# verify the required parameter 'connections_update' is set
|
|
780
|
-
if @api_client.config.client_side_validation && connections_update.nil?
|
|
781
|
-
fail ArgumentError, "Missing the required parameter 'connections_update' when calling ConnectionsApi.update_connections"
|
|
452
|
+
# verify the required parameter 'connection' is set
|
|
453
|
+
if @api_client.config.client_side_validation && connection.nil?
|
|
454
|
+
fail ArgumentError, "Missing the required parameter 'connection' when calling ConnectionsApi.companies_company_id_connections_post"
|
|
782
455
|
end
|
|
783
456
|
# resource path
|
|
784
|
-
local_var_path = '/companies/{company_id}/connections
|
|
457
|
+
local_var_path = '/companies/{company_id}/connections'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
785
458
|
|
|
786
459
|
# query parameters
|
|
787
460
|
query_params = opts[:query_params] || {}
|
|
@@ -800,16 +473,16 @@ module SparteraApiSdk
|
|
|
800
473
|
form_params = opts[:form_params] || {}
|
|
801
474
|
|
|
802
475
|
# http body (model)
|
|
803
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
476
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(connection)
|
|
804
477
|
|
|
805
478
|
# return_type
|
|
806
|
-
return_type = opts[:debug_return_type] || '
|
|
479
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
807
480
|
|
|
808
481
|
# auth_names
|
|
809
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
482
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
810
483
|
|
|
811
484
|
new_options = opts.merge(
|
|
812
|
-
:operation => :"ConnectionsApi.
|
|
485
|
+
:operation => :"ConnectionsApi.companies_company_id_connections_post",
|
|
813
486
|
:header_params => header_params,
|
|
814
487
|
:query_params => query_params,
|
|
815
488
|
:form_params => form_params,
|
|
@@ -818,9 +491,9 @@ module SparteraApiSdk
|
|
|
818
491
|
:return_type => return_type
|
|
819
492
|
)
|
|
820
493
|
|
|
821
|
-
data, status_code, headers = @api_client.call_api(:
|
|
494
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
822
495
|
if @api_client.config.debugging
|
|
823
|
-
@api_client.config.logger.debug "API called: ConnectionsApi#
|
|
496
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#companies_company_id_connections_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
824
497
|
end
|
|
825
498
|
return data, status_code, headers
|
|
826
499
|
end
|