spartera_api_sdk 1.0.73 → 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
|
@@ -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
|
# Model for every connection setup from our platform
|
|
18
|
-
class
|
|
18
|
+
class Connections
|
|
19
|
+
attr_accessor :date_created
|
|
20
|
+
|
|
21
|
+
attr_accessor :last_updated
|
|
22
|
+
|
|
19
23
|
attr_accessor :connection_id
|
|
20
24
|
|
|
21
25
|
attr_accessor :user_id
|
|
@@ -24,58 +28,53 @@ module SparteraApiSdk
|
|
|
24
28
|
|
|
25
29
|
attr_accessor :company_id
|
|
26
30
|
|
|
31
|
+
# Enum type: CredentialType
|
|
27
32
|
attr_accessor :credential_type
|
|
28
33
|
|
|
29
|
-
attr_accessor :api_provider
|
|
30
|
-
|
|
31
|
-
attr_accessor :api_endpoint
|
|
32
|
-
|
|
33
|
-
attr_accessor :api_key_location
|
|
34
|
-
|
|
35
|
-
attr_accessor :api_key_param
|
|
36
|
-
|
|
37
|
-
attr_accessor :api_key_value
|
|
38
|
-
|
|
39
|
-
attr_accessor :visibility
|
|
40
|
-
|
|
41
34
|
attr_accessor :name
|
|
42
35
|
|
|
43
36
|
attr_accessor :description
|
|
44
37
|
|
|
45
|
-
attr_accessor :gcp_secret_id
|
|
46
|
-
|
|
47
38
|
attr_accessor :provider_domain
|
|
48
39
|
|
|
49
40
|
attr_accessor :verified_usage_ability
|
|
50
41
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
class EnumAttributeValidator
|
|
43
|
+
attr_reader :datatype
|
|
44
|
+
attr_reader :allowable_values
|
|
45
|
+
|
|
46
|
+
def initialize(datatype, allowable_values)
|
|
47
|
+
@allowable_values = allowable_values.map do |value|
|
|
48
|
+
case datatype.to_s
|
|
49
|
+
when /Integer/i
|
|
50
|
+
value.to_i
|
|
51
|
+
when /Float/i
|
|
52
|
+
value.to_f
|
|
53
|
+
else
|
|
54
|
+
value
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
54
58
|
|
|
55
|
-
|
|
59
|
+
def valid?(value)
|
|
60
|
+
!value || allowable_values.include?(value)
|
|
61
|
+
end
|
|
62
|
+
end
|
|
56
63
|
|
|
57
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
58
65
|
def self.attribute_map
|
|
59
66
|
{
|
|
67
|
+
:'date_created' => :'date_created',
|
|
68
|
+
:'last_updated' => :'last_updated',
|
|
60
69
|
:'connection_id' => :'connection_id',
|
|
61
70
|
:'user_id' => :'user_id',
|
|
62
71
|
:'engine_id' => :'engine_id',
|
|
63
72
|
:'company_id' => :'company_id',
|
|
64
73
|
:'credential_type' => :'credential_type',
|
|
65
|
-
:'api_provider' => :'api_provider',
|
|
66
|
-
:'api_endpoint' => :'api_endpoint',
|
|
67
|
-
:'api_key_location' => :'api_key_location',
|
|
68
|
-
:'api_key_param' => :'api_key_param',
|
|
69
|
-
:'api_key_value' => :'api_key_value',
|
|
70
|
-
:'visibility' => :'visibility',
|
|
71
74
|
:'name' => :'name',
|
|
72
75
|
:'description' => :'description',
|
|
73
|
-
:'gcp_secret_id' => :'gcp_secret_id',
|
|
74
76
|
:'provider_domain' => :'provider_domain',
|
|
75
|
-
:'verified_usage_ability' => :'verified_usage_ability'
|
|
76
|
-
:'date_created' => :'date_created',
|
|
77
|
-
:'last_updated' => :'last_updated',
|
|
78
|
-
:'active' => :'active'
|
|
77
|
+
:'verified_usage_ability' => :'verified_usage_ability'
|
|
79
78
|
}
|
|
80
79
|
end
|
|
81
80
|
|
|
@@ -92,25 +91,17 @@ module SparteraApiSdk
|
|
|
92
91
|
# Attribute type mapping.
|
|
93
92
|
def self.openapi_types
|
|
94
93
|
{
|
|
94
|
+
:'date_created' => :'Time',
|
|
95
|
+
:'last_updated' => :'Time',
|
|
95
96
|
:'connection_id' => :'String',
|
|
96
97
|
:'user_id' => :'String',
|
|
97
|
-
:'engine_id' => :'
|
|
98
|
+
:'engine_id' => :'Integer',
|
|
98
99
|
:'company_id' => :'String',
|
|
99
100
|
:'credential_type' => :'String',
|
|
100
|
-
:'api_provider' => :'String',
|
|
101
|
-
:'api_endpoint' => :'String',
|
|
102
|
-
:'api_key_location' => :'String',
|
|
103
|
-
:'api_key_param' => :'String',
|
|
104
|
-
:'api_key_value' => :'String',
|
|
105
|
-
:'visibility' => :'String',
|
|
106
101
|
:'name' => :'String',
|
|
107
102
|
:'description' => :'String',
|
|
108
|
-
:'gcp_secret_id' => :'String',
|
|
109
103
|
:'provider_domain' => :'String',
|
|
110
|
-
:'verified_usage_ability' => :'
|
|
111
|
-
:'date_created' => :'String',
|
|
112
|
-
:'last_updated' => :'String',
|
|
113
|
-
:'active' => :'String'
|
|
104
|
+
:'verified_usage_ability' => :'Boolean'
|
|
114
105
|
}
|
|
115
106
|
end
|
|
116
107
|
|
|
@@ -124,18 +115,26 @@ module SparteraApiSdk
|
|
|
124
115
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
125
116
|
def initialize(attributes = {})
|
|
126
117
|
if (!attributes.is_a?(Hash))
|
|
127
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::
|
|
118
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::Connections` initialize method"
|
|
128
119
|
end
|
|
129
120
|
|
|
130
121
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
131
122
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
132
123
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
133
124
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
134
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::
|
|
125
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::Connections`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
135
126
|
end
|
|
136
127
|
h[k.to_sym] = v
|
|
137
128
|
}
|
|
138
129
|
|
|
130
|
+
if attributes.key?(:'date_created')
|
|
131
|
+
self.date_created = attributes[:'date_created']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'last_updated')
|
|
135
|
+
self.last_updated = attributes[:'last_updated']
|
|
136
|
+
end
|
|
137
|
+
|
|
139
138
|
if attributes.key?(:'connection_id')
|
|
140
139
|
self.connection_id = attributes[:'connection_id']
|
|
141
140
|
end
|
|
@@ -160,32 +159,6 @@ module SparteraApiSdk
|
|
|
160
159
|
self.credential_type = attributes[:'credential_type']
|
|
161
160
|
end
|
|
162
161
|
|
|
163
|
-
if attributes.key?(:'api_provider')
|
|
164
|
-
self.api_provider = attributes[:'api_provider']
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
if attributes.key?(:'api_endpoint')
|
|
168
|
-
self.api_endpoint = attributes[:'api_endpoint']
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
if attributes.key?(:'api_key_location')
|
|
172
|
-
self.api_key_location = attributes[:'api_key_location']
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
if attributes.key?(:'api_key_param')
|
|
176
|
-
self.api_key_param = attributes[:'api_key_param']
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
if attributes.key?(:'api_key_value')
|
|
180
|
-
self.api_key_value = attributes[:'api_key_value']
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
if attributes.key?(:'visibility')
|
|
184
|
-
self.visibility = attributes[:'visibility']
|
|
185
|
-
else
|
|
186
|
-
self.visibility = nil
|
|
187
|
-
end
|
|
188
|
-
|
|
189
162
|
if attributes.key?(:'name')
|
|
190
163
|
self.name = attributes[:'name']
|
|
191
164
|
end
|
|
@@ -194,10 +167,6 @@ module SparteraApiSdk
|
|
|
194
167
|
self.description = attributes[:'description']
|
|
195
168
|
end
|
|
196
169
|
|
|
197
|
-
if attributes.key?(:'gcp_secret_id')
|
|
198
|
-
self.gcp_secret_id = attributes[:'gcp_secret_id']
|
|
199
|
-
end
|
|
200
|
-
|
|
201
170
|
if attributes.key?(:'provider_domain')
|
|
202
171
|
self.provider_domain = attributes[:'provider_domain']
|
|
203
172
|
end
|
|
@@ -205,18 +174,6 @@ module SparteraApiSdk
|
|
|
205
174
|
if attributes.key?(:'verified_usage_ability')
|
|
206
175
|
self.verified_usage_ability = attributes[:'verified_usage_ability']
|
|
207
176
|
end
|
|
208
|
-
|
|
209
|
-
if attributes.key?(:'date_created')
|
|
210
|
-
self.date_created = attributes[:'date_created']
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
if attributes.key?(:'last_updated')
|
|
214
|
-
self.last_updated = attributes[:'last_updated']
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
if attributes.key?(:'active')
|
|
218
|
-
self.active = attributes[:'active']
|
|
219
|
-
end
|
|
220
177
|
end
|
|
221
178
|
|
|
222
179
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -232,10 +189,6 @@ module SparteraApiSdk
|
|
|
232
189
|
invalid_properties.push('invalid value for "company_id", company_id cannot be nil.')
|
|
233
190
|
end
|
|
234
191
|
|
|
235
|
-
if @visibility.nil?
|
|
236
|
-
invalid_properties.push('invalid value for "visibility", visibility cannot be nil.')
|
|
237
|
-
end
|
|
238
|
-
|
|
239
192
|
invalid_properties
|
|
240
193
|
end
|
|
241
194
|
|
|
@@ -245,7 +198,8 @@ module SparteraApiSdk
|
|
|
245
198
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
246
199
|
return false if @engine_id.nil?
|
|
247
200
|
return false if @company_id.nil?
|
|
248
|
-
|
|
201
|
+
credential_type_validator = EnumAttributeValidator.new('String', ["SERVICE_ACCOUNT", "USERNAME_PASSWORD", "API_KEY", "SERVICE_IDENTITY", "ACCESS_KEY", "NONE", "OAUTH", "JSON"])
|
|
202
|
+
return false unless credential_type_validator.valid?(@credential_type)
|
|
249
203
|
true
|
|
250
204
|
end
|
|
251
205
|
|
|
@@ -269,14 +223,14 @@ module SparteraApiSdk
|
|
|
269
223
|
@company_id = company_id
|
|
270
224
|
end
|
|
271
225
|
|
|
272
|
-
# Custom attribute writer method
|
|
273
|
-
# @param [Object]
|
|
274
|
-
def
|
|
275
|
-
|
|
276
|
-
|
|
226
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
227
|
+
# @param [Object] credential_type Object to be assigned
|
|
228
|
+
def credential_type=(credential_type)
|
|
229
|
+
validator = EnumAttributeValidator.new('String', ["SERVICE_ACCOUNT", "USERNAME_PASSWORD", "API_KEY", "SERVICE_IDENTITY", "ACCESS_KEY", "NONE", "OAUTH", "JSON"])
|
|
230
|
+
unless validator.valid?(credential_type)
|
|
231
|
+
fail ArgumentError, "invalid value for \"credential_type\", must be one of #{validator.allowable_values}."
|
|
277
232
|
end
|
|
278
|
-
|
|
279
|
-
@visibility = visibility
|
|
233
|
+
@credential_type = credential_type
|
|
280
234
|
end
|
|
281
235
|
|
|
282
236
|
# Checks equality by comparing each attribute.
|
|
@@ -284,25 +238,17 @@ module SparteraApiSdk
|
|
|
284
238
|
def ==(o)
|
|
285
239
|
return true if self.equal?(o)
|
|
286
240
|
self.class == o.class &&
|
|
241
|
+
date_created == o.date_created &&
|
|
242
|
+
last_updated == o.last_updated &&
|
|
287
243
|
connection_id == o.connection_id &&
|
|
288
244
|
user_id == o.user_id &&
|
|
289
245
|
engine_id == o.engine_id &&
|
|
290
246
|
company_id == o.company_id &&
|
|
291
247
|
credential_type == o.credential_type &&
|
|
292
|
-
api_provider == o.api_provider &&
|
|
293
|
-
api_endpoint == o.api_endpoint &&
|
|
294
|
-
api_key_location == o.api_key_location &&
|
|
295
|
-
api_key_param == o.api_key_param &&
|
|
296
|
-
api_key_value == o.api_key_value &&
|
|
297
|
-
visibility == o.visibility &&
|
|
298
248
|
name == o.name &&
|
|
299
249
|
description == o.description &&
|
|
300
|
-
gcp_secret_id == o.gcp_secret_id &&
|
|
301
250
|
provider_domain == o.provider_domain &&
|
|
302
|
-
verified_usage_ability == o.verified_usage_ability
|
|
303
|
-
date_created == o.date_created &&
|
|
304
|
-
last_updated == o.last_updated &&
|
|
305
|
-
active == o.active
|
|
251
|
+
verified_usage_ability == o.verified_usage_ability
|
|
306
252
|
end
|
|
307
253
|
|
|
308
254
|
# @see the `==` method
|
|
@@ -314,7 +260,7 @@ module SparteraApiSdk
|
|
|
314
260
|
# Calculates hash code according to all attributes.
|
|
315
261
|
# @return [Integer] Hash code
|
|
316
262
|
def hash
|
|
317
|
-
[connection_id, user_id, engine_id, company_id, credential_type,
|
|
263
|
+
[date_created, last_updated, connection_id, user_id, engine_id, company_id, credential_type, name, description, provider_domain, verified_usage_ability].hash
|
|
318
264
|
end
|
|
319
265
|
|
|
320
266
|
# Builds the object from hash
|
|
@@ -0,0 +1,353 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module SparteraApiSdk
|
|
17
|
+
# Input schema for creating Connection
|
|
18
|
+
class ConnectionsInput
|
|
19
|
+
attr_accessor :user_id
|
|
20
|
+
|
|
21
|
+
attr_accessor :engine_id
|
|
22
|
+
|
|
23
|
+
attr_accessor :company_id
|
|
24
|
+
|
|
25
|
+
# Enum type: CredentialType
|
|
26
|
+
attr_accessor :credential_type
|
|
27
|
+
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
30
|
+
attr_accessor :description
|
|
31
|
+
|
|
32
|
+
attr_accessor :provider_domain
|
|
33
|
+
|
|
34
|
+
attr_accessor :verified_usage_ability
|
|
35
|
+
|
|
36
|
+
class EnumAttributeValidator
|
|
37
|
+
attr_reader :datatype
|
|
38
|
+
attr_reader :allowable_values
|
|
39
|
+
|
|
40
|
+
def initialize(datatype, allowable_values)
|
|
41
|
+
@allowable_values = allowable_values.map do |value|
|
|
42
|
+
case datatype.to_s
|
|
43
|
+
when /Integer/i
|
|
44
|
+
value.to_i
|
|
45
|
+
when /Float/i
|
|
46
|
+
value.to_f
|
|
47
|
+
else
|
|
48
|
+
value
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def valid?(value)
|
|
54
|
+
!value || allowable_values.include?(value)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
59
|
+
def self.attribute_map
|
|
60
|
+
{
|
|
61
|
+
:'user_id' => :'user_id',
|
|
62
|
+
:'engine_id' => :'engine_id',
|
|
63
|
+
:'company_id' => :'company_id',
|
|
64
|
+
:'credential_type' => :'credential_type',
|
|
65
|
+
:'name' => :'name',
|
|
66
|
+
:'description' => :'description',
|
|
67
|
+
:'provider_domain' => :'provider_domain',
|
|
68
|
+
:'verified_usage_ability' => :'verified_usage_ability'
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Returns attribute mapping this model knows about
|
|
73
|
+
def self.acceptable_attribute_map
|
|
74
|
+
attribute_map
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Returns all the JSON keys this model knows about
|
|
78
|
+
def self.acceptable_attributes
|
|
79
|
+
acceptable_attribute_map.values
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Attribute type mapping.
|
|
83
|
+
def self.openapi_types
|
|
84
|
+
{
|
|
85
|
+
:'user_id' => :'String',
|
|
86
|
+
:'engine_id' => :'Integer',
|
|
87
|
+
:'company_id' => :'String',
|
|
88
|
+
:'credential_type' => :'String',
|
|
89
|
+
:'name' => :'String',
|
|
90
|
+
:'description' => :'String',
|
|
91
|
+
:'provider_domain' => :'String',
|
|
92
|
+
:'verified_usage_ability' => :'Boolean'
|
|
93
|
+
}
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# List of attributes with nullable: true
|
|
97
|
+
def self.openapi_nullable
|
|
98
|
+
Set.new([
|
|
99
|
+
])
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Initializes the object
|
|
103
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
104
|
+
def initialize(attributes = {})
|
|
105
|
+
if (!attributes.is_a?(Hash))
|
|
106
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::ConnectionsInput` initialize method"
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
110
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
111
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
112
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
113
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::ConnectionsInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
114
|
+
end
|
|
115
|
+
h[k.to_sym] = v
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'user_id')
|
|
119
|
+
self.user_id = attributes[:'user_id']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'engine_id')
|
|
123
|
+
self.engine_id = attributes[:'engine_id']
|
|
124
|
+
else
|
|
125
|
+
self.engine_id = nil
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'company_id')
|
|
129
|
+
self.company_id = attributes[:'company_id']
|
|
130
|
+
else
|
|
131
|
+
self.company_id = nil
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'credential_type')
|
|
135
|
+
self.credential_type = attributes[:'credential_type']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'name')
|
|
139
|
+
self.name = attributes[:'name']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'description')
|
|
143
|
+
self.description = attributes[:'description']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'provider_domain')
|
|
147
|
+
self.provider_domain = attributes[:'provider_domain']
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.key?(:'verified_usage_ability')
|
|
151
|
+
self.verified_usage_ability = attributes[:'verified_usage_ability']
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
156
|
+
# @return Array for valid properties with the reasons
|
|
157
|
+
def list_invalid_properties
|
|
158
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
159
|
+
invalid_properties = Array.new
|
|
160
|
+
if @engine_id.nil?
|
|
161
|
+
invalid_properties.push('invalid value for "engine_id", engine_id cannot be nil.')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if @company_id.nil?
|
|
165
|
+
invalid_properties.push('invalid value for "company_id", company_id cannot be nil.')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
invalid_properties
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Check to see if the all the properties in the model are valid
|
|
172
|
+
# @return true if the model is valid
|
|
173
|
+
def valid?
|
|
174
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
175
|
+
return false if @engine_id.nil?
|
|
176
|
+
return false if @company_id.nil?
|
|
177
|
+
credential_type_validator = EnumAttributeValidator.new('String', ["SERVICE_ACCOUNT", "USERNAME_PASSWORD", "API_KEY", "SERVICE_IDENTITY", "ACCESS_KEY", "NONE", "OAUTH", "JSON"])
|
|
178
|
+
return false unless credential_type_validator.valid?(@credential_type)
|
|
179
|
+
true
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Custom attribute writer method with validation
|
|
183
|
+
# @param [Object] engine_id Value to be assigned
|
|
184
|
+
def engine_id=(engine_id)
|
|
185
|
+
if engine_id.nil?
|
|
186
|
+
fail ArgumentError, 'engine_id cannot be nil'
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
@engine_id = engine_id
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Custom attribute writer method with validation
|
|
193
|
+
# @param [Object] company_id Value to be assigned
|
|
194
|
+
def company_id=(company_id)
|
|
195
|
+
if company_id.nil?
|
|
196
|
+
fail ArgumentError, 'company_id cannot be nil'
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
@company_id = company_id
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
203
|
+
# @param [Object] credential_type Object to be assigned
|
|
204
|
+
def credential_type=(credential_type)
|
|
205
|
+
validator = EnumAttributeValidator.new('String', ["SERVICE_ACCOUNT", "USERNAME_PASSWORD", "API_KEY", "SERVICE_IDENTITY", "ACCESS_KEY", "NONE", "OAUTH", "JSON"])
|
|
206
|
+
unless validator.valid?(credential_type)
|
|
207
|
+
fail ArgumentError, "invalid value for \"credential_type\", must be one of #{validator.allowable_values}."
|
|
208
|
+
end
|
|
209
|
+
@credential_type = credential_type
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Checks equality by comparing each attribute.
|
|
213
|
+
# @param [Object] Object to be compared
|
|
214
|
+
def ==(o)
|
|
215
|
+
return true if self.equal?(o)
|
|
216
|
+
self.class == o.class &&
|
|
217
|
+
user_id == o.user_id &&
|
|
218
|
+
engine_id == o.engine_id &&
|
|
219
|
+
company_id == o.company_id &&
|
|
220
|
+
credential_type == o.credential_type &&
|
|
221
|
+
name == o.name &&
|
|
222
|
+
description == o.description &&
|
|
223
|
+
provider_domain == o.provider_domain &&
|
|
224
|
+
verified_usage_ability == o.verified_usage_ability
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# @see the `==` method
|
|
228
|
+
# @param [Object] Object to be compared
|
|
229
|
+
def eql?(o)
|
|
230
|
+
self == o
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Calculates hash code according to all attributes.
|
|
234
|
+
# @return [Integer] Hash code
|
|
235
|
+
def hash
|
|
236
|
+
[user_id, engine_id, company_id, credential_type, name, description, provider_domain, verified_usage_ability].hash
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Builds the object from hash
|
|
240
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
241
|
+
# @return [Object] Returns the model itself
|
|
242
|
+
def self.build_from_hash(attributes)
|
|
243
|
+
return nil unless attributes.is_a?(Hash)
|
|
244
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
245
|
+
transformed_hash = {}
|
|
246
|
+
openapi_types.each_pair do |key, type|
|
|
247
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
248
|
+
transformed_hash["#{key}"] = nil
|
|
249
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
250
|
+
# check to ensure the input is an array given that the attribute
|
|
251
|
+
# is documented as an array but the input is not
|
|
252
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
253
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
254
|
+
end
|
|
255
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
256
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
new(transformed_hash)
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Deserializes the data based on type
|
|
263
|
+
# @param string type Data type
|
|
264
|
+
# @param string value Value to be deserialized
|
|
265
|
+
# @return [Object] Deserialized data
|
|
266
|
+
def self._deserialize(type, value)
|
|
267
|
+
case type.to_sym
|
|
268
|
+
when :Time
|
|
269
|
+
Time.parse(value)
|
|
270
|
+
when :Date
|
|
271
|
+
Date.parse(value)
|
|
272
|
+
when :String
|
|
273
|
+
value.to_s
|
|
274
|
+
when :Integer
|
|
275
|
+
value.to_i
|
|
276
|
+
when :Float
|
|
277
|
+
value.to_f
|
|
278
|
+
when :Boolean
|
|
279
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
280
|
+
true
|
|
281
|
+
else
|
|
282
|
+
false
|
|
283
|
+
end
|
|
284
|
+
when :Object
|
|
285
|
+
# generic object (usually a Hash), return directly
|
|
286
|
+
value
|
|
287
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
288
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
289
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
290
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
291
|
+
k_type = Regexp.last_match[:k_type]
|
|
292
|
+
v_type = Regexp.last_match[:v_type]
|
|
293
|
+
{}.tap do |hash|
|
|
294
|
+
value.each do |k, v|
|
|
295
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
else # model
|
|
299
|
+
# models (e.g. Pet) or oneOf
|
|
300
|
+
klass = SparteraApiSdk.const_get(type)
|
|
301
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Returns the string representation of the object
|
|
306
|
+
# @return [String] String presentation of the object
|
|
307
|
+
def to_s
|
|
308
|
+
to_hash.to_s
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
312
|
+
# @return [Hash] Returns the object in the form of hash
|
|
313
|
+
def to_body
|
|
314
|
+
to_hash
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Returns the object in the form of hash
|
|
318
|
+
# @return [Hash] Returns the object in the form of hash
|
|
319
|
+
def to_hash
|
|
320
|
+
hash = {}
|
|
321
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
322
|
+
value = self.send(attr)
|
|
323
|
+
if value.nil?
|
|
324
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
325
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
hash[param] = _to_hash(value)
|
|
329
|
+
end
|
|
330
|
+
hash
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Outputs non-array value in the form of hash
|
|
334
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
335
|
+
# @param [Object] value Any valid value
|
|
336
|
+
# @return [Hash] Returns the value in the form of hash
|
|
337
|
+
def _to_hash(value)
|
|
338
|
+
if value.is_a?(Array)
|
|
339
|
+
value.compact.map { |v| _to_hash(v) }
|
|
340
|
+
elsif value.is_a?(Hash)
|
|
341
|
+
{}.tap do |hash|
|
|
342
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
343
|
+
end
|
|
344
|
+
elsif value.respond_to? :to_hash
|
|
345
|
+
value.to_hash
|
|
346
|
+
else
|
|
347
|
+
value
|
|
348
|
+
end
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
end
|