rocket_stack_sdk 1.0.1

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 (296) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +226 -0
  4. data/Rakefile +10 -0
  5. data/docs/CreateCronJob201Response.md +22 -0
  6. data/docs/CreateCronJob201ResponseData.md +20 -0
  7. data/docs/CreateCronJobRequest.md +26 -0
  8. data/docs/CreateCronJobRequestDeliveryTarget.md +32 -0
  9. data/docs/CreateCronJobRequestSchedule.md +22 -0
  10. data/docs/CreateDownloadUrl200Response.md +22 -0
  11. data/docs/CreateDownloadUrl200ResponseData.md +24 -0
  12. data/docs/CreateDownloadUrlRequest.md +22 -0
  13. data/docs/CreateFunction202Response.md +22 -0
  14. data/docs/CreateFunction202ResponseData.md +20 -0
  15. data/docs/CreateQueue201Response.md +22 -0
  16. data/docs/CreateQueue201ResponseData.md +20 -0
  17. data/docs/CreateQueueRequest.md +26 -0
  18. data/docs/CreateQueueRequestDeliveryTarget.md +32 -0
  19. data/docs/CreateSchedule201Response.md +22 -0
  20. data/docs/CreateSchedule201ResponseData.md +20 -0
  21. data/docs/CreateScheduleRequest.md +26 -0
  22. data/docs/CronApi.md +365 -0
  23. data/docs/DeleteKvItem200Response.md +22 -0
  24. data/docs/DeleteKvItem200ResponseData.md +18 -0
  25. data/docs/EnqueueMessage201Response.md +22 -0
  26. data/docs/EnqueueMessage201ResponseData.md +20 -0
  27. data/docs/EnqueueMessageRequest.md +22 -0
  28. data/docs/FinalizeUpload200Response.md +22 -0
  29. data/docs/FinalizeUpload200ResponseData.md +24 -0
  30. data/docs/FinalizeUploadRequest.md +18 -0
  31. data/docs/FunctionsApi.md +463 -0
  32. data/docs/GetCronJob200Response.md +22 -0
  33. data/docs/GetFunction200Response.md +22 -0
  34. data/docs/GetKvItem200Response.md +22 -0
  35. data/docs/GetKvItem200ResponseData.md +24 -0
  36. data/docs/GetMessageStatus200Response.md +22 -0
  37. data/docs/GetMessageStatus200ResponseData.md +30 -0
  38. data/docs/GetQueue200Response.md +22 -0
  39. data/docs/GetSchedule200Response.md +22 -0
  40. data/docs/GetScheduleStatus200Response.md +22 -0
  41. data/docs/GetScheduleStatus200ResponseData.md +26 -0
  42. data/docs/GetTemplate200Response.md +22 -0
  43. data/docs/InvokeFunction200Response.md +22 -0
  44. data/docs/InvokeFunction200ResponseData.md +26 -0
  45. data/docs/InvokeFunctionRequest.md +22 -0
  46. data/docs/KvApi.md +297 -0
  47. data/docs/ListCapabilities200Response.md +22 -0
  48. data/docs/ListCapabilities200ResponseDataInner.md +22 -0
  49. data/docs/ListCronJobs200Response.md +22 -0
  50. data/docs/ListCronJobs200ResponseData.md +20 -0
  51. data/docs/ListCronJobs200ResponseDataItemsInner.md +36 -0
  52. data/docs/ListCronJobs200ResponseDataItemsInnerSchedule.md +24 -0
  53. data/docs/ListFunctions200Response.md +22 -0
  54. data/docs/ListFunctions200ResponseData.md +20 -0
  55. data/docs/ListFunctions200ResponseDataItemsInner.md +38 -0
  56. data/docs/ListFunctions200ResponseDataItemsInnerActualSpec.md +18 -0
  57. data/docs/ListFunctions200ResponseDataItemsInnerDesiredSpec.md +36 -0
  58. data/docs/ListFunctions200ResponseDataItemsInnerDesiredSpecCode.md +20 -0
  59. data/docs/ListFunctions200ResponseError.md +22 -0
  60. data/docs/ListFunctions401Response.md +20 -0
  61. data/docs/ListKvItems200Response.md +22 -0
  62. data/docs/ListKvItems200ResponseData.md +20 -0
  63. data/docs/ListKvItems200ResponseDataItemsInner.md +24 -0
  64. data/docs/ListQueues200Response.md +22 -0
  65. data/docs/ListQueues200ResponseData.md +20 -0
  66. data/docs/ListQueues200ResponseDataItemsInner.md +36 -0
  67. data/docs/ListQueues200ResponseDataItemsInnerDeliveryTarget.md +28 -0
  68. data/docs/ListSchedules200Response.md +22 -0
  69. data/docs/ListSchedules200ResponseData.md +20 -0
  70. data/docs/ListSchedules200ResponseDataItemsInner.md +36 -0
  71. data/docs/ListSnippets200Response.md +22 -0
  72. data/docs/ListSnippets200ResponseDataInner.md +28 -0
  73. data/docs/ListStorageObjects200Response.md +22 -0
  74. data/docs/ListStorageObjects200ResponseData.md +20 -0
  75. data/docs/ListStorageObjects200ResponseDataItemsInner.md +28 -0
  76. data/docs/ListTemplates200Response.md +22 -0
  77. data/docs/ListTemplates200ResponseDataInner.md +28 -0
  78. data/docs/PutKvItem200Response.md +22 -0
  79. data/docs/PutKvItem200ResponseData.md +22 -0
  80. data/docs/PutKvItemRequest.md +24 -0
  81. data/docs/PutKvItemRequestIfVersion.md +15 -0
  82. data/docs/QueuesApi.md +511 -0
  83. data/docs/ResourcesApi.md +290 -0
  84. data/docs/SchedulerApi.md +505 -0
  85. data/docs/StorageApi.md +447 -0
  86. data/docs/UpdateCronJob200Response.md +22 -0
  87. data/docs/UpdateCronJob200ResponseData.md +22 -0
  88. data/docs/UpdateCronJobRequest.md +24 -0
  89. data/docs/UpdateCronJobRequestSchedule.md +22 -0
  90. data/docs/UpdateFunctionRequest.md +30 -0
  91. data/docs/UpdateQueue200Response.md +22 -0
  92. data/docs/UpdateQueue200ResponseData.md +22 -0
  93. data/docs/UpdateQueueRequest.md +24 -0
  94. data/docs/UpdateSchedule200Response.md +22 -0
  95. data/docs/UpdateSchedule200ResponseData.md +22 -0
  96. data/docs/UpdateScheduleRequest.md +24 -0
  97. data/docs/UploadObject201Response.md +22 -0
  98. data/docs/UploadObject201ResponseData.md +26 -0
  99. data/git_push.sh +57 -0
  100. data/lib/rocket_stack_sdk/api/cron_api.rb +357 -0
  101. data/lib/rocket_stack_sdk/api/functions_api.rb +536 -0
  102. data/lib/rocket_stack_sdk/api/kv_api.rb +308 -0
  103. data/lib/rocket_stack_sdk/api/queues_api.rb +496 -0
  104. data/lib/rocket_stack_sdk/api/resources_api.rb +277 -0
  105. data/lib/rocket_stack_sdk/api/scheduler_api.rb +483 -0
  106. data/lib/rocket_stack_sdk/api/storage_api.rb +474 -0
  107. data/lib/rocket_stack_sdk/api_client.rb +397 -0
  108. data/lib/rocket_stack_sdk/api_error.rb +58 -0
  109. data/lib/rocket_stack_sdk/api_model_base.rb +88 -0
  110. data/lib/rocket_stack_sdk/configuration.rb +309 -0
  111. data/lib/rocket_stack_sdk/models/create_cron_job201_response.rb +182 -0
  112. data/lib/rocket_stack_sdk/models/create_cron_job201_response_data.rb +190 -0
  113. data/lib/rocket_stack_sdk/models/create_cron_job_request.rb +265 -0
  114. data/lib/rocket_stack_sdk/models/create_cron_job_request_delivery_target.rb +343 -0
  115. data/lib/rocket_stack_sdk/models/create_cron_job_request_schedule.rb +227 -0
  116. data/lib/rocket_stack_sdk/models/create_download_url200_response.rb +182 -0
  117. data/lib/rocket_stack_sdk/models/create_download_url200_response_data.rb +211 -0
  118. data/lib/rocket_stack_sdk/models/create_download_url_request.rb +228 -0
  119. data/lib/rocket_stack_sdk/models/create_function202_response.rb +182 -0
  120. data/lib/rocket_stack_sdk/models/create_function202_response_data.rb +190 -0
  121. data/lib/rocket_stack_sdk/models/create_queue201_response.rb +182 -0
  122. data/lib/rocket_stack_sdk/models/create_queue201_response_data.rb +190 -0
  123. data/lib/rocket_stack_sdk/models/create_queue_request.rb +313 -0
  124. data/lib/rocket_stack_sdk/models/create_queue_request_delivery_target.rb +343 -0
  125. data/lib/rocket_stack_sdk/models/create_schedule201_response.rb +182 -0
  126. data/lib/rocket_stack_sdk/models/create_schedule201_response_data.rb +190 -0
  127. data/lib/rocket_stack_sdk/models/create_schedule_request.rb +265 -0
  128. data/lib/rocket_stack_sdk/models/delete_kv_item200_response.rb +182 -0
  129. data/lib/rocket_stack_sdk/models/delete_kv_item200_response_data.rb +164 -0
  130. data/lib/rocket_stack_sdk/models/enqueue_message201_response.rb +182 -0
  131. data/lib/rocket_stack_sdk/models/enqueue_message201_response_data.rb +190 -0
  132. data/lib/rocket_stack_sdk/models/enqueue_message_request.rb +213 -0
  133. data/lib/rocket_stack_sdk/models/finalize_upload200_response.rb +182 -0
  134. data/lib/rocket_stack_sdk/models/finalize_upload200_response_data.rb +242 -0
  135. data/lib/rocket_stack_sdk/models/finalize_upload_request.rb +182 -0
  136. data/lib/rocket_stack_sdk/models/get_cron_job200_response.rb +182 -0
  137. data/lib/rocket_stack_sdk/models/get_function200_response.rb +182 -0
  138. data/lib/rocket_stack_sdk/models/get_kv_item200_response.rb +182 -0
  139. data/lib/rocket_stack_sdk/models/get_kv_item200_response_data.rb +212 -0
  140. data/lib/rocket_stack_sdk/models/get_message_status200_response.rb +182 -0
  141. data/lib/rocket_stack_sdk/models/get_message_status200_response_data.rb +303 -0
  142. data/lib/rocket_stack_sdk/models/get_queue200_response.rb +182 -0
  143. data/lib/rocket_stack_sdk/models/get_schedule200_response.rb +182 -0
  144. data/lib/rocket_stack_sdk/models/get_schedule_status200_response.rb +182 -0
  145. data/lib/rocket_stack_sdk/models/get_schedule_status200_response_data.rb +240 -0
  146. data/lib/rocket_stack_sdk/models/get_template200_response.rb +182 -0
  147. data/lib/rocket_stack_sdk/models/invoke_function200_response.rb +182 -0
  148. data/lib/rocket_stack_sdk/models/invoke_function200_response_data.rb +201 -0
  149. data/lib/rocket_stack_sdk/models/invoke_function_request.rb +204 -0
  150. data/lib/rocket_stack_sdk/models/list_capabilities200_response.rb +184 -0
  151. data/lib/rocket_stack_sdk/models/list_capabilities200_response_data_inner.rb +216 -0
  152. data/lib/rocket_stack_sdk/models/list_cron_jobs200_response.rb +182 -0
  153. data/lib/rocket_stack_sdk/models/list_cron_jobs200_response_data.rb +176 -0
  154. data/lib/rocket_stack_sdk/models/list_cron_jobs200_response_data_items_inner.rb +384 -0
  155. data/lib/rocket_stack_sdk/models/list_cron_jobs200_response_data_items_inner_schedule.rb +249 -0
  156. data/lib/rocket_stack_sdk/models/list_functions200_response.rb +182 -0
  157. data/lib/rocket_stack_sdk/models/list_functions200_response_data.rb +176 -0
  158. data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner.rb +393 -0
  159. data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner_actual_spec.rb +164 -0
  160. data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner_desired_spec.rb +352 -0
  161. data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner_desired_spec_code.rb +174 -0
  162. data/lib/rocket_stack_sdk/models/list_functions200_response_error.rb +201 -0
  163. data/lib/rocket_stack_sdk/models/list_functions401_response.rb +190 -0
  164. data/lib/rocket_stack_sdk/models/list_kv_items200_response.rb +182 -0
  165. data/lib/rocket_stack_sdk/models/list_kv_items200_response_data.rb +178 -0
  166. data/lib/rocket_stack_sdk/models/list_kv_items200_response_data_items_inner.rb +228 -0
  167. data/lib/rocket_stack_sdk/models/list_queues200_response.rb +182 -0
  168. data/lib/rocket_stack_sdk/models/list_queues200_response_data.rb +176 -0
  169. data/lib/rocket_stack_sdk/models/list_queues200_response_data_items_inner.rb +381 -0
  170. data/lib/rocket_stack_sdk/models/list_queues200_response_data_items_inner_delivery_target.rb +267 -0
  171. data/lib/rocket_stack_sdk/models/list_schedules200_response.rb +182 -0
  172. data/lib/rocket_stack_sdk/models/list_schedules200_response_data.rb +176 -0
  173. data/lib/rocket_stack_sdk/models/list_schedules200_response_data_items_inner.rb +384 -0
  174. data/lib/rocket_stack_sdk/models/list_snippets200_response.rb +184 -0
  175. data/lib/rocket_stack_sdk/models/list_snippets200_response_data_inner.rb +294 -0
  176. data/lib/rocket_stack_sdk/models/list_storage_objects200_response.rb +182 -0
  177. data/lib/rocket_stack_sdk/models/list_storage_objects200_response_data.rb +178 -0
  178. data/lib/rocket_stack_sdk/models/list_storage_objects200_response_data_items_inner.rb +260 -0
  179. data/lib/rocket_stack_sdk/models/list_templates200_response.rb +184 -0
  180. data/lib/rocket_stack_sdk/models/list_templates200_response_data_inner.rb +262 -0
  181. data/lib/rocket_stack_sdk/models/put_kv_item200_response.rb +182 -0
  182. data/lib/rocket_stack_sdk/models/put_kv_item200_response_data.rb +202 -0
  183. data/lib/rocket_stack_sdk/models/put_kv_item_request.rb +203 -0
  184. data/lib/rocket_stack_sdk/models/put_kv_item_request_if_version.rb +103 -0
  185. data/lib/rocket_stack_sdk/models/update_cron_job200_response.rb +182 -0
  186. data/lib/rocket_stack_sdk/models/update_cron_job200_response_data.rb +216 -0
  187. data/lib/rocket_stack_sdk/models/update_cron_job_request.rb +177 -0
  188. data/lib/rocket_stack_sdk/models/update_cron_job_request_schedule.rb +220 -0
  189. data/lib/rocket_stack_sdk/models/update_function_request.rb +337 -0
  190. data/lib/rocket_stack_sdk/models/update_queue200_response.rb +182 -0
  191. data/lib/rocket_stack_sdk/models/update_queue200_response_data.rb +216 -0
  192. data/lib/rocket_stack_sdk/models/update_queue_request.rb +258 -0
  193. data/lib/rocket_stack_sdk/models/update_schedule200_response.rb +182 -0
  194. data/lib/rocket_stack_sdk/models/update_schedule200_response_data.rb +216 -0
  195. data/lib/rocket_stack_sdk/models/update_schedule_request.rb +177 -0
  196. data/lib/rocket_stack_sdk/models/upload_object201_response.rb +182 -0
  197. data/lib/rocket_stack_sdk/models/upload_object201_response_data.rb +251 -0
  198. data/lib/rocket_stack_sdk/version.rb +15 -0
  199. data/lib/rocket_stack_sdk.rb +134 -0
  200. data/rocket_stack_sdk.gemspec +39 -0
  201. data/spec/api/cron_api_spec.rb +97 -0
  202. data/spec/api/functions_api_spec.rb +121 -0
  203. data/spec/api/kv_api_spec.rb +86 -0
  204. data/spec/api/queues_api_spec.rb +123 -0
  205. data/spec/api/resources_api_spec.rb +83 -0
  206. data/spec/api/scheduler_api_spec.rb +121 -0
  207. data/spec/api/storage_api_spec.rb +114 -0
  208. data/spec/models/create_cron_job201_response_data_spec.rb +42 -0
  209. data/spec/models/create_cron_job201_response_spec.rb +48 -0
  210. data/spec/models/create_cron_job_request_delivery_target_spec.rb +82 -0
  211. data/spec/models/create_cron_job_request_schedule_spec.rb +52 -0
  212. data/spec/models/create_cron_job_request_spec.rb +60 -0
  213. data/spec/models/create_download_url200_response_data_spec.rb +54 -0
  214. data/spec/models/create_download_url200_response_spec.rb +48 -0
  215. data/spec/models/create_download_url_request_spec.rb +48 -0
  216. data/spec/models/create_function202_response_data_spec.rb +42 -0
  217. data/spec/models/create_function202_response_spec.rb +48 -0
  218. data/spec/models/create_queue201_response_data_spec.rb +42 -0
  219. data/spec/models/create_queue201_response_spec.rb +48 -0
  220. data/spec/models/create_queue_request_delivery_target_spec.rb +82 -0
  221. data/spec/models/create_queue_request_spec.rb +60 -0
  222. data/spec/models/create_schedule201_response_data_spec.rb +42 -0
  223. data/spec/models/create_schedule201_response_spec.rb +48 -0
  224. data/spec/models/create_schedule_request_spec.rb +60 -0
  225. data/spec/models/delete_kv_item200_response_data_spec.rb +36 -0
  226. data/spec/models/delete_kv_item200_response_spec.rb +48 -0
  227. data/spec/models/enqueue_message201_response_data_spec.rb +42 -0
  228. data/spec/models/enqueue_message201_response_spec.rb +48 -0
  229. data/spec/models/enqueue_message_request_spec.rb +48 -0
  230. data/spec/models/finalize_upload200_response_data_spec.rb +54 -0
  231. data/spec/models/finalize_upload200_response_spec.rb +48 -0
  232. data/spec/models/finalize_upload_request_spec.rb +36 -0
  233. data/spec/models/get_cron_job200_response_spec.rb +48 -0
  234. data/spec/models/get_function200_response_spec.rb +48 -0
  235. data/spec/models/get_kv_item200_response_data_spec.rb +54 -0
  236. data/spec/models/get_kv_item200_response_spec.rb +48 -0
  237. data/spec/models/get_message_status200_response_data_spec.rb +72 -0
  238. data/spec/models/get_message_status200_response_spec.rb +48 -0
  239. data/spec/models/get_queue200_response_spec.rb +48 -0
  240. data/spec/models/get_schedule200_response_spec.rb +48 -0
  241. data/spec/models/get_schedule_status200_response_data_spec.rb +60 -0
  242. data/spec/models/get_schedule_status200_response_spec.rb +48 -0
  243. data/spec/models/get_template200_response_spec.rb +48 -0
  244. data/spec/models/invoke_function200_response_data_spec.rb +60 -0
  245. data/spec/models/invoke_function200_response_spec.rb +48 -0
  246. data/spec/models/invoke_function_request_spec.rb +52 -0
  247. data/spec/models/list_capabilities200_response_data_inner_spec.rb +48 -0
  248. data/spec/models/list_capabilities200_response_spec.rb +48 -0
  249. data/spec/models/list_cron_jobs200_response_data_items_inner_schedule_spec.rb +58 -0
  250. data/spec/models/list_cron_jobs200_response_data_items_inner_spec.rb +90 -0
  251. data/spec/models/list_cron_jobs200_response_data_spec.rb +42 -0
  252. data/spec/models/list_cron_jobs200_response_spec.rb +48 -0
  253. data/spec/models/list_functions200_response_data_items_inner_actual_spec_spec.rb +36 -0
  254. data/spec/models/list_functions200_response_data_items_inner_desired_spec_code_spec.rb +42 -0
  255. data/spec/models/list_functions200_response_data_items_inner_desired_spec_spec.rb +98 -0
  256. data/spec/models/list_functions200_response_data_items_inner_spec.rb +96 -0
  257. data/spec/models/list_functions200_response_data_spec.rb +42 -0
  258. data/spec/models/list_functions200_response_error_spec.rb +48 -0
  259. data/spec/models/list_functions200_response_spec.rb +48 -0
  260. data/spec/models/list_functions401_response_spec.rb +42 -0
  261. data/spec/models/list_kv_items200_response_data_items_inner_spec.rb +54 -0
  262. data/spec/models/list_kv_items200_response_data_spec.rb +42 -0
  263. data/spec/models/list_kv_items200_response_spec.rb +48 -0
  264. data/spec/models/list_queues200_response_data_items_inner_delivery_target_spec.rb +70 -0
  265. data/spec/models/list_queues200_response_data_items_inner_spec.rb +90 -0
  266. data/spec/models/list_queues200_response_data_spec.rb +42 -0
  267. data/spec/models/list_queues200_response_spec.rb +48 -0
  268. data/spec/models/list_schedules200_response_data_items_inner_spec.rb +90 -0
  269. data/spec/models/list_schedules200_response_data_spec.rb +42 -0
  270. data/spec/models/list_schedules200_response_spec.rb +48 -0
  271. data/spec/models/list_snippets200_response_data_inner_spec.rb +66 -0
  272. data/spec/models/list_snippets200_response_spec.rb +48 -0
  273. data/spec/models/list_storage_objects200_response_data_items_inner_spec.rb +66 -0
  274. data/spec/models/list_storage_objects200_response_data_spec.rb +42 -0
  275. data/spec/models/list_storage_objects200_response_spec.rb +48 -0
  276. data/spec/models/list_templates200_response_data_inner_spec.rb +66 -0
  277. data/spec/models/list_templates200_response_spec.rb +48 -0
  278. data/spec/models/put_kv_item200_response_data_spec.rb +48 -0
  279. data/spec/models/put_kv_item200_response_spec.rb +48 -0
  280. data/spec/models/put_kv_item_request_if_version_spec.rb +21 -0
  281. data/spec/models/put_kv_item_request_spec.rb +54 -0
  282. data/spec/models/update_cron_job200_response_data_spec.rb +48 -0
  283. data/spec/models/update_cron_job200_response_spec.rb +48 -0
  284. data/spec/models/update_cron_job_request_schedule_spec.rb +52 -0
  285. data/spec/models/update_cron_job_request_spec.rb +54 -0
  286. data/spec/models/update_function_request_spec.rb +76 -0
  287. data/spec/models/update_queue200_response_data_spec.rb +48 -0
  288. data/spec/models/update_queue200_response_spec.rb +48 -0
  289. data/spec/models/update_queue_request_spec.rb +54 -0
  290. data/spec/models/update_schedule200_response_data_spec.rb +48 -0
  291. data/spec/models/update_schedule200_response_spec.rb +48 -0
  292. data/spec/models/update_schedule_request_spec.rb +54 -0
  293. data/spec/models/upload_object201_response_data_spec.rb +60 -0
  294. data/spec/models/upload_object201_response_spec.rb +48 -0
  295. data/spec/spec_helper.rb +111 -0
  296. metadata +472 -0
@@ -0,0 +1,260 @@
1
+ =begin
2
+ #Rocketstack API
3
+
4
+ #API for Functions, Queues, KV, Storage, Cron, and Scheduler.
5
+
6
+ The version of the OpenAPI document: 1.0.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module RocketStackSdk
17
+ class ListStorageObjects200ResponseDataItemsInner < ApiModelBase
18
+ attr_accessor :path
19
+
20
+ attr_accessor :size_bytes
21
+
22
+ attr_accessor :last_modified
23
+
24
+ attr_accessor :etag
25
+
26
+ attr_accessor :is_public
27
+
28
+ attr_accessor :public_url
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'path' => :'path',
34
+ :'size_bytes' => :'sizeBytes',
35
+ :'last_modified' => :'lastModified',
36
+ :'etag' => :'etag',
37
+ :'is_public' => :'isPublic',
38
+ :'public_url' => :'publicUrl'
39
+ }
40
+ end
41
+
42
+ # Returns attribute mapping this model knows about
43
+ def self.acceptable_attribute_map
44
+ attribute_map
45
+ end
46
+
47
+ # Returns all the JSON keys this model knows about
48
+ def self.acceptable_attributes
49
+ acceptable_attribute_map.values
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.openapi_types
54
+ {
55
+ :'path' => :'String',
56
+ :'size_bytes' => :'Float',
57
+ :'last_modified' => :'String',
58
+ :'etag' => :'String',
59
+ :'is_public' => :'Boolean',
60
+ :'public_url' => :'String'
61
+ }
62
+ end
63
+
64
+ # List of attributes with nullable: true
65
+ def self.openapi_nullable
66
+ Set.new([
67
+ ])
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ def initialize(attributes = {})
73
+ if (!attributes.is_a?(Hash))
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `RocketStackSdk::ListStorageObjects200ResponseDataItemsInner` initialize method"
75
+ end
76
+
77
+ # check to see if the attribute exists and convert string to symbol for hash key
78
+ acceptable_attribute_map = self.class.acceptable_attribute_map
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!acceptable_attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `RocketStackSdk::ListStorageObjects200ResponseDataItemsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'path')
87
+ self.path = attributes[:'path']
88
+ else
89
+ self.path = nil
90
+ end
91
+
92
+ if attributes.key?(:'size_bytes')
93
+ self.size_bytes = attributes[:'size_bytes']
94
+ else
95
+ self.size_bytes = nil
96
+ end
97
+
98
+ if attributes.key?(:'last_modified')
99
+ self.last_modified = attributes[:'last_modified']
100
+ else
101
+ self.last_modified = nil
102
+ end
103
+
104
+ if attributes.key?(:'etag')
105
+ self.etag = attributes[:'etag']
106
+ else
107
+ self.etag = nil
108
+ end
109
+
110
+ if attributes.key?(:'is_public')
111
+ self.is_public = attributes[:'is_public']
112
+ end
113
+
114
+ if attributes.key?(:'public_url')
115
+ self.public_url = attributes[:'public_url']
116
+ end
117
+ end
118
+
119
+ # Show invalid properties with the reasons. Usually used together with valid?
120
+ # @return Array for valid properties with the reasons
121
+ def list_invalid_properties
122
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
123
+ invalid_properties = Array.new
124
+ if @path.nil?
125
+ invalid_properties.push('invalid value for "path", path cannot be nil.')
126
+ end
127
+
128
+ if @size_bytes.nil?
129
+ invalid_properties.push('invalid value for "size_bytes", size_bytes cannot be nil.')
130
+ end
131
+
132
+ if @last_modified.nil?
133
+ invalid_properties.push('invalid value for "last_modified", last_modified cannot be nil.')
134
+ end
135
+
136
+ if @etag.nil?
137
+ invalid_properties.push('invalid value for "etag", etag cannot be nil.')
138
+ end
139
+
140
+ invalid_properties
141
+ end
142
+
143
+ # Check to see if the all the properties in the model are valid
144
+ # @return true if the model is valid
145
+ def valid?
146
+ warn '[DEPRECATED] the `valid?` method is obsolete'
147
+ return false if @path.nil?
148
+ return false if @size_bytes.nil?
149
+ return false if @last_modified.nil?
150
+ return false if @etag.nil?
151
+ true
152
+ end
153
+
154
+ # Custom attribute writer method with validation
155
+ # @param [Object] path Value to be assigned
156
+ def path=(path)
157
+ if path.nil?
158
+ fail ArgumentError, 'path cannot be nil'
159
+ end
160
+
161
+ @path = path
162
+ end
163
+
164
+ # Custom attribute writer method with validation
165
+ # @param [Object] size_bytes Value to be assigned
166
+ def size_bytes=(size_bytes)
167
+ if size_bytes.nil?
168
+ fail ArgumentError, 'size_bytes cannot be nil'
169
+ end
170
+
171
+ @size_bytes = size_bytes
172
+ end
173
+
174
+ # Custom attribute writer method with validation
175
+ # @param [Object] last_modified Value to be assigned
176
+ def last_modified=(last_modified)
177
+ if last_modified.nil?
178
+ fail ArgumentError, 'last_modified cannot be nil'
179
+ end
180
+
181
+ @last_modified = last_modified
182
+ end
183
+
184
+ # Custom attribute writer method with validation
185
+ # @param [Object] etag Value to be assigned
186
+ def etag=(etag)
187
+ if etag.nil?
188
+ fail ArgumentError, 'etag cannot be nil'
189
+ end
190
+
191
+ @etag = etag
192
+ end
193
+
194
+ # Checks equality by comparing each attribute.
195
+ # @param [Object] Object to be compared
196
+ def ==(o)
197
+ return true if self.equal?(o)
198
+ self.class == o.class &&
199
+ path == o.path &&
200
+ size_bytes == o.size_bytes &&
201
+ last_modified == o.last_modified &&
202
+ etag == o.etag &&
203
+ is_public == o.is_public &&
204
+ public_url == o.public_url
205
+ end
206
+
207
+ # @see the `==` method
208
+ # @param [Object] Object to be compared
209
+ def eql?(o)
210
+ self == o
211
+ end
212
+
213
+ # Calculates hash code according to all attributes.
214
+ # @return [Integer] Hash code
215
+ def hash
216
+ [path, size_bytes, last_modified, etag, is_public, public_url].hash
217
+ end
218
+
219
+ # Builds the object from hash
220
+ # @param [Hash] attributes Model attributes in the form of hash
221
+ # @return [Object] Returns the model itself
222
+ def self.build_from_hash(attributes)
223
+ return nil unless attributes.is_a?(Hash)
224
+ attributes = attributes.transform_keys(&:to_sym)
225
+ transformed_hash = {}
226
+ openapi_types.each_pair do |key, type|
227
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
228
+ transformed_hash["#{key}"] = nil
229
+ elsif type =~ /\AArray<(.*)>/i
230
+ # check to ensure the input is an array given that the attribute
231
+ # is documented as an array but the input is not
232
+ if attributes[attribute_map[key]].is_a?(Array)
233
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
234
+ end
235
+ elsif !attributes[attribute_map[key]].nil?
236
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
237
+ end
238
+ end
239
+ new(transformed_hash)
240
+ end
241
+
242
+ # Returns the object in the form of hash
243
+ # @return [Hash] Returns the object in the form of hash
244
+ def to_hash
245
+ hash = {}
246
+ self.class.attribute_map.each_pair do |attr, param|
247
+ value = self.send(attr)
248
+ if value.nil?
249
+ is_nullable = self.class.openapi_nullable.include?(attr)
250
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
251
+ end
252
+
253
+ hash[param] = _to_hash(value)
254
+ end
255
+ hash
256
+ end
257
+
258
+ end
259
+
260
+ end
@@ -0,0 +1,184 @@
1
+ =begin
2
+ #Rocketstack API
3
+
4
+ #API for Functions, Queues, KV, Storage, Cron, and Scheduler.
5
+
6
+ The version of the OpenAPI document: 1.0.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module RocketStackSdk
17
+ class ListTemplates200Response < ApiModelBase
18
+ attr_accessor :request_id
19
+
20
+ attr_accessor :data
21
+
22
+ attr_accessor :error
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'request_id' => :'requestId',
28
+ :'data' => :'data',
29
+ :'error' => :'error'
30
+ }
31
+ end
32
+
33
+ # Returns attribute mapping this model knows about
34
+ def self.acceptable_attribute_map
35
+ attribute_map
36
+ end
37
+
38
+ # Returns all the JSON keys this model knows about
39
+ def self.acceptable_attributes
40
+ acceptable_attribute_map.values
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.openapi_types
45
+ {
46
+ :'request_id' => :'String',
47
+ :'data' => :'Array<ListTemplates200ResponseDataInner>',
48
+ :'error' => :'ListFunctions200ResponseError'
49
+ }
50
+ end
51
+
52
+ # List of attributes with nullable: true
53
+ def self.openapi_nullable
54
+ Set.new([
55
+ ])
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `RocketStackSdk::ListTemplates200Response` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ acceptable_attribute_map = self.class.acceptable_attribute_map
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!acceptable_attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `RocketStackSdk::ListTemplates200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'request_id')
75
+ self.request_id = attributes[:'request_id']
76
+ else
77
+ self.request_id = nil
78
+ end
79
+
80
+ if attributes.key?(:'data')
81
+ if (value = attributes[:'data']).is_a?(Array)
82
+ self.data = value
83
+ end
84
+ end
85
+
86
+ if attributes.key?(:'error')
87
+ self.error = attributes[:'error']
88
+ end
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properties with the reasons
93
+ def list_invalid_properties
94
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
95
+ invalid_properties = Array.new
96
+ if @request_id.nil?
97
+ invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
98
+ end
99
+
100
+ invalid_properties
101
+ end
102
+
103
+ # Check to see if the all the properties in the model are valid
104
+ # @return true if the model is valid
105
+ def valid?
106
+ warn '[DEPRECATED] the `valid?` method is obsolete'
107
+ return false if @request_id.nil?
108
+ true
109
+ end
110
+
111
+ # Custom attribute writer method with validation
112
+ # @param [Object] request_id Value to be assigned
113
+ def request_id=(request_id)
114
+ if request_id.nil?
115
+ fail ArgumentError, 'request_id cannot be nil'
116
+ end
117
+
118
+ @request_id = request_id
119
+ end
120
+
121
+ # Checks equality by comparing each attribute.
122
+ # @param [Object] Object to be compared
123
+ def ==(o)
124
+ return true if self.equal?(o)
125
+ self.class == o.class &&
126
+ request_id == o.request_id &&
127
+ data == o.data &&
128
+ error == o.error
129
+ end
130
+
131
+ # @see the `==` method
132
+ # @param [Object] Object to be compared
133
+ def eql?(o)
134
+ self == o
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Integer] Hash code
139
+ def hash
140
+ [request_id, data, error].hash
141
+ end
142
+
143
+ # Builds the object from hash
144
+ # @param [Hash] attributes Model attributes in the form of hash
145
+ # @return [Object] Returns the model itself
146
+ def self.build_from_hash(attributes)
147
+ return nil unless attributes.is_a?(Hash)
148
+ attributes = attributes.transform_keys(&:to_sym)
149
+ transformed_hash = {}
150
+ openapi_types.each_pair do |key, type|
151
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
152
+ transformed_hash["#{key}"] = nil
153
+ elsif type =~ /\AArray<(.*)>/i
154
+ # check to ensure the input is an array given that the attribute
155
+ # is documented as an array but the input is not
156
+ if attributes[attribute_map[key]].is_a?(Array)
157
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
158
+ end
159
+ elsif !attributes[attribute_map[key]].nil?
160
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
161
+ end
162
+ end
163
+ new(transformed_hash)
164
+ end
165
+
166
+ # Returns the object in the form of hash
167
+ # @return [Hash] Returns the object in the form of hash
168
+ def to_hash
169
+ hash = {}
170
+ self.class.attribute_map.each_pair do |attr, param|
171
+ value = self.send(attr)
172
+ if value.nil?
173
+ is_nullable = self.class.openapi_nullable.include?(attr)
174
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
175
+ end
176
+
177
+ hash[param] = _to_hash(value)
178
+ end
179
+ hash
180
+ end
181
+
182
+ end
183
+
184
+ end
@@ -0,0 +1,262 @@
1
+ =begin
2
+ #Rocketstack API
3
+
4
+ #API for Functions, Queues, KV, Storage, Cron, and Scheduler.
5
+
6
+ The version of the OpenAPI document: 1.0.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module RocketStackSdk
17
+ class ListTemplates200ResponseDataInner < ApiModelBase
18
+ attr_accessor :id
19
+
20
+ attr_accessor :name
21
+
22
+ attr_accessor :description
23
+
24
+ attr_accessor :capabilities
25
+
26
+ attr_accessor :language
27
+
28
+ attr_accessor :code
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'id' => :'id',
34
+ :'name' => :'name',
35
+ :'description' => :'description',
36
+ :'capabilities' => :'capabilities',
37
+ :'language' => :'language',
38
+ :'code' => :'code'
39
+ }
40
+ end
41
+
42
+ # Returns attribute mapping this model knows about
43
+ def self.acceptable_attribute_map
44
+ attribute_map
45
+ end
46
+
47
+ # Returns all the JSON keys this model knows about
48
+ def self.acceptable_attributes
49
+ acceptable_attribute_map.values
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.openapi_types
54
+ {
55
+ :'id' => :'String',
56
+ :'name' => :'String',
57
+ :'description' => :'String',
58
+ :'capabilities' => :'Array<String>',
59
+ :'language' => :'String',
60
+ :'code' => :'String'
61
+ }
62
+ end
63
+
64
+ # List of attributes with nullable: true
65
+ def self.openapi_nullable
66
+ Set.new([
67
+ ])
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ def initialize(attributes = {})
73
+ if (!attributes.is_a?(Hash))
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `RocketStackSdk::ListTemplates200ResponseDataInner` initialize method"
75
+ end
76
+
77
+ # check to see if the attribute exists and convert string to symbol for hash key
78
+ acceptable_attribute_map = self.class.acceptable_attribute_map
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!acceptable_attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `RocketStackSdk::ListTemplates200ResponseDataInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'id')
87
+ self.id = attributes[:'id']
88
+ else
89
+ self.id = nil
90
+ end
91
+
92
+ if attributes.key?(:'name')
93
+ self.name = attributes[:'name']
94
+ else
95
+ self.name = nil
96
+ end
97
+
98
+ if attributes.key?(:'description')
99
+ self.description = attributes[:'description']
100
+ else
101
+ self.description = nil
102
+ end
103
+
104
+ if attributes.key?(:'capabilities')
105
+ if (value = attributes[:'capabilities']).is_a?(Array)
106
+ self.capabilities = value
107
+ end
108
+ else
109
+ self.capabilities = nil
110
+ end
111
+
112
+ if attributes.key?(:'language')
113
+ self.language = attributes[:'language']
114
+ end
115
+
116
+ if attributes.key?(:'code')
117
+ self.code = attributes[:'code']
118
+ end
119
+ end
120
+
121
+ # Show invalid properties with the reasons. Usually used together with valid?
122
+ # @return Array for valid properties with the reasons
123
+ def list_invalid_properties
124
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
125
+ invalid_properties = Array.new
126
+ if @id.nil?
127
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
128
+ end
129
+
130
+ if @name.nil?
131
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
132
+ end
133
+
134
+ if @description.nil?
135
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
136
+ end
137
+
138
+ if @capabilities.nil?
139
+ invalid_properties.push('invalid value for "capabilities", capabilities cannot be nil.')
140
+ end
141
+
142
+ invalid_properties
143
+ end
144
+
145
+ # Check to see if the all the properties in the model are valid
146
+ # @return true if the model is valid
147
+ def valid?
148
+ warn '[DEPRECATED] the `valid?` method is obsolete'
149
+ return false if @id.nil?
150
+ return false if @name.nil?
151
+ return false if @description.nil?
152
+ return false if @capabilities.nil?
153
+ true
154
+ end
155
+
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] id Value to be assigned
158
+ def id=(id)
159
+ if id.nil?
160
+ fail ArgumentError, 'id cannot be nil'
161
+ end
162
+
163
+ @id = id
164
+ end
165
+
166
+ # Custom attribute writer method with validation
167
+ # @param [Object] name Value to be assigned
168
+ def name=(name)
169
+ if name.nil?
170
+ fail ArgumentError, 'name cannot be nil'
171
+ end
172
+
173
+ @name = name
174
+ end
175
+
176
+ # Custom attribute writer method with validation
177
+ # @param [Object] description Value to be assigned
178
+ def description=(description)
179
+ if description.nil?
180
+ fail ArgumentError, 'description cannot be nil'
181
+ end
182
+
183
+ @description = description
184
+ end
185
+
186
+ # Custom attribute writer method with validation
187
+ # @param [Object] capabilities Value to be assigned
188
+ def capabilities=(capabilities)
189
+ if capabilities.nil?
190
+ fail ArgumentError, 'capabilities cannot be nil'
191
+ end
192
+
193
+ @capabilities = capabilities
194
+ end
195
+
196
+ # Checks equality by comparing each attribute.
197
+ # @param [Object] Object to be compared
198
+ def ==(o)
199
+ return true if self.equal?(o)
200
+ self.class == o.class &&
201
+ id == o.id &&
202
+ name == o.name &&
203
+ description == o.description &&
204
+ capabilities == o.capabilities &&
205
+ language == o.language &&
206
+ code == o.code
207
+ end
208
+
209
+ # @see the `==` method
210
+ # @param [Object] Object to be compared
211
+ def eql?(o)
212
+ self == o
213
+ end
214
+
215
+ # Calculates hash code according to all attributes.
216
+ # @return [Integer] Hash code
217
+ def hash
218
+ [id, name, description, capabilities, language, code].hash
219
+ end
220
+
221
+ # Builds the object from hash
222
+ # @param [Hash] attributes Model attributes in the form of hash
223
+ # @return [Object] Returns the model itself
224
+ def self.build_from_hash(attributes)
225
+ return nil unless attributes.is_a?(Hash)
226
+ attributes = attributes.transform_keys(&:to_sym)
227
+ transformed_hash = {}
228
+ openapi_types.each_pair do |key, type|
229
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
230
+ transformed_hash["#{key}"] = nil
231
+ elsif type =~ /\AArray<(.*)>/i
232
+ # check to ensure the input is an array given that the attribute
233
+ # is documented as an array but the input is not
234
+ if attributes[attribute_map[key]].is_a?(Array)
235
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
236
+ end
237
+ elsif !attributes[attribute_map[key]].nil?
238
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
239
+ end
240
+ end
241
+ new(transformed_hash)
242
+ end
243
+
244
+ # Returns the object in the form of hash
245
+ # @return [Hash] Returns the object in the form of hash
246
+ def to_hash
247
+ hash = {}
248
+ self.class.attribute_map.each_pair do |attr, param|
249
+ value = self.send(attr)
250
+ if value.nil?
251
+ is_nullable = self.class.openapi_nullable.include?(attr)
252
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
253
+ end
254
+
255
+ hash[param] = _to_hash(value)
256
+ end
257
+ hash
258
+ end
259
+
260
+ end
261
+
262
+ end