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
data/lib/spartera_api_sdk/models/cloud_providers_provider_id_storage_engines_get200_response.rb
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
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
|
+
class CloudProvidersProviderIdStorageEnginesGet200Response
|
|
18
|
+
attr_accessor :message
|
|
19
|
+
|
|
20
|
+
attr_accessor :data
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'message' => :'message',
|
|
26
|
+
:'data' => :'data'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns attribute mapping this model knows about
|
|
31
|
+
def self.acceptable_attribute_map
|
|
32
|
+
attribute_map
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns all the JSON keys this model knows about
|
|
36
|
+
def self.acceptable_attributes
|
|
37
|
+
acceptable_attribute_map.values
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'message' => :'String',
|
|
44
|
+
:'data' => :'Object'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# List of attributes with nullable: true
|
|
49
|
+
def self.openapi_nullable
|
|
50
|
+
Set.new([
|
|
51
|
+
])
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Initializes the object
|
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::CloudProvidersProviderIdStorageEnginesGet200Response` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::CloudProvidersProviderIdStorageEnginesGet200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
|
+
end
|
|
67
|
+
h[k.to_sym] = v
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'message')
|
|
71
|
+
self.message = attributes[:'message']
|
|
72
|
+
else
|
|
73
|
+
self.message = nil
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'data')
|
|
77
|
+
self.data = attributes[:'data']
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
82
|
+
# @return Array for valid properties with the reasons
|
|
83
|
+
def list_invalid_properties
|
|
84
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
85
|
+
invalid_properties = Array.new
|
|
86
|
+
if @message.nil?
|
|
87
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
invalid_properties
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Check to see if the all the properties in the model are valid
|
|
94
|
+
# @return true if the model is valid
|
|
95
|
+
def valid?
|
|
96
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
97
|
+
return false if @message.nil?
|
|
98
|
+
true
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Custom attribute writer method with validation
|
|
102
|
+
# @param [Object] message Value to be assigned
|
|
103
|
+
def message=(message)
|
|
104
|
+
if message.nil?
|
|
105
|
+
fail ArgumentError, 'message cannot be nil'
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
@message = message
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Checks equality by comparing each attribute.
|
|
112
|
+
# @param [Object] Object to be compared
|
|
113
|
+
def ==(o)
|
|
114
|
+
return true if self.equal?(o)
|
|
115
|
+
self.class == o.class &&
|
|
116
|
+
message == o.message &&
|
|
117
|
+
data == o.data
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# @see the `==` method
|
|
121
|
+
# @param [Object] Object to be compared
|
|
122
|
+
def eql?(o)
|
|
123
|
+
self == o
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Calculates hash code according to all attributes.
|
|
127
|
+
# @return [Integer] Hash code
|
|
128
|
+
def hash
|
|
129
|
+
[message, data].hash
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Builds the object from hash
|
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
134
|
+
# @return [Object] Returns the model itself
|
|
135
|
+
def self.build_from_hash(attributes)
|
|
136
|
+
return nil unless attributes.is_a?(Hash)
|
|
137
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
138
|
+
transformed_hash = {}
|
|
139
|
+
openapi_types.each_pair do |key, type|
|
|
140
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
141
|
+
transformed_hash["#{key}"] = nil
|
|
142
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
143
|
+
# check to ensure the input is an array given that the attribute
|
|
144
|
+
# is documented as an array but the input is not
|
|
145
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
146
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
147
|
+
end
|
|
148
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
149
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
new(transformed_hash)
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Deserializes the data based on type
|
|
156
|
+
# @param string type Data type
|
|
157
|
+
# @param string value Value to be deserialized
|
|
158
|
+
# @return [Object] Deserialized data
|
|
159
|
+
def self._deserialize(type, value)
|
|
160
|
+
case type.to_sym
|
|
161
|
+
when :Time
|
|
162
|
+
Time.parse(value)
|
|
163
|
+
when :Date
|
|
164
|
+
Date.parse(value)
|
|
165
|
+
when :String
|
|
166
|
+
value.to_s
|
|
167
|
+
when :Integer
|
|
168
|
+
value.to_i
|
|
169
|
+
when :Float
|
|
170
|
+
value.to_f
|
|
171
|
+
when :Boolean
|
|
172
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
173
|
+
true
|
|
174
|
+
else
|
|
175
|
+
false
|
|
176
|
+
end
|
|
177
|
+
when :Object
|
|
178
|
+
# generic object (usually a Hash), return directly
|
|
179
|
+
value
|
|
180
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
181
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
182
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
183
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
184
|
+
k_type = Regexp.last_match[:k_type]
|
|
185
|
+
v_type = Regexp.last_match[:v_type]
|
|
186
|
+
{}.tap do |hash|
|
|
187
|
+
value.each do |k, v|
|
|
188
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
else # model
|
|
192
|
+
# models (e.g. Pet) or oneOf
|
|
193
|
+
klass = SparteraApiSdk.const_get(type)
|
|
194
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Returns the string representation of the object
|
|
199
|
+
# @return [String] String presentation of the object
|
|
200
|
+
def to_s
|
|
201
|
+
to_hash.to_s
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_body
|
|
207
|
+
to_hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Returns the object in the form of hash
|
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
|
212
|
+
def to_hash
|
|
213
|
+
hash = {}
|
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
215
|
+
value = self.send(attr)
|
|
216
|
+
if value.nil?
|
|
217
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
218
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
hash[param] = _to_hash(value)
|
|
222
|
+
end
|
|
223
|
+
hash
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Outputs non-array value in the form of hash
|
|
227
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
228
|
+
# @param [Object] value Any valid value
|
|
229
|
+
# @return [Hash] Returns the value in the form of hash
|
|
230
|
+
def _to_hash(value)
|
|
231
|
+
if value.is_a?(Array)
|
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
|
233
|
+
elsif value.is_a?(Hash)
|
|
234
|
+
{}.tap do |hash|
|
|
235
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
236
|
+
end
|
|
237
|
+
elsif value.respond_to? :to_hash
|
|
238
|
+
value.to_hash
|
|
239
|
+
else
|
|
240
|
+
value
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
end
|
|
@@ -0,0 +1,239 @@
|
|
|
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
|
+
# Update schema for modifying CloudProvider
|
|
18
|
+
class CloudProvidersUpdate
|
|
19
|
+
attr_accessor :name
|
|
20
|
+
|
|
21
|
+
attr_accessor :parent_company
|
|
22
|
+
|
|
23
|
+
attr_accessor :marketing_homepage_url
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
+
def self.attribute_map
|
|
27
|
+
{
|
|
28
|
+
:'name' => :'name',
|
|
29
|
+
:'parent_company' => :'parent_company',
|
|
30
|
+
:'marketing_homepage_url' => :'marketing_homepage_url'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Returns attribute mapping this model knows about
|
|
35
|
+
def self.acceptable_attribute_map
|
|
36
|
+
attribute_map
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Returns all the JSON keys this model knows about
|
|
40
|
+
def self.acceptable_attributes
|
|
41
|
+
acceptable_attribute_map.values
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute type mapping.
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'name' => :'String',
|
|
48
|
+
:'parent_company' => :'String',
|
|
49
|
+
:'marketing_homepage_url' => :'String'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# List of attributes with nullable: true
|
|
54
|
+
def self.openapi_nullable
|
|
55
|
+
Set.new([
|
|
56
|
+
])
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Initializes the object
|
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
61
|
+
def initialize(attributes = {})
|
|
62
|
+
if (!attributes.is_a?(Hash))
|
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::CloudProvidersUpdate` initialize method"
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
67
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
69
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::CloudProvidersUpdate`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
71
|
+
end
|
|
72
|
+
h[k.to_sym] = v
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'name')
|
|
76
|
+
self.name = attributes[:'name']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'parent_company')
|
|
80
|
+
self.parent_company = attributes[:'parent_company']
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'marketing_homepage_url')
|
|
84
|
+
self.marketing_homepage_url = attributes[:'marketing_homepage_url']
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
89
|
+
# @return Array for valid properties with the reasons
|
|
90
|
+
def list_invalid_properties
|
|
91
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
92
|
+
invalid_properties = Array.new
|
|
93
|
+
invalid_properties
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Check to see if the all the properties in the model are valid
|
|
97
|
+
# @return true if the model is valid
|
|
98
|
+
def valid?
|
|
99
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
100
|
+
true
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Checks equality by comparing each attribute.
|
|
104
|
+
# @param [Object] Object to be compared
|
|
105
|
+
def ==(o)
|
|
106
|
+
return true if self.equal?(o)
|
|
107
|
+
self.class == o.class &&
|
|
108
|
+
name == o.name &&
|
|
109
|
+
parent_company == o.parent_company &&
|
|
110
|
+
marketing_homepage_url == o.marketing_homepage_url
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# @see the `==` method
|
|
114
|
+
# @param [Object] Object to be compared
|
|
115
|
+
def eql?(o)
|
|
116
|
+
self == o
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Calculates hash code according to all attributes.
|
|
120
|
+
# @return [Integer] Hash code
|
|
121
|
+
def hash
|
|
122
|
+
[name, parent_company, marketing_homepage_url].hash
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Builds the object from hash
|
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
127
|
+
# @return [Object] Returns the model itself
|
|
128
|
+
def self.build_from_hash(attributes)
|
|
129
|
+
return nil unless attributes.is_a?(Hash)
|
|
130
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
131
|
+
transformed_hash = {}
|
|
132
|
+
openapi_types.each_pair do |key, type|
|
|
133
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
134
|
+
transformed_hash["#{key}"] = nil
|
|
135
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
136
|
+
# check to ensure the input is an array given that the attribute
|
|
137
|
+
# is documented as an array but the input is not
|
|
138
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
139
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
140
|
+
end
|
|
141
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
142
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
new(transformed_hash)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Deserializes the data based on type
|
|
149
|
+
# @param string type Data type
|
|
150
|
+
# @param string value Value to be deserialized
|
|
151
|
+
# @return [Object] Deserialized data
|
|
152
|
+
def self._deserialize(type, value)
|
|
153
|
+
case type.to_sym
|
|
154
|
+
when :Time
|
|
155
|
+
Time.parse(value)
|
|
156
|
+
when :Date
|
|
157
|
+
Date.parse(value)
|
|
158
|
+
when :String
|
|
159
|
+
value.to_s
|
|
160
|
+
when :Integer
|
|
161
|
+
value.to_i
|
|
162
|
+
when :Float
|
|
163
|
+
value.to_f
|
|
164
|
+
when :Boolean
|
|
165
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
166
|
+
true
|
|
167
|
+
else
|
|
168
|
+
false
|
|
169
|
+
end
|
|
170
|
+
when :Object
|
|
171
|
+
# generic object (usually a Hash), return directly
|
|
172
|
+
value
|
|
173
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
174
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
175
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
176
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
177
|
+
k_type = Regexp.last_match[:k_type]
|
|
178
|
+
v_type = Regexp.last_match[:v_type]
|
|
179
|
+
{}.tap do |hash|
|
|
180
|
+
value.each do |k, v|
|
|
181
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
else # model
|
|
185
|
+
# models (e.g. Pet) or oneOf
|
|
186
|
+
klass = SparteraApiSdk.const_get(type)
|
|
187
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Returns the string representation of the object
|
|
192
|
+
# @return [String] String presentation of the object
|
|
193
|
+
def to_s
|
|
194
|
+
to_hash.to_s
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
198
|
+
# @return [Hash] Returns the object in the form of hash
|
|
199
|
+
def to_body
|
|
200
|
+
to_hash
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Returns the object in the form of hash
|
|
204
|
+
# @return [Hash] Returns the object in the form of hash
|
|
205
|
+
def to_hash
|
|
206
|
+
hash = {}
|
|
207
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
208
|
+
value = self.send(attr)
|
|
209
|
+
if value.nil?
|
|
210
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
211
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
hash[param] = _to_hash(value)
|
|
215
|
+
end
|
|
216
|
+
hash
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Outputs non-array value in the form of hash
|
|
220
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
221
|
+
# @param [Object] value Any valid value
|
|
222
|
+
# @return [Hash] Returns the value in the form of hash
|
|
223
|
+
def _to_hash(value)
|
|
224
|
+
if value.is_a?(Array)
|
|
225
|
+
value.compact.map { |v| _to_hash(v) }
|
|
226
|
+
elsif value.is_a?(Hash)
|
|
227
|
+
{}.tap do |hash|
|
|
228
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
229
|
+
end
|
|
230
|
+
elsif value.respond_to? :to_hash
|
|
231
|
+
value.to_hash
|
|
232
|
+
else
|
|
233
|
+
value
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
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
|
|
@@ -15,7 +15,11 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module SparteraApiSdk
|
|
17
17
|
# All of our customer company entities
|
|
18
|
-
class
|
|
18
|
+
class Companies
|
|
19
|
+
attr_accessor :date_created
|
|
20
|
+
|
|
21
|
+
attr_accessor :last_updated
|
|
22
|
+
|
|
19
23
|
attr_accessor :company_id
|
|
20
24
|
|
|
21
25
|
attr_accessor :industry_id
|
|
@@ -30,23 +34,22 @@ module SparteraApiSdk
|
|
|
30
34
|
|
|
31
35
|
attr_accessor :company_domain
|
|
32
36
|
|
|
37
|
+
# Current balance of credits for this company (buyer)
|
|
33
38
|
attr_accessor :credits_balance
|
|
34
39
|
|
|
35
40
|
attr_accessor :accepted_eula
|
|
36
41
|
|
|
42
|
+
# Stripe Connect account ID for marketplace sellers
|
|
37
43
|
attr_accessor :stripe_account_id
|
|
38
44
|
|
|
45
|
+
# Status of the Stripe account (verified, pending, etc.)
|
|
39
46
|
attr_accessor :stripe_account_status
|
|
40
47
|
|
|
41
|
-
attr_accessor :date_created
|
|
42
|
-
|
|
43
|
-
attr_accessor :last_updated
|
|
44
|
-
|
|
45
|
-
attr_accessor :active
|
|
46
|
-
|
|
47
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
49
|
def self.attribute_map
|
|
49
50
|
{
|
|
51
|
+
:'date_created' => :'date_created',
|
|
52
|
+
:'last_updated' => :'last_updated',
|
|
50
53
|
:'company_id' => :'company_id',
|
|
51
54
|
:'industry_id' => :'industry_id',
|
|
52
55
|
:'country_id' => :'country_id',
|
|
@@ -57,10 +60,7 @@ module SparteraApiSdk
|
|
|
57
60
|
:'credits_balance' => :'credits_balance',
|
|
58
61
|
:'accepted_eula' => :'accepted_eula',
|
|
59
62
|
:'stripe_account_id' => :'stripe_account_id',
|
|
60
|
-
:'stripe_account_status' => :'stripe_account_status'
|
|
61
|
-
:'date_created' => :'date_created',
|
|
62
|
-
:'last_updated' => :'last_updated',
|
|
63
|
-
:'active' => :'active'
|
|
63
|
+
:'stripe_account_status' => :'stripe_account_status'
|
|
64
64
|
}
|
|
65
65
|
end
|
|
66
66
|
|
|
@@ -77,20 +77,19 @@ module SparteraApiSdk
|
|
|
77
77
|
# Attribute type mapping.
|
|
78
78
|
def self.openapi_types
|
|
79
79
|
{
|
|
80
|
+
:'date_created' => :'Time',
|
|
81
|
+
:'last_updated' => :'Time',
|
|
80
82
|
:'company_id' => :'String',
|
|
81
|
-
:'industry_id' => :'
|
|
82
|
-
:'country_id' => :'
|
|
83
|
+
:'industry_id' => :'Integer',
|
|
84
|
+
:'country_id' => :'Integer',
|
|
83
85
|
:'company_name' => :'String',
|
|
84
86
|
:'company_description' => :'String',
|
|
85
87
|
:'company_handle' => :'String',
|
|
86
88
|
:'company_domain' => :'String',
|
|
87
|
-
:'credits_balance' => :'
|
|
88
|
-
:'accepted_eula' => :'
|
|
89
|
+
:'credits_balance' => :'Integer',
|
|
90
|
+
:'accepted_eula' => :'Boolean',
|
|
89
91
|
:'stripe_account_id' => :'String',
|
|
90
|
-
:'stripe_account_status' => :'String'
|
|
91
|
-
:'date_created' => :'String',
|
|
92
|
-
:'last_updated' => :'String',
|
|
93
|
-
:'active' => :'String'
|
|
92
|
+
:'stripe_account_status' => :'String'
|
|
94
93
|
}
|
|
95
94
|
end
|
|
96
95
|
|
|
@@ -104,18 +103,26 @@ module SparteraApiSdk
|
|
|
104
103
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
105
104
|
def initialize(attributes = {})
|
|
106
105
|
if (!attributes.is_a?(Hash))
|
|
107
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::
|
|
106
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::Companies` initialize method"
|
|
108
107
|
end
|
|
109
108
|
|
|
110
109
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
111
110
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
112
111
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
113
112
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
114
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::
|
|
113
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::Companies`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
115
114
|
end
|
|
116
115
|
h[k.to_sym] = v
|
|
117
116
|
}
|
|
118
117
|
|
|
118
|
+
if attributes.key?(:'date_created')
|
|
119
|
+
self.date_created = attributes[:'date_created']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'last_updated')
|
|
123
|
+
self.last_updated = attributes[:'last_updated']
|
|
124
|
+
end
|
|
125
|
+
|
|
119
126
|
if attributes.key?(:'company_id')
|
|
120
127
|
self.company_id = attributes[:'company_id']
|
|
121
128
|
end
|
|
@@ -165,18 +172,6 @@ module SparteraApiSdk
|
|
|
165
172
|
if attributes.key?(:'stripe_account_status')
|
|
166
173
|
self.stripe_account_status = attributes[:'stripe_account_status']
|
|
167
174
|
end
|
|
168
|
-
|
|
169
|
-
if attributes.key?(:'date_created')
|
|
170
|
-
self.date_created = attributes[:'date_created']
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
if attributes.key?(:'last_updated')
|
|
174
|
-
self.last_updated = attributes[:'last_updated']
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
if attributes.key?(:'active')
|
|
178
|
-
self.active = attributes[:'active']
|
|
179
|
-
end
|
|
180
175
|
end
|
|
181
176
|
|
|
182
177
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -244,6 +239,8 @@ module SparteraApiSdk
|
|
|
244
239
|
def ==(o)
|
|
245
240
|
return true if self.equal?(o)
|
|
246
241
|
self.class == o.class &&
|
|
242
|
+
date_created == o.date_created &&
|
|
243
|
+
last_updated == o.last_updated &&
|
|
247
244
|
company_id == o.company_id &&
|
|
248
245
|
industry_id == o.industry_id &&
|
|
249
246
|
country_id == o.country_id &&
|
|
@@ -254,10 +251,7 @@ module SparteraApiSdk
|
|
|
254
251
|
credits_balance == o.credits_balance &&
|
|
255
252
|
accepted_eula == o.accepted_eula &&
|
|
256
253
|
stripe_account_id == o.stripe_account_id &&
|
|
257
|
-
stripe_account_status == o.stripe_account_status
|
|
258
|
-
date_created == o.date_created &&
|
|
259
|
-
last_updated == o.last_updated &&
|
|
260
|
-
active == o.active
|
|
254
|
+
stripe_account_status == o.stripe_account_status
|
|
261
255
|
end
|
|
262
256
|
|
|
263
257
|
# @see the `==` method
|
|
@@ -269,7 +263,7 @@ module SparteraApiSdk
|
|
|
269
263
|
# Calculates hash code according to all attributes.
|
|
270
264
|
# @return [Integer] Hash code
|
|
271
265
|
def hash
|
|
272
|
-
[company_id, industry_id, country_id, company_name, company_description, company_handle, company_domain, credits_balance, accepted_eula, stripe_account_id, stripe_account_status
|
|
266
|
+
[date_created, last_updated, company_id, industry_id, country_id, company_name, company_description, company_handle, company_domain, credits_balance, accepted_eula, stripe_account_id, stripe_account_status].hash
|
|
273
267
|
end
|
|
274
268
|
|
|
275
269
|
# Builds the object from hash
|