spartera_api_sdk 1.0.74 → 1.0.77
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/docs/APIKeysApi.md +210 -60
- data/docs/Alerts.md +30 -0
- data/docs/AlertsApi.md +20 -20
- data/docs/AlertsInput.md +24 -0
- data/docs/AlertsUpdate.md +24 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response.md → AnalyzeCompanyHandleAssetsAssetSlugGet200Response.md} +3 -3
- data/docs/ApiKeys.md +32 -0
- data/docs/ApiKeysInput.md +26 -0
- data/docs/ApiKeysUpdate.md +26 -0
- data/docs/AssetPriceHistory.md +28 -0
- data/docs/AssetPriceHistoryApi.md +56 -48
- data/docs/AssetPriceHistoryInput.md +22 -0
- data/docs/AssetPriceHistoryUpdate.md +22 -0
- data/docs/Assets.md +108 -0
- data/docs/AssetsApi.md +28 -28
- data/docs/AssetsInput.md +94 -0
- data/docs/AssetsUpdate.md +94 -0
- data/docs/{Cloudprovider.md → CloudProviders.md} +8 -10
- data/docs/CloudProvidersApi.md +8 -8
- data/docs/{CompaniesCompanyIdAssetsAssetIdGet200Response.md → CloudProvidersGet200Response.md} +3 -3
- data/docs/CloudProvidersInput.md +22 -0
- data/docs/CloudProvidersProviderIdGet200Response.md +20 -0
- data/docs/CloudProvidersProviderIdStorageEnginesGet200Response.md +20 -0
- data/docs/CloudProvidersUpdate.md +22 -0
- data/docs/{Company.md → Companies.md} +13 -15
- data/docs/CompaniesApi.md +41 -39
- data/docs/CompaniesCompanyIdAnalyticsAssetsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdApiKeysGet200Response.md +1 -1
- data/docs/CompaniesCompanyIdApiKeysPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdApiKeysPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsGet200Response.md +1 -1
- data/docs/CompaniesCompanyIdConnectionsConnectionIdGet200Response.md +1 -1
- data/docs/CompaniesCompanyIdConnectionsGet200Response.md +1 -1
- data/docs/CompaniesCompanyIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersGet200Response.md +1 -1
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAssetAssetIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsGet200Response.md +1 -1
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdGet200Response.md → CompaniesCompanyIdUsersUserIdFavoritesCategoryCategoryGet200Response.md} +3 -3
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesGet200Response.md +1 -1
- data/docs/CompaniesCompanyIdUsersUserIdGet200Response.md +1 -1
- data/docs/CompaniesInput.md +36 -0
- data/docs/CompaniesUpdate.md +36 -0
- data/docs/Connections.md +38 -0
- data/docs/ConnectionsApi.md +12 -12
- data/docs/ConnectionsInput.md +32 -0
- data/docs/ConnectionsUpdate.md +32 -0
- data/docs/Favorites.md +34 -0
- data/docs/FavoritesApi.md +24 -24
- data/docs/FavoritesInput.md +28 -0
- data/docs/FavoritesUpdate.md +28 -0
- data/docs/JobFunctions.md +24 -0
- data/docs/JobFunctionsApi.md +144 -0
- data/docs/JobFunctionsFunctionIdGet200Response.md +20 -0
- data/docs/JobFunctionsGet200Response.md +20 -0
- data/docs/JobFunctionsInput.md +18 -0
- data/docs/JobFunctionsUpdate.md +18 -0
- data/docs/StorageEnginesApi.md +8 -8
- data/docs/{User.md → Users.md} +9 -11
- data/docs/UsersApi.md +20 -20
- data/docs/UsersInput.md +26 -0
- data/docs/UsersUpdate.md +26 -0
- data/lib/spartera_api_sdk/api/alerts_api.rb +25 -25
- data/lib/spartera_api_sdk/api/api_keys_api.rb +222 -55
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +87 -43
- data/lib/spartera_api_sdk/api/assets_api.rb +37 -37
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +7 -7
- data/lib/spartera_api_sdk/api/companies_api.rb +43 -32
- data/lib/spartera_api_sdk/api/connections_api.rb +19 -19
- data/lib/spartera_api_sdk/api/favorites_api.rb +28 -28
- data/lib/spartera_api_sdk/api/job_functions_api.rb +138 -0
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +7 -7
- data/lib/spartera_api_sdk/api/users_api.rb +24 -24
- data/lib/spartera_api_sdk/api_client.rb +1 -1
- data/lib/spartera_api_sdk/api_error.rb +1 -1
- data/lib/spartera_api_sdk/configuration.rb +1 -1
- data/lib/spartera_api_sdk/models/{alert.rb → alerts.rb} +38 -64
- data/lib/spartera_api_sdk/models/alerts_input.rb +283 -0
- data/lib/spartera_api_sdk/models/{me_get200_response_token_metadata.rb → alerts_update.rb} +31 -34
- data/lib/spartera_api_sdk/models/analyze_company_handle_assets_asset_slug_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/{apikey.rb → api_keys.rb} +34 -64
- data/lib/spartera_api_sdk/models/api_keys_input.rb +296 -0
- data/lib/spartera_api_sdk/models/api_keys_update.rb +262 -0
- data/lib/spartera_api_sdk/models/{assetpricehistory.rb → asset_price_history.rb} +27 -88
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +257 -0
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +240 -0
- data/lib/spartera_api_sdk/models/assets.rb +879 -0
- data/lib/spartera_api_sdk/models/{asset.rb → assets_input.rb} +160 -95
- data/lib/spartera_api_sdk/models/assets_update.rb +710 -0
- data/lib/spartera_api_sdk/models/{cloudprovider.rb → cloud_providers.rb} +27 -36
- data/lib/spartera_api_sdk/models/cloud_providers_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +256 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_get200_response.rb → cloud_providers_provider_id_get200_response.rb} +5 -5
- data/lib/spartera_api_sdk/models/cloud_providers_provider_id_storage_engines_get200_response.rb +246 -0
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +239 -0
- data/lib/spartera_api_sdk/models/{company.rb → companies.rb} +33 -39
- data/lib/spartera_api_sdk/models/companies_company_id_analytics_assets_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_get200_response.rb +22 -4
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_alert_id_get200_response.rb → companies_company_id_assets_asset_id_prices_aph_id_get200_response.rb} +5 -5
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_get200_response.rb +2 -2
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_get200_response.rb +2 -2
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_connections_get200_response.rb +2 -2
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_get200_response.rb +2 -2
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_asset_asset_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_get200_response.rb +2 -2
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_delete200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_delete200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_favorite_id_get200_response.rb → companies_company_id_users_user_id_favorites_category_category_get200_response.rb} +5 -5
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_get200_response.rb +2 -2
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_get200_response.rb +2 -2
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response_data.rb +1 -1
- data/lib/spartera_api_sdk/models/companies_input.rb +339 -0
- data/lib/spartera_api_sdk/models/companies_update.rb +305 -0
- data/lib/spartera_api_sdk/models/{connection.rb → connections.rb} +57 -111
- data/lib/spartera_api_sdk/models/connections_input.rb +353 -0
- data/lib/spartera_api_sdk/models/connections_update.rb +319 -0
- data/lib/spartera_api_sdk/models/error.rb +1 -1
- data/lib/spartera_api_sdk/models/{favorite.rb → favorites.rb} +30 -36
- data/lib/spartera_api_sdk/models/favorites_input.rb +303 -0
- data/lib/spartera_api_sdk/models/favorites_update.rb +269 -0
- data/lib/spartera_api_sdk/models/inline_object.rb +1 -1
- data/lib/spartera_api_sdk/models/inline_object1.rb +1 -1
- data/lib/spartera_api_sdk/models/inline_object2.rb +1 -1
- data/lib/spartera_api_sdk/models/inline_object3.rb +1 -1
- data/lib/spartera_api_sdk/models/job_functions.rb +282 -0
- data/lib/spartera_api_sdk/models/job_functions_function_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/job_functions_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/{me_get200_response_api_key_info.rb → job_functions_input.rb} +29 -23
- data/lib/spartera_api_sdk/models/job_functions_update.rb +221 -0
- data/lib/spartera_api_sdk/models/{user.rb → users.rb} +56 -40
- data/lib/spartera_api_sdk/models/{me_get200_response_profile.rb → users_input.rb} +35 -71
- data/lib/spartera_api_sdk/models/users_update.rb +292 -0
- data/lib/spartera_api_sdk/version.rb +1 -1
- data/lib/spartera_api_sdk.rb +59 -17
- data/spec/api/alerts_api_spec.rb +5 -5
- data/spec/api/api_keys_api_spec.rb +43 -16
- data/spec/api/asset_price_history_api_spec.rb +14 -10
- data/spec/api/assets_api_spec.rb +7 -7
- data/spec/api/cloud_providers_api_spec.rb +3 -3
- data/spec/api/companies_api_spec.rb +11 -10
- data/spec/api/connections_api_spec.rb +3 -3
- data/spec/api/favorites_api_spec.rb +6 -6
- data/spec/api/job_functions_api_spec.rb +56 -0
- data/spec/api/storage_engines_api_spec.rb +3 -3
- data/spec/api/users_api_spec.rb +5 -5
- data/spec/models/{me_get200_response_token_metadata_spec.rb → alerts_input_spec.rb} +11 -11
- data/spec/models/alerts_spec.rb +72 -0
- data/spec/models/alerts_update_spec.rb +54 -0
- data/spec/models/analyze_company_handle_assets_asset_slug_get200_response_spec.rb +42 -0
- data/spec/models/api_keys_input_spec.rb +60 -0
- data/spec/models/{apikey_spec.rb → api_keys_spec.rb} +15 -27
- data/spec/models/api_keys_update_spec.rb +60 -0
- data/spec/models/asset_price_history_input_spec.rb +48 -0
- data/spec/models/asset_price_history_spec.rb +66 -0
- data/spec/models/asset_price_history_update_spec.rb +48 -0
- data/spec/models/assets_input_spec.rb +300 -0
- data/spec/models/{asset_spec.rb → assets_spec.rb} +59 -25
- data/spec/models/assets_update_spec.rb +300 -0
- data/spec/models/cloud_providers_get200_response_spec.rb +42 -0
- data/spec/models/cloud_providers_input_spec.rb +48 -0
- data/spec/models/cloud_providers_provider_id_get200_response_spec.rb +42 -0
- data/spec/models/cloud_providers_provider_id_storage_engines_get200_response_spec.rb +42 -0
- data/spec/models/{cloudprovider_spec.rb → cloud_providers_spec.rb} +13 -19
- data/spec/models/cloud_providers_update_spec.rb +48 -0
- data/spec/models/companies_company_id_analytics_assets_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_api_keys_api_key_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_api_keys_get200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_api_keys_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_api_keys_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_assets_asset_id_get200_response_spec.rb → companies_company_id_assets_asset_id_prices_get200_response_spec.rb} +7 -7
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_get200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_assets_post200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_assets_post200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_connections_connection_id_get200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_connections_get200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_connections_post200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_connections_post200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_get200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_users_post200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_users_post200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_spec.rb +1 -1
- data/spec/models/{companies_company_id_users_user_id_alerts_alert_id_get200_response_spec.rb → companies_company_id_users_user_id_alerts_asset_asset_id_get200_response_spec.rb} +7 -7
- data/spec/models/companies_company_id_users_user_id_alerts_get200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_delete200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_delete200_response_spec.rb +1 -1
- data/spec/models/{companies_company_id_users_user_id_favorites_favorite_id_get200_response_spec.rb → companies_company_id_users_user_id_favorites_category_category_get200_response_spec.rb} +7 -7
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_favorites_get200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_get200_response_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_patch200_response_data_spec.rb +1 -1
- data/spec/models/companies_company_id_users_user_id_patch200_response_spec.rb +1 -1
- data/spec/models/{alert_spec.rb → companies_input_spec.rb} +17 -17
- data/spec/models/{company_spec.rb → companies_spec.rb} +19 -25
- data/spec/models/companies_update_spec.rb +90 -0
- data/spec/models/connections_input_spec.rb +82 -0
- data/spec/models/{me_get200_response_profile_spec.rb → connections_spec.rb} +27 -21
- data/spec/models/connections_update_spec.rb +82 -0
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/favorites_input_spec.rb +66 -0
- data/spec/models/{favorite_spec.rb → favorites_spec.rb} +16 -22
- data/spec/models/favorites_update_spec.rb +66 -0
- data/spec/models/inline_object1_spec.rb +1 -1
- data/spec/models/inline_object2_spec.rb +1 -1
- data/spec/models/inline_object3_spec.rb +1 -1
- data/spec/models/inline_object_spec.rb +1 -1
- data/spec/models/job_functions_function_id_get200_response_spec.rb +42 -0
- data/spec/models/{me_get200_response_api_key_info_spec.rb → job_functions_get200_response_spec.rb} +9 -9
- 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/users_input_spec.rb +64 -0
- data/spec/models/{user_spec.rb → users_spec.rb} +19 -21
- data/spec/models/users_update_spec.rb +64 -0
- metadata +285 -123
- 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/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/example.rb +0 -51
- data/lib/spartera_api_sdk/models/me_get200_response.rb +0 -417
- data/spec/models/assetpricehistory_spec.rb +0 -96
- data/spec/models/connection_spec.rb +0 -144
- data/spec/models/me_get200_response_spec.rb +0 -94
- data/spec/spec_helper.rb +0 -111
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Spartera API Documentation
|
|
3
|
+
|
|
4
|
+
#Auto-generated API documentation for REST services of the Spartera platform
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.24.0
|
|
7
|
+
Contact: support@spartera.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.13.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module SparteraApiSdk
|
|
16
|
+
class JobFunctionsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get single job function by ID
|
|
23
|
+
# @param function_id [String]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [JobFunctionsFunctionIdGet200Response]
|
|
26
|
+
def job_functions_function_id_get(function_id, opts = {})
|
|
27
|
+
data, _status_code, _headers = job_functions_function_id_get_with_http_info(function_id, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Get single job function by ID
|
|
32
|
+
# @param function_id [String]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(JobFunctionsFunctionIdGet200Response, Integer, Hash)>] JobFunctionsFunctionIdGet200Response data, response status code and response headers
|
|
35
|
+
def job_functions_function_id_get_with_http_info(function_id, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: JobFunctionsApi.job_functions_function_id_get ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'function_id' is set
|
|
40
|
+
if @api_client.config.client_side_validation && function_id.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'function_id' when calling JobFunctionsApi.job_functions_function_id_get"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/job-functions/{function_id}'.sub('{' + 'function_id' + '}', CGI.escape(function_id.to_s))
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:debug_body]
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:debug_return_type] || 'JobFunctionsFunctionIdGet200Response'
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:operation => :"JobFunctionsApi.job_functions_function_id_get",
|
|
68
|
+
:header_params => header_params,
|
|
69
|
+
:query_params => query_params,
|
|
70
|
+
:form_params => form_params,
|
|
71
|
+
:body => post_body,
|
|
72
|
+
:auth_names => auth_names,
|
|
73
|
+
:return_type => return_type
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
77
|
+
if @api_client.config.debugging
|
|
78
|
+
@api_client.config.logger.debug "API called: JobFunctionsApi#job_functions_function_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Get a list of all job functions
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @return [JobFunctionsGet200Response]
|
|
86
|
+
def job_functions_get(opts = {})
|
|
87
|
+
data, _status_code, _headers = job_functions_get_with_http_info(opts)
|
|
88
|
+
data
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Get a list of all job functions
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [Array<(JobFunctionsGet200Response, Integer, Hash)>] JobFunctionsGet200Response data, response status code and response headers
|
|
94
|
+
def job_functions_get_with_http_info(opts = {})
|
|
95
|
+
if @api_client.config.debugging
|
|
96
|
+
@api_client.config.logger.debug 'Calling API: JobFunctionsApi.job_functions_get ...'
|
|
97
|
+
end
|
|
98
|
+
# resource path
|
|
99
|
+
local_var_path = '/job-functions'
|
|
100
|
+
|
|
101
|
+
# query parameters
|
|
102
|
+
query_params = opts[:query_params] || {}
|
|
103
|
+
|
|
104
|
+
# header parameters
|
|
105
|
+
header_params = opts[:header_params] || {}
|
|
106
|
+
# HTTP header 'Accept' (if needed)
|
|
107
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
108
|
+
|
|
109
|
+
# form parameters
|
|
110
|
+
form_params = opts[:form_params] || {}
|
|
111
|
+
|
|
112
|
+
# http body (model)
|
|
113
|
+
post_body = opts[:debug_body]
|
|
114
|
+
|
|
115
|
+
# return_type
|
|
116
|
+
return_type = opts[:debug_return_type] || 'JobFunctionsGet200Response'
|
|
117
|
+
|
|
118
|
+
# auth_names
|
|
119
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
120
|
+
|
|
121
|
+
new_options = opts.merge(
|
|
122
|
+
:operation => :"JobFunctionsApi.job_functions_get",
|
|
123
|
+
:header_params => header_params,
|
|
124
|
+
:query_params => query_params,
|
|
125
|
+
:form_params => form_params,
|
|
126
|
+
:body => post_body,
|
|
127
|
+
:auth_names => auth_names,
|
|
128
|
+
:return_type => return_type
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
132
|
+
if @api_client.config.debugging
|
|
133
|
+
@api_client.config.logger.debug "API called: JobFunctionsApi#job_functions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
134
|
+
end
|
|
135
|
+
return data, status_code, headers
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
end
|
|
@@ -3,7 +3,7 @@
|
|
|
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.24.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.13.0
|
|
@@ -23,7 +23,7 @@ module SparteraApiSdk
|
|
|
23
23
|
# @param provider_id [String]
|
|
24
24
|
# @param engine_id [String]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [
|
|
26
|
+
# @return [CloudProvidersProviderIdStorageEnginesGet200Response]
|
|
27
27
|
def cloud_providers_provider_id_storage_engines_engine_id_get(provider_id, engine_id, opts = {})
|
|
28
28
|
data, _status_code, _headers = cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info(provider_id, engine_id, opts)
|
|
29
29
|
data
|
|
@@ -33,7 +33,7 @@ module SparteraApiSdk
|
|
|
33
33
|
# @param provider_id [String]
|
|
34
34
|
# @param engine_id [String]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(
|
|
36
|
+
# @return [Array<(CloudProvidersProviderIdStorageEnginesGet200Response, Integer, Hash)>] CloudProvidersProviderIdStorageEnginesGet200Response data, response status code and response headers
|
|
37
37
|
def cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info(provider_id, engine_id, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: StorageEnginesApi.cloud_providers_provider_id_storage_engines_engine_id_get ...'
|
|
@@ -64,7 +64,7 @@ module SparteraApiSdk
|
|
|
64
64
|
post_body = opts[:debug_body]
|
|
65
65
|
|
|
66
66
|
# return_type
|
|
67
|
-
return_type = opts[:debug_return_type] || '
|
|
67
|
+
return_type = opts[:debug_return_type] || 'CloudProvidersProviderIdStorageEnginesGet200Response'
|
|
68
68
|
|
|
69
69
|
# auth_names
|
|
70
70
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
@@ -89,7 +89,7 @@ module SparteraApiSdk
|
|
|
89
89
|
# Get a list of all storage engines
|
|
90
90
|
# @param provider_id [String]
|
|
91
91
|
# @param [Hash] opts the optional parameters
|
|
92
|
-
# @return [
|
|
92
|
+
# @return [CloudProvidersProviderIdStorageEnginesGet200Response]
|
|
93
93
|
def cloud_providers_provider_id_storage_engines_get(provider_id, opts = {})
|
|
94
94
|
data, _status_code, _headers = cloud_providers_provider_id_storage_engines_get_with_http_info(provider_id, opts)
|
|
95
95
|
data
|
|
@@ -98,7 +98,7 @@ module SparteraApiSdk
|
|
|
98
98
|
# Get a list of all storage engines
|
|
99
99
|
# @param provider_id [String]
|
|
100
100
|
# @param [Hash] opts the optional parameters
|
|
101
|
-
# @return [Array<(
|
|
101
|
+
# @return [Array<(CloudProvidersProviderIdStorageEnginesGet200Response, Integer, Hash)>] CloudProvidersProviderIdStorageEnginesGet200Response data, response status code and response headers
|
|
102
102
|
def cloud_providers_provider_id_storage_engines_get_with_http_info(provider_id, opts = {})
|
|
103
103
|
if @api_client.config.debugging
|
|
104
104
|
@api_client.config.logger.debug 'Calling API: StorageEnginesApi.cloud_providers_provider_id_storage_engines_get ...'
|
|
@@ -125,7 +125,7 @@ module SparteraApiSdk
|
|
|
125
125
|
post_body = opts[:debug_body]
|
|
126
126
|
|
|
127
127
|
# return_type
|
|
128
|
-
return_type = opts[:debug_return_type] || '
|
|
128
|
+
return_type = opts[:debug_return_type] || 'CloudProvidersProviderIdStorageEnginesGet200Response'
|
|
129
129
|
|
|
130
130
|
# auth_names
|
|
131
131
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
@@ -3,7 +3,7 @@
|
|
|
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.24.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.13.0
|
|
@@ -82,20 +82,20 @@ module SparteraApiSdk
|
|
|
82
82
|
|
|
83
83
|
# Create a new user
|
|
84
84
|
# @param company_id [String]
|
|
85
|
-
# @param
|
|
85
|
+
# @param users_input [UsersInput]
|
|
86
86
|
# @param [Hash] opts the optional parameters
|
|
87
87
|
# @return [CompaniesCompanyIdUsersPost200Response]
|
|
88
|
-
def companies_company_id_users_post(company_id,
|
|
89
|
-
data, _status_code, _headers = companies_company_id_users_post_with_http_info(company_id,
|
|
88
|
+
def companies_company_id_users_post(company_id, users_input, opts = {})
|
|
89
|
+
data, _status_code, _headers = companies_company_id_users_post_with_http_info(company_id, users_input, opts)
|
|
90
90
|
data
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
# Create a new user
|
|
94
94
|
# @param company_id [String]
|
|
95
|
-
# @param
|
|
95
|
+
# @param users_input [UsersInput]
|
|
96
96
|
# @param [Hash] opts the optional parameters
|
|
97
97
|
# @return [Array<(CompaniesCompanyIdUsersPost200Response, Integer, Hash)>] CompaniesCompanyIdUsersPost200Response data, response status code and response headers
|
|
98
|
-
def companies_company_id_users_post_with_http_info(company_id,
|
|
98
|
+
def companies_company_id_users_post_with_http_info(company_id, users_input, opts = {})
|
|
99
99
|
if @api_client.config.debugging
|
|
100
100
|
@api_client.config.logger.debug 'Calling API: UsersApi.companies_company_id_users_post ...'
|
|
101
101
|
end
|
|
@@ -103,9 +103,9 @@ module SparteraApiSdk
|
|
|
103
103
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
104
104
|
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.companies_company_id_users_post"
|
|
105
105
|
end
|
|
106
|
-
# verify the required parameter '
|
|
107
|
-
if @api_client.config.client_side_validation &&
|
|
108
|
-
fail ArgumentError, "Missing the required parameter '
|
|
106
|
+
# verify the required parameter 'users_input' is set
|
|
107
|
+
if @api_client.config.client_side_validation && users_input.nil?
|
|
108
|
+
fail ArgumentError, "Missing the required parameter 'users_input' when calling UsersApi.companies_company_id_users_post"
|
|
109
109
|
end
|
|
110
110
|
# resource path
|
|
111
111
|
local_var_path = '/companies/{company_id}/users'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
@@ -127,7 +127,7 @@ module SparteraApiSdk
|
|
|
127
127
|
form_params = opts[:form_params] || {}
|
|
128
128
|
|
|
129
129
|
# http body (model)
|
|
130
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
130
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(users_input)
|
|
131
131
|
|
|
132
132
|
# return_type
|
|
133
133
|
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersPost200Response'
|
|
@@ -289,21 +289,21 @@ module SparteraApiSdk
|
|
|
289
289
|
# Update an existing user by ID
|
|
290
290
|
# @param company_id [String]
|
|
291
291
|
# @param user_id [String]
|
|
292
|
-
# @param
|
|
292
|
+
# @param users_update [UsersUpdate]
|
|
293
293
|
# @param [Hash] opts the optional parameters
|
|
294
294
|
# @return [CompaniesCompanyIdUsersUserIdPatch200Response]
|
|
295
|
-
def companies_company_id_users_user_id_patch(company_id, user_id,
|
|
296
|
-
data, _status_code, _headers = companies_company_id_users_user_id_patch_with_http_info(company_id, user_id,
|
|
295
|
+
def companies_company_id_users_user_id_patch(company_id, user_id, users_update, opts = {})
|
|
296
|
+
data, _status_code, _headers = companies_company_id_users_user_id_patch_with_http_info(company_id, user_id, users_update, opts)
|
|
297
297
|
data
|
|
298
298
|
end
|
|
299
299
|
|
|
300
300
|
# Update an existing user by ID
|
|
301
301
|
# @param company_id [String]
|
|
302
302
|
# @param user_id [String]
|
|
303
|
-
# @param
|
|
303
|
+
# @param users_update [UsersUpdate]
|
|
304
304
|
# @param [Hash] opts the optional parameters
|
|
305
305
|
# @return [Array<(CompaniesCompanyIdUsersUserIdPatch200Response, Integer, Hash)>] CompaniesCompanyIdUsersUserIdPatch200Response data, response status code and response headers
|
|
306
|
-
def companies_company_id_users_user_id_patch_with_http_info(company_id, user_id,
|
|
306
|
+
def companies_company_id_users_user_id_patch_with_http_info(company_id, user_id, users_update, opts = {})
|
|
307
307
|
if @api_client.config.debugging
|
|
308
308
|
@api_client.config.logger.debug 'Calling API: UsersApi.companies_company_id_users_user_id_patch ...'
|
|
309
309
|
end
|
|
@@ -315,9 +315,9 @@ module SparteraApiSdk
|
|
|
315
315
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
316
316
|
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.companies_company_id_users_user_id_patch"
|
|
317
317
|
end
|
|
318
|
-
# verify the required parameter '
|
|
319
|
-
if @api_client.config.client_side_validation &&
|
|
320
|
-
fail ArgumentError, "Missing the required parameter '
|
|
318
|
+
# verify the required parameter 'users_update' is set
|
|
319
|
+
if @api_client.config.client_side_validation && users_update.nil?
|
|
320
|
+
fail ArgumentError, "Missing the required parameter 'users_update' when calling UsersApi.companies_company_id_users_user_id_patch"
|
|
321
321
|
end
|
|
322
322
|
# resource path
|
|
323
323
|
local_var_path = '/companies/{company_id}/users/{user_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
@@ -339,7 +339,7 @@ module SparteraApiSdk
|
|
|
339
339
|
form_params = opts[:form_params] || {}
|
|
340
340
|
|
|
341
341
|
# http body (model)
|
|
342
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
342
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(users_update)
|
|
343
343
|
|
|
344
344
|
# return_type
|
|
345
345
|
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersUserIdPatch200Response'
|
|
@@ -364,17 +364,17 @@ module SparteraApiSdk
|
|
|
364
364
|
return data, status_code, headers
|
|
365
365
|
end
|
|
366
366
|
|
|
367
|
-
# Get current authenticated user's profile
|
|
367
|
+
# Get current authenticated user's profile.
|
|
368
368
|
# @param [Hash] opts the optional parameters
|
|
369
|
-
# @return [
|
|
369
|
+
# @return [CompaniesCompanyIdUsersGet200Response]
|
|
370
370
|
def me_get(opts = {})
|
|
371
371
|
data, _status_code, _headers = me_get_with_http_info(opts)
|
|
372
372
|
data
|
|
373
373
|
end
|
|
374
374
|
|
|
375
|
-
# Get current authenticated user's profile
|
|
375
|
+
# Get current authenticated user's profile.
|
|
376
376
|
# @param [Hash] opts the optional parameters
|
|
377
|
-
# @return [Array<(
|
|
377
|
+
# @return [Array<(CompaniesCompanyIdUsersGet200Response, Integer, Hash)>] CompaniesCompanyIdUsersGet200Response data, response status code and response headers
|
|
378
378
|
def me_get_with_http_info(opts = {})
|
|
379
379
|
if @api_client.config.debugging
|
|
380
380
|
@api_client.config.logger.debug 'Calling API: UsersApi.me_get ...'
|
|
@@ -397,7 +397,7 @@ module SparteraApiSdk
|
|
|
397
397
|
post_body = opts[:debug_body]
|
|
398
398
|
|
|
399
399
|
# return_type
|
|
400
|
-
return_type = opts[:debug_return_type] || '
|
|
400
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersGet200Response'
|
|
401
401
|
|
|
402
402
|
# auth_names
|
|
403
403
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
@@ -3,7 +3,7 @@
|
|
|
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.24.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.13.0
|
|
@@ -3,7 +3,7 @@
|
|
|
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.24.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.13.0
|
|
@@ -3,7 +3,7 @@
|
|
|
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.24.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.13.0
|
|
@@ -3,7 +3,7 @@
|
|
|
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.24.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.13.0
|
|
@@ -15,7 +15,11 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module SparteraApiSdk
|
|
17
17
|
# User alerts for when assets are updated
|
|
18
|
-
class
|
|
18
|
+
class Alerts
|
|
19
|
+
attr_accessor :date_created
|
|
20
|
+
|
|
21
|
+
attr_accessor :last_updated
|
|
22
|
+
|
|
19
23
|
attr_accessor :alert_id
|
|
20
24
|
|
|
21
25
|
attr_accessor :asset_id
|
|
@@ -24,31 +28,19 @@ module SparteraApiSdk
|
|
|
24
28
|
|
|
25
29
|
attr_accessor :company_id
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
# Whether this alert is currently active
|
|
29
32
|
attr_accessor :is_active
|
|
30
33
|
|
|
31
|
-
attr_accessor :last_triggered
|
|
32
|
-
|
|
33
|
-
attr_accessor :date_created
|
|
34
|
-
|
|
35
|
-
attr_accessor :last_updated
|
|
36
|
-
|
|
37
|
-
attr_accessor :active
|
|
38
|
-
|
|
39
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
35
|
def self.attribute_map
|
|
41
36
|
{
|
|
37
|
+
:'date_created' => :'date_created',
|
|
38
|
+
:'last_updated' => :'last_updated',
|
|
42
39
|
:'alert_id' => :'alert_id',
|
|
43
40
|
:'asset_id' => :'asset_id',
|
|
44
41
|
:'user_id' => :'user_id',
|
|
45
42
|
:'company_id' => :'company_id',
|
|
46
|
-
:'
|
|
47
|
-
:'is_active' => :'is_active',
|
|
48
|
-
:'last_triggered' => :'last_triggered',
|
|
49
|
-
:'date_created' => :'date_created',
|
|
50
|
-
:'last_updated' => :'last_updated',
|
|
51
|
-
:'active' => :'active'
|
|
43
|
+
:'is_active' => :'is_active'
|
|
52
44
|
}
|
|
53
45
|
end
|
|
54
46
|
|
|
@@ -65,16 +57,13 @@ module SparteraApiSdk
|
|
|
65
57
|
# Attribute type mapping.
|
|
66
58
|
def self.openapi_types
|
|
67
59
|
{
|
|
68
|
-
:'
|
|
60
|
+
:'date_created' => :'Time',
|
|
61
|
+
:'last_updated' => :'Time',
|
|
62
|
+
:'alert_id' => :'Integer',
|
|
69
63
|
:'asset_id' => :'String',
|
|
70
64
|
:'user_id' => :'String',
|
|
71
65
|
:'company_id' => :'String',
|
|
72
|
-
:'
|
|
73
|
-
:'is_active' => :'String',
|
|
74
|
-
:'last_triggered' => :'String',
|
|
75
|
-
:'date_created' => :'String',
|
|
76
|
-
:'last_updated' => :'String',
|
|
77
|
-
:'active' => :'String'
|
|
66
|
+
:'is_active' => :'Boolean'
|
|
78
67
|
}
|
|
79
68
|
end
|
|
80
69
|
|
|
@@ -88,18 +77,26 @@ module SparteraApiSdk
|
|
|
88
77
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
89
78
|
def initialize(attributes = {})
|
|
90
79
|
if (!attributes.is_a?(Hash))
|
|
91
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::Alerts` initialize method"
|
|
92
81
|
end
|
|
93
82
|
|
|
94
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
95
84
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
96
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
97
86
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
98
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::Alerts`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
99
88
|
end
|
|
100
89
|
h[k.to_sym] = v
|
|
101
90
|
}
|
|
102
91
|
|
|
92
|
+
if attributes.key?(:'date_created')
|
|
93
|
+
self.date_created = attributes[:'date_created']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'last_updated')
|
|
97
|
+
self.last_updated = attributes[:'last_updated']
|
|
98
|
+
end
|
|
99
|
+
|
|
103
100
|
if attributes.key?(:'alert_id')
|
|
104
101
|
self.alert_id = attributes[:'alert_id']
|
|
105
102
|
end
|
|
@@ -120,30 +117,10 @@ module SparteraApiSdk
|
|
|
120
117
|
self.company_id = nil
|
|
121
118
|
end
|
|
122
119
|
|
|
123
|
-
if attributes.key?(:'alert_type')
|
|
124
|
-
self.alert_type = attributes[:'alert_type']
|
|
125
|
-
else
|
|
126
|
-
self.alert_type = nil
|
|
127
|
-
end
|
|
128
|
-
|
|
129
120
|
if attributes.key?(:'is_active')
|
|
130
121
|
self.is_active = attributes[:'is_active']
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if attributes.key?(:'last_triggered')
|
|
134
|
-
self.last_triggered = attributes[:'last_triggered']
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
if attributes.key?(:'date_created')
|
|
138
|
-
self.date_created = attributes[:'date_created']
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
if attributes.key?(:'last_updated')
|
|
142
|
-
self.last_updated = attributes[:'last_updated']
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
if attributes.key?(:'active')
|
|
146
|
-
self.active = attributes[:'active']
|
|
122
|
+
else
|
|
123
|
+
self.is_active = nil
|
|
147
124
|
end
|
|
148
125
|
end
|
|
149
126
|
|
|
@@ -160,8 +137,8 @@ module SparteraApiSdk
|
|
|
160
137
|
invalid_properties.push('invalid value for "company_id", company_id cannot be nil.')
|
|
161
138
|
end
|
|
162
139
|
|
|
163
|
-
if @
|
|
164
|
-
invalid_properties.push('invalid value for "
|
|
140
|
+
if @is_active.nil?
|
|
141
|
+
invalid_properties.push('invalid value for "is_active", is_active cannot be nil.')
|
|
165
142
|
end
|
|
166
143
|
|
|
167
144
|
invalid_properties
|
|
@@ -173,7 +150,7 @@ module SparteraApiSdk
|
|
|
173
150
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
174
151
|
return false if @asset_id.nil?
|
|
175
152
|
return false if @company_id.nil?
|
|
176
|
-
return false if @
|
|
153
|
+
return false if @is_active.nil?
|
|
177
154
|
true
|
|
178
155
|
end
|
|
179
156
|
|
|
@@ -198,13 +175,13 @@ module SparteraApiSdk
|
|
|
198
175
|
end
|
|
199
176
|
|
|
200
177
|
# Custom attribute writer method with validation
|
|
201
|
-
# @param [Object]
|
|
202
|
-
def
|
|
203
|
-
if
|
|
204
|
-
fail ArgumentError, '
|
|
178
|
+
# @param [Object] is_active Value to be assigned
|
|
179
|
+
def is_active=(is_active)
|
|
180
|
+
if is_active.nil?
|
|
181
|
+
fail ArgumentError, 'is_active cannot be nil'
|
|
205
182
|
end
|
|
206
183
|
|
|
207
|
-
@
|
|
184
|
+
@is_active = is_active
|
|
208
185
|
end
|
|
209
186
|
|
|
210
187
|
# Checks equality by comparing each attribute.
|
|
@@ -212,16 +189,13 @@ module SparteraApiSdk
|
|
|
212
189
|
def ==(o)
|
|
213
190
|
return true if self.equal?(o)
|
|
214
191
|
self.class == o.class &&
|
|
192
|
+
date_created == o.date_created &&
|
|
193
|
+
last_updated == o.last_updated &&
|
|
215
194
|
alert_id == o.alert_id &&
|
|
216
195
|
asset_id == o.asset_id &&
|
|
217
196
|
user_id == o.user_id &&
|
|
218
197
|
company_id == o.company_id &&
|
|
219
|
-
|
|
220
|
-
is_active == o.is_active &&
|
|
221
|
-
last_triggered == o.last_triggered &&
|
|
222
|
-
date_created == o.date_created &&
|
|
223
|
-
last_updated == o.last_updated &&
|
|
224
|
-
active == o.active
|
|
198
|
+
is_active == o.is_active
|
|
225
199
|
end
|
|
226
200
|
|
|
227
201
|
# @see the `==` method
|
|
@@ -233,7 +207,7 @@ module SparteraApiSdk
|
|
|
233
207
|
# Calculates hash code according to all attributes.
|
|
234
208
|
# @return [Integer] Hash code
|
|
235
209
|
def hash
|
|
236
|
-
[alert_id, asset_id, user_id, company_id,
|
|
210
|
+
[date_created, last_updated, alert_id, asset_id, user_id, company_id, is_active].hash
|
|
237
211
|
end
|
|
238
212
|
|
|
239
213
|
# Builds the object from hash
|