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