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,343 @@
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 CreateQueueRequestDeliveryTarget < ApiModelBase
18
+ attr_accessor :type
19
+
20
+ attr_accessor :function_id
21
+
22
+ attr_accessor :webhook_url
23
+
24
+ attr_accessor :webhook_headers
25
+
26
+ attr_accessor :timeout_seconds
27
+
28
+ attr_accessor :max_in_flight
29
+
30
+ attr_accessor :max_per_second
31
+
32
+ attr_accessor :retryable_status_codes
33
+
34
+ class EnumAttributeValidator
35
+ attr_reader :datatype
36
+ attr_reader :allowable_values
37
+
38
+ def initialize(datatype, allowable_values)
39
+ @allowable_values = allowable_values.map do |value|
40
+ case datatype.to_s
41
+ when /Integer/i
42
+ value.to_i
43
+ when /Float/i
44
+ value.to_f
45
+ else
46
+ value
47
+ end
48
+ end
49
+ end
50
+
51
+ def valid?(value)
52
+ !value || allowable_values.include?(value)
53
+ end
54
+ end
55
+
56
+ # Attribute mapping from ruby-style variable name to JSON key.
57
+ def self.attribute_map
58
+ {
59
+ :'type' => :'type',
60
+ :'function_id' => :'functionId',
61
+ :'webhook_url' => :'webhookUrl',
62
+ :'webhook_headers' => :'webhookHeaders',
63
+ :'timeout_seconds' => :'timeoutSeconds',
64
+ :'max_in_flight' => :'maxInFlight',
65
+ :'max_per_second' => :'maxPerSecond',
66
+ :'retryable_status_codes' => :'retryableStatusCodes'
67
+ }
68
+ end
69
+
70
+ # Returns attribute mapping this model knows about
71
+ def self.acceptable_attribute_map
72
+ attribute_map
73
+ end
74
+
75
+ # Returns all the JSON keys this model knows about
76
+ def self.acceptable_attributes
77
+ acceptable_attribute_map.values
78
+ end
79
+
80
+ # Attribute type mapping.
81
+ def self.openapi_types
82
+ {
83
+ :'type' => :'String',
84
+ :'function_id' => :'String',
85
+ :'webhook_url' => :'String',
86
+ :'webhook_headers' => :'Hash<String, String>',
87
+ :'timeout_seconds' => :'Float',
88
+ :'max_in_flight' => :'Float',
89
+ :'max_per_second' => :'Float',
90
+ :'retryable_status_codes' => :'Array<Float>'
91
+ }
92
+ end
93
+
94
+ # List of attributes with nullable: true
95
+ def self.openapi_nullable
96
+ Set.new([
97
+ ])
98
+ end
99
+
100
+ # Initializes the object
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ def initialize(attributes = {})
103
+ if (!attributes.is_a?(Hash))
104
+ fail ArgumentError, "The input argument (attributes) must be a hash in `RocketStackSdk::CreateQueueRequestDeliveryTarget` initialize method"
105
+ end
106
+
107
+ # check to see if the attribute exists and convert string to symbol for hash key
108
+ acceptable_attribute_map = self.class.acceptable_attribute_map
109
+ attributes = attributes.each_with_object({}) { |(k, v), h|
110
+ if (!acceptable_attribute_map.key?(k.to_sym))
111
+ fail ArgumentError, "`#{k}` is not a valid attribute in `RocketStackSdk::CreateQueueRequestDeliveryTarget`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
112
+ end
113
+ h[k.to_sym] = v
114
+ }
115
+
116
+ if attributes.key?(:'type')
117
+ self.type = attributes[:'type']
118
+ else
119
+ self.type = nil
120
+ end
121
+
122
+ if attributes.key?(:'function_id')
123
+ self.function_id = attributes[:'function_id']
124
+ end
125
+
126
+ if attributes.key?(:'webhook_url')
127
+ self.webhook_url = attributes[:'webhook_url']
128
+ end
129
+
130
+ if attributes.key?(:'webhook_headers')
131
+ if (value = attributes[:'webhook_headers']).is_a?(Hash)
132
+ self.webhook_headers = value
133
+ end
134
+ end
135
+
136
+ if attributes.key?(:'timeout_seconds')
137
+ self.timeout_seconds = attributes[:'timeout_seconds']
138
+ else
139
+ self.timeout_seconds = 10
140
+ end
141
+
142
+ if attributes.key?(:'max_in_flight')
143
+ self.max_in_flight = attributes[:'max_in_flight']
144
+ else
145
+ self.max_in_flight = 10
146
+ end
147
+
148
+ if attributes.key?(:'max_per_second')
149
+ self.max_per_second = attributes[:'max_per_second']
150
+ end
151
+
152
+ if attributes.key?(:'retryable_status_codes')
153
+ if (value = attributes[:'retryable_status_codes']).is_a?(Array)
154
+ self.retryable_status_codes = value
155
+ end
156
+ end
157
+ end
158
+
159
+ # Show invalid properties with the reasons. Usually used together with valid?
160
+ # @return Array for valid properties with the reasons
161
+ def list_invalid_properties
162
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
163
+ invalid_properties = Array.new
164
+ if @type.nil?
165
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
166
+ end
167
+
168
+ if !@timeout_seconds.nil? && @timeout_seconds > 30
169
+ invalid_properties.push('invalid value for "timeout_seconds", must be smaller than or equal to 30.')
170
+ end
171
+
172
+ if !@timeout_seconds.nil? && @timeout_seconds < 1
173
+ invalid_properties.push('invalid value for "timeout_seconds", must be greater than or equal to 1.')
174
+ end
175
+
176
+ if !@max_in_flight.nil? && @max_in_flight > 100
177
+ invalid_properties.push('invalid value for "max_in_flight", must be smaller than or equal to 100.')
178
+ end
179
+
180
+ if !@max_in_flight.nil? && @max_in_flight < 1
181
+ invalid_properties.push('invalid value for "max_in_flight", must be greater than or equal to 1.')
182
+ end
183
+
184
+ if !@max_per_second.nil? && @max_per_second > 1000
185
+ invalid_properties.push('invalid value for "max_per_second", must be smaller than or equal to 1000.')
186
+ end
187
+
188
+ if !@max_per_second.nil? && @max_per_second < 1
189
+ invalid_properties.push('invalid value for "max_per_second", must be greater than or equal to 1.')
190
+ end
191
+
192
+ invalid_properties
193
+ end
194
+
195
+ # Check to see if the all the properties in the model are valid
196
+ # @return true if the model is valid
197
+ def valid?
198
+ warn '[DEPRECATED] the `valid?` method is obsolete'
199
+ return false if @type.nil?
200
+ type_validator = EnumAttributeValidator.new('String', ["function", "webhook"])
201
+ return false unless type_validator.valid?(@type)
202
+ return false if !@timeout_seconds.nil? && @timeout_seconds > 30
203
+ return false if !@timeout_seconds.nil? && @timeout_seconds < 1
204
+ return false if !@max_in_flight.nil? && @max_in_flight > 100
205
+ return false if !@max_in_flight.nil? && @max_in_flight < 1
206
+ return false if !@max_per_second.nil? && @max_per_second > 1000
207
+ return false if !@max_per_second.nil? && @max_per_second < 1
208
+ true
209
+ end
210
+
211
+ # Custom attribute writer method checking allowed values (enum).
212
+ # @param [Object] type Object to be assigned
213
+ def type=(type)
214
+ validator = EnumAttributeValidator.new('String', ["function", "webhook"])
215
+ unless validator.valid?(type)
216
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
217
+ end
218
+ @type = type
219
+ end
220
+
221
+ # Custom attribute writer method with validation
222
+ # @param [Object] timeout_seconds Value to be assigned
223
+ def timeout_seconds=(timeout_seconds)
224
+ if timeout_seconds.nil?
225
+ fail ArgumentError, 'timeout_seconds cannot be nil'
226
+ end
227
+
228
+ if timeout_seconds > 30
229
+ fail ArgumentError, 'invalid value for "timeout_seconds", must be smaller than or equal to 30.'
230
+ end
231
+
232
+ if timeout_seconds < 1
233
+ fail ArgumentError, 'invalid value for "timeout_seconds", must be greater than or equal to 1.'
234
+ end
235
+
236
+ @timeout_seconds = timeout_seconds
237
+ end
238
+
239
+ # Custom attribute writer method with validation
240
+ # @param [Object] max_in_flight Value to be assigned
241
+ def max_in_flight=(max_in_flight)
242
+ if max_in_flight.nil?
243
+ fail ArgumentError, 'max_in_flight cannot be nil'
244
+ end
245
+
246
+ if max_in_flight > 100
247
+ fail ArgumentError, 'invalid value for "max_in_flight", must be smaller than or equal to 100.'
248
+ end
249
+
250
+ if max_in_flight < 1
251
+ fail ArgumentError, 'invalid value for "max_in_flight", must be greater than or equal to 1.'
252
+ end
253
+
254
+ @max_in_flight = max_in_flight
255
+ end
256
+
257
+ # Custom attribute writer method with validation
258
+ # @param [Object] max_per_second Value to be assigned
259
+ def max_per_second=(max_per_second)
260
+ if max_per_second.nil?
261
+ fail ArgumentError, 'max_per_second cannot be nil'
262
+ end
263
+
264
+ if max_per_second > 1000
265
+ fail ArgumentError, 'invalid value for "max_per_second", must be smaller than or equal to 1000.'
266
+ end
267
+
268
+ if max_per_second < 1
269
+ fail ArgumentError, 'invalid value for "max_per_second", must be greater than or equal to 1.'
270
+ end
271
+
272
+ @max_per_second = max_per_second
273
+ end
274
+
275
+ # Checks equality by comparing each attribute.
276
+ # @param [Object] Object to be compared
277
+ def ==(o)
278
+ return true if self.equal?(o)
279
+ self.class == o.class &&
280
+ type == o.type &&
281
+ function_id == o.function_id &&
282
+ webhook_url == o.webhook_url &&
283
+ webhook_headers == o.webhook_headers &&
284
+ timeout_seconds == o.timeout_seconds &&
285
+ max_in_flight == o.max_in_flight &&
286
+ max_per_second == o.max_per_second &&
287
+ retryable_status_codes == o.retryable_status_codes
288
+ end
289
+
290
+ # @see the `==` method
291
+ # @param [Object] Object to be compared
292
+ def eql?(o)
293
+ self == o
294
+ end
295
+
296
+ # Calculates hash code according to all attributes.
297
+ # @return [Integer] Hash code
298
+ def hash
299
+ [type, function_id, webhook_url, webhook_headers, timeout_seconds, max_in_flight, max_per_second, retryable_status_codes].hash
300
+ end
301
+
302
+ # Builds the object from hash
303
+ # @param [Hash] attributes Model attributes in the form of hash
304
+ # @return [Object] Returns the model itself
305
+ def self.build_from_hash(attributes)
306
+ return nil unless attributes.is_a?(Hash)
307
+ attributes = attributes.transform_keys(&:to_sym)
308
+ transformed_hash = {}
309
+ openapi_types.each_pair do |key, type|
310
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
311
+ transformed_hash["#{key}"] = nil
312
+ elsif type =~ /\AArray<(.*)>/i
313
+ # check to ensure the input is an array given that the attribute
314
+ # is documented as an array but the input is not
315
+ if attributes[attribute_map[key]].is_a?(Array)
316
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
317
+ end
318
+ elsif !attributes[attribute_map[key]].nil?
319
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
320
+ end
321
+ end
322
+ new(transformed_hash)
323
+ end
324
+
325
+ # Returns the object in the form of hash
326
+ # @return [Hash] Returns the object in the form of hash
327
+ def to_hash
328
+ hash = {}
329
+ self.class.attribute_map.each_pair do |attr, param|
330
+ value = self.send(attr)
331
+ if value.nil?
332
+ is_nullable = self.class.openapi_nullable.include?(attr)
333
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
334
+ end
335
+
336
+ hash[param] = _to_hash(value)
337
+ end
338
+ hash
339
+ end
340
+
341
+ end
342
+
343
+ end
@@ -0,0 +1,182 @@
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 CreateSchedule201Response < 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' => :'CreateSchedule201ResponseData',
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::CreateSchedule201Response` 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::CreateSchedule201Response`. 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
+ self.data = attributes[:'data']
82
+ end
83
+
84
+ if attributes.key?(:'error')
85
+ self.error = attributes[:'error']
86
+ end
87
+ end
88
+
89
+ # Show invalid properties with the reasons. Usually used together with valid?
90
+ # @return Array for valid properties with the reasons
91
+ def list_invalid_properties
92
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
93
+ invalid_properties = Array.new
94
+ if @request_id.nil?
95
+ invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
96
+ end
97
+
98
+ invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ warn '[DEPRECATED] the `valid?` method is obsolete'
105
+ return false if @request_id.nil?
106
+ true
107
+ end
108
+
109
+ # Custom attribute writer method with validation
110
+ # @param [Object] request_id Value to be assigned
111
+ def request_id=(request_id)
112
+ if request_id.nil?
113
+ fail ArgumentError, 'request_id cannot be nil'
114
+ end
115
+
116
+ @request_id = request_id
117
+ end
118
+
119
+ # Checks equality by comparing each attribute.
120
+ # @param [Object] Object to be compared
121
+ def ==(o)
122
+ return true if self.equal?(o)
123
+ self.class == o.class &&
124
+ request_id == o.request_id &&
125
+ data == o.data &&
126
+ error == o.error
127
+ end
128
+
129
+ # @see the `==` method
130
+ # @param [Object] Object to be compared
131
+ def eql?(o)
132
+ self == o
133
+ end
134
+
135
+ # Calculates hash code according to all attributes.
136
+ # @return [Integer] Hash code
137
+ def hash
138
+ [request_id, data, error].hash
139
+ end
140
+
141
+ # Builds the object from hash
142
+ # @param [Hash] attributes Model attributes in the form of hash
143
+ # @return [Object] Returns the model itself
144
+ def self.build_from_hash(attributes)
145
+ return nil unless attributes.is_a?(Hash)
146
+ attributes = attributes.transform_keys(&:to_sym)
147
+ transformed_hash = {}
148
+ openapi_types.each_pair do |key, type|
149
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
150
+ transformed_hash["#{key}"] = nil
151
+ elsif type =~ /\AArray<(.*)>/i
152
+ # check to ensure the input is an array given that the attribute
153
+ # is documented as an array but the input is not
154
+ if attributes[attribute_map[key]].is_a?(Array)
155
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
156
+ end
157
+ elsif !attributes[attribute_map[key]].nil?
158
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
159
+ end
160
+ end
161
+ new(transformed_hash)
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ if value.nil?
171
+ is_nullable = self.class.openapi_nullable.include?(attr)
172
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
173
+ end
174
+
175
+ hash[param] = _to_hash(value)
176
+ end
177
+ hash
178
+ end
179
+
180
+ end
181
+
182
+ end
@@ -0,0 +1,190 @@
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 CreateSchedule201ResponseData < ApiModelBase
18
+ attr_accessor :schedule_id
19
+
20
+ attr_accessor :status
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'schedule_id' => :'scheduleId',
26
+ :'status' => :'status'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'schedule_id' => :'String',
44
+ :'status' => :'String'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `RocketStackSdk::CreateSchedule201ResponseData` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `RocketStackSdk::CreateSchedule201ResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'schedule_id')
71
+ self.schedule_id = attributes[:'schedule_id']
72
+ else
73
+ self.schedule_id = nil
74
+ end
75
+
76
+ if attributes.key?(:'status')
77
+ self.status = attributes[:'status']
78
+ else
79
+ self.status = nil
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
+ invalid_properties = Array.new
88
+ if @schedule_id.nil?
89
+ invalid_properties.push('invalid value for "schedule_id", schedule_id cannot be nil.')
90
+ end
91
+
92
+ if @status.nil?
93
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
94
+ end
95
+
96
+ invalid_properties
97
+ end
98
+
99
+ # Check to see if the all the properties in the model are valid
100
+ # @return true if the model is valid
101
+ def valid?
102
+ warn '[DEPRECATED] the `valid?` method is obsolete'
103
+ return false if @schedule_id.nil?
104
+ return false if @status.nil?
105
+ true
106
+ end
107
+
108
+ # Custom attribute writer method with validation
109
+ # @param [Object] schedule_id Value to be assigned
110
+ def schedule_id=(schedule_id)
111
+ if schedule_id.nil?
112
+ fail ArgumentError, 'schedule_id cannot be nil'
113
+ end
114
+
115
+ @schedule_id = schedule_id
116
+ end
117
+
118
+ # Custom attribute writer method with validation
119
+ # @param [Object] status Value to be assigned
120
+ def status=(status)
121
+ if status.nil?
122
+ fail ArgumentError, 'status cannot be nil'
123
+ end
124
+
125
+ @status = status
126
+ end
127
+
128
+ # Checks equality by comparing each attribute.
129
+ # @param [Object] Object to be compared
130
+ def ==(o)
131
+ return true if self.equal?(o)
132
+ self.class == o.class &&
133
+ schedule_id == o.schedule_id &&
134
+ status == o.status
135
+ end
136
+
137
+ # @see the `==` method
138
+ # @param [Object] Object to be compared
139
+ def eql?(o)
140
+ self == o
141
+ end
142
+
143
+ # Calculates hash code according to all attributes.
144
+ # @return [Integer] Hash code
145
+ def hash
146
+ [schedule_id, status].hash
147
+ end
148
+
149
+ # Builds the object from hash
150
+ # @param [Hash] attributes Model attributes in the form of hash
151
+ # @return [Object] Returns the model itself
152
+ def self.build_from_hash(attributes)
153
+ return nil unless attributes.is_a?(Hash)
154
+ attributes = attributes.transform_keys(&:to_sym)
155
+ transformed_hash = {}
156
+ openapi_types.each_pair do |key, type|
157
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
158
+ transformed_hash["#{key}"] = nil
159
+ elsif type =~ /\AArray<(.*)>/i
160
+ # check to ensure the input is an array given that the attribute
161
+ # is documented as an array but the input is not
162
+ if attributes[attribute_map[key]].is_a?(Array)
163
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
164
+ end
165
+ elsif !attributes[attribute_map[key]].nil?
166
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
167
+ end
168
+ end
169
+ new(transformed_hash)
170
+ end
171
+
172
+ # Returns the object in the form of hash
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_hash
175
+ hash = {}
176
+ self.class.attribute_map.each_pair do |attr, param|
177
+ value = self.send(attr)
178
+ if value.nil?
179
+ is_nullable = self.class.openapi_nullable.include?(attr)
180
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
181
+ end
182
+
183
+ hash[param] = _to_hash(value)
184
+ end
185
+ hash
186
+ end
187
+
188
+ end
189
+
190
+ end