spartera_api_sdk 1.0.77 → 1.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +9 -0
- data/README.md +333 -324
- data/Rakefile +10 -0
- data/docs/APIKeysApi.md +150 -126
- data/docs/Alerts.md +13 -13
- data/docs/AlertsApi.md +139 -139
- data/docs/AlertsInput.md +7 -7
- data/docs/AlertsUpdate.md +7 -7
- data/docs/ApiKeys.md +19 -11
- data/docs/ApiKeysInput.md +13 -5
- data/docs/ApiKeysUpdate.md +13 -5
- data/docs/AssetPriceHistory.md +14 -12
- data/docs/AssetPriceHistoryApi.md +164 -164
- data/docs/AssetPriceHistoryInput.md +8 -6
- data/docs/AssetPriceHistoryUpdate.md +8 -6
- data/docs/AssetUsecases.md +28 -0
- data/docs/AssetUsecasesApi.md +157 -0
- data/docs/Assets.md +113 -83
- data/docs/AssetsApi.md +534 -206
- data/docs/AssetsInput.md +100 -70
- data/docs/AssetsUpdate.md +100 -70
- data/docs/CloudProviders.md +12 -12
- data/docs/CloudProvidersApi.md +44 -31
- data/docs/CloudProvidersInput.md +6 -6
- data/docs/CloudProvidersUpdate.md +6 -6
- data/docs/Companies.md +27 -23
- data/docs/CompaniesApi.md +313 -147
- data/docs/CompaniesInput.md +21 -17
- data/docs/CompaniesUpdate.md +21 -17
- data/docs/Connections.md +22 -22
- data/docs/ConnectionsApi.md +149 -125
- data/docs/ConnectionsInput.md +16 -16
- data/docs/ConnectionsUpdate.md +16 -16
- data/docs/CreateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsPost200ResponseData.md → CreateAlerts200ResponseData.md} +2 -2
- data/docs/CreateApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysPost200ResponseData.md → CreateApiKeys200ResponseData.md} +2 -2
- data/docs/{CompaniesCompanyIdPatch200Response.md → CreateAssetPriceHistory200Response.md} +3 -3
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesPost200ResponseData.md → CreateAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/CreateAssetsAnalyze200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsPost200ResponseData.md → CreateAssetsAnalyze200ResponseData.md} +2 -2
- data/docs/CreateConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsPost200ResponseData.md → CreateConnections200ResponseData.md} +2 -2
- data/docs/CreateEndpoints200Response.md +20 -0
- data/docs/CreateEndpoints200ResponseData.md +18 -0
- data/docs/CreateFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesPost200ResponseData.md → CreateFavorites200ResponseData.md} +2 -2
- data/docs/CreatePostgenIntegrations200Response.md +20 -0
- data/docs/CreatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/CreatePosts200Response.md +20 -0
- data/docs/CreatePosts200ResponseData.md +18 -0
- data/docs/CreateUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersPost200ResponseData.md → CreateUsers200ResponseData.md} +2 -2
- data/docs/DeleteAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200ResponseData.md → DeleteAlerts200ResponseData.md} +2 -2
- data/docs/DeleteApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdDelete200ResponseData.md → DeleteApiKeys200ResponseData.md} +2 -2
- data/docs/DeleteAssetPriceHistory200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200ResponseData.md → DeleteAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/DeleteAssets200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdDelete200ResponseData.md → DeleteAssets200ResponseData.md} +2 -2
- data/docs/DeleteConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdDelete200ResponseData.md → DeleteConnections200ResponseData.md} +2 -2
- data/docs/DeleteEndpoints200Response.md +20 -0
- data/docs/DeleteEndpoints200ResponseData.md +18 -0
- data/docs/DeleteFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200ResponseData.md → DeleteFavorites200ResponseData.md} +2 -2
- data/docs/DeletePostgenIntegrations200Response.md +20 -0
- data/docs/DeletePostgenIntegrations200ResponseData.md +18 -0
- data/docs/DeletePosts200Response.md +20 -0
- data/docs/DeletePosts200ResponseData.md +18 -0
- data/docs/DeleteUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdDelete200ResponseData.md → DeleteUsers200ResponseData.md} +2 -2
- data/docs/Endpoints.md +80 -0
- data/docs/EndpointsApi.md +1043 -0
- data/docs/EndpointsInput.md +78 -0
- data/docs/EndpointsUpdate.md +78 -0
- data/docs/Favorites.md +15 -15
- data/docs/FavoritesApi.md +159 -159
- data/docs/FavoritesInput.md +9 -9
- data/docs/FavoritesUpdate.md +9 -9
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAssetAssetIdGet200Response.md → GetAlertsById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdGet200Response.md → GetApiKeysById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdGet200Response.md → GetAssetPriceHistoryById200Response.md} +2 -2
- data/docs/GetAssetUsecasesById200Response.md +20 -0
- data/docs/{AnalyzeCompanyHandleAssetsAssetSlugGet200Response.md → GetAssetsByIdAnalyze200Response.md} +2 -2
- data/docs/{CloudProvidersProviderIdGet200Response.md → GetCloudProvidersById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdGet200Response.md → GetCompaniesById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdGet200Response.md → GetConnectionsById200Response.md} +2 -2
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesCategoryCategoryGet200Response.md → GetFavoritesById200Response.md} +2 -2
- data/docs/GetIndustriesById200Response.md +20 -0
- data/docs/{JobFunctionsFunctionIdGet200Response.md → GetJobFunctionsById200Response.md} +2 -2
- data/docs/GetPostgenIntegrationsById200Response.md +20 -0
- data/docs/GetPostsById200Response.md +20 -0
- data/docs/GetStorageEnginesById200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdGet200Response.md → GetUsersById200Response.md} +2 -2
- data/docs/Industries.md +32 -0
- data/docs/IndustriesApi.md +237 -0
- data/docs/InlineObject4.md +20 -0
- data/docs/InlineObject5.md +20 -0
- data/docs/InlineObject6.md +22 -0
- data/docs/InlineObject7.md +20 -0
- data/docs/JobFunctions.md +8 -8
- data/docs/JobFunctionsApi.md +38 -25
- data/docs/JobFunctionsInput.md +2 -2
- data/docs/JobFunctionsUpdate.md +2 -2
- data/docs/{CompaniesCompanyIdApiKeysGet200Response.md → ListApiKeys200Response.md} +2 -2
- data/docs/ListAssetUsecases200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsGet200Response.md → ListAssets200Response.md} +2 -2
- data/docs/{CloudProvidersGet200Response.md → ListCloudProviders200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdAnalyticsAssetsGet200Response.md → ListCompaniesAnalyticsAssets200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdConnectionsGet200Response.md → ListConnections200Response.md} +2 -2
- data/docs/ListEndpoints200Response.md +20 -0
- data/docs/ListIndustries200Response.md +20 -0
- data/docs/{JobFunctionsGet200Response.md → ListJobFunctions200Response.md} +2 -2
- data/docs/ListPostgenIntegrations200Response.md +20 -0
- data/docs/ListPosts200Response.md +20 -0
- data/docs/ListStorageEngines200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersGet200Response.md → ListUsers200Response.md} +2 -2
- data/docs/PostPublications.md +40 -0
- data/docs/PostPublicationsInput.md +34 -0
- data/docs/PostPublicationsUpdate.md +34 -0
- data/docs/PostgenIntegrations.md +36 -0
- data/docs/PostgenIntegrationsApi.md +463 -0
- data/docs/PostgenIntegrationsInput.md +30 -0
- data/docs/PostgenIntegrationsUpdate.md +30 -0
- data/docs/Posts.md +68 -0
- data/docs/PostsApi.md +843 -0
- data/docs/PostsInput.md +62 -0
- data/docs/PostsUpdate.md +62 -0
- data/docs/StorageEngines.md +32 -0
- data/docs/StorageEnginesApi.md +40 -28
- data/docs/UpdateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200ResponseData.md → UpdateAlerts200ResponseData.md} +2 -2
- data/docs/UpdateApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdPatch200ResponseData.md → UpdateApiKeys200ResponseData.md} +2 -2
- data/docs/UpdateAssetPriceHistory200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200ResponseData.md → UpdateAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/UpdateAssets200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPatch200ResponseData.md → UpdateAssets200ResponseData.md} +2 -2
- data/docs/UpdateCompanies200Response.md +20 -0
- data/docs/{CompaniesCompanyIdPatch200ResponseData.md → UpdateCompanies200ResponseData.md} +2 -2
- data/docs/UpdateConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdPatch200ResponseData.md → UpdateConnections200ResponseData.md} +2 -2
- data/docs/UpdateEndpoints200Response.md +20 -0
- data/docs/UpdateEndpoints200ResponseData.md +18 -0
- data/docs/UpdateFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200ResponseData.md → UpdateFavorites200ResponseData.md} +2 -2
- data/docs/UpdatePostgenIntegrations200Response.md +20 -0
- data/docs/UpdatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/UpdatePosts200Response.md +20 -0
- data/docs/UpdatePosts200ResponseData.md +18 -0
- data/docs/UpdateUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdPatch200ResponseData.md → UpdateUsers200ResponseData.md} +2 -2
- data/docs/Users.md +20 -16
- data/docs/UsersApi.md +302 -97
- data/docs/UsersInput.md +14 -10
- data/docs/UsersUpdate.md +14 -10
- data/git_push.sh +57 -0
- data/lib/spartera_api_sdk/api/alerts_api.rb +414 -167
- data/lib/spartera_api_sdk/api/api_keys_api.rb +386 -152
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +454 -207
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +190 -0
- data/lib/spartera_api_sdk/api/assets_api.rb +949 -225
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +83 -31
- data/lib/spartera_api_sdk/api/companies_api.rb +651 -148
- data/lib/spartera_api_sdk/api/connections_api.rb +376 -142
- data/lib/spartera_api_sdk/api/endpoints_api.rb +1416 -0
- data/lib/spartera_api_sdk/api/favorites_api.rb +456 -196
- data/lib/spartera_api_sdk/api/industries_api.rb +284 -0
- data/lib/spartera_api_sdk/api/job_functions_api.rb +75 -23
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +634 -0
- data/lib/spartera_api_sdk/api/posts_api.rb +1190 -0
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +107 -29
- data/lib/spartera_api_sdk/api/users_api.rb +574 -105
- data/lib/spartera_api_sdk/api_client.rb +8 -4
- data/lib/spartera_api_sdk/api_error.rb +2 -2
- data/lib/spartera_api_sdk/api_model_base.rb +88 -0
- data/lib/spartera_api_sdk/configuration.rb +2 -2
- data/lib/spartera_api_sdk/models/alerts.rb +10 -77
- data/lib/spartera_api_sdk/models/alerts_input.rb +6 -76
- data/lib/spartera_api_sdk/models/alerts_update.rb +6 -76
- data/lib/spartera_api_sdk/models/api_keys.rb +82 -78
- data/lib/spartera_api_sdk/models/api_keys_input.rb +44 -77
- data/lib/spartera_api_sdk/models/api_keys_update.rb +44 -77
- data/lib/spartera_api_sdk/models/asset_price_history.rb +21 -96
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +17 -95
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +17 -78
- data/lib/spartera_api_sdk/models/asset_usecases.rb +216 -0
- data/lib/spartera_api_sdk/models/assets.rb +262 -93
- data/lib/spartera_api_sdk/models/assets_input.rb +238 -91
- data/lib/spartera_api_sdk/models/assets_update.rb +238 -91
- data/lib/spartera_api_sdk/models/cloud_providers.rb +10 -77
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +6 -76
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +6 -76
- data/lib/spartera_api_sdk/models/companies.rb +72 -81
- data/lib/spartera_api_sdk/models/companies_input.rb +68 -80
- data/lib/spartera_api_sdk/models/companies_update.rb +68 -80
- data/lib/spartera_api_sdk/models/connections.rb +15 -78
- data/lib/spartera_api_sdk/models/connections_input.rb +11 -77
- data/lib/spartera_api_sdk/models/connections_update.rb +11 -77
- data/lib/spartera_api_sdk/models/{cloud_providers_provider_id_get200_response.rb → create_alerts200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_post200_response_data.rb → create_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_post200_response_data.rb → create_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_patch200_response.rb → create_asset_price_history200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_post200_response_data.rb → create_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_post200_response_data.rb → create_assets_analyze200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_post200_response_data.rb → create_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_post200_response_data.rb → create_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/{job_functions_function_id_get200_response.rb → create_postgen_integrations200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_post200_response_data.rb → create_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_alert_id_delete200_response_data.rb → delete_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_delete200_response_data.rb → delete_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data.rb → delete_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_delete200_response_data.rb → delete_assets200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_delete200_response_data.rb → delete_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data.rb → delete_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_delete200_response_data.rb → delete_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/endpoints.rb +684 -0
- data/lib/spartera_api_sdk/models/endpoints_input.rb +582 -0
- data/lib/spartera_api_sdk/models/endpoints_update.rb +531 -0
- data/lib/spartera_api_sdk/models/error.rb +3 -76
- data/lib/spartera_api_sdk/models/favorites.rb +10 -77
- data/lib/spartera_api_sdk/models/favorites_input.rb +6 -76
- data/lib/spartera_api_sdk/models/favorites_update.rb +6 -76
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_get200_response.rb → get_api_keys_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_get200_response.rb → get_asset_price_history_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{analyze_company_handle_assets_asset_slug_get200_response.rb → get_assets_by_id_analyze200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_get200_response.rb → get_cloud_providers_by_id200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_get200_response.rb → get_connections_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_delete200_response.rb → get_endpoints_by_id_connections_describe200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_get200_response.rb → get_postgen_integrations_by_id200_response.rb} +7 -82
- data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_get200_response.rb → get_users_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/industries.rb +253 -0
- data/lib/spartera_api_sdk/models/inline_object.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object1.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object2.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object3.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object4.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object5.rb +156 -0
- data/lib/spartera_api_sdk/models/{cloud_providers_provider_id_storage_engines_get200_response.rb → inline_object6.rb} +22 -102
- data/lib/spartera_api_sdk/models/inline_object7.rb +156 -0
- data/lib/spartera_api_sdk/models/job_functions.rb +8 -77
- data/lib/spartera_api_sdk/models/job_functions_input.rb +4 -76
- data/lib/spartera_api_sdk/models/job_functions_update.rb +4 -76
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{cloud_providers_get200_response.rb → list_asset_usecases200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_get200_response.rb → list_assets200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_get200_response.rb → list_companies_analytics_assets200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{job_functions_get200_response.rb → list_connections200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_users200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/post_publications.rb +327 -0
- data/lib/spartera_api_sdk/models/post_publications_input.rb +280 -0
- data/lib/spartera_api_sdk/models/post_publications_update.rb +229 -0
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +341 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +294 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +209 -0
- data/lib/spartera_api_sdk/models/posts.rb +586 -0
- data/lib/spartera_api_sdk/models/posts_input.rb +437 -0
- data/lib/spartera_api_sdk/models/posts_update.rb +369 -0
- data/lib/spartera_api_sdk/models/storage_engines.rb +294 -0
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_alert_id_patch200_response_data.rb → update_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_patch200_response_data.rb → update_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data.rb → update_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_patch200_response_data.rb → update_assets200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_patch200_response_data.rb → update_companies200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_patch200_response_data.rb → update_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data.rb → update_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_patch200_response_data.rb → update_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/users.rb +70 -82
- data/lib/spartera_api_sdk/models/users_input.rb +32 -81
- data/lib/spartera_api_sdk/models/users_update.rb +32 -81
- data/lib/spartera_api_sdk/version.rb +13 -1
- data/lib/spartera_api_sdk.rb +118 -67
- data/spartera_api_sdk.gemspec +39 -0
- data/spec/api/alerts_api_spec.rb +50 -50
- data/spec/api/api_keys_api_spec.rb +53 -43
- data/spec/api/asset_price_history_api_spec.rb +57 -57
- data/spec/api/asset_usecases_api_spec.rb +61 -0
- data/spec/api/assets_api_spec.rb +134 -69
- data/spec/api/cloud_providers_api_spec.rb +16 -11
- data/spec/api/companies_api_spec.rb +99 -48
- data/spec/api/connections_api_spec.rb +53 -43
- data/spec/api/endpoints_api_spec.rb +215 -0
- data/spec/api/favorites_api_spec.rb +56 -56
- data/spec/api/industries_api_spec.rb +76 -0
- data/spec/api/job_functions_api_spec.rb +14 -9
- data/spec/api/postgen_integrations_api_spec.rb +117 -0
- data/spec/api/posts_api_spec.rb +186 -0
- data/spec/api/storage_engines_api_spec.rb +16 -11
- data/spec/api/users_api_spec.rb +81 -32
- data/spec/models/alerts_input_spec.rb +3 -3
- data/spec/models/alerts_spec.rb +3 -3
- data/spec/models/alerts_update_spec.rb +3 -3
- data/spec/models/api_keys_input_spec.rb +27 -3
- data/spec/models/api_keys_spec.rb +27 -3
- data/spec/models/api_keys_update_spec.rb +27 -3
- data/spec/models/asset_price_history_input_spec.rb +9 -3
- data/spec/models/asset_price_history_spec.rb +9 -3
- data/spec/models/asset_price_history_update_spec.rb +9 -3
- data/spec/models/asset_usecases_spec.rb +66 -0
- data/spec/models/assets_input_spec.rb +110 -4
- data/spec/models/assets_spec.rb +110 -4
- data/spec/models/assets_update_spec.rb +110 -4
- data/spec/models/cloud_providers_input_spec.rb +3 -3
- data/spec/models/cloud_providers_spec.rb +3 -3
- data/spec/models/cloud_providers_update_spec.rb +3 -3
- data/spec/models/companies_input_spec.rb +19 -3
- data/spec/models/companies_spec.rb +19 -3
- data/spec/models/companies_update_spec.rb +19 -3
- data/spec/models/connections_input_spec.rb +3 -3
- data/spec/models/connections_spec.rb +3 -3
- data/spec/models/connections_update_spec.rb +3 -3
- data/spec/models/create_alerts200_response_data_spec.rb +36 -0
- data/spec/models/create_alerts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_api_keys_post200_response_data_spec.rb → create_api_keys200_response_data_spec.rb} +8 -8
- data/spec/models/create_api_keys200_response_spec.rb +42 -0
- data/spec/models/create_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/{companies_company_id_patch200_response_spec.rb → create_asset_price_history200_response_spec.rb} +8 -8
- data/spec/models/{companies_company_id_assets_post200_response_data_spec.rb → create_assets_analyze200_response_data_spec.rb} +8 -8
- data/spec/models/create_assets_analyze200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_connections_post200_response_data_spec.rb → create_connections200_response_data_spec.rb} +8 -8
- data/spec/models/{cloud_providers_get200_response_spec.rb → create_connections200_response_spec.rb} +8 -8
- data/spec/models/create_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/create_endpoints200_response_spec.rb +42 -0
- data/spec/models/create_favorites200_response_data_spec.rb +36 -0
- data/spec/models/create_favorites200_response_spec.rb +42 -0
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/{job_functions_function_id_get200_response_spec.rb → create_postgen_integrations200_response_spec.rb} +8 -8
- data/spec/models/create_posts200_response_data_spec.rb +36 -0
- data/spec/models/create_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_post200_response_data_spec.rb → create_users200_response_data_spec.rb} +8 -8
- data/spec/models/create_users200_response_spec.rb +42 -0
- data/spec/models/delete_alerts200_response_data_spec.rb +36 -0
- data/spec/models/delete_alerts200_response_spec.rb +42 -0
- data/spec/models/delete_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/delete_api_keys200_response_spec.rb +42 -0
- data/spec/models/delete_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/delete_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_assets_asset_id_patch200_response_data_spec.rb → delete_assets200_response_data_spec.rb} +8 -8
- data/spec/models/delete_assets200_response_spec.rb +42 -0
- data/spec/models/delete_connections200_response_data_spec.rb +36 -0
- data/spec/models/delete_connections200_response_spec.rb +42 -0
- data/spec/models/delete_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/delete_endpoints200_response_spec.rb +42 -0
- data/spec/models/delete_favorites200_response_data_spec.rb +36 -0
- data/spec/models/delete_favorites200_response_spec.rb +42 -0
- data/spec/models/delete_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/delete_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/delete_posts200_response_data_spec.rb +36 -0
- data/spec/models/delete_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_patch200_response_data_spec.rb → delete_users200_response_data_spec.rb} +8 -8
- data/spec/models/delete_users200_response_spec.rb +42 -0
- data/spec/models/endpoints_input_spec.rb +236 -0
- data/spec/models/endpoints_spec.rb +242 -0
- data/spec/models/endpoints_update_spec.rb +236 -0
- data/spec/models/error_spec.rb +3 -3
- data/spec/models/favorites_input_spec.rb +3 -3
- data/spec/models/favorites_spec.rb +3 -3
- data/spec/models/favorites_update_spec.rb +3 -3
- data/spec/models/get_alerts_by_id200_response_spec.rb +42 -0
- data/spec/models/{job_functions_get200_response_spec.rb → get_api_keys_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_asset_price_history_by_id200_response_spec.rb +42 -0
- data/spec/models/get_asset_usecases_by_id200_response_spec.rb +42 -0
- data/spec/models/get_assets_by_id_analyze200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_get200_response_spec.rb → get_cloud_providers_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_companies_by_id200_response_spec.rb +42 -0
- data/spec/models/get_connections_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_delete200_response_spec.rb → get_endpoints_by_id_connections_describe200_response_spec.rb} +8 -8
- data/spec/models/get_favorites_by_id200_response_spec.rb +42 -0
- data/spec/models/get_industries_by_id200_response_spec.rb +42 -0
- data/spec/models/get_job_functions_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_get200_response_spec.rb → get_postgen_integrations_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_posts_by_id200_response_spec.rb +42 -0
- data/spec/models/get_storage_engines_by_id200_response_spec.rb +42 -0
- data/spec/models/get_users_by_id200_response_spec.rb +42 -0
- data/spec/models/industries_spec.rb +78 -0
- data/spec/models/inline_object1_spec.rb +3 -3
- data/spec/models/inline_object2_spec.rb +3 -3
- data/spec/models/inline_object3_spec.rb +3 -3
- data/spec/models/inline_object4_spec.rb +42 -0
- data/spec/models/inline_object5_spec.rb +42 -0
- data/spec/models/{cloud_providers_provider_id_get200_response_spec.rb → inline_object6_spec.rb} +15 -9
- data/spec/models/inline_object7_spec.rb +42 -0
- data/spec/models/inline_object_spec.rb +3 -3
- data/spec/models/job_functions_input_spec.rb +3 -3
- data/spec/models/job_functions_spec.rb +3 -3
- data/spec/models/job_functions_update_spec.rb +3 -3
- data/spec/models/list_api_keys200_response_spec.rb +42 -0
- data/spec/models/list_asset_usecases200_response_spec.rb +42 -0
- data/spec/models/list_assets200_response_spec.rb +42 -0
- data/spec/models/list_cloud_providers200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_api_keys_get200_response_spec.rb → list_companies_analytics_assets200_response_spec.rb} +8 -8
- data/spec/models/list_connections200_response_spec.rb +42 -0
- data/spec/models/list_endpoints200_response_spec.rb +42 -0
- data/spec/models/list_industries200_response_spec.rb +42 -0
- data/spec/models/list_job_functions200_response_spec.rb +42 -0
- data/spec/models/list_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/list_posts200_response_spec.rb +42 -0
- data/spec/models/list_storage_engines200_response_spec.rb +42 -0
- data/spec/models/list_users200_response_spec.rb +42 -0
- data/spec/models/post_publications_input_spec.rb +84 -0
- data/spec/models/post_publications_spec.rb +102 -0
- data/spec/models/post_publications_update_spec.rb +84 -0
- data/spec/models/postgen_integrations_input_spec.rb +72 -0
- data/spec/models/postgen_integrations_spec.rb +90 -0
- data/spec/models/postgen_integrations_update_spec.rb +72 -0
- data/spec/models/posts_input_spec.rb +168 -0
- data/spec/models/posts_spec.rb +186 -0
- data/spec/models/posts_update_spec.rb +168 -0
- data/spec/models/storage_engines_spec.rb +82 -0
- data/spec/models/update_alerts200_response_data_spec.rb +36 -0
- data/spec/models/update_alerts200_response_spec.rb +42 -0
- data/spec/models/update_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/update_api_keys200_response_spec.rb +42 -0
- data/spec/models/update_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/update_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/update_assets200_response_data_spec.rb +36 -0
- data/spec/models/update_assets200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_patch200_response_data_spec.rb → update_companies200_response_data_spec.rb} +8 -8
- data/spec/models/update_companies200_response_spec.rb +42 -0
- data/spec/models/update_connections200_response_data_spec.rb +36 -0
- data/spec/models/update_connections200_response_spec.rb +42 -0
- data/spec/models/update_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/update_endpoints200_response_spec.rb +42 -0
- data/spec/models/update_favorites200_response_data_spec.rb +36 -0
- data/spec/models/update_favorites200_response_spec.rb +42 -0
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/update_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/update_posts200_response_data_spec.rb +36 -0
- data/spec/models/update_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_delete200_response_data_spec.rb → update_users200_response_data_spec.rb} +8 -8
- data/spec/models/update_users200_response_spec.rb +42 -0
- data/spec/models/users_input_spec.rb +15 -3
- data/spec/models/users_spec.rb +15 -3
- data/spec/models/users_update_spec.rb +15 -3
- data/spec/spec_helper.rb +111 -0
- metadata +515 -337
- data/docs/CloudProvidersProviderIdStorageEnginesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdPatch200Response.md +0 -20
- data/lib/spartera_api_sdk/models/companies_company_id_analytics_assets_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_asset_asset_id_get200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_category_category_get200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response.rb +0 -264
- data/spec/models/analyze_company_handle_assets_asset_slug_get200_response_spec.rb +0 -42
- data/spec/models/cloud_providers_provider_id_storage_engines_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_analytics_assets_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_asset_asset_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_category_category_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_patch200_response_spec.rb +0 -42
|
@@ -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: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.25.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -19,58 +19,115 @@ 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
|
+
# Create single API key. Returns the actual sk_ key (only time it's exposed) and api_key_id for future operations.
|
|
23
|
+
# @param company_id [String] Unique identifier for the Company
|
|
24
|
+
# @param api_keys_input [ApiKeysInput]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
27
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
28
|
+
# @option opts [String] :sort_by Field to sort by
|
|
29
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
30
|
+
# @option opts [String] :search Search term to filter results
|
|
31
|
+
# @return [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)
|
|
29
34
|
data
|
|
30
35
|
end
|
|
31
36
|
|
|
32
|
-
#
|
|
33
|
-
# @param company_id [String]
|
|
34
|
-
# @param
|
|
37
|
+
# Create single API key. Returns the actual sk_ key (only time it's exposed) and api_key_id for future operations.
|
|
38
|
+
# @param company_id [String] Unique identifier for the Company
|
|
39
|
+
# @param api_keys_input [ApiKeysInput]
|
|
35
40
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @
|
|
37
|
-
|
|
41
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
42
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
43
|
+
# @option opts [String] :sort_by Field to sort by
|
|
44
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
45
|
+
# @option opts [String] :search Search term to filter results
|
|
46
|
+
# @return [Array<(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 = {})
|
|
38
48
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: APIKeysApi.
|
|
49
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.create_api_keys ...'
|
|
40
50
|
end
|
|
41
51
|
# verify the required parameter 'company_id' is set
|
|
42
52
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.create_api_keys"
|
|
44
54
|
end
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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.'
|
|
48
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
|
+
|
|
49
96
|
# resource path
|
|
50
|
-
local_var_path = '/companies/{company_id}/api-keys
|
|
97
|
+
local_var_path = '/companies/{company_id}/api-keys'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
51
98
|
|
|
52
99
|
# query parameters
|
|
53
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?
|
|
54
106
|
|
|
55
107
|
# header parameters
|
|
56
108
|
header_params = opts[:header_params] || {}
|
|
57
109
|
# HTTP header 'Accept' (if needed)
|
|
58
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
|
|
59
116
|
|
|
60
117
|
# form parameters
|
|
61
118
|
form_params = opts[:form_params] || {}
|
|
62
119
|
|
|
63
120
|
# http body (model)
|
|
64
|
-
post_body = opts[:debug_body]
|
|
121
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(api_keys_input)
|
|
65
122
|
|
|
66
123
|
# return_type
|
|
67
|
-
return_type = opts[:debug_return_type] || '
|
|
124
|
+
return_type = opts[:debug_return_type] || 'CreateApiKeys200Response'
|
|
68
125
|
|
|
69
126
|
# auth_names
|
|
70
127
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
71
128
|
|
|
72
129
|
new_options = opts.merge(
|
|
73
|
-
:operation => :"APIKeysApi.
|
|
130
|
+
:operation => :"APIKeysApi.create_api_keys",
|
|
74
131
|
:header_params => header_params,
|
|
75
132
|
:query_params => query_params,
|
|
76
133
|
:form_params => form_params,
|
|
@@ -79,42 +136,74 @@ module SparteraApiSdk
|
|
|
79
136
|
:return_type => return_type
|
|
80
137
|
)
|
|
81
138
|
|
|
82
|
-
data, status_code, headers = @api_client.call_api(:
|
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
83
140
|
if @api_client.config.debugging
|
|
84
|
-
@api_client.config.logger.debug "API called: APIKeysApi#
|
|
141
|
+
@api_client.config.logger.debug "API called: APIKeysApi#create_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
85
142
|
end
|
|
86
143
|
return data, status_code, headers
|
|
87
144
|
end
|
|
88
145
|
|
|
89
|
-
#
|
|
90
|
-
# @param company_id [String]
|
|
91
|
-
# @param api_key_id [String]
|
|
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]
|
|
92
150
|
# @param [Hash] opts the optional parameters
|
|
93
|
-
# @return [
|
|
94
|
-
def
|
|
95
|
-
data, _status_code, _headers =
|
|
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)
|
|
96
154
|
data
|
|
97
155
|
end
|
|
98
156
|
|
|
99
|
-
#
|
|
100
|
-
# @param company_id [String]
|
|
101
|
-
# @param api_key_id [String]
|
|
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]
|
|
102
161
|
# @param [Hash] opts the optional parameters
|
|
103
|
-
# @return [Array<(
|
|
104
|
-
def
|
|
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 = {})
|
|
105
164
|
if @api_client.config.debugging
|
|
106
|
-
@api_client.config.logger.debug 'Calling API: APIKeysApi.
|
|
165
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.create_api_keys_api_keys_revoke ...'
|
|
107
166
|
end
|
|
108
167
|
# verify the required parameter 'company_id' is set
|
|
109
168
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
110
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.
|
|
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.'
|
|
111
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
|
+
|
|
112
184
|
# verify the required parameter 'api_key_id' is set
|
|
113
185
|
if @api_client.config.client_side_validation && api_key_id.nil?
|
|
114
|
-
fail ArgumentError, "Missing the required parameter 'api_key_id' when calling APIKeysApi.
|
|
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"
|
|
115
204
|
end
|
|
116
205
|
# resource path
|
|
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))
|
|
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))
|
|
118
207
|
|
|
119
208
|
# query parameters
|
|
120
209
|
query_params = opts[:query_params] || {}
|
|
@@ -123,21 +212,26 @@ module SparteraApiSdk
|
|
|
123
212
|
header_params = opts[:header_params] || {}
|
|
124
213
|
# HTTP header 'Accept' (if needed)
|
|
125
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
|
|
126
220
|
|
|
127
221
|
# form parameters
|
|
128
222
|
form_params = opts[:form_params] || {}
|
|
129
223
|
|
|
130
224
|
# http body (model)
|
|
131
|
-
post_body = opts[:debug_body]
|
|
225
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(api_keys_input)
|
|
132
226
|
|
|
133
227
|
# return_type
|
|
134
|
-
return_type = opts[:debug_return_type] || '
|
|
228
|
+
return_type = opts[:debug_return_type] || 'CreateApiKeys200Response'
|
|
135
229
|
|
|
136
230
|
# auth_names
|
|
137
231
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
138
232
|
|
|
139
233
|
new_options = opts.merge(
|
|
140
|
-
:operation => :"APIKeysApi.
|
|
234
|
+
:operation => :"APIKeysApi.create_api_keys_api_keys_revoke",
|
|
141
235
|
:header_params => header_params,
|
|
142
236
|
:query_params => query_params,
|
|
143
237
|
:form_params => form_params,
|
|
@@ -146,46 +240,66 @@ module SparteraApiSdk
|
|
|
146
240
|
:return_type => return_type
|
|
147
241
|
)
|
|
148
242
|
|
|
149
|
-
data, status_code, headers = @api_client.call_api(:
|
|
243
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
150
244
|
if @api_client.config.debugging
|
|
151
|
-
@api_client.config.logger.debug "API called: APIKeysApi#
|
|
245
|
+
@api_client.config.logger.debug "API called: APIKeysApi#create_api_keys_api_keys_revoke\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
152
246
|
end
|
|
153
247
|
return data, status_code, headers
|
|
154
248
|
end
|
|
155
249
|
|
|
156
|
-
#
|
|
157
|
-
# @param company_id [String]
|
|
158
|
-
# @param api_key_id [String]
|
|
159
|
-
# @param api_keys_update [ApiKeysUpdate]
|
|
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
|
|
160
253
|
# @param [Hash] opts the optional parameters
|
|
161
|
-
# @return [
|
|
162
|
-
def
|
|
163
|
-
data, _status_code, _headers =
|
|
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)
|
|
164
257
|
data
|
|
165
258
|
end
|
|
166
259
|
|
|
167
|
-
#
|
|
168
|
-
# @param company_id [String]
|
|
169
|
-
# @param api_key_id [String]
|
|
170
|
-
# @param api_keys_update [ApiKeysUpdate]
|
|
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
|
|
171
263
|
# @param [Hash] opts the optional parameters
|
|
172
|
-
# @return [Array<(
|
|
173
|
-
def
|
|
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 = {})
|
|
174
266
|
if @api_client.config.debugging
|
|
175
|
-
@api_client.config.logger.debug 'Calling API: APIKeysApi.
|
|
267
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.delete_api_keys ...'
|
|
176
268
|
end
|
|
177
269
|
# verify the required parameter 'company_id' is set
|
|
178
270
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
179
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.
|
|
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}."
|
|
180
284
|
end
|
|
285
|
+
|
|
181
286
|
# verify the required parameter 'api_key_id' is set
|
|
182
287
|
if @api_client.config.client_side_validation && api_key_id.nil?
|
|
183
|
-
fail ArgumentError, "Missing the required parameter 'api_key_id' when calling APIKeysApi.
|
|
288
|
+
fail ArgumentError, "Missing the required parameter 'api_key_id' when calling APIKeysApi.delete_api_keys"
|
|
184
289
|
end
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
fail ArgumentError, "Missing the required parameter 'api_keys_update' when calling APIKeysApi.companies_company_id_api_keys_api_key_id_patch"
|
|
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.'
|
|
188
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.'
|
|
296
|
+
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
|
+
|
|
189
303
|
# resource path
|
|
190
304
|
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))
|
|
191
305
|
|
|
@@ -196,26 +310,21 @@ module SparteraApiSdk
|
|
|
196
310
|
header_params = opts[:header_params] || {}
|
|
197
311
|
# HTTP header 'Accept' (if needed)
|
|
198
312
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
199
|
-
# HTTP header 'Content-Type'
|
|
200
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
201
|
-
if !content_type.nil?
|
|
202
|
-
header_params['Content-Type'] = content_type
|
|
203
|
-
end
|
|
204
313
|
|
|
205
314
|
# form parameters
|
|
206
315
|
form_params = opts[:form_params] || {}
|
|
207
316
|
|
|
208
317
|
# http body (model)
|
|
209
|
-
post_body = opts[:debug_body]
|
|
318
|
+
post_body = opts[:debug_body]
|
|
210
319
|
|
|
211
320
|
# return_type
|
|
212
|
-
return_type = opts[:debug_return_type] || '
|
|
321
|
+
return_type = opts[:debug_return_type] || 'DeleteApiKeys200Response'
|
|
213
322
|
|
|
214
323
|
# auth_names
|
|
215
324
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
216
325
|
|
|
217
326
|
new_options = opts.merge(
|
|
218
|
-
:operation => :"APIKeysApi.
|
|
327
|
+
:operation => :"APIKeysApi.delete_api_keys",
|
|
219
328
|
:header_params => header_params,
|
|
220
329
|
:query_params => query_params,
|
|
221
330
|
:form_params => form_params,
|
|
@@ -224,48 +333,68 @@ module SparteraApiSdk
|
|
|
224
333
|
:return_type => return_type
|
|
225
334
|
)
|
|
226
335
|
|
|
227
|
-
data, status_code, headers = @api_client.call_api(:
|
|
336
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
228
337
|
if @api_client.config.debugging
|
|
229
|
-
@api_client.config.logger.debug "API called: APIKeysApi#
|
|
338
|
+
@api_client.config.logger.debug "API called: APIKeysApi#delete_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
230
339
|
end
|
|
231
340
|
return data, status_code, headers
|
|
232
341
|
end
|
|
233
342
|
|
|
234
|
-
#
|
|
235
|
-
# @param company_id [String]
|
|
236
|
-
# @param api_key_id [String]
|
|
237
|
-
# @param api_keys_input [ApiKeysInput]
|
|
343
|
+
# Get single API key by ID. Returns masked API key for security (sk_****1234).
|
|
344
|
+
# @param company_id [String] Unique identifier for the Company
|
|
345
|
+
# @param api_key_id [String] Unique identifier for the Api Key
|
|
238
346
|
# @param [Hash] opts the optional parameters
|
|
239
|
-
# @return [
|
|
240
|
-
def
|
|
241
|
-
data, _status_code, _headers =
|
|
347
|
+
# @return [GetApiKeysById200Response]
|
|
348
|
+
def get_api_keys_by_id(company_id, api_key_id, opts = {})
|
|
349
|
+
data, _status_code, _headers = get_api_keys_by_id_with_http_info(company_id, api_key_id, opts)
|
|
242
350
|
data
|
|
243
351
|
end
|
|
244
352
|
|
|
245
|
-
#
|
|
246
|
-
# @param company_id [String]
|
|
247
|
-
# @param api_key_id [String]
|
|
248
|
-
# @param api_keys_input [ApiKeysInput]
|
|
353
|
+
# Get single API key by ID. Returns masked API key for security (sk_****1234).
|
|
354
|
+
# @param company_id [String] Unique identifier for the Company
|
|
355
|
+
# @param api_key_id [String] Unique identifier for the Api Key
|
|
249
356
|
# @param [Hash] opts the optional parameters
|
|
250
|
-
# @return [Array<(
|
|
251
|
-
def
|
|
357
|
+
# @return [Array<(GetApiKeysById200Response, Integer, Hash)>] GetApiKeysById200Response data, response status code and response headers
|
|
358
|
+
def get_api_keys_by_id_with_http_info(company_id, api_key_id, opts = {})
|
|
252
359
|
if @api_client.config.debugging
|
|
253
|
-
@api_client.config.logger.debug 'Calling API: APIKeysApi.
|
|
360
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.get_api_keys_by_id ...'
|
|
254
361
|
end
|
|
255
362
|
# verify the required parameter 'company_id' is set
|
|
256
363
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
257
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.
|
|
364
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.get_api_keys_by_id"
|
|
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.'
|
|
258
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}."
|
|
377
|
+
end
|
|
378
|
+
|
|
259
379
|
# verify the required parameter 'api_key_id' is set
|
|
260
380
|
if @api_client.config.client_side_validation && api_key_id.nil?
|
|
261
|
-
fail ArgumentError, "Missing the required parameter 'api_key_id' when calling APIKeysApi.
|
|
381
|
+
fail ArgumentError, "Missing the required parameter 'api_key_id' when calling APIKeysApi.get_api_keys_by_id"
|
|
262
382
|
end
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
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}."
|
|
266
394
|
end
|
|
395
|
+
|
|
267
396
|
# resource path
|
|
268
|
-
local_var_path = '/companies/{company_id}/api-keys/{api_key_id}
|
|
397
|
+
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))
|
|
269
398
|
|
|
270
399
|
# query parameters
|
|
271
400
|
query_params = opts[:query_params] || {}
|
|
@@ -274,26 +403,21 @@ module SparteraApiSdk
|
|
|
274
403
|
header_params = opts[:header_params] || {}
|
|
275
404
|
# HTTP header 'Accept' (if needed)
|
|
276
405
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
277
|
-
# HTTP header 'Content-Type'
|
|
278
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
279
|
-
if !content_type.nil?
|
|
280
|
-
header_params['Content-Type'] = content_type
|
|
281
|
-
end
|
|
282
406
|
|
|
283
407
|
# form parameters
|
|
284
408
|
form_params = opts[:form_params] || {}
|
|
285
409
|
|
|
286
410
|
# http body (model)
|
|
287
|
-
post_body = opts[:debug_body]
|
|
411
|
+
post_body = opts[:debug_body]
|
|
288
412
|
|
|
289
413
|
# return_type
|
|
290
|
-
return_type = opts[:debug_return_type] || '
|
|
414
|
+
return_type = opts[:debug_return_type] || 'GetApiKeysById200Response'
|
|
291
415
|
|
|
292
416
|
# auth_names
|
|
293
417
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
294
418
|
|
|
295
419
|
new_options = opts.merge(
|
|
296
|
-
:operation => :"APIKeysApi.
|
|
420
|
+
:operation => :"APIKeysApi.get_api_keys_by_id",
|
|
297
421
|
:header_params => header_params,
|
|
298
422
|
:query_params => query_params,
|
|
299
423
|
:form_params => form_params,
|
|
@@ -302,40 +426,66 @@ module SparteraApiSdk
|
|
|
302
426
|
:return_type => return_type
|
|
303
427
|
)
|
|
304
428
|
|
|
305
|
-
data, status_code, headers = @api_client.call_api(:
|
|
429
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
306
430
|
if @api_client.config.debugging
|
|
307
|
-
@api_client.config.logger.debug "API called: APIKeysApi#
|
|
431
|
+
@api_client.config.logger.debug "API called: APIKeysApi#get_api_keys_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
308
432
|
end
|
|
309
433
|
return data, status_code, headers
|
|
310
434
|
end
|
|
311
435
|
|
|
312
436
|
# Get usage statistics for a specific API key. Returns usage count, last used date, failed attempts, etc.
|
|
313
|
-
# @param company_id [String]
|
|
314
|
-
# @param api_key_id [String]
|
|
437
|
+
# @param company_id [String] Unique identifier for the Company
|
|
438
|
+
# @param api_key_id [String] Unique identifier for the Api Key
|
|
315
439
|
# @param [Hash] opts the optional parameters
|
|
316
|
-
# @return [
|
|
317
|
-
def
|
|
318
|
-
data, _status_code, _headers =
|
|
440
|
+
# @return [GetApiKeysById200Response]
|
|
441
|
+
def get_api_keys_by_id_api_keys_stats(company_id, api_key_id, opts = {})
|
|
442
|
+
data, _status_code, _headers = get_api_keys_by_id_api_keys_stats_with_http_info(company_id, api_key_id, opts)
|
|
319
443
|
data
|
|
320
444
|
end
|
|
321
445
|
|
|
322
446
|
# Get usage statistics for a specific API key. Returns usage count, last used date, failed attempts, etc.
|
|
323
|
-
# @param company_id [String]
|
|
324
|
-
# @param api_key_id [String]
|
|
447
|
+
# @param company_id [String] Unique identifier for the Company
|
|
448
|
+
# @param api_key_id [String] Unique identifier for the Api Key
|
|
325
449
|
# @param [Hash] opts the optional parameters
|
|
326
|
-
# @return [Array<(
|
|
327
|
-
def
|
|
450
|
+
# @return [Array<(GetApiKeysById200Response, Integer, Hash)>] GetApiKeysById200Response data, response status code and response headers
|
|
451
|
+
def get_api_keys_by_id_api_keys_stats_with_http_info(company_id, api_key_id, opts = {})
|
|
328
452
|
if @api_client.config.debugging
|
|
329
|
-
@api_client.config.logger.debug 'Calling API: APIKeysApi.
|
|
453
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.get_api_keys_by_id_api_keys_stats ...'
|
|
330
454
|
end
|
|
331
455
|
# verify the required parameter 'company_id' is set
|
|
332
456
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
333
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.
|
|
457
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.get_api_keys_by_id_api_keys_stats"
|
|
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.'
|
|
334
465
|
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
|
+
|
|
335
472
|
# verify the required parameter 'api_key_id' is set
|
|
336
473
|
if @api_client.config.client_side_validation && api_key_id.nil?
|
|
337
|
-
fail ArgumentError, "Missing the required parameter 'api_key_id' when calling APIKeysApi.
|
|
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.'
|
|
338
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
|
+
|
|
339
489
|
# resource path
|
|
340
490
|
local_var_path = '/companies/{company_id}/api-keys/{api_key_id}/stats'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'api_key_id' + '}', CGI.escape(api_key_id.to_s))
|
|
341
491
|
|
|
@@ -354,13 +504,13 @@ module SparteraApiSdk
|
|
|
354
504
|
post_body = opts[:debug_body]
|
|
355
505
|
|
|
356
506
|
# return_type
|
|
357
|
-
return_type = opts[:debug_return_type] || '
|
|
507
|
+
return_type = opts[:debug_return_type] || 'GetApiKeysById200Response'
|
|
358
508
|
|
|
359
509
|
# auth_names
|
|
360
510
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
361
511
|
|
|
362
512
|
new_options = opts.merge(
|
|
363
|
-
:operation => :"APIKeysApi.
|
|
513
|
+
:operation => :"APIKeysApi.get_api_keys_by_id_api_keys_stats",
|
|
364
514
|
:header_params => header_params,
|
|
365
515
|
:query_params => query_params,
|
|
366
516
|
:form_params => form_params,
|
|
@@ -371,37 +521,89 @@ module SparteraApiSdk
|
|
|
371
521
|
|
|
372
522
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
373
523
|
if @api_client.config.debugging
|
|
374
|
-
@api_client.config.logger.debug "API called: APIKeysApi#
|
|
524
|
+
@api_client.config.logger.debug "API called: APIKeysApi#get_api_keys_by_id_api_keys_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
375
525
|
end
|
|
376
526
|
return data, status_code, headers
|
|
377
527
|
end
|
|
378
528
|
|
|
379
529
|
# Get all API keys for a company. Returns masked API keys for security (sk_****1234).
|
|
380
|
-
# @param company_id [String]
|
|
530
|
+
# @param company_id [String] Unique identifier for the Company
|
|
381
531
|
# @param [Hash] opts the optional parameters
|
|
382
|
-
# @
|
|
383
|
-
|
|
384
|
-
|
|
532
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
533
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
534
|
+
# @option opts [String] :sort_by Field to sort by
|
|
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)
|
|
385
540
|
data
|
|
386
541
|
end
|
|
387
542
|
|
|
388
543
|
# Get all API keys for a company. Returns masked API keys for security (sk_****1234).
|
|
389
|
-
# @param company_id [String]
|
|
544
|
+
# @param company_id [String] Unique identifier for the Company
|
|
390
545
|
# @param [Hash] opts the optional parameters
|
|
391
|
-
# @
|
|
392
|
-
|
|
546
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
547
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
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 = {})
|
|
393
553
|
if @api_client.config.debugging
|
|
394
|
-
@api_client.config.logger.debug 'Calling API: APIKeysApi.
|
|
554
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.list_api_keys ...'
|
|
395
555
|
end
|
|
396
556
|
# verify the required parameter 'company_id' is set
|
|
397
557
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
398
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.
|
|
558
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.list_api_keys"
|
|
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.'
|
|
399
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}"
|
|
588
|
+
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
|
+
|
|
400
597
|
# resource path
|
|
401
598
|
local_var_path = '/companies/{company_id}/api-keys'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
402
599
|
|
|
403
600
|
# query parameters
|
|
404
601
|
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?
|
|
405
607
|
|
|
406
608
|
# header parameters
|
|
407
609
|
header_params = opts[:header_params] || {}
|
|
@@ -415,13 +617,13 @@ module SparteraApiSdk
|
|
|
415
617
|
post_body = opts[:debug_body]
|
|
416
618
|
|
|
417
619
|
# return_type
|
|
418
|
-
return_type = opts[:debug_return_type] || '
|
|
620
|
+
return_type = opts[:debug_return_type] || 'ListApiKeys200Response'
|
|
419
621
|
|
|
420
622
|
# auth_names
|
|
421
623
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
422
624
|
|
|
423
625
|
new_options = opts.merge(
|
|
424
|
-
:operation => :"APIKeysApi.
|
|
626
|
+
:operation => :"APIKeysApi.list_api_keys",
|
|
425
627
|
:header_params => header_params,
|
|
426
628
|
:query_params => query_params,
|
|
427
629
|
:form_params => form_params,
|
|
@@ -432,40 +634,72 @@ module SparteraApiSdk
|
|
|
432
634
|
|
|
433
635
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
434
636
|
if @api_client.config.debugging
|
|
435
|
-
@api_client.config.logger.debug "API called: APIKeysApi#
|
|
637
|
+
@api_client.config.logger.debug "API called: APIKeysApi#list_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
436
638
|
end
|
|
437
639
|
return data, status_code, headers
|
|
438
640
|
end
|
|
439
641
|
|
|
440
|
-
#
|
|
441
|
-
# @param company_id [String]
|
|
442
|
-
# @param
|
|
642
|
+
# Update an existing API key by ID. Can update metadata like name, expiration, rate limits, etc. Cannot update the actual key value (for security).
|
|
643
|
+
# @param company_id [String] Unique identifier for the Company
|
|
644
|
+
# @param api_key_id [String] Unique identifier for the Api Key
|
|
645
|
+
# @param api_keys_update [ApiKeysUpdate]
|
|
443
646
|
# @param [Hash] opts the optional parameters
|
|
444
|
-
# @return [
|
|
445
|
-
def
|
|
446
|
-
data, _status_code, _headers =
|
|
647
|
+
# @return [UpdateApiKeys200Response]
|
|
648
|
+
def update_api_keys(company_id, api_key_id, api_keys_update, opts = {})
|
|
649
|
+
data, _status_code, _headers = update_api_keys_with_http_info(company_id, api_key_id, api_keys_update, opts)
|
|
447
650
|
data
|
|
448
651
|
end
|
|
449
652
|
|
|
450
|
-
#
|
|
451
|
-
# @param company_id [String]
|
|
452
|
-
# @param
|
|
653
|
+
# Update an existing API key by ID. Can update metadata like name, expiration, rate limits, etc. Cannot update the actual key value (for security).
|
|
654
|
+
# @param company_id [String] Unique identifier for the Company
|
|
655
|
+
# @param api_key_id [String] Unique identifier for the Api Key
|
|
656
|
+
# @param api_keys_update [ApiKeysUpdate]
|
|
453
657
|
# @param [Hash] opts the optional parameters
|
|
454
|
-
# @return [Array<(
|
|
455
|
-
def
|
|
658
|
+
# @return [Array<(UpdateApiKeys200Response, Integer, Hash)>] UpdateApiKeys200Response data, response status code and response headers
|
|
659
|
+
def update_api_keys_with_http_info(company_id, api_key_id, api_keys_update, opts = {})
|
|
456
660
|
if @api_client.config.debugging
|
|
457
|
-
@api_client.config.logger.debug 'Calling API: APIKeysApi.
|
|
661
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.update_api_keys ...'
|
|
458
662
|
end
|
|
459
663
|
# verify the required parameter 'company_id' is set
|
|
460
664
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
461
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.
|
|
665
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling APIKeysApi.update_api_keys"
|
|
462
666
|
end
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
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"
|
|
683
|
+
end
|
|
684
|
+
if @api_client.config.client_side_validation && api_key_id.to_s.length > 255
|
|
685
|
+
fail ArgumentError, 'invalid value for "api_key_id" when calling APIKeysApi.update_api_keys, the character length must be smaller than or equal to 255.'
|
|
686
|
+
end
|
|
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"
|
|
466
700
|
end
|
|
467
701
|
# resource path
|
|
468
|
-
local_var_path = '/companies/{company_id}/api-keys'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
702
|
+
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))
|
|
469
703
|
|
|
470
704
|
# query parameters
|
|
471
705
|
query_params = opts[:query_params] || {}
|
|
@@ -484,16 +718,16 @@ module SparteraApiSdk
|
|
|
484
718
|
form_params = opts[:form_params] || {}
|
|
485
719
|
|
|
486
720
|
# http body (model)
|
|
487
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
721
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(api_keys_update)
|
|
488
722
|
|
|
489
723
|
# return_type
|
|
490
|
-
return_type = opts[:debug_return_type] || '
|
|
724
|
+
return_type = opts[:debug_return_type] || 'UpdateApiKeys200Response'
|
|
491
725
|
|
|
492
726
|
# auth_names
|
|
493
727
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
494
728
|
|
|
495
729
|
new_options = opts.merge(
|
|
496
|
-
:operation => :"APIKeysApi.
|
|
730
|
+
:operation => :"APIKeysApi.update_api_keys",
|
|
497
731
|
:header_params => header_params,
|
|
498
732
|
:query_params => query_params,
|
|
499
733
|
:form_params => form_params,
|
|
@@ -502,9 +736,9 @@ module SparteraApiSdk
|
|
|
502
736
|
:return_type => return_type
|
|
503
737
|
)
|
|
504
738
|
|
|
505
|
-
data, status_code, headers = @api_client.call_api(:
|
|
739
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
506
740
|
if @api_client.config.debugging
|
|
507
|
-
@api_client.config.logger.debug "API called: APIKeysApi#
|
|
741
|
+
@api_client.config.logger.debug "API called: APIKeysApi#update_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
508
742
|
end
|
|
509
743
|
return data, status_code, headers
|
|
510
744
|
end
|