spartera_api_sdk 1.0.74 → 1.0.78

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