spartera_api_sdk 0.4.2 → 1.0.58
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/Gemfile +5 -3
- data/Gemfile.lock +69 -0
- data/README.md +324 -336
- data/config.json +10 -0
- data/docs/APIKeysApi.md +102 -286
- data/docs/Alert.md +36 -0
- data/docs/AlertsApi.md +163 -177
- data/docs/Apikey.md +36 -0
- data/docs/Asset.md +110 -0
- data/docs/AssetPriceHistoryApi.md +178 -202
- data/docs/Assetpricehistory.md +38 -0
- data/docs/AssetsApi.md +352 -418
- data/docs/CloudProvidersApi.md +233 -49
- data/docs/Cloudprovider.md +30 -0
- data/docs/CompaniesApi.md +171 -357
- data/docs/Company.md +44 -0
- data/docs/Connection.md +54 -0
- data/docs/ConnectionsApi.md +139 -249
- data/docs/Favorite.md +36 -0
- data/docs/FavoritesApi.md +183 -199
- data/docs/User.md +34 -0
- data/docs/UsersApi.md +97 -379
- data/example.rb +51 -0
- data/git_push.sh +2 -2
- data/lib/spartera_api_sdk/api/alerts_api.rb +176 -423
- data/lib/spartera_api_sdk/api/api_keys_api.rb +95 -496
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +177 -468
- data/lib/spartera_api_sdk/api/assets_api.rb +358 -806
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +199 -74
- data/lib/spartera_api_sdk/api/companies_api.rb +146 -660
- data/lib/spartera_api_sdk/api/connections_api.rb +139 -466
- data/lib/spartera_api_sdk/api/favorites_api.rb +204 -464
- data/lib/spartera_api_sdk/api/users_api.rb +95 -619
- data/lib/spartera_api_sdk/api_client.rb +4 -8
- data/lib/spartera_api_sdk/api_error.rb +2 -2
- data/lib/spartera_api_sdk/configuration.rb +12 -4
- data/lib/spartera_api_sdk/models/{alerts.rb → alert.rb} +139 -46
- data/lib/spartera_api_sdk/models/{api_keys.rb → apikey.rb} +124 -98
- data/lib/spartera_api_sdk/models/asset.rb +686 -0
- data/lib/spartera_api_sdk/models/{asset_price_history.rb → assetpricehistory.rb} +180 -44
- data/lib/spartera_api_sdk/models/{cloud_providers.rb → cloudprovider.rb} +111 -35
- data/lib/spartera_api_sdk/models/{companies.rb → company.rb} +105 -90
- data/lib/spartera_api_sdk/models/{connections.rb → connection.rb} +186 -69
- data/lib/spartera_api_sdk/models/error.rb +76 -3
- data/lib/spartera_api_sdk/models/{favorites.rb → favorite.rb} +111 -38
- data/lib/spartera_api_sdk/models/inline_object.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object1.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object2.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object3.rb +76 -3
- data/lib/spartera_api_sdk/models/{users.rb → user.rb} +108 -112
- data/lib/spartera_api_sdk/version.rb +3 -3
- data/lib/spartera_api_sdk.rb +11 -150
- data/spartera_api_sdk.gemspec +8 -19
- data/spec/api/alerts_api_spec.rb +51 -51
- data/spec/api/api_keys_api_spec.rb +30 -67
- data/spec/api/asset_price_history_api_spec.rb +53 -57
- data/spec/api/assets_api_spec.rb +99 -114
- data/spec/api/cloud_providers_api_spec.rb +42 -15
- data/spec/api/companies_api_spec.rb +47 -99
- data/spec/api/connections_api_spec.rb +41 -63
- data/spec/api/favorites_api_spec.rb +56 -56
- data/spec/api/users_api_spec.rb +29 -88
- data/spec/models/{postgen_integrations_spec.rb → alert_spec.rb} +17 -17
- data/spec/models/{api_keys_update_spec.rb → apikey_spec.rb} +20 -14
- data/spec/models/{endpoints_spec.rb → asset_spec.rb} +83 -69
- data/spec/models/{api_keys_spec.rb → assetpricehistory_spec.rb} +19 -25
- data/spec/models/{cloud_providers_spec.rb → cloudprovider_spec.rb} +20 -14
- data/spec/models/{companies_spec.rb → company_spec.rb} +16 -26
- data/spec/models/{posts_input_spec.rb → connection_spec.rb} +27 -51
- data/spec/models/error_spec.rb +3 -3
- data/spec/models/{favorites_spec.rb → favorite_spec.rb} +23 -17
- 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_object_spec.rb +3 -3
- data/spec/models/{api_keys_input_spec.rb → user_spec.rb} +15 -15
- data/spec/spec_helper.rb +2 -2
- data/test.sh +42 -0
- metadata +78 -616
- data/CHANGELOG.md +0 -25
- data/docs/Alerts.md +0 -30
- data/docs/AlertsInput.md +0 -24
- data/docs/AlertsUpdate.md +0 -24
- data/docs/ApiKeys.md +0 -40
- data/docs/ApiKeysInput.md +0 -34
- data/docs/ApiKeysUpdate.md +0 -34
- data/docs/AssetPriceHistory.md +0 -30
- data/docs/AssetPriceHistoryInput.md +0 -24
- data/docs/AssetPriceHistoryUpdate.md +0 -24
- data/docs/AssetUsecases.md +0 -28
- data/docs/AssetUsecasesApi.md +0 -157
- data/docs/Assets.md +0 -142
- data/docs/AssetsInput.md +0 -128
- data/docs/AssetsUpdate.md +0 -128
- data/docs/CloudProviders.md +0 -28
- data/docs/CloudProvidersInput.md +0 -22
- data/docs/CloudProvidersUpdate.md +0 -22
- data/docs/Companies.md +0 -46
- data/docs/CompaniesInput.md +0 -40
- data/docs/CompaniesUpdate.md +0 -40
- data/docs/Connections.md +0 -38
- data/docs/ConnectionsInput.md +0 -32
- data/docs/ConnectionsUpdate.md +0 -32
- data/docs/CreateAlerts200Response.md +0 -20
- data/docs/CreateAlerts200ResponseData.md +0 -18
- data/docs/CreateApiKeys200Response.md +0 -20
- data/docs/CreateApiKeys200ResponseData.md +0 -18
- data/docs/CreateAssetPriceHistory200Response.md +0 -20
- data/docs/CreateAssetPriceHistory200ResponseData.md +0 -18
- data/docs/CreateAssetsAnalyze200Response.md +0 -20
- data/docs/CreateAssetsAnalyze200ResponseData.md +0 -18
- data/docs/CreateConnections200Response.md +0 -20
- data/docs/CreateConnections200ResponseData.md +0 -18
- data/docs/CreateEndpoints200Response.md +0 -20
- data/docs/CreateEndpoints200ResponseData.md +0 -18
- data/docs/CreateFavorites200Response.md +0 -20
- data/docs/CreateFavorites200ResponseData.md +0 -18
- data/docs/CreatePostgenIntegrations200Response.md +0 -20
- data/docs/CreatePostgenIntegrations200ResponseData.md +0 -18
- data/docs/CreatePosts200Response.md +0 -20
- data/docs/CreatePosts200ResponseData.md +0 -18
- data/docs/CreateUsers200Response.md +0 -20
- data/docs/CreateUsers200ResponseData.md +0 -18
- data/docs/DeleteAlerts200Response.md +0 -20
- data/docs/DeleteAlerts200ResponseData.md +0 -18
- data/docs/DeleteApiKeys200Response.md +0 -20
- data/docs/DeleteApiKeys200ResponseData.md +0 -18
- data/docs/DeleteAssetPriceHistory200Response.md +0 -20
- data/docs/DeleteAssetPriceHistory200ResponseData.md +0 -18
- data/docs/DeleteAssets200Response.md +0 -20
- data/docs/DeleteAssets200ResponseData.md +0 -18
- data/docs/DeleteConnections200Response.md +0 -20
- data/docs/DeleteConnections200ResponseData.md +0 -18
- data/docs/DeleteEndpoints200Response.md +0 -20
- data/docs/DeleteEndpoints200ResponseData.md +0 -18
- data/docs/DeleteFavorites200Response.md +0 -20
- data/docs/DeleteFavorites200ResponseData.md +0 -18
- data/docs/DeletePostgenIntegrations200Response.md +0 -20
- data/docs/DeletePostgenIntegrations200ResponseData.md +0 -18
- data/docs/DeletePosts200Response.md +0 -20
- data/docs/DeletePosts200ResponseData.md +0 -18
- data/docs/DeleteUsers200Response.md +0 -20
- data/docs/DeleteUsers200ResponseData.md +0 -18
- data/docs/Endpoints.md +0 -96
- data/docs/EndpointsApi.md +0 -1189
- data/docs/EndpointsInput.md +0 -94
- data/docs/EndpointsUpdate.md +0 -94
- data/docs/Favorites.md +0 -34
- data/docs/FavoritesInput.md +0 -28
- data/docs/FavoritesUpdate.md +0 -28
- data/docs/GetAlertsById200Response.md +0 -20
- data/docs/GetApiKeysById200Response.md +0 -20
- data/docs/GetAssetPriceHistoryById200Response.md +0 -20
- data/docs/GetAssetUsecasesById200Response.md +0 -20
- data/docs/GetAssetsByIdAnalyze200Response.md +0 -20
- data/docs/GetCloudProvidersById200Response.md +0 -20
- data/docs/GetCompaniesById200Response.md +0 -20
- data/docs/GetConnectionsById200Response.md +0 -20
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +0 -20
- data/docs/GetFavoritesById200Response.md +0 -20
- data/docs/GetIndustriesById200Response.md +0 -20
- data/docs/GetJobFunctionsById200Response.md +0 -20
- data/docs/GetPostgenIntegrationsById200Response.md +0 -20
- data/docs/GetPostsById200Response.md +0 -20
- data/docs/GetStorageEnginesById200Response.md +0 -20
- data/docs/GetUsersById200Response.md +0 -20
- data/docs/Industries.md +0 -32
- data/docs/IndustriesApi.md +0 -237
- data/docs/InlineObject4.md +0 -20
- data/docs/InlineObject5.md +0 -20
- data/docs/InlineObject6.md +0 -22
- data/docs/InlineObject7.md +0 -20
- data/docs/JobFunctions.md +0 -24
- data/docs/JobFunctionsApi.md +0 -157
- data/docs/JobFunctionsInput.md +0 -18
- data/docs/JobFunctionsUpdate.md +0 -18
- data/docs/ListApiKeys200Response.md +0 -20
- data/docs/ListAssetUsecases200Response.md +0 -20
- data/docs/ListAssets200Response.md +0 -20
- data/docs/ListCloudProviders200Response.md +0 -20
- data/docs/ListCompaniesAnalyticsAssets200Response.md +0 -20
- data/docs/ListConnections200Response.md +0 -20
- data/docs/ListEndpoints200Response.md +0 -20
- data/docs/ListIndustries200Response.md +0 -20
- data/docs/ListJobFunctions200Response.md +0 -20
- data/docs/ListPostgenIntegrations200Response.md +0 -20
- data/docs/ListPosts200Response.md +0 -20
- data/docs/ListStorageEngines200Response.md +0 -20
- data/docs/ListUsers200Response.md +0 -20
- data/docs/PostPublications.md +0 -40
- data/docs/PostPublicationsInput.md +0 -34
- data/docs/PostPublicationsUpdate.md +0 -34
- data/docs/PostgenIntegrations.md +0 -36
- data/docs/PostgenIntegrationsApi.md +0 -463
- data/docs/PostgenIntegrationsInput.md +0 -30
- data/docs/PostgenIntegrationsUpdate.md +0 -30
- data/docs/Posts.md +0 -68
- data/docs/PostsApi.md +0 -843
- data/docs/PostsInput.md +0 -62
- data/docs/PostsUpdate.md +0 -62
- data/docs/StorageEngines.md +0 -32
- data/docs/StorageEnginesApi.md +0 -161
- data/docs/UpdateAlerts200Response.md +0 -20
- data/docs/UpdateAlerts200ResponseData.md +0 -18
- data/docs/UpdateApiKeys200Response.md +0 -20
- data/docs/UpdateApiKeys200ResponseData.md +0 -18
- data/docs/UpdateAssetPriceHistory200Response.md +0 -20
- data/docs/UpdateAssetPriceHistory200ResponseData.md +0 -18
- data/docs/UpdateAssets200Response.md +0 -20
- data/docs/UpdateAssets200ResponseData.md +0 -18
- data/docs/UpdateCompanies200Response.md +0 -20
- data/docs/UpdateCompanies200ResponseData.md +0 -18
- data/docs/UpdateConnections200Response.md +0 -20
- data/docs/UpdateConnections200ResponseData.md +0 -18
- data/docs/UpdateEndpoints200Response.md +0 -20
- data/docs/UpdateEndpoints200ResponseData.md +0 -18
- data/docs/UpdateFavorites200Response.md +0 -20
- data/docs/UpdateFavorites200ResponseData.md +0 -18
- data/docs/UpdatePostgenIntegrations200Response.md +0 -20
- data/docs/UpdatePostgenIntegrations200ResponseData.md +0 -18
- data/docs/UpdatePosts200Response.md +0 -20
- data/docs/UpdatePosts200ResponseData.md +0 -18
- data/docs/UpdateUsers200Response.md +0 -20
- data/docs/UpdateUsers200ResponseData.md +0 -18
- data/docs/Users.md +0 -36
- data/docs/UsersInput.md +0 -30
- data/docs/UsersUpdate.md +0 -30
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +0 -190
- data/lib/spartera_api_sdk/api/endpoints_api.rb +0 -1613
- data/lib/spartera_api_sdk/api/industries_api.rb +0 -284
- data/lib/spartera_api_sdk/api/job_functions_api.rb +0 -190
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +0 -634
- data/lib/spartera_api_sdk/api/posts_api.rb +0 -1190
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +0 -228
- data/lib/spartera_api_sdk/api_model_base.rb +0 -88
- data/lib/spartera_api_sdk/models/alerts_input.rb +0 -213
- data/lib/spartera_api_sdk/models/alerts_update.rb +0 -179
- data/lib/spartera_api_sdk/models/api_keys_input.rb +0 -263
- data/lib/spartera_api_sdk/models/api_keys_update.rb +0 -229
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +0 -179
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +0 -179
- data/lib/spartera_api_sdk/models/asset_usecases.rb +0 -216
- data/lib/spartera_api_sdk/models/assets.rb +0 -1068
- data/lib/spartera_api_sdk/models/assets_input.rb +0 -918
- data/lib/spartera_api_sdk/models/assets_update.rb +0 -877
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +0 -186
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +0 -169
- data/lib/spartera_api_sdk/models/companies_input.rb +0 -327
- data/lib/spartera_api_sdk/models/companies_update.rb +0 -293
- data/lib/spartera_api_sdk/models/connections_input.rb +0 -287
- data/lib/spartera_api_sdk/models/connections_update.rb +0 -253
- data/lib/spartera_api_sdk/models/create_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_assets200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/endpoints.rb +0 -788
- data/lib/spartera_api_sdk/models/endpoints_input.rb +0 -686
- data/lib/spartera_api_sdk/models/endpoints_update.rb +0 -635
- data/lib/spartera_api_sdk/models/favorites_input.rb +0 -233
- data/lib/spartera_api_sdk/models/favorites_update.rb +0 -199
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_api_keys_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_asset_price_history_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_assets_by_id_analyze200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_cloud_providers_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_connections_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_endpoints_by_id_connections_describe200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_postgen_integrations_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_users_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/industries.rb +0 -253
- data/lib/spartera_api_sdk/models/inline_object4.rb +0 -156
- data/lib/spartera_api_sdk/models/inline_object5.rb +0 -156
- data/lib/spartera_api_sdk/models/inline_object6.rb +0 -166
- data/lib/spartera_api_sdk/models/inline_object7.rb +0 -156
- data/lib/spartera_api_sdk/models/job_functions.rb +0 -213
- data/lib/spartera_api_sdk/models/job_functions_input.rb +0 -166
- data/lib/spartera_api_sdk/models/job_functions_update.rb +0 -149
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_asset_usecases200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_assets200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_companies_analytics_assets200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_connections200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_users200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/post_publications.rb +0 -327
- data/lib/spartera_api_sdk/models/post_publications_input.rb +0 -280
- data/lib/spartera_api_sdk/models/post_publications_update.rb +0 -229
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +0 -341
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +0 -294
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +0 -209
- data/lib/spartera_api_sdk/models/posts.rb +0 -586
- data/lib/spartera_api_sdk/models/posts_input.rb +0 -437
- data/lib/spartera_api_sdk/models/posts_update.rb +0 -369
- data/lib/spartera_api_sdk/models/storage_engines.rb +0 -294
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_assets200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_companies200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/users_input.rb +0 -260
- data/lib/spartera_api_sdk/models/users_update.rb +0 -243
- data/spec/api/asset_usecases_api_spec.rb +0 -61
- data/spec/api/endpoints_api_spec.rb +0 -240
- data/spec/api/industries_api_spec.rb +0 -76
- data/spec/api/job_functions_api_spec.rb +0 -61
- data/spec/api/postgen_integrations_api_spec.rb +0 -117
- data/spec/api/posts_api_spec.rb +0 -186
- data/spec/api/storage_engines_api_spec.rb +0 -63
- data/spec/models/alerts_input_spec.rb +0 -54
- data/spec/models/alerts_spec.rb +0 -72
- data/spec/models/alerts_update_spec.rb +0 -54
- data/spec/models/asset_price_history_input_spec.rb +0 -54
- data/spec/models/asset_price_history_spec.rb +0 -72
- data/spec/models/asset_price_history_update_spec.rb +0 -54
- data/spec/models/asset_usecases_spec.rb +0 -66
- data/spec/models/assets_input_spec.rb +0 -418
- data/spec/models/assets_spec.rb +0 -464
- data/spec/models/assets_update_spec.rb +0 -418
- data/spec/models/cloud_providers_input_spec.rb +0 -48
- data/spec/models/cloud_providers_update_spec.rb +0 -48
- data/spec/models/companies_input_spec.rb +0 -106
- data/spec/models/companies_update_spec.rb +0 -106
- data/spec/models/connections_input_spec.rb +0 -82
- data/spec/models/connections_spec.rb +0 -100
- data/spec/models/connections_update_spec.rb +0 -82
- data/spec/models/create_alerts200_response_data_spec.rb +0 -36
- data/spec/models/create_alerts200_response_spec.rb +0 -42
- data/spec/models/create_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/create_api_keys200_response_spec.rb +0 -42
- data/spec/models/create_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/create_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/create_assets_analyze200_response_data_spec.rb +0 -36
- data/spec/models/create_assets_analyze200_response_spec.rb +0 -42
- data/spec/models/create_connections200_response_data_spec.rb +0 -36
- data/spec/models/create_connections200_response_spec.rb +0 -42
- data/spec/models/create_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/create_endpoints200_response_spec.rb +0 -42
- data/spec/models/create_favorites200_response_data_spec.rb +0 -36
- data/spec/models/create_favorites200_response_spec.rb +0 -42
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/create_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/create_posts200_response_data_spec.rb +0 -36
- data/spec/models/create_posts200_response_spec.rb +0 -42
- data/spec/models/create_users200_response_data_spec.rb +0 -36
- data/spec/models/create_users200_response_spec.rb +0 -42
- data/spec/models/delete_alerts200_response_data_spec.rb +0 -36
- data/spec/models/delete_alerts200_response_spec.rb +0 -42
- data/spec/models/delete_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/delete_api_keys200_response_spec.rb +0 -42
- data/spec/models/delete_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/delete_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/delete_assets200_response_data_spec.rb +0 -36
- data/spec/models/delete_assets200_response_spec.rb +0 -42
- data/spec/models/delete_connections200_response_data_spec.rb +0 -36
- data/spec/models/delete_connections200_response_spec.rb +0 -42
- data/spec/models/delete_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/delete_endpoints200_response_spec.rb +0 -42
- data/spec/models/delete_favorites200_response_data_spec.rb +0 -36
- data/spec/models/delete_favorites200_response_spec.rb +0 -42
- data/spec/models/delete_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/delete_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/delete_posts200_response_data_spec.rb +0 -36
- data/spec/models/delete_posts200_response_spec.rb +0 -42
- data/spec/models/delete_users200_response_data_spec.rb +0 -36
- data/spec/models/delete_users200_response_spec.rb +0 -42
- data/spec/models/endpoints_input_spec.rb +0 -292
- data/spec/models/endpoints_update_spec.rb +0 -292
- data/spec/models/favorites_input_spec.rb +0 -66
- data/spec/models/favorites_update_spec.rb +0 -66
- data/spec/models/get_alerts_by_id200_response_spec.rb +0 -42
- data/spec/models/get_api_keys_by_id200_response_spec.rb +0 -42
- data/spec/models/get_asset_price_history_by_id200_response_spec.rb +0 -42
- data/spec/models/get_asset_usecases_by_id200_response_spec.rb +0 -42
- data/spec/models/get_assets_by_id_analyze200_response_spec.rb +0 -42
- data/spec/models/get_cloud_providers_by_id200_response_spec.rb +0 -42
- data/spec/models/get_companies_by_id200_response_spec.rb +0 -42
- data/spec/models/get_connections_by_id200_response_spec.rb +0 -42
- data/spec/models/get_endpoints_by_id_connections_describe200_response_spec.rb +0 -42
- data/spec/models/get_favorites_by_id200_response_spec.rb +0 -42
- data/spec/models/get_industries_by_id200_response_spec.rb +0 -42
- data/spec/models/get_job_functions_by_id200_response_spec.rb +0 -42
- data/spec/models/get_postgen_integrations_by_id200_response_spec.rb +0 -42
- data/spec/models/get_posts_by_id200_response_spec.rb +0 -42
- data/spec/models/get_storage_engines_by_id200_response_spec.rb +0 -42
- data/spec/models/get_users_by_id200_response_spec.rb +0 -42
- data/spec/models/industries_spec.rb +0 -78
- data/spec/models/inline_object4_spec.rb +0 -42
- data/spec/models/inline_object5_spec.rb +0 -42
- data/spec/models/inline_object6_spec.rb +0 -48
- data/spec/models/inline_object7_spec.rb +0 -42
- data/spec/models/job_functions_input_spec.rb +0 -36
- data/spec/models/job_functions_spec.rb +0 -54
- data/spec/models/job_functions_update_spec.rb +0 -36
- data/spec/models/list_api_keys200_response_spec.rb +0 -42
- data/spec/models/list_asset_usecases200_response_spec.rb +0 -42
- data/spec/models/list_assets200_response_spec.rb +0 -42
- data/spec/models/list_cloud_providers200_response_spec.rb +0 -42
- data/spec/models/list_companies_analytics_assets200_response_spec.rb +0 -42
- data/spec/models/list_connections200_response_spec.rb +0 -42
- data/spec/models/list_endpoints200_response_spec.rb +0 -42
- data/spec/models/list_industries200_response_spec.rb +0 -42
- data/spec/models/list_job_functions200_response_spec.rb +0 -42
- data/spec/models/list_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/list_posts200_response_spec.rb +0 -42
- data/spec/models/list_storage_engines200_response_spec.rb +0 -42
- data/spec/models/list_users200_response_spec.rb +0 -42
- data/spec/models/post_publications_input_spec.rb +0 -84
- data/spec/models/post_publications_spec.rb +0 -102
- data/spec/models/post_publications_update_spec.rb +0 -84
- data/spec/models/postgen_integrations_input_spec.rb +0 -72
- data/spec/models/postgen_integrations_update_spec.rb +0 -72
- data/spec/models/posts_spec.rb +0 -186
- data/spec/models/posts_update_spec.rb +0 -168
- data/spec/models/storage_engines_spec.rb +0 -82
- data/spec/models/update_alerts200_response_data_spec.rb +0 -36
- data/spec/models/update_alerts200_response_spec.rb +0 -42
- data/spec/models/update_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/update_api_keys200_response_spec.rb +0 -42
- data/spec/models/update_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/update_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/update_assets200_response_data_spec.rb +0 -36
- data/spec/models/update_assets200_response_spec.rb +0 -42
- data/spec/models/update_companies200_response_data_spec.rb +0 -36
- data/spec/models/update_companies200_response_spec.rb +0 -42
- data/spec/models/update_connections200_response_data_spec.rb +0 -36
- data/spec/models/update_connections200_response_spec.rb +0 -42
- data/spec/models/update_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/update_endpoints200_response_spec.rb +0 -42
- data/spec/models/update_favorites200_response_data_spec.rb +0 -36
- data/spec/models/update_favorites200_response_spec.rb +0 -42
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/update_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/update_posts200_response_data_spec.rb +0 -36
- data/spec/models/update_posts200_response_spec.rb +0 -42
- data/spec/models/update_users200_response_data_spec.rb +0 -36
- data/spec/models/update_users200_response_spec.rb +0 -42
- data/spec/models/users_input_spec.rb +0 -76
- data/spec/models/users_spec.rb +0 -94
- data/spec/models/users_update_spec.rb +0 -76
|
@@ -4,21 +4,21 @@ All URIs are relative to *https://api.spartera.com*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**
|
|
8
|
-
| [**
|
|
9
|
-
| [**
|
|
10
|
-
| [**
|
|
11
|
-
| [**
|
|
12
|
-
| [**
|
|
13
|
-
| [**
|
|
14
|
-
| [**
|
|
7
|
+
| [**companies_company_id_assets_asset_id_prices_active_get**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_active_get) | **GET** /companies/{company_id}/assets/{asset_id}/prices/active | Get the currently active price for an asset |
|
|
8
|
+
| [**companies_company_id_assets_asset_id_prices_aph_id_delete**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_aph_id_delete) | **DELETE** /companies/{company_id}/assets/{asset_id}/prices/{aph_id} | Delete single price history record by ID |
|
|
9
|
+
| [**companies_company_id_assets_asset_id_prices_aph_id_get**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_aph_id_get) | **GET** /companies/{company_id}/assets/{asset_id}/prices/{aph_id} | Get single price history record by ID |
|
|
10
|
+
| [**companies_company_id_assets_asset_id_prices_aph_id_patch**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_aph_id_patch) | **PATCH** /companies/{company_id}/assets/{asset_id}/prices/{aph_id} | Update an existing price history record by ID |
|
|
11
|
+
| [**companies_company_id_assets_asset_id_prices_calculate_credits_post**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_calculate_credits_post) | **POST** /companies/{company_id}/assets/{asset_id}/prices/calculate_credits | Calculate the credit equivalent for a given USD price without saving |
|
|
12
|
+
| [**companies_company_id_assets_asset_id_prices_discount_post**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_discount_post) | **POST** /companies/{company_id}/assets/{asset_id}/prices/discount | Apply a discount to the active price for an asset |
|
|
13
|
+
| [**companies_company_id_assets_asset_id_prices_get**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_get) | **GET** /companies/{company_id}/assets/{asset_id}/prices | Get all price history records for a specific asset |
|
|
14
|
+
| [**companies_company_id_assets_asset_id_prices_post**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_post) | **POST** /companies/{company_id}/assets/{asset_id}/prices | Create a new price history record for an asset |
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
##
|
|
17
|
+
## companies_company_id_assets_asset_id_prices_active_get
|
|
18
18
|
|
|
19
|
-
>
|
|
19
|
+
> Object companies_company_id_assets_asset_id_prices_active_get(company_id, asset_id)
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Get the currently active price for an asset
|
|
22
22
|
|
|
23
23
|
### Examples
|
|
24
24
|
|
|
@@ -27,41 +27,38 @@ require 'time'
|
|
|
27
27
|
require 'spartera_api_sdk'
|
|
28
28
|
# setup authorization
|
|
29
29
|
SparteraApiSdk.configure do |config|
|
|
30
|
-
# Configure
|
|
31
|
-
config.
|
|
32
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
33
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
30
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
31
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
34
32
|
end
|
|
35
33
|
|
|
36
34
|
api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
|
|
37
|
-
company_id = 'company_id_example' # String |
|
|
38
|
-
asset_id = 'asset_id_example' # String |
|
|
39
|
-
asset_price_history_input = SparteraApiSdk::AssetPriceHistoryInput.new # AssetPriceHistoryInput |
|
|
35
|
+
company_id = 'company_id_example' # String |
|
|
36
|
+
asset_id = 'asset_id_example' # String |
|
|
40
37
|
|
|
41
38
|
begin
|
|
42
|
-
#
|
|
43
|
-
result = api_instance.
|
|
39
|
+
# Get the currently active price for an asset
|
|
40
|
+
result = api_instance.companies_company_id_assets_asset_id_prices_active_get(company_id, asset_id)
|
|
44
41
|
p result
|
|
45
42
|
rescue SparteraApiSdk::ApiError => e
|
|
46
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
43
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_active_get: #{e}"
|
|
47
44
|
end
|
|
48
45
|
```
|
|
49
46
|
|
|
50
|
-
#### Using the
|
|
47
|
+
#### Using the companies_company_id_assets_asset_id_prices_active_get_with_http_info variant
|
|
51
48
|
|
|
52
49
|
This returns an Array which contains the response data, status code and headers.
|
|
53
50
|
|
|
54
|
-
> <Array(
|
|
51
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_prices_active_get_with_http_info(company_id, asset_id)
|
|
55
52
|
|
|
56
53
|
```ruby
|
|
57
54
|
begin
|
|
58
|
-
#
|
|
59
|
-
data, status_code, headers = api_instance.
|
|
55
|
+
# Get the currently active price for an asset
|
|
56
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_prices_active_get_with_http_info(company_id, asset_id)
|
|
60
57
|
p status_code # => 2xx
|
|
61
58
|
p headers # => { ... }
|
|
62
|
-
p data # =>
|
|
59
|
+
p data # => Object
|
|
63
60
|
rescue SparteraApiSdk::ApiError => e
|
|
64
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
61
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_active_get_with_http_info: #{e}"
|
|
65
62
|
end
|
|
66
63
|
```
|
|
67
64
|
|
|
@@ -69,29 +66,28 @@ end
|
|
|
69
66
|
|
|
70
67
|
| Name | Type | Description | Notes |
|
|
71
68
|
| ---- | ---- | ----------- | ----- |
|
|
72
|
-
| **company_id** | **String** |
|
|
73
|
-
| **asset_id** | **String** |
|
|
74
|
-
| **asset_price_history_input** | [**AssetPriceHistoryInput**](AssetPriceHistoryInput.md) | | |
|
|
69
|
+
| **company_id** | **String** | | |
|
|
70
|
+
| **asset_id** | **String** | | |
|
|
75
71
|
|
|
76
72
|
### Return type
|
|
77
73
|
|
|
78
|
-
|
|
74
|
+
**Object**
|
|
79
75
|
|
|
80
76
|
### Authorization
|
|
81
77
|
|
|
82
|
-
[
|
|
78
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
83
79
|
|
|
84
80
|
### HTTP request headers
|
|
85
81
|
|
|
86
|
-
- **Content-Type**:
|
|
82
|
+
- **Content-Type**: Not defined
|
|
87
83
|
- **Accept**: application/json
|
|
88
84
|
|
|
89
85
|
|
|
90
|
-
##
|
|
86
|
+
## companies_company_id_assets_asset_id_prices_aph_id_delete
|
|
91
87
|
|
|
92
|
-
>
|
|
88
|
+
> Object companies_company_id_assets_asset_id_prices_aph_id_delete(company_id, asset_id, aph_id)
|
|
93
89
|
|
|
94
|
-
|
|
90
|
+
Delete single price history record by ID
|
|
95
91
|
|
|
96
92
|
### Examples
|
|
97
93
|
|
|
@@ -100,41 +96,39 @@ require 'time'
|
|
|
100
96
|
require 'spartera_api_sdk'
|
|
101
97
|
# setup authorization
|
|
102
98
|
SparteraApiSdk.configure do |config|
|
|
103
|
-
# Configure
|
|
104
|
-
config.
|
|
105
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
106
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
99
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
100
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
107
101
|
end
|
|
108
102
|
|
|
109
103
|
api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
|
|
110
|
-
company_id = 'company_id_example' # String |
|
|
111
|
-
asset_id = 'asset_id_example' # String |
|
|
112
|
-
|
|
104
|
+
company_id = 'company_id_example' # String |
|
|
105
|
+
asset_id = 'asset_id_example' # String |
|
|
106
|
+
aph_id = 'aph_id_example' # String |
|
|
113
107
|
|
|
114
108
|
begin
|
|
115
|
-
#
|
|
116
|
-
result = api_instance.
|
|
109
|
+
# Delete single price history record by ID
|
|
110
|
+
result = api_instance.companies_company_id_assets_asset_id_prices_aph_id_delete(company_id, asset_id, aph_id)
|
|
117
111
|
p result
|
|
118
112
|
rescue SparteraApiSdk::ApiError => e
|
|
119
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
113
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_aph_id_delete: #{e}"
|
|
120
114
|
end
|
|
121
115
|
```
|
|
122
116
|
|
|
123
|
-
#### Using the
|
|
117
|
+
#### Using the companies_company_id_assets_asset_id_prices_aph_id_delete_with_http_info variant
|
|
124
118
|
|
|
125
119
|
This returns an Array which contains the response data, status code and headers.
|
|
126
120
|
|
|
127
|
-
> <Array(
|
|
121
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_prices_aph_id_delete_with_http_info(company_id, asset_id, aph_id)
|
|
128
122
|
|
|
129
123
|
```ruby
|
|
130
124
|
begin
|
|
131
|
-
#
|
|
132
|
-
data, status_code, headers = api_instance.
|
|
125
|
+
# Delete single price history record by ID
|
|
126
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_prices_aph_id_delete_with_http_info(company_id, asset_id, aph_id)
|
|
133
127
|
p status_code # => 2xx
|
|
134
128
|
p headers # => { ... }
|
|
135
|
-
p data # =>
|
|
129
|
+
p data # => Object
|
|
136
130
|
rescue SparteraApiSdk::ApiError => e
|
|
137
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
131
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_aph_id_delete_with_http_info: #{e}"
|
|
138
132
|
end
|
|
139
133
|
```
|
|
140
134
|
|
|
@@ -142,29 +136,29 @@ end
|
|
|
142
136
|
|
|
143
137
|
| Name | Type | Description | Notes |
|
|
144
138
|
| ---- | ---- | ----------- | ----- |
|
|
145
|
-
| **company_id** | **String** |
|
|
146
|
-
| **asset_id** | **String** |
|
|
147
|
-
| **
|
|
139
|
+
| **company_id** | **String** | | |
|
|
140
|
+
| **asset_id** | **String** | | |
|
|
141
|
+
| **aph_id** | **String** | | |
|
|
148
142
|
|
|
149
143
|
### Return type
|
|
150
144
|
|
|
151
|
-
|
|
145
|
+
**Object**
|
|
152
146
|
|
|
153
147
|
### Authorization
|
|
154
148
|
|
|
155
|
-
[
|
|
149
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
156
150
|
|
|
157
151
|
### HTTP request headers
|
|
158
152
|
|
|
159
|
-
- **Content-Type**:
|
|
153
|
+
- **Content-Type**: Not defined
|
|
160
154
|
- **Accept**: application/json
|
|
161
155
|
|
|
162
156
|
|
|
163
|
-
##
|
|
157
|
+
## companies_company_id_assets_asset_id_prices_aph_id_get
|
|
164
158
|
|
|
165
|
-
>
|
|
159
|
+
> Object companies_company_id_assets_asset_id_prices_aph_id_get(company_id, asset_id, aph_id)
|
|
166
160
|
|
|
167
|
-
|
|
161
|
+
Get single price history record by ID
|
|
168
162
|
|
|
169
163
|
### Examples
|
|
170
164
|
|
|
@@ -173,41 +167,39 @@ require 'time'
|
|
|
173
167
|
require 'spartera_api_sdk'
|
|
174
168
|
# setup authorization
|
|
175
169
|
SparteraApiSdk.configure do |config|
|
|
176
|
-
# Configure
|
|
177
|
-
config.
|
|
178
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
179
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
170
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
171
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
180
172
|
end
|
|
181
173
|
|
|
182
174
|
api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
|
|
183
|
-
company_id = 'company_id_example' # String |
|
|
184
|
-
asset_id = 'asset_id_example' # String |
|
|
185
|
-
|
|
175
|
+
company_id = 'company_id_example' # String |
|
|
176
|
+
asset_id = 'asset_id_example' # String |
|
|
177
|
+
aph_id = 'aph_id_example' # String |
|
|
186
178
|
|
|
187
179
|
begin
|
|
188
|
-
#
|
|
189
|
-
result = api_instance.
|
|
180
|
+
# Get single price history record by ID
|
|
181
|
+
result = api_instance.companies_company_id_assets_asset_id_prices_aph_id_get(company_id, asset_id, aph_id)
|
|
190
182
|
p result
|
|
191
183
|
rescue SparteraApiSdk::ApiError => e
|
|
192
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
184
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_aph_id_get: #{e}"
|
|
193
185
|
end
|
|
194
186
|
```
|
|
195
187
|
|
|
196
|
-
#### Using the
|
|
188
|
+
#### Using the companies_company_id_assets_asset_id_prices_aph_id_get_with_http_info variant
|
|
197
189
|
|
|
198
190
|
This returns an Array which contains the response data, status code and headers.
|
|
199
191
|
|
|
200
|
-
> <Array(
|
|
192
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_prices_aph_id_get_with_http_info(company_id, asset_id, aph_id)
|
|
201
193
|
|
|
202
194
|
```ruby
|
|
203
195
|
begin
|
|
204
|
-
#
|
|
205
|
-
data, status_code, headers = api_instance.
|
|
196
|
+
# Get single price history record by ID
|
|
197
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_prices_aph_id_get_with_http_info(company_id, asset_id, aph_id)
|
|
206
198
|
p status_code # => 2xx
|
|
207
199
|
p headers # => { ... }
|
|
208
|
-
p data # =>
|
|
200
|
+
p data # => Object
|
|
209
201
|
rescue SparteraApiSdk::ApiError => e
|
|
210
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
202
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_aph_id_get_with_http_info: #{e}"
|
|
211
203
|
end
|
|
212
204
|
```
|
|
213
205
|
|
|
@@ -215,29 +207,29 @@ end
|
|
|
215
207
|
|
|
216
208
|
| Name | Type | Description | Notes |
|
|
217
209
|
| ---- | ---- | ----------- | ----- |
|
|
218
|
-
| **company_id** | **String** |
|
|
219
|
-
| **asset_id** | **String** |
|
|
220
|
-
| **
|
|
210
|
+
| **company_id** | **String** | | |
|
|
211
|
+
| **asset_id** | **String** | | |
|
|
212
|
+
| **aph_id** | **String** | | |
|
|
221
213
|
|
|
222
214
|
### Return type
|
|
223
215
|
|
|
224
|
-
|
|
216
|
+
**Object**
|
|
225
217
|
|
|
226
218
|
### Authorization
|
|
227
219
|
|
|
228
|
-
[
|
|
220
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
229
221
|
|
|
230
222
|
### HTTP request headers
|
|
231
223
|
|
|
232
|
-
- **Content-Type**:
|
|
224
|
+
- **Content-Type**: Not defined
|
|
233
225
|
- **Accept**: application/json
|
|
234
226
|
|
|
235
227
|
|
|
236
|
-
##
|
|
228
|
+
## companies_company_id_assets_asset_id_prices_aph_id_patch
|
|
237
229
|
|
|
238
|
-
>
|
|
230
|
+
> Object companies_company_id_assets_asset_id_prices_aph_id_patch(company_id, asset_id, aph_id)
|
|
239
231
|
|
|
240
|
-
|
|
232
|
+
Update an existing price history record by ID
|
|
241
233
|
|
|
242
234
|
### Examples
|
|
243
235
|
|
|
@@ -246,41 +238,39 @@ require 'time'
|
|
|
246
238
|
require 'spartera_api_sdk'
|
|
247
239
|
# setup authorization
|
|
248
240
|
SparteraApiSdk.configure do |config|
|
|
249
|
-
# Configure
|
|
250
|
-
config.
|
|
251
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
252
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
241
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
242
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
253
243
|
end
|
|
254
244
|
|
|
255
245
|
api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
|
|
256
|
-
company_id = 'company_id_example' # String |
|
|
257
|
-
asset_id = 'asset_id_example' # String |
|
|
258
|
-
aph_id = 'aph_id_example' # String |
|
|
246
|
+
company_id = 'company_id_example' # String |
|
|
247
|
+
asset_id = 'asset_id_example' # String |
|
|
248
|
+
aph_id = 'aph_id_example' # String |
|
|
259
249
|
|
|
260
250
|
begin
|
|
261
|
-
#
|
|
262
|
-
result = api_instance.
|
|
251
|
+
# Update an existing price history record by ID
|
|
252
|
+
result = api_instance.companies_company_id_assets_asset_id_prices_aph_id_patch(company_id, asset_id, aph_id)
|
|
263
253
|
p result
|
|
264
254
|
rescue SparteraApiSdk::ApiError => e
|
|
265
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
255
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_aph_id_patch: #{e}"
|
|
266
256
|
end
|
|
267
257
|
```
|
|
268
258
|
|
|
269
|
-
#### Using the
|
|
259
|
+
#### Using the companies_company_id_assets_asset_id_prices_aph_id_patch_with_http_info variant
|
|
270
260
|
|
|
271
261
|
This returns an Array which contains the response data, status code and headers.
|
|
272
262
|
|
|
273
|
-
> <Array(
|
|
263
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_prices_aph_id_patch_with_http_info(company_id, asset_id, aph_id)
|
|
274
264
|
|
|
275
265
|
```ruby
|
|
276
266
|
begin
|
|
277
|
-
#
|
|
278
|
-
data, status_code, headers = api_instance.
|
|
267
|
+
# Update an existing price history record by ID
|
|
268
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_prices_aph_id_patch_with_http_info(company_id, asset_id, aph_id)
|
|
279
269
|
p status_code # => 2xx
|
|
280
270
|
p headers # => { ... }
|
|
281
|
-
p data # =>
|
|
271
|
+
p data # => Object
|
|
282
272
|
rescue SparteraApiSdk::ApiError => e
|
|
283
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
273
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_aph_id_patch_with_http_info: #{e}"
|
|
284
274
|
end
|
|
285
275
|
```
|
|
286
276
|
|
|
@@ -288,17 +278,17 @@ end
|
|
|
288
278
|
|
|
289
279
|
| Name | Type | Description | Notes |
|
|
290
280
|
| ---- | ---- | ----------- | ----- |
|
|
291
|
-
| **company_id** | **String** |
|
|
292
|
-
| **asset_id** | **String** |
|
|
293
|
-
| **aph_id** | **String** |
|
|
281
|
+
| **company_id** | **String** | | |
|
|
282
|
+
| **asset_id** | **String** | | |
|
|
283
|
+
| **aph_id** | **String** | | |
|
|
294
284
|
|
|
295
285
|
### Return type
|
|
296
286
|
|
|
297
|
-
|
|
287
|
+
**Object**
|
|
298
288
|
|
|
299
289
|
### Authorization
|
|
300
290
|
|
|
301
|
-
[
|
|
291
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
302
292
|
|
|
303
293
|
### HTTP request headers
|
|
304
294
|
|
|
@@ -306,11 +296,11 @@ end
|
|
|
306
296
|
- **Accept**: application/json
|
|
307
297
|
|
|
308
298
|
|
|
309
|
-
##
|
|
299
|
+
## companies_company_id_assets_asset_id_prices_calculate_credits_post
|
|
310
300
|
|
|
311
|
-
>
|
|
301
|
+
> Object companies_company_id_assets_asset_id_prices_calculate_credits_post(company_id, asset_id)
|
|
312
302
|
|
|
313
|
-
|
|
303
|
+
Calculate the credit equivalent for a given USD price without saving
|
|
314
304
|
|
|
315
305
|
### Examples
|
|
316
306
|
|
|
@@ -319,40 +309,38 @@ require 'time'
|
|
|
319
309
|
require 'spartera_api_sdk'
|
|
320
310
|
# setup authorization
|
|
321
311
|
SparteraApiSdk.configure do |config|
|
|
322
|
-
# Configure
|
|
323
|
-
config.
|
|
324
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
325
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
312
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
313
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
326
314
|
end
|
|
327
315
|
|
|
328
316
|
api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
|
|
329
|
-
company_id = 'company_id_example' # String |
|
|
330
|
-
asset_id = 'asset_id_example' # String |
|
|
317
|
+
company_id = 'company_id_example' # String |
|
|
318
|
+
asset_id = 'asset_id_example' # String |
|
|
331
319
|
|
|
332
320
|
begin
|
|
333
|
-
#
|
|
334
|
-
result = api_instance.
|
|
321
|
+
# Calculate the credit equivalent for a given USD price without saving
|
|
322
|
+
result = api_instance.companies_company_id_assets_asset_id_prices_calculate_credits_post(company_id, asset_id)
|
|
335
323
|
p result
|
|
336
324
|
rescue SparteraApiSdk::ApiError => e
|
|
337
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
325
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_calculate_credits_post: #{e}"
|
|
338
326
|
end
|
|
339
327
|
```
|
|
340
328
|
|
|
341
|
-
#### Using the
|
|
329
|
+
#### Using the companies_company_id_assets_asset_id_prices_calculate_credits_post_with_http_info variant
|
|
342
330
|
|
|
343
331
|
This returns an Array which contains the response data, status code and headers.
|
|
344
332
|
|
|
345
|
-
> <Array(
|
|
333
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_prices_calculate_credits_post_with_http_info(company_id, asset_id)
|
|
346
334
|
|
|
347
335
|
```ruby
|
|
348
336
|
begin
|
|
349
|
-
#
|
|
350
|
-
data, status_code, headers = api_instance.
|
|
337
|
+
# Calculate the credit equivalent for a given USD price without saving
|
|
338
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_prices_calculate_credits_post_with_http_info(company_id, asset_id)
|
|
351
339
|
p status_code # => 2xx
|
|
352
340
|
p headers # => { ... }
|
|
353
|
-
p data # =>
|
|
341
|
+
p data # => Object
|
|
354
342
|
rescue SparteraApiSdk::ApiError => e
|
|
355
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
343
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_calculate_credits_post_with_http_info: #{e}"
|
|
356
344
|
end
|
|
357
345
|
```
|
|
358
346
|
|
|
@@ -360,16 +348,16 @@ end
|
|
|
360
348
|
|
|
361
349
|
| Name | Type | Description | Notes |
|
|
362
350
|
| ---- | ---- | ----------- | ----- |
|
|
363
|
-
| **company_id** | **String** |
|
|
364
|
-
| **asset_id** | **String** |
|
|
351
|
+
| **company_id** | **String** | | |
|
|
352
|
+
| **asset_id** | **String** | | |
|
|
365
353
|
|
|
366
354
|
### Return type
|
|
367
355
|
|
|
368
|
-
|
|
356
|
+
**Object**
|
|
369
357
|
|
|
370
358
|
### Authorization
|
|
371
359
|
|
|
372
|
-
[
|
|
360
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
373
361
|
|
|
374
362
|
### HTTP request headers
|
|
375
363
|
|
|
@@ -377,11 +365,11 @@ end
|
|
|
377
365
|
- **Accept**: application/json
|
|
378
366
|
|
|
379
367
|
|
|
380
|
-
##
|
|
368
|
+
## companies_company_id_assets_asset_id_prices_discount_post
|
|
381
369
|
|
|
382
|
-
>
|
|
370
|
+
> Object companies_company_id_assets_asset_id_prices_discount_post(company_id, asset_id)
|
|
383
371
|
|
|
384
|
-
|
|
372
|
+
Apply a discount to the active price for an asset
|
|
385
373
|
|
|
386
374
|
### Examples
|
|
387
375
|
|
|
@@ -390,41 +378,38 @@ require 'time'
|
|
|
390
378
|
require 'spartera_api_sdk'
|
|
391
379
|
# setup authorization
|
|
392
380
|
SparteraApiSdk.configure do |config|
|
|
393
|
-
# Configure
|
|
394
|
-
config.
|
|
395
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
396
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
381
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
382
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
397
383
|
end
|
|
398
384
|
|
|
399
385
|
api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
|
|
400
|
-
company_id = 'company_id_example' # String |
|
|
401
|
-
asset_id = 'asset_id_example' # String |
|
|
402
|
-
aph_id = 'aph_id_example' # String | Unique identifier for the Aph
|
|
386
|
+
company_id = 'company_id_example' # String |
|
|
387
|
+
asset_id = 'asset_id_example' # String |
|
|
403
388
|
|
|
404
389
|
begin
|
|
405
|
-
#
|
|
406
|
-
result = api_instance.
|
|
390
|
+
# Apply a discount to the active price for an asset
|
|
391
|
+
result = api_instance.companies_company_id_assets_asset_id_prices_discount_post(company_id, asset_id)
|
|
407
392
|
p result
|
|
408
393
|
rescue SparteraApiSdk::ApiError => e
|
|
409
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
394
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_discount_post: #{e}"
|
|
410
395
|
end
|
|
411
396
|
```
|
|
412
397
|
|
|
413
|
-
#### Using the
|
|
398
|
+
#### Using the companies_company_id_assets_asset_id_prices_discount_post_with_http_info variant
|
|
414
399
|
|
|
415
400
|
This returns an Array which contains the response data, status code and headers.
|
|
416
401
|
|
|
417
|
-
> <Array(
|
|
402
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_prices_discount_post_with_http_info(company_id, asset_id)
|
|
418
403
|
|
|
419
404
|
```ruby
|
|
420
405
|
begin
|
|
421
|
-
#
|
|
422
|
-
data, status_code, headers = api_instance.
|
|
406
|
+
# Apply a discount to the active price for an asset
|
|
407
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_prices_discount_post_with_http_info(company_id, asset_id)
|
|
423
408
|
p status_code # => 2xx
|
|
424
409
|
p headers # => { ... }
|
|
425
|
-
p data # =>
|
|
410
|
+
p data # => Object
|
|
426
411
|
rescue SparteraApiSdk::ApiError => e
|
|
427
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
412
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_discount_post_with_http_info: #{e}"
|
|
428
413
|
end
|
|
429
414
|
```
|
|
430
415
|
|
|
@@ -432,17 +417,16 @@ end
|
|
|
432
417
|
|
|
433
418
|
| Name | Type | Description | Notes |
|
|
434
419
|
| ---- | ---- | ----------- | ----- |
|
|
435
|
-
| **company_id** | **String** |
|
|
436
|
-
| **asset_id** | **String** |
|
|
437
|
-
| **aph_id** | **String** | Unique identifier for the Aph | |
|
|
420
|
+
| **company_id** | **String** | | |
|
|
421
|
+
| **asset_id** | **String** | | |
|
|
438
422
|
|
|
439
423
|
### Return type
|
|
440
424
|
|
|
441
|
-
|
|
425
|
+
**Object**
|
|
442
426
|
|
|
443
427
|
### Authorization
|
|
444
428
|
|
|
445
|
-
[
|
|
429
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
446
430
|
|
|
447
431
|
### HTTP request headers
|
|
448
432
|
|
|
@@ -450,11 +434,11 @@ end
|
|
|
450
434
|
- **Accept**: application/json
|
|
451
435
|
|
|
452
436
|
|
|
453
|
-
##
|
|
437
|
+
## companies_company_id_assets_asset_id_prices_get
|
|
454
438
|
|
|
455
|
-
>
|
|
439
|
+
> Object companies_company_id_assets_asset_id_prices_get(company_id, asset_id)
|
|
456
440
|
|
|
457
|
-
Get
|
|
441
|
+
Get all price history records for a specific asset
|
|
458
442
|
|
|
459
443
|
### Examples
|
|
460
444
|
|
|
@@ -463,40 +447,38 @@ require 'time'
|
|
|
463
447
|
require 'spartera_api_sdk'
|
|
464
448
|
# setup authorization
|
|
465
449
|
SparteraApiSdk.configure do |config|
|
|
466
|
-
# Configure
|
|
467
|
-
config.
|
|
468
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
469
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
450
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
451
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
470
452
|
end
|
|
471
453
|
|
|
472
454
|
api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
|
|
473
|
-
company_id = 'company_id_example' # String |
|
|
474
|
-
asset_id = 'asset_id_example' # String |
|
|
455
|
+
company_id = 'company_id_example' # String |
|
|
456
|
+
asset_id = 'asset_id_example' # String |
|
|
475
457
|
|
|
476
458
|
begin
|
|
477
|
-
# Get
|
|
478
|
-
result = api_instance.
|
|
459
|
+
# Get all price history records for a specific asset
|
|
460
|
+
result = api_instance.companies_company_id_assets_asset_id_prices_get(company_id, asset_id)
|
|
479
461
|
p result
|
|
480
462
|
rescue SparteraApiSdk::ApiError => e
|
|
481
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
463
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_get: #{e}"
|
|
482
464
|
end
|
|
483
465
|
```
|
|
484
466
|
|
|
485
|
-
#### Using the
|
|
467
|
+
#### Using the companies_company_id_assets_asset_id_prices_get_with_http_info variant
|
|
486
468
|
|
|
487
469
|
This returns an Array which contains the response data, status code and headers.
|
|
488
470
|
|
|
489
|
-
> <Array(
|
|
471
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_prices_get_with_http_info(company_id, asset_id)
|
|
490
472
|
|
|
491
473
|
```ruby
|
|
492
474
|
begin
|
|
493
|
-
# Get
|
|
494
|
-
data, status_code, headers = api_instance.
|
|
475
|
+
# Get all price history records for a specific asset
|
|
476
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_prices_get_with_http_info(company_id, asset_id)
|
|
495
477
|
p status_code # => 2xx
|
|
496
478
|
p headers # => { ... }
|
|
497
|
-
p data # =>
|
|
479
|
+
p data # => Object
|
|
498
480
|
rescue SparteraApiSdk::ApiError => e
|
|
499
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
481
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_get_with_http_info: #{e}"
|
|
500
482
|
end
|
|
501
483
|
```
|
|
502
484
|
|
|
@@ -504,16 +486,16 @@ end
|
|
|
504
486
|
|
|
505
487
|
| Name | Type | Description | Notes |
|
|
506
488
|
| ---- | ---- | ----------- | ----- |
|
|
507
|
-
| **company_id** | **String** |
|
|
508
|
-
| **asset_id** | **String** |
|
|
489
|
+
| **company_id** | **String** | | |
|
|
490
|
+
| **asset_id** | **String** | | |
|
|
509
491
|
|
|
510
492
|
### Return type
|
|
511
493
|
|
|
512
|
-
|
|
494
|
+
**Object**
|
|
513
495
|
|
|
514
496
|
### Authorization
|
|
515
497
|
|
|
516
|
-
[
|
|
498
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
517
499
|
|
|
518
500
|
### HTTP request headers
|
|
519
501
|
|
|
@@ -521,11 +503,11 @@ end
|
|
|
521
503
|
- **Accept**: application/json
|
|
522
504
|
|
|
523
505
|
|
|
524
|
-
##
|
|
506
|
+
## companies_company_id_assets_asset_id_prices_post
|
|
525
507
|
|
|
526
|
-
>
|
|
508
|
+
> Object companies_company_id_assets_asset_id_prices_post(company_id, asset_id)
|
|
527
509
|
|
|
528
|
-
|
|
510
|
+
Create a new price history record for an asset
|
|
529
511
|
|
|
530
512
|
### Examples
|
|
531
513
|
|
|
@@ -534,42 +516,38 @@ require 'time'
|
|
|
534
516
|
require 'spartera_api_sdk'
|
|
535
517
|
# setup authorization
|
|
536
518
|
SparteraApiSdk.configure do |config|
|
|
537
|
-
# Configure
|
|
538
|
-
config.
|
|
539
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
540
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
519
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
520
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
541
521
|
end
|
|
542
522
|
|
|
543
523
|
api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
|
|
544
|
-
company_id = 'company_id_example' # String |
|
|
545
|
-
asset_id = 'asset_id_example' # String |
|
|
546
|
-
aph_id = 'aph_id_example' # String | Unique identifier for the Aph
|
|
547
|
-
asset_price_history_update = SparteraApiSdk::AssetPriceHistoryUpdate.new # AssetPriceHistoryUpdate |
|
|
524
|
+
company_id = 'company_id_example' # String |
|
|
525
|
+
asset_id = 'asset_id_example' # String |
|
|
548
526
|
|
|
549
527
|
begin
|
|
550
|
-
#
|
|
551
|
-
result = api_instance.
|
|
528
|
+
# Create a new price history record for an asset
|
|
529
|
+
result = api_instance.companies_company_id_assets_asset_id_prices_post(company_id, asset_id)
|
|
552
530
|
p result
|
|
553
531
|
rescue SparteraApiSdk::ApiError => e
|
|
554
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
532
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_post: #{e}"
|
|
555
533
|
end
|
|
556
534
|
```
|
|
557
535
|
|
|
558
|
-
#### Using the
|
|
536
|
+
#### Using the companies_company_id_assets_asset_id_prices_post_with_http_info variant
|
|
559
537
|
|
|
560
538
|
This returns an Array which contains the response data, status code and headers.
|
|
561
539
|
|
|
562
|
-
> <Array(
|
|
540
|
+
> <Array(Object, Integer, Hash)> companies_company_id_assets_asset_id_prices_post_with_http_info(company_id, asset_id)
|
|
563
541
|
|
|
564
542
|
```ruby
|
|
565
543
|
begin
|
|
566
|
-
#
|
|
567
|
-
data, status_code, headers = api_instance.
|
|
544
|
+
# Create a new price history record for an asset
|
|
545
|
+
data, status_code, headers = api_instance.companies_company_id_assets_asset_id_prices_post_with_http_info(company_id, asset_id)
|
|
568
546
|
p status_code # => 2xx
|
|
569
547
|
p headers # => { ... }
|
|
570
|
-
p data # =>
|
|
548
|
+
p data # => Object
|
|
571
549
|
rescue SparteraApiSdk::ApiError => e
|
|
572
|
-
puts "Error when calling AssetPriceHistoryApi->
|
|
550
|
+
puts "Error when calling AssetPriceHistoryApi->companies_company_id_assets_asset_id_prices_post_with_http_info: #{e}"
|
|
573
551
|
end
|
|
574
552
|
```
|
|
575
553
|
|
|
@@ -577,21 +555,19 @@ end
|
|
|
577
555
|
|
|
578
556
|
| Name | Type | Description | Notes |
|
|
579
557
|
| ---- | ---- | ----------- | ----- |
|
|
580
|
-
| **company_id** | **String** |
|
|
581
|
-
| **asset_id** | **String** |
|
|
582
|
-
| **aph_id** | **String** | Unique identifier for the Aph | |
|
|
583
|
-
| **asset_price_history_update** | [**AssetPriceHistoryUpdate**](AssetPriceHistoryUpdate.md) | | |
|
|
558
|
+
| **company_id** | **String** | | |
|
|
559
|
+
| **asset_id** | **String** | | |
|
|
584
560
|
|
|
585
561
|
### Return type
|
|
586
562
|
|
|
587
|
-
|
|
563
|
+
**Object**
|
|
588
564
|
|
|
589
565
|
### Authorization
|
|
590
566
|
|
|
591
|
-
[
|
|
567
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
592
568
|
|
|
593
569
|
### HTTP request headers
|
|
594
570
|
|
|
595
|
-
- **Content-Type**:
|
|
571
|
+
- **Content-Type**: Not defined
|
|
596
572
|
- **Accept**: application/json
|
|
597
573
|
|