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