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
data/config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"gemName": "spartera_api_sdk",
|
|
3
|
+
"gemVersion": "1.0.58",
|
|
4
|
+
"gemDescription": "Official SDK for Spartera API - Interface to manage companies' accounts and process insights remotely",
|
|
5
|
+
"gemAuthor": "Tony D",
|
|
6
|
+
"gemAuthorEmail": "tony@spartera.com",
|
|
7
|
+
"gemHomepage": "https://github.com/spartera-com/spartera-ruby-sdk",
|
|
8
|
+
"moduleName": "SparteraApiSdk",
|
|
9
|
+
"gemLicense": "Apache-2.0"
|
|
10
|
+
}
|
data/docs/APIKeysApi.md
CHANGED
|
@@ -4,20 +4,18 @@ All URIs are relative to *https://api.spartera.com*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**
|
|
8
|
-
| [**
|
|
9
|
-
| [**
|
|
10
|
-
| [**
|
|
11
|
-
| [**
|
|
12
|
-
| [**list_api_keys**](APIKeysApi.md#list_api_keys) | **GET** /companies/{company_id}/api-keys | Get all API keys for a company. Returns masked API keys for security (sk_****1234). |
|
|
13
|
-
| [**update_api_keys**](APIKeysApi.md#update_api_keys) | **PATCH** /companies/{company_id}/api-keys/{api_key_id} | Update an existing API key by ID. Can update metadata like name, expiration, rate limits, etc. Cannot update the actual key value (for security). |
|
|
7
|
+
| [**companies_company_id_api_keys_api_key_id_get**](APIKeysApi.md#companies_company_id_api_keys_api_key_id_get) | **GET** /companies/{company_id}/api-keys/{api_key_id} | Get single API key by ID |
|
|
8
|
+
| [**companies_company_id_api_keys_api_key_id_patch**](APIKeysApi.md#companies_company_id_api_keys_api_key_id_patch) | **PATCH** /companies/{company_id}/api-keys/{api_key_id} | Update an existing API key by ID |
|
|
9
|
+
| [**companies_company_id_api_keys_get**](APIKeysApi.md#companies_company_id_api_keys_get) | **GET** /companies/{company_id}/api-keys | Get all API keys |
|
|
10
|
+
| [**companies_company_id_api_keys_post**](APIKeysApi.md#companies_company_id_api_keys_post) | **POST** /companies/{company_id}/api-keys | Create single API key |
|
|
11
|
+
| [**companies_company_id_api_keys_token_delete**](APIKeysApi.md#companies_company_id_api_keys_token_delete) | **DELETE** /companies/{company_id}/api-keys/{token} | Delete single API key by token |
|
|
14
12
|
|
|
15
13
|
|
|
16
|
-
##
|
|
14
|
+
## companies_company_id_api_keys_api_key_id_get
|
|
17
15
|
|
|
18
|
-
>
|
|
16
|
+
> Object companies_company_id_api_keys_api_key_id_get(company_id, api_key_id)
|
|
19
17
|
|
|
20
|
-
|
|
18
|
+
Get single API key by ID
|
|
21
19
|
|
|
22
20
|
### Examples
|
|
23
21
|
|
|
@@ -26,47 +24,38 @@ require 'time'
|
|
|
26
24
|
require 'spartera_api_sdk'
|
|
27
25
|
# setup authorization
|
|
28
26
|
SparteraApiSdk.configure do |config|
|
|
29
|
-
# Configure
|
|
30
|
-
config.
|
|
31
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
32
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
27
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
28
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
33
29
|
end
|
|
34
30
|
|
|
35
31
|
api_instance = SparteraApiSdk::APIKeysApi.new
|
|
36
|
-
company_id = 'company_id_example' # String |
|
|
37
|
-
|
|
38
|
-
opts = {
|
|
39
|
-
page: 56, # Integer | Page number for pagination
|
|
40
|
-
limit: 56, # Integer | Number of items per page
|
|
41
|
-
sort_by: 'sort_by_example', # String | Field to sort by
|
|
42
|
-
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
43
|
-
search: 'search_example' # String | Search term to filter results
|
|
44
|
-
}
|
|
32
|
+
company_id = 'company_id_example' # String |
|
|
33
|
+
api_key_id = 'api_key_id_example' # String |
|
|
45
34
|
|
|
46
35
|
begin
|
|
47
|
-
#
|
|
48
|
-
result = api_instance.
|
|
36
|
+
# Get single API key by ID
|
|
37
|
+
result = api_instance.companies_company_id_api_keys_api_key_id_get(company_id, api_key_id)
|
|
49
38
|
p result
|
|
50
39
|
rescue SparteraApiSdk::ApiError => e
|
|
51
|
-
puts "Error when calling APIKeysApi->
|
|
40
|
+
puts "Error when calling APIKeysApi->companies_company_id_api_keys_api_key_id_get: #{e}"
|
|
52
41
|
end
|
|
53
42
|
```
|
|
54
43
|
|
|
55
|
-
#### Using the
|
|
44
|
+
#### Using the companies_company_id_api_keys_api_key_id_get_with_http_info variant
|
|
56
45
|
|
|
57
46
|
This returns an Array which contains the response data, status code and headers.
|
|
58
47
|
|
|
59
|
-
> <Array(
|
|
48
|
+
> <Array(Object, Integer, Hash)> companies_company_id_api_keys_api_key_id_get_with_http_info(company_id, api_key_id)
|
|
60
49
|
|
|
61
50
|
```ruby
|
|
62
51
|
begin
|
|
63
|
-
#
|
|
64
|
-
data, status_code, headers = api_instance.
|
|
52
|
+
# Get single API key by ID
|
|
53
|
+
data, status_code, headers = api_instance.companies_company_id_api_keys_api_key_id_get_with_http_info(company_id, api_key_id)
|
|
65
54
|
p status_code # => 2xx
|
|
66
55
|
p headers # => { ... }
|
|
67
|
-
p data # =>
|
|
56
|
+
p data # => Object
|
|
68
57
|
rescue SparteraApiSdk::ApiError => e
|
|
69
|
-
puts "Error when calling APIKeysApi->
|
|
58
|
+
puts "Error when calling APIKeysApi->companies_company_id_api_keys_api_key_id_get_with_http_info: #{e}"
|
|
70
59
|
end
|
|
71
60
|
```
|
|
72
61
|
|
|
@@ -74,165 +63,16 @@ end
|
|
|
74
63
|
|
|
75
64
|
| Name | Type | Description | Notes |
|
|
76
65
|
| ---- | ---- | ----------- | ----- |
|
|
77
|
-
| **company_id** | **String** |
|
|
78
|
-
| **
|
|
79
|
-
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
80
|
-
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
81
|
-
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
82
|
-
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
83
|
-
| **search** | **String** | Search term to filter results | [optional] |
|
|
66
|
+
| **company_id** | **String** | | |
|
|
67
|
+
| **api_key_id** | **String** | | |
|
|
84
68
|
|
|
85
69
|
### Return type
|
|
86
70
|
|
|
87
|
-
|
|
71
|
+
**Object**
|
|
88
72
|
|
|
89
73
|
### Authorization
|
|
90
74
|
|
|
91
|
-
[
|
|
92
|
-
|
|
93
|
-
### HTTP request headers
|
|
94
|
-
|
|
95
|
-
- **Content-Type**: application/json
|
|
96
|
-
- **Accept**: application/json
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
## create_api_keys_api_keys_revoke
|
|
100
|
-
|
|
101
|
-
> <CreateApiKeys200Response> create_api_keys_api_keys_revoke(company_id, api_key_id, api_keys_input)
|
|
102
|
-
|
|
103
|
-
Explicitly revoke an API key with reason tracking. This is different from delete as it includes revocation metadata.
|
|
104
|
-
|
|
105
|
-
### Examples
|
|
106
|
-
|
|
107
|
-
```ruby
|
|
108
|
-
require 'time'
|
|
109
|
-
require 'spartera_api_sdk'
|
|
110
|
-
# setup authorization
|
|
111
|
-
SparteraApiSdk.configure do |config|
|
|
112
|
-
# Configure API key authorization: ApiKeyAuth
|
|
113
|
-
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
114
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
115
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
api_instance = SparteraApiSdk::APIKeysApi.new
|
|
119
|
-
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
120
|
-
api_key_id = 'api_key_id_example' # String | Unique identifier for the Api Key
|
|
121
|
-
api_keys_input = SparteraApiSdk::ApiKeysInput.new({company_id: 'company_id_abc123', role_id: 1}) # ApiKeysInput |
|
|
122
|
-
|
|
123
|
-
begin
|
|
124
|
-
# Explicitly revoke an API key with reason tracking. This is different from delete as it includes revocation metadata.
|
|
125
|
-
result = api_instance.create_api_keys_api_keys_revoke(company_id, api_key_id, api_keys_input)
|
|
126
|
-
p result
|
|
127
|
-
rescue SparteraApiSdk::ApiError => e
|
|
128
|
-
puts "Error when calling APIKeysApi->create_api_keys_api_keys_revoke: #{e}"
|
|
129
|
-
end
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
#### Using the create_api_keys_api_keys_revoke_with_http_info variant
|
|
133
|
-
|
|
134
|
-
This returns an Array which contains the response data, status code and headers.
|
|
135
|
-
|
|
136
|
-
> <Array(<CreateApiKeys200Response>, Integer, Hash)> create_api_keys_api_keys_revoke_with_http_info(company_id, api_key_id, api_keys_input)
|
|
137
|
-
|
|
138
|
-
```ruby
|
|
139
|
-
begin
|
|
140
|
-
# Explicitly revoke an API key with reason tracking. This is different from delete as it includes revocation metadata.
|
|
141
|
-
data, status_code, headers = api_instance.create_api_keys_api_keys_revoke_with_http_info(company_id, api_key_id, api_keys_input)
|
|
142
|
-
p status_code # => 2xx
|
|
143
|
-
p headers # => { ... }
|
|
144
|
-
p data # => <CreateApiKeys200Response>
|
|
145
|
-
rescue SparteraApiSdk::ApiError => e
|
|
146
|
-
puts "Error when calling APIKeysApi->create_api_keys_api_keys_revoke_with_http_info: #{e}"
|
|
147
|
-
end
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Parameters
|
|
151
|
-
|
|
152
|
-
| Name | Type | Description | Notes |
|
|
153
|
-
| ---- | ---- | ----------- | ----- |
|
|
154
|
-
| **company_id** | **String** | Unique identifier for the Company | |
|
|
155
|
-
| **api_key_id** | **String** | Unique identifier for the Api Key | |
|
|
156
|
-
| **api_keys_input** | [**ApiKeysInput**](ApiKeysInput.md) | | |
|
|
157
|
-
|
|
158
|
-
### Return type
|
|
159
|
-
|
|
160
|
-
[**CreateApiKeys200Response**](CreateApiKeys200Response.md)
|
|
161
|
-
|
|
162
|
-
### Authorization
|
|
163
|
-
|
|
164
|
-
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
165
|
-
|
|
166
|
-
### HTTP request headers
|
|
167
|
-
|
|
168
|
-
- **Content-Type**: application/json
|
|
169
|
-
- **Accept**: application/json
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
## delete_api_keys
|
|
173
|
-
|
|
174
|
-
> <DeleteApiKeys200Response> delete_api_keys(company_id, api_key_id)
|
|
175
|
-
|
|
176
|
-
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.
|
|
177
|
-
|
|
178
|
-
### Examples
|
|
179
|
-
|
|
180
|
-
```ruby
|
|
181
|
-
require 'time'
|
|
182
|
-
require 'spartera_api_sdk'
|
|
183
|
-
# setup authorization
|
|
184
|
-
SparteraApiSdk.configure do |config|
|
|
185
|
-
# Configure API key authorization: ApiKeyAuth
|
|
186
|
-
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
187
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
188
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
api_instance = SparteraApiSdk::APIKeysApi.new
|
|
192
|
-
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
193
|
-
api_key_id = 'api_key_id_example' # String | Unique identifier for the Api Key
|
|
194
|
-
|
|
195
|
-
begin
|
|
196
|
-
# 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.
|
|
197
|
-
result = api_instance.delete_api_keys(company_id, api_key_id)
|
|
198
|
-
p result
|
|
199
|
-
rescue SparteraApiSdk::ApiError => e
|
|
200
|
-
puts "Error when calling APIKeysApi->delete_api_keys: #{e}"
|
|
201
|
-
end
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
#### Using the delete_api_keys_with_http_info variant
|
|
205
|
-
|
|
206
|
-
This returns an Array which contains the response data, status code and headers.
|
|
207
|
-
|
|
208
|
-
> <Array(<DeleteApiKeys200Response>, Integer, Hash)> delete_api_keys_with_http_info(company_id, api_key_id)
|
|
209
|
-
|
|
210
|
-
```ruby
|
|
211
|
-
begin
|
|
212
|
-
# 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.
|
|
213
|
-
data, status_code, headers = api_instance.delete_api_keys_with_http_info(company_id, api_key_id)
|
|
214
|
-
p status_code # => 2xx
|
|
215
|
-
p headers # => { ... }
|
|
216
|
-
p data # => <DeleteApiKeys200Response>
|
|
217
|
-
rescue SparteraApiSdk::ApiError => e
|
|
218
|
-
puts "Error when calling APIKeysApi->delete_api_keys_with_http_info: #{e}"
|
|
219
|
-
end
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
### Parameters
|
|
223
|
-
|
|
224
|
-
| Name | Type | Description | Notes |
|
|
225
|
-
| ---- | ---- | ----------- | ----- |
|
|
226
|
-
| **company_id** | **String** | Unique identifier for the Company | |
|
|
227
|
-
| **api_key_id** | **String** | Unique identifier for the Api Key | |
|
|
228
|
-
|
|
229
|
-
### Return type
|
|
230
|
-
|
|
231
|
-
[**DeleteApiKeys200Response**](DeleteApiKeys200Response.md)
|
|
232
|
-
|
|
233
|
-
### Authorization
|
|
234
|
-
|
|
235
|
-
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
75
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
236
76
|
|
|
237
77
|
### HTTP request headers
|
|
238
78
|
|
|
@@ -240,11 +80,11 @@ end
|
|
|
240
80
|
- **Accept**: application/json
|
|
241
81
|
|
|
242
82
|
|
|
243
|
-
##
|
|
83
|
+
## companies_company_id_api_keys_api_key_id_patch
|
|
244
84
|
|
|
245
|
-
>
|
|
85
|
+
> Object companies_company_id_api_keys_api_key_id_patch(company_id, api_key_id)
|
|
246
86
|
|
|
247
|
-
|
|
87
|
+
Update an existing API key by ID
|
|
248
88
|
|
|
249
89
|
### Examples
|
|
250
90
|
|
|
@@ -253,40 +93,38 @@ require 'time'
|
|
|
253
93
|
require 'spartera_api_sdk'
|
|
254
94
|
# setup authorization
|
|
255
95
|
SparteraApiSdk.configure do |config|
|
|
256
|
-
# Configure
|
|
257
|
-
config.
|
|
258
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
259
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
96
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
97
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
260
98
|
end
|
|
261
99
|
|
|
262
100
|
api_instance = SparteraApiSdk::APIKeysApi.new
|
|
263
|
-
company_id = 'company_id_example' # String |
|
|
264
|
-
api_key_id = 'api_key_id_example' # String |
|
|
101
|
+
company_id = 'company_id_example' # String |
|
|
102
|
+
api_key_id = 'api_key_id_example' # String |
|
|
265
103
|
|
|
266
104
|
begin
|
|
267
|
-
#
|
|
268
|
-
result = api_instance.
|
|
105
|
+
# Update an existing API key by ID
|
|
106
|
+
result = api_instance.companies_company_id_api_keys_api_key_id_patch(company_id, api_key_id)
|
|
269
107
|
p result
|
|
270
108
|
rescue SparteraApiSdk::ApiError => e
|
|
271
|
-
puts "Error when calling APIKeysApi->
|
|
109
|
+
puts "Error when calling APIKeysApi->companies_company_id_api_keys_api_key_id_patch: #{e}"
|
|
272
110
|
end
|
|
273
111
|
```
|
|
274
112
|
|
|
275
|
-
#### Using the
|
|
113
|
+
#### Using the companies_company_id_api_keys_api_key_id_patch_with_http_info variant
|
|
276
114
|
|
|
277
115
|
This returns an Array which contains the response data, status code and headers.
|
|
278
116
|
|
|
279
|
-
> <Array(
|
|
117
|
+
> <Array(Object, Integer, Hash)> companies_company_id_api_keys_api_key_id_patch_with_http_info(company_id, api_key_id)
|
|
280
118
|
|
|
281
119
|
```ruby
|
|
282
120
|
begin
|
|
283
|
-
#
|
|
284
|
-
data, status_code, headers = api_instance.
|
|
121
|
+
# Update an existing API key by ID
|
|
122
|
+
data, status_code, headers = api_instance.companies_company_id_api_keys_api_key_id_patch_with_http_info(company_id, api_key_id)
|
|
285
123
|
p status_code # => 2xx
|
|
286
124
|
p headers # => { ... }
|
|
287
|
-
p data # =>
|
|
125
|
+
p data # => Object
|
|
288
126
|
rescue SparteraApiSdk::ApiError => e
|
|
289
|
-
puts "Error when calling APIKeysApi->
|
|
127
|
+
puts "Error when calling APIKeysApi->companies_company_id_api_keys_api_key_id_patch_with_http_info: #{e}"
|
|
290
128
|
end
|
|
291
129
|
```
|
|
292
130
|
|
|
@@ -294,16 +132,16 @@ end
|
|
|
294
132
|
|
|
295
133
|
| Name | Type | Description | Notes |
|
|
296
134
|
| ---- | ---- | ----------- | ----- |
|
|
297
|
-
| **company_id** | **String** |
|
|
298
|
-
| **api_key_id** | **String** |
|
|
135
|
+
| **company_id** | **String** | | |
|
|
136
|
+
| **api_key_id** | **String** | | |
|
|
299
137
|
|
|
300
138
|
### Return type
|
|
301
139
|
|
|
302
|
-
|
|
140
|
+
**Object**
|
|
303
141
|
|
|
304
142
|
### Authorization
|
|
305
143
|
|
|
306
|
-
[
|
|
144
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
307
145
|
|
|
308
146
|
### HTTP request headers
|
|
309
147
|
|
|
@@ -311,11 +149,11 @@ end
|
|
|
311
149
|
- **Accept**: application/json
|
|
312
150
|
|
|
313
151
|
|
|
314
|
-
##
|
|
152
|
+
## companies_company_id_api_keys_get
|
|
315
153
|
|
|
316
|
-
>
|
|
154
|
+
> Object companies_company_id_api_keys_get(company_id)
|
|
317
155
|
|
|
318
|
-
Get
|
|
156
|
+
Get all API keys
|
|
319
157
|
|
|
320
158
|
### Examples
|
|
321
159
|
|
|
@@ -324,40 +162,37 @@ require 'time'
|
|
|
324
162
|
require 'spartera_api_sdk'
|
|
325
163
|
# setup authorization
|
|
326
164
|
SparteraApiSdk.configure do |config|
|
|
327
|
-
# Configure
|
|
328
|
-
config.
|
|
329
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
330
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
165
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
166
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
331
167
|
end
|
|
332
168
|
|
|
333
169
|
api_instance = SparteraApiSdk::APIKeysApi.new
|
|
334
|
-
company_id = 'company_id_example' # String |
|
|
335
|
-
api_key_id = 'api_key_id_example' # String | Unique identifier for the Api Key
|
|
170
|
+
company_id = 'company_id_example' # String |
|
|
336
171
|
|
|
337
172
|
begin
|
|
338
|
-
# Get
|
|
339
|
-
result = api_instance.
|
|
173
|
+
# Get all API keys
|
|
174
|
+
result = api_instance.companies_company_id_api_keys_get(company_id)
|
|
340
175
|
p result
|
|
341
176
|
rescue SparteraApiSdk::ApiError => e
|
|
342
|
-
puts "Error when calling APIKeysApi->
|
|
177
|
+
puts "Error when calling APIKeysApi->companies_company_id_api_keys_get: #{e}"
|
|
343
178
|
end
|
|
344
179
|
```
|
|
345
180
|
|
|
346
|
-
#### Using the
|
|
181
|
+
#### Using the companies_company_id_api_keys_get_with_http_info variant
|
|
347
182
|
|
|
348
183
|
This returns an Array which contains the response data, status code and headers.
|
|
349
184
|
|
|
350
|
-
> <Array(
|
|
185
|
+
> <Array(Object, Integer, Hash)> companies_company_id_api_keys_get_with_http_info(company_id)
|
|
351
186
|
|
|
352
187
|
```ruby
|
|
353
188
|
begin
|
|
354
|
-
# Get
|
|
355
|
-
data, status_code, headers = api_instance.
|
|
189
|
+
# Get all API keys
|
|
190
|
+
data, status_code, headers = api_instance.companies_company_id_api_keys_get_with_http_info(company_id)
|
|
356
191
|
p status_code # => 2xx
|
|
357
192
|
p headers # => { ... }
|
|
358
|
-
p data # =>
|
|
193
|
+
p data # => Object
|
|
359
194
|
rescue SparteraApiSdk::ApiError => e
|
|
360
|
-
puts "Error when calling APIKeysApi->
|
|
195
|
+
puts "Error when calling APIKeysApi->companies_company_id_api_keys_get_with_http_info: #{e}"
|
|
361
196
|
end
|
|
362
197
|
```
|
|
363
198
|
|
|
@@ -365,16 +200,15 @@ end
|
|
|
365
200
|
|
|
366
201
|
| Name | Type | Description | Notes |
|
|
367
202
|
| ---- | ---- | ----------- | ----- |
|
|
368
|
-
| **company_id** | **String** |
|
|
369
|
-
| **api_key_id** | **String** | Unique identifier for the Api Key | |
|
|
203
|
+
| **company_id** | **String** | | |
|
|
370
204
|
|
|
371
205
|
### Return type
|
|
372
206
|
|
|
373
|
-
|
|
207
|
+
**Object**
|
|
374
208
|
|
|
375
209
|
### Authorization
|
|
376
210
|
|
|
377
|
-
[
|
|
211
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
378
212
|
|
|
379
213
|
### HTTP request headers
|
|
380
214
|
|
|
@@ -382,11 +216,11 @@ end
|
|
|
382
216
|
- **Accept**: application/json
|
|
383
217
|
|
|
384
218
|
|
|
385
|
-
##
|
|
219
|
+
## companies_company_id_api_keys_post
|
|
386
220
|
|
|
387
|
-
>
|
|
221
|
+
> Object companies_company_id_api_keys_post(company_id)
|
|
388
222
|
|
|
389
|
-
|
|
223
|
+
Create single API key
|
|
390
224
|
|
|
391
225
|
### Examples
|
|
392
226
|
|
|
@@ -395,46 +229,37 @@ require 'time'
|
|
|
395
229
|
require 'spartera_api_sdk'
|
|
396
230
|
# setup authorization
|
|
397
231
|
SparteraApiSdk.configure do |config|
|
|
398
|
-
# Configure
|
|
399
|
-
config.
|
|
400
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
401
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
232
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
233
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
402
234
|
end
|
|
403
235
|
|
|
404
236
|
api_instance = SparteraApiSdk::APIKeysApi.new
|
|
405
|
-
company_id = 'company_id_example' # String |
|
|
406
|
-
opts = {
|
|
407
|
-
page: 56, # Integer | Page number for pagination
|
|
408
|
-
limit: 56, # Integer | Number of items per page
|
|
409
|
-
sort_by: 'sort_by_example', # String | Field to sort by
|
|
410
|
-
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
411
|
-
search: 'search_example' # String | Search term to filter results
|
|
412
|
-
}
|
|
237
|
+
company_id = 'company_id_example' # String |
|
|
413
238
|
|
|
414
239
|
begin
|
|
415
|
-
#
|
|
416
|
-
result = api_instance.
|
|
240
|
+
# Create single API key
|
|
241
|
+
result = api_instance.companies_company_id_api_keys_post(company_id)
|
|
417
242
|
p result
|
|
418
243
|
rescue SparteraApiSdk::ApiError => e
|
|
419
|
-
puts "Error when calling APIKeysApi->
|
|
244
|
+
puts "Error when calling APIKeysApi->companies_company_id_api_keys_post: #{e}"
|
|
420
245
|
end
|
|
421
246
|
```
|
|
422
247
|
|
|
423
|
-
#### Using the
|
|
248
|
+
#### Using the companies_company_id_api_keys_post_with_http_info variant
|
|
424
249
|
|
|
425
250
|
This returns an Array which contains the response data, status code and headers.
|
|
426
251
|
|
|
427
|
-
> <Array(
|
|
252
|
+
> <Array(Object, Integer, Hash)> companies_company_id_api_keys_post_with_http_info(company_id)
|
|
428
253
|
|
|
429
254
|
```ruby
|
|
430
255
|
begin
|
|
431
|
-
#
|
|
432
|
-
data, status_code, headers = api_instance.
|
|
256
|
+
# Create single API key
|
|
257
|
+
data, status_code, headers = api_instance.companies_company_id_api_keys_post_with_http_info(company_id)
|
|
433
258
|
p status_code # => 2xx
|
|
434
259
|
p headers # => { ... }
|
|
435
|
-
p data # =>
|
|
260
|
+
p data # => Object
|
|
436
261
|
rescue SparteraApiSdk::ApiError => e
|
|
437
|
-
puts "Error when calling APIKeysApi->
|
|
262
|
+
puts "Error when calling APIKeysApi->companies_company_id_api_keys_post_with_http_info: #{e}"
|
|
438
263
|
end
|
|
439
264
|
```
|
|
440
265
|
|
|
@@ -442,20 +267,15 @@ end
|
|
|
442
267
|
|
|
443
268
|
| Name | Type | Description | Notes |
|
|
444
269
|
| ---- | ---- | ----------- | ----- |
|
|
445
|
-
| **company_id** | **String** |
|
|
446
|
-
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
447
|
-
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
448
|
-
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
449
|
-
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
450
|
-
| **search** | **String** | Search term to filter results | [optional] |
|
|
270
|
+
| **company_id** | **String** | | |
|
|
451
271
|
|
|
452
272
|
### Return type
|
|
453
273
|
|
|
454
|
-
|
|
274
|
+
**Object**
|
|
455
275
|
|
|
456
276
|
### Authorization
|
|
457
277
|
|
|
458
|
-
[
|
|
278
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
459
279
|
|
|
460
280
|
### HTTP request headers
|
|
461
281
|
|
|
@@ -463,11 +283,11 @@ end
|
|
|
463
283
|
- **Accept**: application/json
|
|
464
284
|
|
|
465
285
|
|
|
466
|
-
##
|
|
286
|
+
## companies_company_id_api_keys_token_delete
|
|
467
287
|
|
|
468
|
-
>
|
|
288
|
+
> Object companies_company_id_api_keys_token_delete(company_id, token)
|
|
469
289
|
|
|
470
|
-
|
|
290
|
+
Delete single API key by token
|
|
471
291
|
|
|
472
292
|
### Examples
|
|
473
293
|
|
|
@@ -476,41 +296,38 @@ require 'time'
|
|
|
476
296
|
require 'spartera_api_sdk'
|
|
477
297
|
# setup authorization
|
|
478
298
|
SparteraApiSdk.configure do |config|
|
|
479
|
-
# Configure
|
|
480
|
-
config.
|
|
481
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
482
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
299
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
300
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
483
301
|
end
|
|
484
302
|
|
|
485
303
|
api_instance = SparteraApiSdk::APIKeysApi.new
|
|
486
|
-
company_id = 'company_id_example' # String |
|
|
487
|
-
|
|
488
|
-
api_keys_update = SparteraApiSdk::ApiKeysUpdate.new # ApiKeysUpdate |
|
|
304
|
+
company_id = 'company_id_example' # String |
|
|
305
|
+
token = 'token_example' # String |
|
|
489
306
|
|
|
490
307
|
begin
|
|
491
|
-
#
|
|
492
|
-
result = api_instance.
|
|
308
|
+
# Delete single API key by token
|
|
309
|
+
result = api_instance.companies_company_id_api_keys_token_delete(company_id, token)
|
|
493
310
|
p result
|
|
494
311
|
rescue SparteraApiSdk::ApiError => e
|
|
495
|
-
puts "Error when calling APIKeysApi->
|
|
312
|
+
puts "Error when calling APIKeysApi->companies_company_id_api_keys_token_delete: #{e}"
|
|
496
313
|
end
|
|
497
314
|
```
|
|
498
315
|
|
|
499
|
-
#### Using the
|
|
316
|
+
#### Using the companies_company_id_api_keys_token_delete_with_http_info variant
|
|
500
317
|
|
|
501
318
|
This returns an Array which contains the response data, status code and headers.
|
|
502
319
|
|
|
503
|
-
> <Array(
|
|
320
|
+
> <Array(Object, Integer, Hash)> companies_company_id_api_keys_token_delete_with_http_info(company_id, token)
|
|
504
321
|
|
|
505
322
|
```ruby
|
|
506
323
|
begin
|
|
507
|
-
#
|
|
508
|
-
data, status_code, headers = api_instance.
|
|
324
|
+
# Delete single API key by token
|
|
325
|
+
data, status_code, headers = api_instance.companies_company_id_api_keys_token_delete_with_http_info(company_id, token)
|
|
509
326
|
p status_code # => 2xx
|
|
510
327
|
p headers # => { ... }
|
|
511
|
-
p data # =>
|
|
328
|
+
p data # => Object
|
|
512
329
|
rescue SparteraApiSdk::ApiError => e
|
|
513
|
-
puts "Error when calling APIKeysApi->
|
|
330
|
+
puts "Error when calling APIKeysApi->companies_company_id_api_keys_token_delete_with_http_info: #{e}"
|
|
514
331
|
end
|
|
515
332
|
```
|
|
516
333
|
|
|
@@ -518,20 +335,19 @@ end
|
|
|
518
335
|
|
|
519
336
|
| Name | Type | Description | Notes |
|
|
520
337
|
| ---- | ---- | ----------- | ----- |
|
|
521
|
-
| **company_id** | **String** |
|
|
522
|
-
| **
|
|
523
|
-
| **api_keys_update** | [**ApiKeysUpdate**](ApiKeysUpdate.md) | | |
|
|
338
|
+
| **company_id** | **String** | | |
|
|
339
|
+
| **token** | **String** | | |
|
|
524
340
|
|
|
525
341
|
### Return type
|
|
526
342
|
|
|
527
|
-
|
|
343
|
+
**Object**
|
|
528
344
|
|
|
529
345
|
### Authorization
|
|
530
346
|
|
|
531
|
-
[
|
|
347
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
532
348
|
|
|
533
349
|
### HTTP request headers
|
|
534
350
|
|
|
535
|
-
- **Content-Type**:
|
|
351
|
+
- **Content-Type**: Not defined
|
|
536
352
|
- **Accept**: application/json
|
|
537
353
|
|