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