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