volcano-sdk 0.33.0 → 0.35.0

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 (548) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +104 -4
  3. data/lib/volcano/auth_profile_fields.rb +2 -2
  4. data/lib/volcano/client.rb +1 -1
  5. data/lib/volcano/durable.rb +16 -38
  6. data/lib/volcano/durable_approval_models.rb +171 -0
  7. data/lib/volcano/durable_approval_responses.rb +222 -0
  8. data/lib/volcano/durable_approvals.rb +143 -0
  9. data/lib/volcano/durable_arguments.rb +59 -0
  10. data/lib/volcano/durable_message_arguments.rb +49 -0
  11. data/lib/volcano/durable_message_backlog.rb +38 -0
  12. data/lib/volcano/durable_message_catch_ups.rb +112 -0
  13. data/lib/volcano/durable_message_models.rb +62 -0
  14. data/lib/volcano/durable_message_responses.rb +107 -0
  15. data/lib/volcano/durable_message_session.rb +72 -0
  16. data/lib/volcano/durable_message_stream.rb +176 -0
  17. data/lib/volcano/durable_messages.rb +217 -0
  18. data/lib/volcano/durable_models.rb +32 -7
  19. data/lib/volcano/errors.rb +5 -0
  20. data/lib/volcano/generated/lib/volcano-generated/api/anon_keys_api.rb +8 -8
  21. data/lib/volcano/generated/lib/volcano-generated/api/auth_admin_api.rb +17 -17
  22. data/lib/volcano/generated/lib/volcano-generated/api/auth_configuration_api.rb +28 -28
  23. data/lib/volcano/generated/lib/volcano-generated/api/authentication_api.rb +4 -4
  24. data/lib/volcano/generated/lib/volcano-generated/api/autofix_api.rb +222 -0
  25. data/lib/volcano/generated/lib/volcano-generated/api/database_backups_api.rb +11 -11
  26. data/lib/volcano/generated/lib/volcano-generated/api/database_branches_api.rb +9 -9
  27. data/lib/volcano/generated/lib/volcano-generated/api/database_queries_api.rb +4 -4
  28. data/lib/volcano/generated/lib/volcano-generated/api/databases_api.rb +18 -18
  29. data/lib/volcano/generated/lib/volcano-generated/api/durable_functions_api.rb +1327 -51
  30. data/lib/volcano/generated/lib/volcano-generated/api/frontends_api.rb +337 -21
  31. data/lib/volcano/generated/lib/volcano-generated/api/functions_api.rb +33 -27
  32. data/lib/volcano/generated/lib/volcano-generated/api/git_connections_api.rb +19 -11
  33. data/lib/volcano/generated/lib/volcano-generated/api/issues_api.rb +254 -0
  34. data/lib/volcano/generated/lib/volcano-generated/api/locks_api.rb +2 -2
  35. data/lib/volcano/generated/lib/volcano-generated/api/logs_api.rb +11 -11
  36. data/lib/volcano/generated/lib/volcano-generated/api/o_auth_authentication_api.rb +2 -2
  37. data/lib/volcano/generated/lib/volcano-generated/api/o_auth_configuration_api.rb +8 -8
  38. data/lib/volcano/generated/lib/volcano-generated/api/project_access_tokens_api.rb +479 -0
  39. data/lib/volcano/generated/lib/volcano-generated/api/project_imports_api.rb +10 -2
  40. data/lib/volcano/generated/lib/volcano-generated/api/projects_api.rb +110 -30
  41. data/lib/volcano/generated/lib/volcano-generated/api/realtime_api.rb +5 -5
  42. data/lib/volcano/generated/lib/volcano-generated/api/sandboxes_api.rb +377 -18
  43. data/lib/volcano/generated/lib/volcano-generated/api/service_keys_api.rb +9 -9
  44. data/lib/volcano/generated/lib/volcano-generated/api/storage_admin_api.rb +4 -4
  45. data/lib/volcano/generated/lib/volcano-generated/api/storage_buckets_api.rb +7 -7
  46. data/lib/volcano/generated/lib/volcano-generated/api/storage_objects_api.rb +2 -2
  47. data/lib/volcano/generated/lib/volcano-generated/api/storage_policies_api.rb +5 -5
  48. data/lib/volcano/generated/lib/volcano-generated/api/system_api.rb +367 -2
  49. data/lib/volcano/generated/lib/volcano-generated/api/variable_environments_api.rb +373 -0
  50. data/lib/volcano/generated/lib/volcano-generated/api/variables_api.rb +13 -13
  51. data/lib/volcano/generated/lib/volcano-generated/api/verified_domains_api.rb +214 -0
  52. data/lib/volcano/generated/lib/volcano-generated/api_client.rb +2 -2
  53. data/lib/volcano/generated/lib/volcano-generated/api_error.rb +2 -2
  54. data/lib/volcano/generated/lib/volcano-generated/api_model_base.rb +2 -2
  55. data/lib/volcano/generated/lib/volcano-generated/configuration.rb +11 -3
  56. data/lib/volcano/generated/lib/volcano-generated/models/anon_key.rb +2 -2
  57. data/lib/volcano/generated/lib/volcano-generated/models/auth_config.rb +48 -6
  58. data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email200_response.rb +2 -2
  59. data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email_change200_response.rb +2 -2
  60. data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email_change_request.rb +2 -2
  61. data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email_request.rb +2 -2
  62. data/lib/volcano/generated/lib/volcano-generated/models/auth_convert_anonymous200_response.rb +2 -2
  63. data/lib/volcano/generated/lib/volcano-generated/models/auth_device_authorize_request.rb +2 -2
  64. data/lib/volcano/generated/lib/volcano-generated/models/auth_device_token_request.rb +2 -2
  65. data/lib/volcano/generated/lib/volcano-generated/models/auth_device_verify200_response.rb +2 -2
  66. data/lib/volcano/generated/lib/volcano-generated/models/auth_device_verify_request.rb +2 -2
  67. data/lib/volcano/generated/lib/volcano-generated/models/auth_forgot_password200_response.rb +2 -2
  68. data/lib/volcano/generated/lib/volcano-generated/models/auth_forgot_password_request.rb +2 -2
  69. data/lib/volcano/generated/lib/volcano-generated/models/auth_get_my_sessions200_response.rb +2 -2
  70. data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page.rb +2 -2
  71. data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page_defaults.rb +2 -2
  72. data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page_response.rb +2 -2
  73. data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page_runtime.rb +2 -2
  74. data/lib/volcano/generated/lib/volcano-generated/models/auth_identities_response.rb +2 -2
  75. data/lib/volcano/generated/lib/volcano-generated/models/auth_identity.rb +2 -2
  76. data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_interval.rb +2 -2
  77. data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_response.rb +2 -2
  78. data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_series_point.rb +175 -4
  79. data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_summary.rb +77 -5
  80. data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_window.rb +2 -2
  81. data/lib/volcano/generated/lib/volcano-generated/models/auth_link_o_auth_provider200_response.rb +2 -2
  82. data/lib/volcano/generated/lib/volcano-generated/models/auth_list_o_auth_providers200_response.rb +2 -2
  83. data/lib/volcano/generated/lib/volcano-generated/models/auth_list_o_auth_providers200_response_providers_inner.rb +2 -2
  84. data/lib/volcano/generated/lib/volcano-generated/models/auth_method_summary.rb +2 -2
  85. data/lib/volcano/generated/lib/volcano-generated/models/auth_methods_response.rb +2 -2
  86. data/lib/volcano/generated/lib/volcano-generated/models/auth_o_auth_exchange_request.rb +2 -2
  87. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_appearance_defaults.rb +2 -2
  88. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_appearance_options.rb +2 -2
  89. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_appearance_response.rb +2 -2
  90. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_density.rb +2 -2
  91. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_font.rb +2 -2
  92. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_layout.rb +2 -2
  93. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_radius.rb +2 -2
  94. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_scale.rb +2 -2
  95. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_theme.rb +2 -2
  96. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_theme_colors.rb +2 -2
  97. data/lib/volcano/generated/lib/volcano-generated/models/auth_password_policy.rb +2 -2
  98. data/lib/volcano/generated/lib/volcano-generated/models/auth_platform_exchange_request.rb +2 -2
  99. data/lib/volcano/generated/lib/volcano-generated/models/auth_refresh_request.rb +2 -2
  100. data/lib/volcano/generated/lib/volcano-generated/models/auth_request_email_change200_response.rb +2 -2
  101. data/lib/volcano/generated/lib/volcano-generated/models/auth_request_email_change_request.rb +2 -2
  102. data/lib/volcano/generated/lib/volcano-generated/models/auth_reset_password200_response.rb +2 -2
  103. data/lib/volcano/generated/lib/volcano-generated/models/auth_reset_password_request.rb +2 -2
  104. data/lib/volcano/generated/lib/volcano-generated/models/auth_session.rb +2 -2
  105. data/lib/volcano/generated/lib/volcano-generated/models/auth_signin_request.rb +2 -2
  106. data/lib/volcano/generated/lib/volcano-generated/models/auth_signup_anonymous_request.rb +2 -2
  107. data/lib/volcano/generated/lib/volcano-generated/models/auth_signup_request.rb +2 -2
  108. data/lib/volcano/generated/lib/volcano-generated/models/auth_signup_response.rb +2 -2
  109. data/lib/volcano/generated/lib/volcano-generated/models/auth_token_response.rb +2 -2
  110. data/lib/volcano/generated/lib/volcano-generated/models/auth_update_user_request.rb +2 -2
  111. data/lib/volcano/generated/lib/volcano-generated/models/auth_user.rb +2 -2
  112. data/lib/volcano/generated/lib/volcano-generated/models/autofix_model.rb +45 -0
  113. data/lib/volcano/generated/lib/volcano-generated/models/autofix_provider.rb +40 -0
  114. data/lib/volcano/generated/lib/volcano-generated/models/autofix_settings.rb +385 -0
  115. data/lib/volcano/generated/lib/volcano-generated/models/autofix_stage.rb +40 -0
  116. data/lib/volcano/generated/lib/volcano-generated/models/ban_auth_user_request.rb +2 -2
  117. data/lib/volcano/generated/lib/volcano-generated/models/ban_user_response.rb +2 -2
  118. data/lib/volcano/generated/lib/volcano-generated/models/batch_function_deploy_failure.rb +2 -2
  119. data/lib/volcano/generated/lib/volcano-generated/models/batch_function_deploy_response.rb +2 -2
  120. data/lib/volcano/generated/lib/volcano-generated/models/byoc_project_config_frontend_custom_domain_tls_config.rb +270 -0
  121. data/lib/volcano/generated/lib/volcano-generated/models/byoc_project_config_frontend_custom_domain_tls_config_not.rb +102 -0
  122. data/lib/volcano/generated/lib/volcano-generated/models/call_mcp200_response.rb +220 -0
  123. data/lib/volcano/generated/lib/volcano-generated/models/call_mcp200_response_error.rb +190 -0
  124. data/lib/volcano/generated/lib/volcano-generated/models/call_mcp200_response_id.rb +105 -0
  125. data/lib/volcano/generated/lib/volcano-generated/models/call_mcp_request.rb +236 -0
  126. data/lib/volcano/generated/lib/volcano-generated/models/call_mcp_request_id.rb +105 -0
  127. data/lib/volcano/generated/lib/volcano-generated/models/call_o_auth_provider_api200_response.rb +2 -2
  128. data/lib/volcano/generated/lib/volcano-generated/models/call_o_auth_provider_api_request.rb +2 -2
  129. data/lib/volcano/generated/lib/volcano-generated/models/capability.rb +214 -0
  130. data/lib/volcano/generated/lib/volcano-generated/models/capability_list.rb +166 -0
  131. data/lib/volcano/generated/lib/volcano-generated/models/capability_status.rb +40 -0
  132. data/lib/volcano/generated/lib/volcano-generated/models/complete_upload_session_response.rb +2 -2
  133. data/lib/volcano/generated/lib/volcano-generated/models/configure_auth_methods_request.rb +2 -2
  134. data/lib/volcano/generated/lib/volcano-generated/models/configure_auth_methods_request_oauth_providers_inner.rb +2 -2
  135. data/lib/volcano/generated/lib/volcano-generated/models/connect_project_git_request.rb +2 -2
  136. data/lib/volcano/generated/lib/volcano-generated/models/create_anon_key_request.rb +2 -2
  137. data/lib/volcano/generated/lib/volcano-generated/models/create_database_backup_request.rb +2 -2
  138. data/lib/volcano/generated/lib/volcano-generated/models/create_database_branch_request.rb +2 -2
  139. data/lib/volcano/generated/lib/volcano-generated/models/create_database_request.rb +6 -6
  140. data/lib/volcano/generated/lib/volcano-generated/models/create_database_restore_request.rb +2 -2
  141. data/lib/volcano/generated/lib/volcano-generated/models/create_email_template_request.rb +2 -2
  142. data/lib/volcano/generated/lib/volcano-generated/models/create_frontend_custom_domain_request.rb +12 -3
  143. data/lib/volcano/generated/lib/volcano-generated/models/create_frontend_function_route_request.rb +230 -0
  144. data/lib/volcano/generated/lib/volcano-generated/models/create_function_scheduler_request.rb +2 -2
  145. data/lib/volcano/generated/lib/volcano-generated/models/create_o_auth_config_request.rb +2 -2
  146. data/lib/volcano/generated/lib/volcano-generated/models/create_project_access_token_request.rb +241 -0
  147. data/lib/volcano/generated/lib/volcano-generated/models/create_project_request.rb +57 -3
  148. data/lib/volcano/generated/lib/volcano-generated/models/create_sandbox_session_request.rb +18 -57
  149. data/lib/volcano/generated/lib/volcano-generated/models/create_sandbox_template_request.rb +2 -2
  150. data/lib/volcano/generated/lib/volcano-generated/models/create_service_key_request.rb +2 -2
  151. data/lib/volcano/generated/lib/volcano-generated/models/create_storage_bucket_request.rb +2 -2
  152. data/lib/volcano/generated/lib/volcano-generated/models/create_storage_policy_request.rb +2 -2
  153. data/lib/volcano/generated/lib/volcano-generated/models/create_upload_session_request.rb +2 -2
  154. data/lib/volcano/generated/lib/volcano-generated/models/create_upload_session_response.rb +2 -2
  155. data/lib/volcano/generated/lib/volcano-generated/models/create_variable_environment_request.rb +176 -0
  156. data/lib/volcano/generated/lib/volcano-generated/models/create_variable_request.rb +3 -2
  157. data/lib/volcano/generated/lib/volcano-generated/models/created_project_access_token.rb +459 -0
  158. data/lib/volcano/generated/lib/volcano-generated/models/database.rb +2 -2
  159. data/lib/volcano/generated/lib/volcano-generated/models/database_backup.rb +2 -2
  160. data/lib/volcano/generated/lib/volcano-generated/models/database_backup_list.rb +2 -2
  161. data/lib/volcano/generated/lib/volcano-generated/models/database_backup_schedule.rb +2 -2
  162. data/lib/volcano/generated/lib/volcano-generated/models/database_backup_schedule_entry.rb +2 -2
  163. data/lib/volcano/generated/lib/volcano-generated/models/database_branch.rb +2 -2
  164. data/lib/volcano/generated/lib/volcano-generated/models/database_branch_list.rb +2 -2
  165. data/lib/volcano/generated/lib/volcano-generated/models/database_branch_storage.rb +2 -2
  166. data/lib/volcano/generated/lib/volcano-generated/models/database_delete_request.rb +2 -2
  167. data/lib/volcano/generated/lib/volcano-generated/models/database_insert_request.rb +3 -3
  168. data/lib/volcano/generated/lib/volcano-generated/models/database_query_filter.rb +2 -2
  169. data/lib/volcano/generated/lib/volcano-generated/models/database_query_filter_value.rb +3 -3
  170. data/lib/volcano/generated/lib/volcano-generated/models/database_query_filter_value_one_of_inner.rb +3 -3
  171. data/lib/volcano/generated/lib/volcano-generated/models/database_query_order.rb +2 -2
  172. data/lib/volcano/generated/lib/volcano-generated/models/database_query_performance_database.rb +2 -2
  173. data/lib/volcano/generated/lib/volcano-generated/models/database_query_performance_item.rb +4 -4
  174. data/lib/volcano/generated/lib/volcano-generated/models/database_query_performance_response.rb +2 -2
  175. data/lib/volcano/generated/lib/volcano-generated/models/database_query_result.rb +2 -2
  176. data/lib/volcano/generated/lib/volcano-generated/models/database_restore.rb +2 -2
  177. data/lib/volcano/generated/lib/volcano-generated/models/database_restore_list.rb +2 -2
  178. data/lib/volcano/generated/lib/volcano-generated/models/database_restore_window.rb +2 -2
  179. data/lib/volcano/generated/lib/volcano-generated/models/database_select_request.rb +2 -2
  180. data/lib/volcano/generated/lib/volcano-generated/models/database_stats.rb +2 -2
  181. data/lib/volcano/generated/lib/volcano-generated/models/database_update_request.rb +3 -3
  182. data/lib/volcano/generated/lib/volcano-generated/models/delete_database202_response.rb +2 -2
  183. data/lib/volcano/generated/lib/volcano-generated/models/delete_database_backup200_response.rb +2 -2
  184. data/lib/volcano/generated/lib/volcano-generated/models/delete_database_branch202_response.rb +2 -2
  185. data/lib/volcano/generated/lib/volcano-generated/models/deployment_phase.rb +2 -2
  186. data/lib/volcano/generated/lib/volcano-generated/models/deployment_progress.rb +2 -2
  187. data/lib/volcano/generated/lib/volcano-generated/models/deployment_reference.rb +2 -2
  188. data/lib/volcano/generated/lib/volcano-generated/models/device_authorization_response.rb +2 -2
  189. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval.rb +406 -0
  190. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_counts.rb +295 -0
  191. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_daily_counts.rb +190 -0
  192. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_decider.rb +191 -0
  193. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_decision.rb +203 -0
  194. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_decision_request.rb +167 -0
  195. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_execution.rb +211 -0
  196. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_function.rb +177 -0
  197. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_function_counts.rb +190 -0
  198. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_registration.rb +225 -0
  199. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_stats.rb +339 -0
  200. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_status.rb +43 -0
  201. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution.rb +16 -6
  202. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_error.rb +2 -2
  203. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_invocation.rb +191 -0
  204. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_operation.rb +372 -0
  205. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_operation_attempt.rb +271 -0
  206. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_operation_list.rb +234 -0
  207. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_status.rb +2 -2
  208. data/lib/volcano/generated/lib/volcano-generated/models/durable_function.rb +31 -4
  209. data/lib/volcano/generated/lib/volcano-generated/models/durable_function_config.rb +2 -2
  210. data/lib/volcano/generated/lib/volcano-generated/models/durable_message.rb +396 -0
  211. data/lib/volcano/generated/lib/volcano-generated/models/durable_message_direction.rb +40 -0
  212. data/lib/volcano/generated/lib/volcano-generated/models/durable_message_list.rb +194 -0
  213. data/lib/volcano/generated/lib/volcano-generated/models/durable_message_sender.rb +203 -0
  214. data/lib/volcano/generated/lib/volcano-generated/models/durable_message_session_registration.rb +165 -0
  215. data/lib/volcano/generated/lib/volcano-generated/models/durable_message_status.rb +43 -0
  216. data/lib/volcano/generated/lib/volcano-generated/models/durable_message_wait.rb +278 -0
  217. data/lib/volcano/generated/lib/volcano-generated/models/durable_message_wait_list.rb +167 -0
  218. data/lib/volcano/generated/lib/volcano-generated/models/durable_message_wait_registration.rb +225 -0
  219. data/lib/volcano/generated/lib/volcano-generated/models/durable_message_wait_status.rb +43 -0
  220. data/lib/volcano/generated/lib/volcano-generated/models/email_template.rb +2 -2
  221. data/lib/volcano/generated/lib/volcano-generated/models/error.rb +2 -2
  222. data/lib/volcano/generated/lib/volcano-generated/models/export_project_source_request.rb +2 -2
  223. data/lib/volcano/generated/lib/volcano-generated/models/frontend.rb +95 -3
  224. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_conflict_error.rb +191 -0
  225. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_response.rb +50 -5
  226. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_tls_config.rb +42 -18
  227. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_tls_config_not.rb +103 -0
  228. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_tls_config_not_any_of.rb +188 -0
  229. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_tls_config_not_any_of1.rb +188 -0
  230. data/lib/volcano/generated/lib/volcano-generated/models/frontend_deployment.rb +24 -68
  231. data/lib/volcano/generated/lib/volcano-generated/models/frontend_domain_routing_record.rb +2 -2
  232. data/lib/volcano/generated/lib/volcano-generated/models/frontend_domain_verification_record.rb +3 -2
  233. data/lib/volcano/generated/lib/volcano-generated/models/frontend_function_route.rb +375 -0
  234. data/lib/volcano/generated/lib/volcano-generated/models/frontend_function_route_list.rb +166 -0
  235. data/lib/volcano/generated/lib/volcano-generated/models/frontend_usage_daily_entry.rb +2 -2
  236. data/lib/volcano/generated/lib/volcano-generated/models/frontend_usage_data.rb +2 -2
  237. data/lib/volcano/generated/lib/volcano-generated/models/frontend_usage_history_response.rb +2 -2
  238. data/lib/volcano/generated/lib/volcano-generated/models/function.rb +31 -14
  239. data/lib/volcano/generated/lib/volcano-generated/models/function_deployment.rb +24 -50
  240. data/lib/volcano/generated/lib/volcano-generated/models/function_http_auth_mode.rb +2 -2
  241. data/lib/volcano/generated/lib/volcano-generated/models/function_invocation_mode.rb +2 -2
  242. data/lib/volcano/generated/lib/volcano-generated/models/function_invocation_request.rb +2 -2
  243. data/lib/volcano/generated/lib/volcano-generated/models/function_kind.rb +2 -2
  244. data/lib/volcano/generated/lib/volcano-generated/models/function_kind_filter.rb +40 -0
  245. data/lib/volcano/generated/lib/volcano-generated/models/function_region.rb +2 -2
  246. data/lib/volcano/generated/lib/volcano-generated/models/function_runtime_deployment.rb +2 -2
  247. data/lib/volcano/generated/lib/volcano-generated/models/function_runtime_option.rb +30 -3
  248. data/lib/volcano/generated/lib/volcano-generated/models/function_runtimes_response.rb +2 -2
  249. data/lib/volcano/generated/lib/volcano-generated/models/function_scheduler.rb +2 -2
  250. data/lib/volcano/generated/lib/volcano-generated/models/function_scheduler_list_response.rb +2 -2
  251. data/lib/volcano/generated/lib/volcano-generated/models/function_visibility.rb +41 -0
  252. data/lib/volcano/generated/lib/volcano-generated/models/get_auth_methods200_response.rb +2 -2
  253. data/lib/volcano/generated/lib/volcano-generated/models/get_auth_methods200_response_email_password.rb +2 -2
  254. data/lib/volcano/generated/lib/volcano-generated/models/get_auth_methods200_response_oauth_providers_inner.rb +2 -2
  255. data/lib/volcano/generated/lib/volcano-generated/models/git_connect_start_response.rb +2 -2
  256. data/lib/volcano/generated/lib/volcano-generated/models/git_connection.rb +2 -2
  257. data/lib/volcano/generated/lib/volcano-generated/models/git_connections_response.rb +2 -2
  258. data/lib/volcano/generated/lib/volcano-generated/models/git_installation.rb +2 -2
  259. data/lib/volcano/generated/lib/volcano-generated/models/git_installations_response.rb +2 -2
  260. data/lib/volcano/generated/lib/volcano-generated/models/git_repositories_response.rb +2 -2
  261. data/lib/volcano/generated/lib/volcano-generated/models/git_repository.rb +2 -2
  262. data/lib/volcano/generated/lib/volcano-generated/models/hosted_auth_page_type.rb +2 -2
  263. data/lib/volcano/generated/lib/volcano-generated/models/hosted_login_email_check_request.rb +2 -2
  264. data/lib/volcano/generated/lib/volcano-generated/models/hosted_login_email_check_response.rb +2 -2
  265. data/lib/volcano/generated/lib/volcano-generated/models/hosted_login_options_response.rb +2 -2
  266. data/lib/volcano/generated/lib/volcano-generated/models/hosted_renderable_page_type.rb +2 -2
  267. data/lib/volcano/generated/lib/volcano-generated/models/import_connect_start_response.rb +2 -2
  268. data/lib/volcano/generated/lib/volcano-generated/models/import_connection.rb +2 -2
  269. data/lib/volcano/generated/lib/volcano-generated/models/import_connections_response.rb +2 -2
  270. data/lib/volcano/generated/lib/volcano-generated/models/import_provider.rb +2 -2
  271. data/lib/volcano/generated/lib/volcano-generated/models/import_source.rb +2 -2
  272. data/lib/volcano/generated/lib/volcano-generated/models/import_sources_response.rb +2 -2
  273. data/lib/volcano/generated/lib/volcano-generated/models/issue.rb +493 -0
  274. data/lib/volcano/generated/lib/volcano-generated/models/issue_status.rb +41 -0
  275. data/lib/volcano/generated/lib/volcano-generated/models/list_anon_keys200_response.rb +2 -2
  276. data/lib/volcano/generated/lib/volcano-generated/models/list_available_o_auth_providers200_response.rb +2 -2
  277. data/lib/volcano/generated/lib/volcano-generated/models/list_available_o_auth_providers200_response_providers_inner.rb +2 -2
  278. data/lib/volcano/generated/lib/volcano-generated/models/list_database_regions200_response_inner.rb +2 -2
  279. data/lib/volcano/generated/lib/volcano-generated/models/list_email_templates200_response.rb +2 -2
  280. data/lib/volcano/generated/lib/volcano-generated/models/list_o_auth_configs200_response.rb +2 -2
  281. data/lib/volcano/generated/lib/volcano-generated/models/list_postgres_versions200_response_inner.rb +14 -4
  282. data/lib/volcano/generated/lib/volcano-generated/models/list_storage_buckets200_response.rb +3 -3
  283. data/lib/volcano/generated/lib/volcano-generated/models/list_storage_objects_admin200_response.rb +2 -2
  284. data/lib/volcano/generated/lib/volcano-generated/models/live_log_level.rb +2 -2
  285. data/lib/volcano/generated/lib/volcano-generated/models/log_activity_bucket.rb +5 -5
  286. data/lib/volcano/generated/lib/volcano-generated/models/log_activity_bucket_counts.rb +2 -2
  287. data/lib/volcano/generated/lib/volcano-generated/models/log_activity_request.rb +5 -5
  288. data/lib/volcano/generated/lib/volcano-generated/models/log_activity_response.rb +2 -2
  289. data/lib/volcano/generated/lib/volcano-generated/models/log_database_request_resource.rb +2 -2
  290. data/lib/volcano/generated/lib/volcano-generated/models/log_deployment.rb +2 -2
  291. data/lib/volcano/generated/lib/volcano-generated/models/log_deployment_request_selector.rb +2 -2
  292. data/lib/volcano/generated/lib/volcano-generated/models/log_event.rb +2 -2
  293. data/lib/volcano/generated/lib/volcano-generated/models/log_event_body.rb +3 -3
  294. data/lib/volcano/generated/lib/volcano-generated/models/log_frontend_request_resource.rb +2 -2
  295. data/lib/volcano/generated/lib/volcano-generated/models/log_function_request_resource.rb +13 -3
  296. data/lib/volcano/generated/lib/volcano-generated/models/log_request_resource.rb +3 -3
  297. data/lib/volcano/generated/lib/volcano-generated/models/log_resource.rb +2 -2
  298. data/lib/volcano/generated/lib/volcano-generated/models/log_search_event.rb +2 -2
  299. data/lib/volcano/generated/lib/volcano-generated/models/log_search_request.rb +2 -2
  300. data/lib/volcano/generated/lib/volcano-generated/models/log_search_response.rb +4 -4
  301. data/lib/volcano/generated/lib/volcano-generated/models/log_stream_request.rb +2 -2
  302. data/lib/volcano/generated/lib/volcano-generated/models/managed_project_config_frontend_custom_domain_tls_config.rb +189 -0
  303. data/lib/volcano/generated/lib/volcano-generated/models/metric_usage_data.rb +3 -3
  304. data/lib/volcano/generated/lib/volcano-generated/models/o_auth_config.rb +2 -2
  305. data/lib/volcano/generated/lib/volcano-generated/models/o_auth_error_response.rb +2 -2
  306. data/lib/volcano/generated/lib/volcano-generated/models/open_durable_message_session_request.rb +228 -0
  307. data/lib/volcano/generated/lib/volcano-generated/models/paginated_auth_users.rb +2 -2
  308. data/lib/volcano/generated/lib/volcano-generated/models/paginated_databases.rb +2 -2
  309. data/lib/volcano/generated/lib/volcano-generated/models/paginated_durable_approvals.rb +274 -0
  310. data/lib/volcano/generated/lib/volcano-generated/models/paginated_durable_executions.rb +2 -2
  311. data/lib/volcano/generated/lib/volcano-generated/models/paginated_durable_functions.rb +2 -2
  312. data/lib/volcano/generated/lib/volcano-generated/models/paginated_frontend_deployments.rb +2 -2
  313. data/lib/volcano/generated/lib/volcano-generated/models/paginated_frontends.rb +2 -2
  314. data/lib/volcano/generated/lib/volcano-generated/models/paginated_function_deployments.rb +2 -2
  315. data/lib/volcano/generated/lib/volcano-generated/models/paginated_functions.rb +2 -2
  316. data/lib/volcano/generated/lib/volcano-generated/models/paginated_issues.rb +230 -0
  317. data/lib/volcano/generated/lib/volcano-generated/models/paginated_project_access_tokens.rb +279 -0
  318. data/lib/volcano/generated/lib/volcano-generated/models/paginated_project_custom_domains.rb +2 -2
  319. data/lib/volcano/generated/lib/volcano-generated/models/paginated_project_deployments.rb +2 -2
  320. data/lib/volcano/generated/lib/volcano-generated/models/paginated_projects.rb +2 -2
  321. data/lib/volcano/generated/lib/volcano-generated/models/paginated_service_keys.rb +2 -2
  322. data/lib/volcano/generated/lib/volcano-generated/models/paginated_storage_buckets.rb +2 -2
  323. data/lib/volcano/generated/lib/volcano-generated/models/paginated_variables.rb +2 -2
  324. data/lib/volcano/generated/lib/volcano-generated/models/platform_exchange_response.rb +2 -2
  325. data/lib/volcano/generated/lib/volcano-generated/models/preview_auth_page_request.rb +2 -2
  326. data/lib/volcano/generated/lib/volcano-generated/models/preview_auth_page_response.rb +2 -2
  327. data/lib/volcano/generated/lib/volcano-generated/models/project.rb +13 -13
  328. data/lib/volcano/generated/lib/volcano-generated/models/project_access_token.rb +426 -0
  329. data/lib/volcano/generated/lib/volcano-generated/models/project_access_token_scope.rb +40 -0
  330. data/lib/volcano/generated/lib/volcano-generated/models/project_access_token_usage.rb +299 -0
  331. data/lib/volcano/generated/lib/volcano-generated/models/project_access_token_usage_daily_entry.rb +191 -0
  332. data/lib/volcano/generated/lib/volcano-generated/models/project_config.rb +49 -6
  333. data/lib/volcano/generated/lib/volcano-generated/models/project_config_apply_result.rb +2 -2
  334. data/lib/volcano/generated/lib/volcano-generated/models/project_config_apply_result_entry.rb +2 -2
  335. data/lib/volcano/generated/lib/volcano-generated/models/project_config_apply_summary.rb +2 -2
  336. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth.rb +2 -2
  337. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_cors.rb +2 -2
  338. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email.rb +2 -2
  339. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_from.rb +2 -2
  340. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_password_provider.rb +2 -2
  341. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_smtp.rb +2 -2
  342. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_verification.rb +2 -2
  343. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_managed_pages.rb +2 -2
  344. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_page_appearance.rb +2 -2
  345. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_page_layouts.rb +2 -2
  346. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_password.rb +2 -2
  347. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_password_reset.rb +2 -2
  348. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_providers.rb +2 -2
  349. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_rate_limits.rb +2 -2
  350. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_redirects.rb +2 -2
  351. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_sessions.rb +2 -2
  352. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_signup.rb +2 -2
  353. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_tokens.rb +2 -2
  354. data/lib/volcano/generated/lib/volcano-generated/models/project_config_autofix.rb +206 -0
  355. data/lib/volcano/generated/lib/volcano-generated/models/project_config_bucket.rb +2 -2
  356. data/lib/volcano/generated/lib/volcano-generated/models/project_config_bucket_policy.rb +2 -2
  357. data/lib/volcano/generated/lib/volcano-generated/models/project_config_custom_domain.rb +14 -5
  358. data/lib/volcano/generated/lib/volcano-generated/models/project_config_database.rb +6 -6
  359. data/lib/volcano/generated/lib/volcano-generated/models/project_config_email_template.rb +2 -2
  360. data/lib/volcano/generated/lib/volcano-generated/models/project_config_email_templates.rb +2 -2
  361. data/lib/volcano/generated/lib/volcano-generated/models/project_config_frontend.rb +103 -6
  362. data/lib/volcano/generated/lib/volcano-generated/models/project_config_frontend_custom_domain_tls_config.rb +105 -0
  363. data/lib/volcano/generated/lib/volcano-generated/models/project_config_frontend_function_route.rb +240 -0
  364. data/lib/volcano/generated/lib/volcano-generated/models/project_config_function.rb +13 -4
  365. data/lib/volcano/generated/lib/volcano-generated/models/project_config_hosted_page.rb +2 -2
  366. data/lib/volcano/generated/lib/volcano-generated/models/project_config_hosted_pages.rb +2 -2
  367. data/lib/volcano/generated/lib/volcano-generated/models/project_config_missing_resource.rb +4 -4
  368. data/lib/volcano/generated/lib/volcano-generated/models/project_config_o_auth_provider.rb +2 -2
  369. data/lib/volcano/generated/lib/volcano-generated/models/project_config_project.rb +2 -2
  370. data/lib/volcano/generated/lib/volcano-generated/models/project_config_realtime.rb +2 -2
  371. data/lib/volcano/generated/lib/volcano-generated/models/project_config_sandbox.rb +289 -0
  372. data/lib/volcano/generated/lib/volcano-generated/models/project_config_scheduler.rb +2 -2
  373. data/lib/volcano/generated/lib/volcano-generated/models/project_config_skipped_resource.rb +4 -4
  374. data/lib/volcano/generated/lib/volcano-generated/models/project_config_validation_error.rb +2 -2
  375. data/lib/volcano/generated/lib/volcano-generated/models/project_config_validation_error_response.rb +2 -2
  376. data/lib/volcano/generated/lib/volcano-generated/models/project_config_variable.rb +3 -2
  377. data/lib/volcano/generated/lib/volcano-generated/models/project_deployment.rb +3 -12
  378. data/lib/volcano/generated/lib/volcano-generated/models/project_deployment_resource.rb +2 -2
  379. data/lib/volcano/generated/lib/volcano-generated/models/project_deployment_summary.rb +3 -3
  380. data/lib/volcano/generated/lib/volcano-generated/models/project_frontend_custom_domain.rb +50 -5
  381. data/lib/volcano/generated/lib/volcano-generated/models/project_frontend_custom_domain_all_of_frontend.rb +2 -2
  382. data/lib/volcano/generated/lib/volcano-generated/models/project_git_connection.rb +2 -2
  383. data/lib/volcano/generated/lib/volcano-generated/models/project_git_connection_summary.rb +2 -2
  384. data/lib/volcano/generated/lib/volcano-generated/models/project_git_deploy_settings.rb +2 -2
  385. data/lib/volcano/generated/lib/volcano-generated/models/project_health_category.rb +2 -2
  386. data/lib/volcano/generated/lib/volcano-generated/models/project_health_check.rb +2 -2
  387. data/lib/volcano/generated/lib/volcano-generated/models/project_health_data_status.rb +2 -2
  388. data/lib/volcano/generated/lib/volcano-generated/models/project_health_evidence.rb +2 -2
  389. data/lib/volcano/generated/lib/volcano-generated/models/project_health_resource.rb +2 -2
  390. data/lib/volcano/generated/lib/volcano-generated/models/project_health_response.rb +2 -2
  391. data/lib/volcano/generated/lib/volcano-generated/models/project_health_scope.rb +2 -2
  392. data/lib/volcano/generated/lib/volcano-generated/models/project_health_status.rb +2 -2
  393. data/lib/volcano/generated/lib/volcano-generated/models/project_health_summary.rb +2 -2
  394. data/lib/volcano/generated/lib/volcano-generated/models/project_import_action.rb +2 -2
  395. data/lib/volcano/generated/lib/volcano-generated/models/project_import_action_code.rb +2 -2
  396. data/lib/volcano/generated/lib/volcano-generated/models/project_import_destination.rb +2 -2
  397. data/lib/volcano/generated/lib/volcano-generated/models/project_import_destination_mode.rb +2 -2
  398. data/lib/volcano/generated/lib/volcano-generated/models/project_import_disposition.rb +2 -2
  399. data/lib/volcano/generated/lib/volcano-generated/models/project_import_finding.rb +2 -2
  400. data/lib/volcano/generated/lib/volcano-generated/models/project_import_impact.rb +2 -2
  401. data/lib/volcano/generated/lib/volcano-generated/models/project_import_preflight_request.rb +2 -2
  402. data/lib/volcano/generated/lib/volcano-generated/models/project_import_readiness.rb +2 -2
  403. data/lib/volcano/generated/lib/volcano-generated/models/project_import_report.rb +2 -2
  404. data/lib/volcano/generated/lib/volcano-generated/models/project_import_resource.rb +2 -2
  405. data/lib/volcano/generated/lib/volcano-generated/models/project_import_resource_kind.rb +2 -2
  406. data/lib/volcano/generated/lib/volcano-generated/models/project_import_run.rb +2 -2
  407. data/lib/volcano/generated/lib/volcano-generated/models/project_import_run_status.rb +2 -2
  408. data/lib/volcano/generated/lib/volcano-generated/models/project_import_start_request.rb +2 -2
  409. data/lib/volcano/generated/lib/volcano-generated/models/project_import_summary.rb +2 -2
  410. data/lib/volcano/generated/lib/volcano-generated/models/project_import_target.rb +2 -2
  411. data/lib/volcano/generated/lib/volcano-generated/models/project_lock_lease.rb +2 -2
  412. data/lib/volcano/generated/lib/volcano-generated/models/project_lock_lease_request.rb +2 -2
  413. data/lib/volcano/generated/lib/volcano-generated/models/project_lock_state.rb +2 -2
  414. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_data_status.rb +2 -2
  415. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_dimensions.rb +2 -2
  416. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_group_by.rb +2 -2
  417. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_metric.rb +2 -2
  418. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query.rb +2 -2
  419. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query_request.rb +2 -2
  420. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query_response.rb +2 -2
  421. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query_time_range.rb +2 -2
  422. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_result.rb +2 -2
  423. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_unit.rb +2 -2
  424. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_value.rb +2 -2
  425. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_window.rb +2 -2
  426. data/lib/volcano/generated/lib/volcano-generated/models/project_source_export.rb +2 -2
  427. data/lib/volcano/generated/lib/volcano-generated/models/project_source_export_omission.rb +2 -2
  428. data/lib/volcano/generated/lib/volcano-generated/models/project_source_export_skip.rb +2 -2
  429. data/lib/volcano/generated/lib/volcano-generated/models/project_source_export_state.rb +2 -2
  430. data/lib/volcano/generated/lib/volcano-generated/models/project_template_installation.rb +217 -0
  431. data/lib/volcano/generated/lib/volcano-generated/models/project_usage_response.rb +2 -2
  432. data/lib/volcano/generated/lib/volcano-generated/models/publish_durable_message_request.rb +205 -0
  433. data/lib/volcano/generated/lib/volcano-generated/models/publish_sandbox_preset_request.rb +2 -2
  434. data/lib/volcano/generated/lib/volcano-generated/models/realtime_config.rb +2 -2
  435. data/lib/volcano/generated/lib/volcano-generated/models/realtime_plan_limits.rb +2 -2
  436. data/lib/volcano/generated/lib/volcano-generated/models/realtime_stats.rb +2 -2
  437. data/lib/volcano/generated/lib/volcano-generated/models/refresh_o_auth_provider_token200_response.rb +2 -2
  438. data/lib/volcano/generated/lib/volcano-generated/models/register_durable_message_wait_request.rb +284 -0
  439. data/lib/volcano/generated/lib/volcano-generated/models/rename_variable_environment_request.rb +176 -0
  440. data/lib/volcano/generated/lib/volcano-generated/models/replace_frontend_shared_variables_request.rb +237 -0
  441. data/lib/volcano/generated/lib/volcano-generated/models/replace_shared_variables_request.rb +2 -2
  442. data/lib/volcano/generated/lib/volcano-generated/models/request_durable_approval_request.rb +355 -0
  443. data/lib/volcano/generated/lib/volcano-generated/models/reset_database_password200_response.rb +2 -2
  444. data/lib/volcano/generated/lib/volcano-generated/models/resolve_function_response.rb +13 -3
  445. data/lib/volcano/generated/lib/volcano-generated/models/resource_reference.rb +2 -2
  446. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_access.rb +2 -2
  447. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_access_request.rb +2 -2
  448. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_build_log_page.rb +176 -0
  449. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_build_log_page_data_inner.rb +190 -0
  450. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_capacity.rb +2 -2
  451. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_capacity_list.rb +2 -2
  452. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_command_request.rb +13 -14
  453. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_command_result.rb +2 -2
  454. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_deployment.rb +2 -2
  455. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_deployment_page.rb +2 -2
  456. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_execution_request.rb +53 -15
  457. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_execution_result.rb +2 -2
  458. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_file_read_request.rb +2 -2
  459. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_file_result.rb +2 -2
  460. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_file_write_request.rb +2 -2
  461. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_pagination.rb +2 -2
  462. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_preset.rb +2 -2
  463. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_preset_list.rb +2 -2
  464. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_session.rb +6 -32
  465. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_session_page.rb +2 -2
  466. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_subject_grant_request.rb +2 -2
  467. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_template.rb +2 -2
  468. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_template_page.rb +2 -2
  469. data/lib/volcano/generated/lib/volcano-generated/models/schedule_request.rb +2 -2
  470. data/lib/volcano/generated/lib/volcano-generated/models/send_durable_message_request.rb +205 -0
  471. data/lib/volcano/generated/lib/volcano-generated/models/service_key.rb +2 -2
  472. data/lib/volcano/generated/lib/volcano-generated/models/set_project_git_production_branch_request.rb +2 -2
  473. data/lib/volcano/generated/lib/volcano-generated/models/storage_bucket.rb +2 -2
  474. data/lib/volcano/generated/lib/volcano-generated/models/storage_copy_request.rb +2 -2
  475. data/lib/volcano/generated/lib/volcano-generated/models/storage_list_response.rb +2 -2
  476. data/lib/volcano/generated/lib/volcano-generated/models/storage_move_request.rb +2 -2
  477. data/lib/volcano/generated/lib/volcano-generated/models/storage_object.rb +2 -2
  478. data/lib/volcano/generated/lib/volcano-generated/models/storage_object_with_bucket.rb +2 -2
  479. data/lib/volcano/generated/lib/volcano-generated/models/storage_policy.rb +2 -2
  480. data/lib/volcano/generated/lib/volcano-generated/models/storage_stats.rb +2 -2
  481. data/lib/volcano/generated/lib/volcano-generated/models/storage_visibility_request.rb +2 -2
  482. data/lib/volcano/generated/lib/volcano-generated/models/test_email_request.rb +2 -2
  483. data/lib/volcano/generated/lib/volcano-generated/models/test_email_response.rb +2 -2
  484. data/lib/volcano/generated/lib/volcano-generated/models/unban_user_response.rb +2 -2
  485. data/lib/volcano/generated/lib/volcano-generated/models/update_auth_config_request.rb +81 -3
  486. data/lib/volcano/generated/lib/volcano-generated/models/update_auth_hosted_page_request.rb +2 -2
  487. data/lib/volcano/generated/lib/volcano-generated/models/update_auth_page_layout_request.rb +2 -2
  488. data/lib/volcano/generated/lib/volcano-generated/models/update_auth_page_theme_request.rb +2 -2
  489. data/lib/volcano/generated/lib/volcano-generated/models/update_autofix_settings_request.rb +273 -0
  490. data/lib/volcano/generated/lib/volcano-generated/models/update_database_branch_request.rb +2 -2
  491. data/lib/volcano/generated/lib/volcano-generated/models/update_database_type_request.rb +2 -2
  492. data/lib/volcano/generated/lib/volcano-generated/models/update_email_template_request.rb +2 -2
  493. data/lib/volcano/generated/lib/volcano-generated/models/update_function_request.rb +13 -4
  494. data/lib/volcano/generated/lib/volcano-generated/models/update_function_scheduler_request.rb +2 -2
  495. data/lib/volcano/generated/lib/volcano-generated/models/update_issue_request.rb +186 -0
  496. data/lib/volcano/generated/lib/volcano-generated/models/update_o_auth_config_request.rb +2 -2
  497. data/lib/volcano/generated/lib/volcano-generated/models/update_project_git_deploy_settings_request.rb +2 -2
  498. data/lib/volcano/generated/lib/volcano-generated/models/update_project_request.rb +2 -2
  499. data/lib/volcano/generated/lib/volcano-generated/models/update_realtime_config_request.rb +2 -2
  500. data/lib/volcano/generated/lib/volcano-generated/models/update_sandbox_template_request.rb +2 -2
  501. data/lib/volcano/generated/lib/volcano-generated/models/update_storage_bucket_request.rb +2 -2
  502. data/lib/volcano/generated/lib/volcano-generated/models/update_variable_request.rb +2 -2
  503. data/lib/volcano/generated/lib/volcano-generated/models/upload_session_part.rb +2 -2
  504. data/lib/volcano/generated/lib/volcano-generated/models/upload_session_status_response.rb +2 -2
  505. data/lib/volcano/generated/lib/volcano-generated/models/upload_storage_object201_response.rb +3 -3
  506. data/lib/volcano/generated/lib/volcano-generated/models/usage_data_point.rb +2 -2
  507. data/lib/volcano/generated/lib/volcano-generated/models/variable.rb +13 -3
  508. data/lib/volcano/generated/lib/volcano-generated/models/variable_environment.rb +325 -0
  509. data/lib/volcano/generated/lib/volcano-generated/models/variable_environment_list.rb +175 -0
  510. data/lib/volcano/generated/lib/volcano-generated/models/verified_domain.rb +192 -0
  511. data/lib/volcano/generated/lib/volcano-generated/models/verified_domains_response.rb +166 -0
  512. data/lib/volcano/generated/lib/volcano-generated/models/verify_domain_request.rb +183 -0
  513. data/lib/volcano/generated/lib/volcano-generated/version.rb +2 -2
  514. data/lib/volcano/generated/lib/volcano-generated.rb +90 -2
  515. data/lib/volcano/generated_transport.rb +1 -0
  516. data/lib/volcano/generated_transport_durable.rb +59 -0
  517. data/lib/volcano/generated_transport_durable_messages.rb +57 -0
  518. data/lib/volcano/generated_transport_functions.rb +1 -1
  519. data/lib/volcano/generated_transport_sandbox.rb +33 -1
  520. data/lib/volcano/lock_response.rb +2 -2
  521. data/lib/volcano/realtime/channel_callbacks.rb +5 -1
  522. data/lib/volcano/realtime/channel_lifecycle.rb +4 -1
  523. data/lib/volcano/realtime/durable_channel.rb +47 -0
  524. data/lib/volcano/realtime/lifecycle.rb +37 -1
  525. data/lib/volcano/realtime/protocol.rb +7 -3
  526. data/lib/volcano/realtime/protocol_dispatch.rb +1 -1
  527. data/lib/volcano/realtime/protocol_io.rb +7 -4
  528. data/lib/volcano/realtime/protocol_lifecycle.rb +7 -0
  529. data/lib/volcano/realtime/protocol_recovery.rb +23 -12
  530. data/lib/volcano/realtime.rb +42 -8
  531. data/lib/volcano/redaction.rb +1 -1
  532. data/lib/volcano/sandbox_deployment_response.rb +39 -0
  533. data/lib/volcano/sandbox_deployments.rb +79 -0
  534. data/lib/volcano/sandbox_models.rb +8 -0
  535. data/lib/volcano/sandbox_request.rb +6 -0
  536. data/lib/volcano/sandboxes.rb +2 -0
  537. data/lib/volcano/storage_mutations.rb +2 -2
  538. data/lib/volcano/storage_object_response.rb +2 -2
  539. data/lib/volcano/transport.rb +1 -1
  540. data/lib/volcano/version.rb +1 -1
  541. data/lib/volcano.rb +14 -0
  542. data/sig/core_facades.rbs +29 -0
  543. data/sig/durable_approval_records.rbs +218 -0
  544. data/sig/durable_message_records.rbs +68 -0
  545. data/sig/durable_records.rbs +17 -9
  546. data/sig/errors.rbs +3 -0
  547. data/sig/sandboxes.rbs +42 -0
  548. metadata +115 -9
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Volcano Hosting API
2
+ #Volcano API
3
3
 
4
- #Public API for Volcano Hosting clients, SDKs, and CLI tooling (Port 8000). This specification intentionally excludes first-party/internal APIs. See api/openapi-internal.yaml for non-public internal and Builder operations.
4
+ #Public API for Volcano clients, SDKs, and CLI tooling (Port 8000). This specification intentionally excludes first-party/internal APIs. See api/openapi-internal.yaml for non-public internal and Builder operations.
5
5
 
6
6
  The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@volcano.dev
@@ -19,6 +19,82 @@ module Volcano::Generated
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Approve a durable approval
23
+ # Approves a pending approval. The workflow resumes with the decision. Only a person can decide: use the dashboard or a platform token from `volcano login`. Project access tokens are refused with `403`. Approving an approval that is already approved returns it unchanged. If the workflow cannot be reached right away, the decision still stands and Volcano keeps delivering it.
24
+ # @param id [String] Project ID
25
+ # @param approval_id [String] Durable approval ID
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [DurableApprovalDecisionRequest] :durable_approval_decision_request
28
+ # @return [DurableApproval]
29
+ def approve_durable_approval(id, approval_id, opts = {})
30
+ data, _status_code, _headers = approve_durable_approval_with_http_info(id, approval_id, opts)
31
+ data
32
+ end
33
+
34
+ # Approve a durable approval
35
+ # Approves a pending approval. The workflow resumes with the decision. Only a person can decide: use the dashboard or a platform token from `volcano login`. Project access tokens are refused with `403`. Approving an approval that is already approved returns it unchanged. If the workflow cannot be reached right away, the decision still stands and Volcano keeps delivering it.
36
+ # @param id [String] Project ID
37
+ # @param approval_id [String] Durable approval ID
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [DurableApprovalDecisionRequest] :durable_approval_decision_request
40
+ # @return [Array<(DurableApproval, Integer, Hash)>] DurableApproval data, response status code and response headers
41
+ def approve_durable_approval_with_http_info(id, approval_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.approve_durable_approval ...'
44
+ end
45
+ # verify the required parameter 'id' is set
46
+ if @api_client.config.client_side_validation && id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.approve_durable_approval"
48
+ end
49
+ # verify the required parameter 'approval_id' is set
50
+ if @api_client.config.client_side_validation && approval_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'approval_id' when calling DurableFunctionsApi.approve_durable_approval"
52
+ end
53
+ # resource path
54
+ local_var_path = '/projects/{id}/durable-approvals/{approvalId}/approve'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'approvalId' + '}', CGI.escape(approval_id.to_s))
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+
59
+ # header parameters
60
+ header_params = opts[:header_params] || {}
61
+ # HTTP header 'Accept' (if needed)
62
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
63
+ # HTTP header 'Content-Type'
64
+ content_type = @api_client.select_header_content_type(['application/json'])
65
+ if !content_type.nil?
66
+ header_params['Content-Type'] = content_type
67
+ end
68
+
69
+ # form parameters
70
+ form_params = opts[:form_params] || {}
71
+
72
+ # http body (model)
73
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'durable_approval_decision_request'])
74
+
75
+ # return_type
76
+ return_type = opts[:debug_return_type] || 'DurableApproval'
77
+
78
+ # auth_names
79
+ auth_names = opts[:debug_auth_names] || ['UserToken']
80
+
81
+ new_options = opts.merge(
82
+ :operation => :"DurableFunctionsApi.approve_durable_approval",
83
+ :header_params => header_params,
84
+ :query_params => query_params,
85
+ :form_params => form_params,
86
+ :body => post_body,
87
+ :auth_names => auth_names,
88
+ :return_type => return_type
89
+ )
90
+
91
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#approve_durable_approval\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
+ end
95
+ return data, status_code, headers
96
+ end
97
+
22
98
  # Create or update a durable function
23
99
  # Upload a durable function source bundle. Creates the function on the first call for a name and redeploys it on every call after that, the same create-or-update contract `POST /projects/{id}/functions` has. Volcano builds and deploys asynchronously. A deployment that starts immediately returns `status: provisioning`, then transitions to `active` or `failed`; a deployment that has to wait for a running one is exposed through `pending_deployment_id`. Existing executions keep running against the runtime they started on. The `durable` configuration is derived from the project's plan rather than supplied here, and is fixed once the function exists. A name already held by a standard function is rejected with 409: a function cannot change kind.
24
100
  # @param id [String] Project ID
@@ -27,7 +103,8 @@ module Volcano::Generated
27
103
  # @param runtime [String] Runtime environment. Required. Durable execution needs the durable authoring API, which ships for these runtimes only; any other runtime is rejected with 400 and the response names the ones that work. Note that a durable Python function needs a newer runtime than a standard one defaults to. &#x60;GET /functions/runtimes&#x60; reports &#x60;durable_capable&#x60; per runtime.
28
104
  # @param [Hash] opts the optional parameters
29
105
  # @option opts [String] :handler The name of the function to invoke. Defaults to \\\&quot;handler\\\&quot; if not specified. (default to 'handler')
30
- # @option opts [Boolean] :is_public Whether anon keys with &#x60;functions.invoke&#x60; may start an execution. Redeploying is the only way to change it, since the collection has no update endpoint; omit it to keep the current visibility, and a new function starts private. The standard collection&#39;s synchronous invocation fields — &#x60;invocation_mode&#x60;, &#x60;http_auth_mode&#x60;, &#x60;openapi_spec&#x60; — configure a request path no durable route serves, and are rejected with 400 rather than ignored.
106
+ # @option opts [FunctionVisibility] :visibility Who may start an execution. Redeploying is the only way to change it, since the collection has no update endpoint; omit it to keep the current visibility, and a new function starts &#x60;private&#x60;. The standard collection&#39;s synchronous invocation fields — &#x60;invocation_mode&#x60;, &#x60;http_auth_mode&#x60;, &#x60;openapi_spec&#x60; — configure a request path no durable route serves, and are rejected with 400 rather than ignored.
107
+ # @option opts [Boolean] :is_public Deprecated alias for &#x60;visibility&#x60;: &#x60;true&#x60; means &#x60;public&#x60; and &#x60;false&#x60; means &#x60;authenticated&#x60;. Sending both with different meanings returns 400.
31
108
  # @option opts [String] :variable_scope Which project variables this function receives. &#x60;all&#x60; (the default) gives it every project variable; &#x60;scoped&#x60; gives it only the variables it selects. Omitting this leaves an existing function&#39;s scope unchanged.
32
109
  # @option opts [String] :variables JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when &#x60;variable_scope&#x60; is &#x60;scoped&#x60;. Omitting this leaves an existing function&#39;s declared names unchanged.
33
110
  # @return [DurableFunction]
@@ -44,7 +121,8 @@ module Volcano::Generated
44
121
  # @param runtime [String] Runtime environment. Required. Durable execution needs the durable authoring API, which ships for these runtimes only; any other runtime is rejected with 400 and the response names the ones that work. Note that a durable Python function needs a newer runtime than a standard one defaults to. &#x60;GET /functions/runtimes&#x60; reports &#x60;durable_capable&#x60; per runtime.
45
122
  # @param [Hash] opts the optional parameters
46
123
  # @option opts [String] :handler The name of the function to invoke. Defaults to \\\&quot;handler\\\&quot; if not specified. (default to 'handler')
47
- # @option opts [Boolean] :is_public Whether anon keys with &#x60;functions.invoke&#x60; may start an execution. Redeploying is the only way to change it, since the collection has no update endpoint; omit it to keep the current visibility, and a new function starts private. The standard collection&#39;s synchronous invocation fields — &#x60;invocation_mode&#x60;, &#x60;http_auth_mode&#x60;, &#x60;openapi_spec&#x60; — configure a request path no durable route serves, and are rejected with 400 rather than ignored.
124
+ # @option opts [FunctionVisibility] :visibility Who may start an execution. Redeploying is the only way to change it, since the collection has no update endpoint; omit it to keep the current visibility, and a new function starts &#x60;private&#x60;. The standard collection&#39;s synchronous invocation fields — &#x60;invocation_mode&#x60;, &#x60;http_auth_mode&#x60;, &#x60;openapi_spec&#x60; — configure a request path no durable route serves, and are rejected with 400 rather than ignored.
125
+ # @option opts [Boolean] :is_public Deprecated alias for &#x60;visibility&#x60;: &#x60;true&#x60; means &#x60;public&#x60; and &#x60;false&#x60; means &#x60;authenticated&#x60;. Sending both with different meanings returns 400.
48
126
  # @option opts [String] :variable_scope Which project variables this function receives. &#x60;all&#x60; (the default) gives it every project variable; &#x60;scoped&#x60; gives it only the variables it selects. Omitting this leaves an existing function&#39;s scope unchanged.
49
127
  # @option opts [String] :variables JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when &#x60;variable_scope&#x60; is &#x60;scoped&#x60;. Omitting this leaves an existing function&#39;s declared names unchanged.
50
128
  # @return [Array<(DurableFunction, Integer, Hash)>] DurableFunction data, response status code and response headers
@@ -108,6 +186,7 @@ module Volcano::Generated
108
186
  form_params['code'] = code
109
187
  form_params['runtime'] = runtime
110
188
  form_params['handler'] = opts[:'handler'] if !opts[:'handler'].nil?
189
+ form_params['visibility'] = opts[:'visibility'] if !opts[:'visibility'].nil?
111
190
  form_params['is_public'] = opts[:'is_public'] if !opts[:'is_public'].nil?
112
191
  form_params['variable_scope'] = opts[:'variable_scope'] if !opts[:'variable_scope'].nil?
113
192
  form_params['variables'] = opts[:'variables'] if !opts[:'variables'].nil?
@@ -219,7 +298,7 @@ module Volcano::Generated
219
298
  end
220
299
 
221
300
  # Delete a durable function
222
- # Accepted for asynchronous teardown; the work continues after the response. The function's executions go with it: history stops being readable whatever `retention_days` had left, and the executions still running stop counting against the project's concurrency cap. Stop an execution first if you need it to end before the function does.
301
+ # Accepted for asynchronous teardown; the work continues after the response. The function's executions go with it: executions still in flight are stopped, and history stops being readable whatever `retention_days` had left. Stopping is asynchronous at the platform, and it does not interrupt a step already running -- that step runs to its next checkpoint. So a delete ends an execution rather than halting it mid-step; stop the execution yourself first if you need to observe it ending.
223
302
  # @param id [String] Project ID
224
303
  # @param function_id [String] Durable function ID, or its name within the project
225
304
  # @param [Hash] opts the optional parameters
@@ -230,7 +309,7 @@ module Volcano::Generated
230
309
  end
231
310
 
232
311
  # Delete a durable function
233
- # Accepted for asynchronous teardown; the work continues after the response. The function&#39;s executions go with it: history stops being readable whatever &#x60;retention_days&#x60; had left, and the executions still running stop counting against the project&#39;s concurrency cap. Stop an execution first if you need it to end before the function does.
312
+ # Accepted for asynchronous teardown; the work continues after the response. The function&#39;s executions go with it: executions still in flight are stopped, and history stops being readable whatever &#x60;retention_days&#x60; had left. Stopping is asynchronous at the platform, and it does not interrupt a step already running -- that step runs to its next checkpoint. So a delete ends an execution rather than halting it mid-step; stop the execution yourself first if you need to observe it ending.
234
313
  # @param id [String] Project ID
235
314
  # @param function_id [String] Durable function ID, or its name within the project
236
315
  # @param [Hash] opts the optional parameters
@@ -360,6 +439,231 @@ module Volcano::Generated
360
439
  return data, status_code, headers
361
440
  end
362
441
 
442
+ # Deny a durable approval
443
+ # Denies a pending approval. The workflow resumes with the decision; a denial is a value the workflow branches on, not an error. Only a person can decide: use the dashboard or a platform token from `volcano login`. Project access tokens are refused with `403`. Denying an approval that is already denied returns it unchanged. If the workflow cannot be reached right away, the decision still stands and Volcano keeps delivering it.
444
+ # @param id [String] Project ID
445
+ # @param approval_id [String] Durable approval ID
446
+ # @param [Hash] opts the optional parameters
447
+ # @option opts [DurableApprovalDecisionRequest] :durable_approval_decision_request
448
+ # @return [DurableApproval]
449
+ def deny_durable_approval(id, approval_id, opts = {})
450
+ data, _status_code, _headers = deny_durable_approval_with_http_info(id, approval_id, opts)
451
+ data
452
+ end
453
+
454
+ # Deny a durable approval
455
+ # Denies a pending approval. The workflow resumes with the decision; a denial is a value the workflow branches on, not an error. Only a person can decide: use the dashboard or a platform token from &#x60;volcano login&#x60;. Project access tokens are refused with &#x60;403&#x60;. Denying an approval that is already denied returns it unchanged. If the workflow cannot be reached right away, the decision still stands and Volcano keeps delivering it.
456
+ # @param id [String] Project ID
457
+ # @param approval_id [String] Durable approval ID
458
+ # @param [Hash] opts the optional parameters
459
+ # @option opts [DurableApprovalDecisionRequest] :durable_approval_decision_request
460
+ # @return [Array<(DurableApproval, Integer, Hash)>] DurableApproval data, response status code and response headers
461
+ def deny_durable_approval_with_http_info(id, approval_id, opts = {})
462
+ if @api_client.config.debugging
463
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.deny_durable_approval ...'
464
+ end
465
+ # verify the required parameter 'id' is set
466
+ if @api_client.config.client_side_validation && id.nil?
467
+ fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.deny_durable_approval"
468
+ end
469
+ # verify the required parameter 'approval_id' is set
470
+ if @api_client.config.client_side_validation && approval_id.nil?
471
+ fail ArgumentError, "Missing the required parameter 'approval_id' when calling DurableFunctionsApi.deny_durable_approval"
472
+ end
473
+ # resource path
474
+ local_var_path = '/projects/{id}/durable-approvals/{approvalId}/deny'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'approvalId' + '}', CGI.escape(approval_id.to_s))
475
+
476
+ # query parameters
477
+ query_params = opts[:query_params] || {}
478
+
479
+ # header parameters
480
+ header_params = opts[:header_params] || {}
481
+ # HTTP header 'Accept' (if needed)
482
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
483
+ # HTTP header 'Content-Type'
484
+ content_type = @api_client.select_header_content_type(['application/json'])
485
+ if !content_type.nil?
486
+ header_params['Content-Type'] = content_type
487
+ end
488
+
489
+ # form parameters
490
+ form_params = opts[:form_params] || {}
491
+
492
+ # http body (model)
493
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'durable_approval_decision_request'])
494
+
495
+ # return_type
496
+ return_type = opts[:debug_return_type] || 'DurableApproval'
497
+
498
+ # auth_names
499
+ auth_names = opts[:debug_auth_names] || ['UserToken']
500
+
501
+ new_options = opts.merge(
502
+ :operation => :"DurableFunctionsApi.deny_durable_approval",
503
+ :header_params => header_params,
504
+ :query_params => query_params,
505
+ :form_params => form_params,
506
+ :body => post_body,
507
+ :auth_names => auth_names,
508
+ :return_type => return_type
509
+ )
510
+
511
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
512
+ if @api_client.config.debugging
513
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#deny_durable_approval\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
514
+ end
515
+ return data, status_code, headers
516
+ end
517
+
518
+ # Get a durable approval
519
+ # Returns one approval: what the workflow asked, the durable function and execution that asked it, its deadline, and the decision once one is made. Project access tokens can read approvals, including read-only ones.
520
+ # @param id [String] Project ID
521
+ # @param approval_id [String] Durable approval ID
522
+ # @param [Hash] opts the optional parameters
523
+ # @return [DurableApproval]
524
+ def get_durable_approval(id, approval_id, opts = {})
525
+ data, _status_code, _headers = get_durable_approval_with_http_info(id, approval_id, opts)
526
+ data
527
+ end
528
+
529
+ # Get a durable approval
530
+ # Returns one approval: what the workflow asked, the durable function and execution that asked it, its deadline, and the decision once one is made. Project access tokens can read approvals, including read-only ones.
531
+ # @param id [String] Project ID
532
+ # @param approval_id [String] Durable approval ID
533
+ # @param [Hash] opts the optional parameters
534
+ # @return [Array<(DurableApproval, Integer, Hash)>] DurableApproval data, response status code and response headers
535
+ def get_durable_approval_with_http_info(id, approval_id, opts = {})
536
+ if @api_client.config.debugging
537
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.get_durable_approval ...'
538
+ end
539
+ # verify the required parameter 'id' is set
540
+ if @api_client.config.client_side_validation && id.nil?
541
+ fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.get_durable_approval"
542
+ end
543
+ # verify the required parameter 'approval_id' is set
544
+ if @api_client.config.client_side_validation && approval_id.nil?
545
+ fail ArgumentError, "Missing the required parameter 'approval_id' when calling DurableFunctionsApi.get_durable_approval"
546
+ end
547
+ # resource path
548
+ local_var_path = '/projects/{id}/durable-approvals/{approvalId}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'approvalId' + '}', CGI.escape(approval_id.to_s))
549
+
550
+ # query parameters
551
+ query_params = opts[:query_params] || {}
552
+
553
+ # header parameters
554
+ header_params = opts[:header_params] || {}
555
+ # HTTP header 'Accept' (if needed)
556
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
557
+
558
+ # form parameters
559
+ form_params = opts[:form_params] || {}
560
+
561
+ # http body (model)
562
+ post_body = opts[:debug_body]
563
+
564
+ # return_type
565
+ return_type = opts[:debug_return_type] || 'DurableApproval'
566
+
567
+ # auth_names
568
+ auth_names = opts[:debug_auth_names] || ['UserToken', 'ProjectAccessToken']
569
+
570
+ new_options = opts.merge(
571
+ :operation => :"DurableFunctionsApi.get_durable_approval",
572
+ :header_params => header_params,
573
+ :query_params => query_params,
574
+ :form_params => form_params,
575
+ :body => post_body,
576
+ :auth_names => auth_names,
577
+ :return_type => return_type
578
+ )
579
+
580
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
581
+ if @api_client.config.debugging
582
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#get_durable_approval\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
583
+ end
584
+ return data, status_code, headers
585
+ end
586
+
587
+ # Get durable approval statistics
588
+ # Counts the project's approvals by outcome over a time window, overall, per workflow, and per day. The window defaults to the last 30 days and can cover up to a year. An approval is counted on the day it was requested. Project access tokens can read statistics, including read-only ones.
589
+ # @param id [String] Project ID
590
+ # @param [Hash] opts the optional parameters
591
+ # @option opts [String] :function Only approvals requested by this durable function, given by id or by name. A name also matches approvals from a deleted function of that name.
592
+ # @option opts [Time] :from Start of the window. Defaults to 30 days before &#x60;to&#x60;.
593
+ # @option opts [Time] :to End of the window. Defaults to now.
594
+ # @return [DurableApprovalStats]
595
+ def get_durable_approval_stats(id, opts = {})
596
+ data, _status_code, _headers = get_durable_approval_stats_with_http_info(id, opts)
597
+ data
598
+ end
599
+
600
+ # Get durable approval statistics
601
+ # Counts the project&#39;s approvals by outcome over a time window, overall, per workflow, and per day. The window defaults to the last 30 days and can cover up to a year. An approval is counted on the day it was requested. Project access tokens can read statistics, including read-only ones.
602
+ # @param id [String] Project ID
603
+ # @param [Hash] opts the optional parameters
604
+ # @option opts [String] :function Only approvals requested by this durable function, given by id or by name. A name also matches approvals from a deleted function of that name.
605
+ # @option opts [Time] :from Start of the window. Defaults to 30 days before &#x60;to&#x60;.
606
+ # @option opts [Time] :to End of the window. Defaults to now.
607
+ # @return [Array<(DurableApprovalStats, Integer, Hash)>] DurableApprovalStats data, response status code and response headers
608
+ def get_durable_approval_stats_with_http_info(id, opts = {})
609
+ if @api_client.config.debugging
610
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.get_durable_approval_stats ...'
611
+ end
612
+ # verify the required parameter 'id' is set
613
+ if @api_client.config.client_side_validation && id.nil?
614
+ fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.get_durable_approval_stats"
615
+ end
616
+ if @api_client.config.client_side_validation && !opts[:'function'].nil? && opts[:'function'].to_s.length > 255
617
+ fail ArgumentError, 'invalid value for "opts[:"function"]" when calling DurableFunctionsApi.get_durable_approval_stats, the character length must be smaller than or equal to 255.'
618
+ end
619
+
620
+ if @api_client.config.client_side_validation && !opts[:'function'].nil? && opts[:'function'].to_s.length < 1
621
+ fail ArgumentError, 'invalid value for "opts[:"function"]" when calling DurableFunctionsApi.get_durable_approval_stats, the character length must be greater than or equal to 1.'
622
+ end
623
+
624
+ # resource path
625
+ local_var_path = '/projects/{id}/durable-approvals/stats'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
626
+
627
+ # query parameters
628
+ query_params = opts[:query_params] || {}
629
+ query_params[:'function'] = opts[:'function'] if !opts[:'function'].nil?
630
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
631
+ query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
632
+
633
+ # header parameters
634
+ header_params = opts[:header_params] || {}
635
+ # HTTP header 'Accept' (if needed)
636
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
637
+
638
+ # form parameters
639
+ form_params = opts[:form_params] || {}
640
+
641
+ # http body (model)
642
+ post_body = opts[:debug_body]
643
+
644
+ # return_type
645
+ return_type = opts[:debug_return_type] || 'DurableApprovalStats'
646
+
647
+ # auth_names
648
+ auth_names = opts[:debug_auth_names] || ['UserToken', 'ProjectAccessToken']
649
+
650
+ new_options = opts.merge(
651
+ :operation => :"DurableFunctionsApi.get_durable_approval_stats",
652
+ :header_params => header_params,
653
+ :query_params => query_params,
654
+ :form_params => form_params,
655
+ :body => post_body,
656
+ :auth_names => auth_names,
657
+ :return_type => return_type
658
+ )
659
+
660
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
661
+ if @api_client.config.debugging
662
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#get_durable_approval_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
663
+ end
664
+ return data, status_code, headers
665
+ end
666
+
363
667
  # Get a durable execution
364
668
  # Returns the execution's current state, including its `result` once it has succeeded. Poll this to wait for an execution to finish.
365
669
  # @param id [String] Project ID
@@ -575,61 +879,75 @@ module Volcano::Generated
575
879
  return data, status_code, headers
576
880
  end
577
881
 
578
- # List a durable function's executions
579
- # Returns the platform's last observed status for each execution; listing does not poll each one. Fetch a single execution for its live state.
882
+ # List durable approvals
883
+ # Lists the approvals durable workflows in the project have requested, newest first. Pending approvals are the ones a workflow is waiting on; decided, expired, and cancelled ones are kept for a year. Project access tokens can list approvals, including read-only ones.
580
884
  # @param id [String] Project ID
581
- # @param function_id [String] Durable function ID, or its name within the project
582
885
  # @param [Hash] opts the optional parameters
583
886
  # @option opts [Integer] :page Page number (1-indexed) for offset pagination. Declares no schema default so the request validator does not inject one: handlers that omit &#x60;page&#x60; see it unset (nil) and default to 1 in code, while cursor-first endpoints (e.g. the project deployments feed) can detect its absence to stay in keyset/search mode. Supplying &#x60;page&#x60; selects offset pagination.
584
887
  # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
585
- # @option opts [DurableExecutionStatus] :status Return only executions in this status.
586
- # @return [PaginatedDurableExecutions]
587
- def list_durable_executions(id, function_id, opts = {})
588
- data, _status_code, _headers = list_durable_executions_with_http_info(id, function_id, opts)
888
+ # @option opts [DurableApprovalStatus] :status Return only approvals in this status.
889
+ # @option opts [String] :function Only approvals requested by this durable function, given by id or by name. A name also matches approvals from a deleted function of that name.
890
+ # @option opts [String] :execution_id Return only approvals requested by this durable execution.
891
+ # @option opts [Time] :from Return only approvals requested at or after this time.
892
+ # @option opts [Time] :to Return only approvals requested before this time.
893
+ # @return [PaginatedDurableApprovals]
894
+ def list_durable_approvals(id, opts = {})
895
+ data, _status_code, _headers = list_durable_approvals_with_http_info(id, opts)
589
896
  data
590
897
  end
591
898
 
592
- # List a durable function&#39;s executions
593
- # Returns the platform&#39;s last observed status for each execution; listing does not poll each one. Fetch a single execution for its live state.
899
+ # List durable approvals
900
+ # Lists the approvals durable workflows in the project have requested, newest first. Pending approvals are the ones a workflow is waiting on; decided, expired, and cancelled ones are kept for a year. Project access tokens can list approvals, including read-only ones.
594
901
  # @param id [String] Project ID
595
- # @param function_id [String] Durable function ID, or its name within the project
596
902
  # @param [Hash] opts the optional parameters
597
903
  # @option opts [Integer] :page Page number (1-indexed) for offset pagination. Declares no schema default so the request validator does not inject one: handlers that omit &#x60;page&#x60; see it unset (nil) and default to 1 in code, while cursor-first endpoints (e.g. the project deployments feed) can detect its absence to stay in keyset/search mode. Supplying &#x60;page&#x60; selects offset pagination.
598
904
  # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
599
- # @option opts [DurableExecutionStatus] :status Return only executions in this status.
600
- # @return [Array<(PaginatedDurableExecutions, Integer, Hash)>] PaginatedDurableExecutions data, response status code and response headers
601
- def list_durable_executions_with_http_info(id, function_id, opts = {})
905
+ # @option opts [DurableApprovalStatus] :status Return only approvals in this status.
906
+ # @option opts [String] :function Only approvals requested by this durable function, given by id or by name. A name also matches approvals from a deleted function of that name.
907
+ # @option opts [String] :execution_id Return only approvals requested by this durable execution.
908
+ # @option opts [Time] :from Return only approvals requested at or after this time.
909
+ # @option opts [Time] :to Return only approvals requested before this time.
910
+ # @return [Array<(PaginatedDurableApprovals, Integer, Hash)>] PaginatedDurableApprovals data, response status code and response headers
911
+ def list_durable_approvals_with_http_info(id, opts = {})
602
912
  if @api_client.config.debugging
603
- @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.list_durable_executions ...'
913
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.list_durable_approvals ...'
604
914
  end
605
915
  # verify the required parameter 'id' is set
606
916
  if @api_client.config.client_side_validation && id.nil?
607
- fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.list_durable_executions"
608
- end
609
- # verify the required parameter 'function_id' is set
610
- if @api_client.config.client_side_validation && function_id.nil?
611
- fail ArgumentError, "Missing the required parameter 'function_id' when calling DurableFunctionsApi.list_durable_executions"
917
+ fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.list_durable_approvals"
612
918
  end
613
919
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
614
- fail ArgumentError, 'invalid value for "opts[:"page"]" when calling DurableFunctionsApi.list_durable_executions, must be greater than or equal to 1.'
920
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling DurableFunctionsApi.list_durable_approvals, must be greater than or equal to 1.'
615
921
  end
616
922
 
617
923
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
618
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DurableFunctionsApi.list_durable_executions, must be smaller than or equal to 100.'
924
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DurableFunctionsApi.list_durable_approvals, must be smaller than or equal to 100.'
619
925
  end
620
926
 
621
927
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
622
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DurableFunctionsApi.list_durable_executions, must be greater than or equal to 1.'
928
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DurableFunctionsApi.list_durable_approvals, must be greater than or equal to 1.'
929
+ end
930
+
931
+ if @api_client.config.client_side_validation && !opts[:'function'].nil? && opts[:'function'].to_s.length > 255
932
+ fail ArgumentError, 'invalid value for "opts[:"function"]" when calling DurableFunctionsApi.list_durable_approvals, the character length must be smaller than or equal to 255.'
933
+ end
934
+
935
+ if @api_client.config.client_side_validation && !opts[:'function'].nil? && opts[:'function'].to_s.length < 1
936
+ fail ArgumentError, 'invalid value for "opts[:"function"]" when calling DurableFunctionsApi.list_durable_approvals, the character length must be greater than or equal to 1.'
623
937
  end
624
938
 
625
939
  # resource path
626
- local_var_path = '/projects/{id}/durable-functions/{functionId}/executions'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'functionId' + '}', CGI.escape(function_id.to_s))
940
+ local_var_path = '/projects/{id}/durable-approvals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
627
941
 
628
942
  # query parameters
629
943
  query_params = opts[:query_params] || {}
630
944
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
631
945
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
632
946
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
947
+ query_params[:'function'] = opts[:'function'] if !opts[:'function'].nil?
948
+ query_params[:'execution_id'] = opts[:'execution_id'] if !opts[:'execution_id'].nil?
949
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
950
+ query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
633
951
 
634
952
  # header parameters
635
953
  header_params = opts[:header_params] || {}
@@ -643,13 +961,13 @@ module Volcano::Generated
643
961
  post_body = opts[:debug_body]
644
962
 
645
963
  # return_type
646
- return_type = opts[:debug_return_type] || 'PaginatedDurableExecutions'
964
+ return_type = opts[:debug_return_type] || 'PaginatedDurableApprovals'
647
965
 
648
966
  # auth_names
649
- auth_names = opts[:debug_auth_names] || ['UserToken']
967
+ auth_names = opts[:debug_auth_names] || ['UserToken', 'ProjectAccessToken']
650
968
 
651
969
  new_options = opts.merge(
652
- :operation => :"DurableFunctionsApi.list_durable_executions",
970
+ :operation => :"DurableFunctionsApi.list_durable_approvals",
653
971
  :header_params => header_params,
654
972
  :query_params => query_params,
655
973
  :form_params => form_params,
@@ -660,44 +978,209 @@ module Volcano::Generated
660
978
 
661
979
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
662
980
  if @api_client.config.debugging
663
- @api_client.config.logger.debug "API called: DurableFunctionsApi#list_durable_executions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
981
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#list_durable_approvals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
664
982
  end
665
983
  return data, status_code, headers
666
984
  end
667
985
 
668
- # List durable function deployments
986
+ # List a durable execution's operations
987
+ # Returns the execution's trace: every operation it began — each step, wait, poll, child context, map item and parallel branch — with when it started and ended, how it ended, and each attempt of a retried step. `invocations` are the windows the function's code was actually running; the gaps between them are time the execution spent suspended, which is not charged. A finished execution's trace is final and `complete` is `true`. A running one is refreshed when it is read, and can be up to about ten seconds behind; `synced_at` says when it was last refreshed. Inputs, results and other payloads are never included. The list is not paginated: an execution is limited to 3,000 operations, and a trace is read whole.
669
988
  # @param id [String] Project ID
670
989
  # @param function_id [String] Durable function ID, or its name within the project
990
+ # @param execution_id [String] Durable execution ID
671
991
  # @param [Hash] opts the optional parameters
672
- # @option opts [Integer] :page Page number (1-indexed) for offset pagination. Declares no schema default so the request validator does not inject one: handlers that omit &#x60;page&#x60; see it unset (nil) and default to 1 in code, while cursor-first endpoints (e.g. the project deployments feed) can detect its absence to stay in keyset/search mode. Supplying &#x60;page&#x60; selects offset pagination.
673
- # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
674
- # @return [PaginatedFunctionDeployments]
675
- def list_durable_function_deployments(id, function_id, opts = {})
676
- data, _status_code, _headers = list_durable_function_deployments_with_http_info(id, function_id, opts)
992
+ # @return [DurableExecutionOperationList]
993
+ def list_durable_execution_operations(id, function_id, execution_id, opts = {})
994
+ data, _status_code, _headers = list_durable_execution_operations_with_http_info(id, function_id, execution_id, opts)
677
995
  data
678
996
  end
679
997
 
680
- # List durable function deployments
998
+ # List a durable execution&#39;s operations
999
+ # Returns the execution&#39;s trace: every operation it began — each step, wait, poll, child context, map item and parallel branch — with when it started and ended, how it ended, and each attempt of a retried step. &#x60;invocations&#x60; are the windows the function&#39;s code was actually running; the gaps between them are time the execution spent suspended, which is not charged. A finished execution&#39;s trace is final and &#x60;complete&#x60; is &#x60;true&#x60;. A running one is refreshed when it is read, and can be up to about ten seconds behind; &#x60;synced_at&#x60; says when it was last refreshed. Inputs, results and other payloads are never included. The list is not paginated: an execution is limited to 3,000 operations, and a trace is read whole.
681
1000
  # @param id [String] Project ID
682
1001
  # @param function_id [String] Durable function ID, or its name within the project
1002
+ # @param execution_id [String] Durable execution ID
683
1003
  # @param [Hash] opts the optional parameters
684
- # @option opts [Integer] :page Page number (1-indexed) for offset pagination. Declares no schema default so the request validator does not inject one: handlers that omit &#x60;page&#x60; see it unset (nil) and default to 1 in code, while cursor-first endpoints (e.g. the project deployments feed) can detect its absence to stay in keyset/search mode. Supplying &#x60;page&#x60; selects offset pagination.
685
- # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
686
- # @return [Array<(PaginatedFunctionDeployments, Integer, Hash)>] PaginatedFunctionDeployments data, response status code and response headers
687
- def list_durable_function_deployments_with_http_info(id, function_id, opts = {})
1004
+ # @return [Array<(DurableExecutionOperationList, Integer, Hash)>] DurableExecutionOperationList data, response status code and response headers
1005
+ def list_durable_execution_operations_with_http_info(id, function_id, execution_id, opts = {})
688
1006
  if @api_client.config.debugging
689
- @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.list_durable_function_deployments ...'
1007
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.list_durable_execution_operations ...'
690
1008
  end
691
1009
  # verify the required parameter 'id' is set
692
1010
  if @api_client.config.client_side_validation && id.nil?
693
- fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.list_durable_function_deployments"
1011
+ fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.list_durable_execution_operations"
694
1012
  end
695
1013
  # verify the required parameter 'function_id' is set
696
1014
  if @api_client.config.client_side_validation && function_id.nil?
697
- fail ArgumentError, "Missing the required parameter 'function_id' when calling DurableFunctionsApi.list_durable_function_deployments"
1015
+ fail ArgumentError, "Missing the required parameter 'function_id' when calling DurableFunctionsApi.list_durable_execution_operations"
698
1016
  end
699
- if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
700
- fail ArgumentError, 'invalid value for "opts[:"page"]" when calling DurableFunctionsApi.list_durable_function_deployments, must be greater than or equal to 1.'
1017
+ # verify the required parameter 'execution_id' is set
1018
+ if @api_client.config.client_side_validation && execution_id.nil?
1019
+ fail ArgumentError, "Missing the required parameter 'execution_id' when calling DurableFunctionsApi.list_durable_execution_operations"
1020
+ end
1021
+ # resource path
1022
+ local_var_path = '/projects/{id}/durable-functions/{functionId}/executions/{executionId}/operations'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'functionId' + '}', CGI.escape(function_id.to_s)).sub('{' + 'executionId' + '}', CGI.escape(execution_id.to_s))
1023
+
1024
+ # query parameters
1025
+ query_params = opts[:query_params] || {}
1026
+
1027
+ # header parameters
1028
+ header_params = opts[:header_params] || {}
1029
+ # HTTP header 'Accept' (if needed)
1030
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1031
+
1032
+ # form parameters
1033
+ form_params = opts[:form_params] || {}
1034
+
1035
+ # http body (model)
1036
+ post_body = opts[:debug_body]
1037
+
1038
+ # return_type
1039
+ return_type = opts[:debug_return_type] || 'DurableExecutionOperationList'
1040
+
1041
+ # auth_names
1042
+ auth_names = opts[:debug_auth_names] || ['UserToken']
1043
+
1044
+ new_options = opts.merge(
1045
+ :operation => :"DurableFunctionsApi.list_durable_execution_operations",
1046
+ :header_params => header_params,
1047
+ :query_params => query_params,
1048
+ :form_params => form_params,
1049
+ :body => post_body,
1050
+ :auth_names => auth_names,
1051
+ :return_type => return_type
1052
+ )
1053
+
1054
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1055
+ if @api_client.config.debugging
1056
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#list_durable_execution_operations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1057
+ end
1058
+ return data, status_code, headers
1059
+ end
1060
+
1061
+ # List a durable function's executions
1062
+ # Returns the platform's last observed status for each execution; listing does not poll each one. Fetch a single execution for its live state.
1063
+ # @param id [String] Project ID
1064
+ # @param function_id [String] Durable function ID, or its name within the project
1065
+ # @param [Hash] opts the optional parameters
1066
+ # @option opts [Integer] :page Page number (1-indexed) for offset pagination. Declares no schema default so the request validator does not inject one: handlers that omit &#x60;page&#x60; see it unset (nil) and default to 1 in code, while cursor-first endpoints (e.g. the project deployments feed) can detect its absence to stay in keyset/search mode. Supplying &#x60;page&#x60; selects offset pagination.
1067
+ # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
1068
+ # @option opts [DurableExecutionStatus] :status Return only executions in this status.
1069
+ # @return [PaginatedDurableExecutions]
1070
+ def list_durable_executions(id, function_id, opts = {})
1071
+ data, _status_code, _headers = list_durable_executions_with_http_info(id, function_id, opts)
1072
+ data
1073
+ end
1074
+
1075
+ # List a durable function&#39;s executions
1076
+ # Returns the platform&#39;s last observed status for each execution; listing does not poll each one. Fetch a single execution for its live state.
1077
+ # @param id [String] Project ID
1078
+ # @param function_id [String] Durable function ID, or its name within the project
1079
+ # @param [Hash] opts the optional parameters
1080
+ # @option opts [Integer] :page Page number (1-indexed) for offset pagination. Declares no schema default so the request validator does not inject one: handlers that omit &#x60;page&#x60; see it unset (nil) and default to 1 in code, while cursor-first endpoints (e.g. the project deployments feed) can detect its absence to stay in keyset/search mode. Supplying &#x60;page&#x60; selects offset pagination.
1081
+ # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
1082
+ # @option opts [DurableExecutionStatus] :status Return only executions in this status.
1083
+ # @return [Array<(PaginatedDurableExecutions, Integer, Hash)>] PaginatedDurableExecutions data, response status code and response headers
1084
+ def list_durable_executions_with_http_info(id, function_id, opts = {})
1085
+ if @api_client.config.debugging
1086
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.list_durable_executions ...'
1087
+ end
1088
+ # verify the required parameter 'id' is set
1089
+ if @api_client.config.client_side_validation && id.nil?
1090
+ fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.list_durable_executions"
1091
+ end
1092
+ # verify the required parameter 'function_id' is set
1093
+ if @api_client.config.client_side_validation && function_id.nil?
1094
+ fail ArgumentError, "Missing the required parameter 'function_id' when calling DurableFunctionsApi.list_durable_executions"
1095
+ end
1096
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
1097
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling DurableFunctionsApi.list_durable_executions, must be greater than or equal to 1.'
1098
+ end
1099
+
1100
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
1101
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DurableFunctionsApi.list_durable_executions, must be smaller than or equal to 100.'
1102
+ end
1103
+
1104
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1105
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DurableFunctionsApi.list_durable_executions, must be greater than or equal to 1.'
1106
+ end
1107
+
1108
+ # resource path
1109
+ local_var_path = '/projects/{id}/durable-functions/{functionId}/executions'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'functionId' + '}', CGI.escape(function_id.to_s))
1110
+
1111
+ # query parameters
1112
+ query_params = opts[:query_params] || {}
1113
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1114
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1115
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
1116
+
1117
+ # header parameters
1118
+ header_params = opts[:header_params] || {}
1119
+ # HTTP header 'Accept' (if needed)
1120
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1121
+
1122
+ # form parameters
1123
+ form_params = opts[:form_params] || {}
1124
+
1125
+ # http body (model)
1126
+ post_body = opts[:debug_body]
1127
+
1128
+ # return_type
1129
+ return_type = opts[:debug_return_type] || 'PaginatedDurableExecutions'
1130
+
1131
+ # auth_names
1132
+ auth_names = opts[:debug_auth_names] || ['UserToken']
1133
+
1134
+ new_options = opts.merge(
1135
+ :operation => :"DurableFunctionsApi.list_durable_executions",
1136
+ :header_params => header_params,
1137
+ :query_params => query_params,
1138
+ :form_params => form_params,
1139
+ :body => post_body,
1140
+ :auth_names => auth_names,
1141
+ :return_type => return_type
1142
+ )
1143
+
1144
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1145
+ if @api_client.config.debugging
1146
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#list_durable_executions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1147
+ end
1148
+ return data, status_code, headers
1149
+ end
1150
+
1151
+ # List durable function deployments
1152
+ # @param id [String] Project ID
1153
+ # @param function_id [String] Durable function ID, or its name within the project
1154
+ # @param [Hash] opts the optional parameters
1155
+ # @option opts [Integer] :page Page number (1-indexed) for offset pagination. Declares no schema default so the request validator does not inject one: handlers that omit &#x60;page&#x60; see it unset (nil) and default to 1 in code, while cursor-first endpoints (e.g. the project deployments feed) can detect its absence to stay in keyset/search mode. Supplying &#x60;page&#x60; selects offset pagination.
1156
+ # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
1157
+ # @return [PaginatedFunctionDeployments]
1158
+ def list_durable_function_deployments(id, function_id, opts = {})
1159
+ data, _status_code, _headers = list_durable_function_deployments_with_http_info(id, function_id, opts)
1160
+ data
1161
+ end
1162
+
1163
+ # List durable function deployments
1164
+ # @param id [String] Project ID
1165
+ # @param function_id [String] Durable function ID, or its name within the project
1166
+ # @param [Hash] opts the optional parameters
1167
+ # @option opts [Integer] :page Page number (1-indexed) for offset pagination. Declares no schema default so the request validator does not inject one: handlers that omit &#x60;page&#x60; see it unset (nil) and default to 1 in code, while cursor-first endpoints (e.g. the project deployments feed) can detect its absence to stay in keyset/search mode. Supplying &#x60;page&#x60; selects offset pagination.
1168
+ # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
1169
+ # @return [Array<(PaginatedFunctionDeployments, Integer, Hash)>] PaginatedFunctionDeployments data, response status code and response headers
1170
+ def list_durable_function_deployments_with_http_info(id, function_id, opts = {})
1171
+ if @api_client.config.debugging
1172
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.list_durable_function_deployments ...'
1173
+ end
1174
+ # verify the required parameter 'id' is set
1175
+ if @api_client.config.client_side_validation && id.nil?
1176
+ fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.list_durable_function_deployments"
1177
+ end
1178
+ # verify the required parameter 'function_id' is set
1179
+ if @api_client.config.client_side_validation && function_id.nil?
1180
+ fail ArgumentError, "Missing the required parameter 'function_id' when calling DurableFunctionsApi.list_durable_function_deployments"
1181
+ end
1182
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
1183
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling DurableFunctionsApi.list_durable_function_deployments, must be greater than or equal to 1.'
701
1184
  end
702
1185
 
703
1186
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
@@ -907,6 +1390,799 @@ module Volcano::Generated
907
1390
  return data, status_code, headers
908
1391
  end
909
1392
 
1393
+ # List a durable execution's open message waits
1394
+ # Lists the waits an execution has open in `ctx.waitForMessage`, oldest first, so you can see which message names it is waiting for. Project access tokens can list waits, including read-only ones.
1395
+ # @param id [String] Project ID
1396
+ # @param function_id [String] Durable function ID, or its name within the project
1397
+ # @param execution_id [String] Durable execution ID
1398
+ # @param [Hash] opts the optional parameters
1399
+ # @return [DurableMessageWaitList]
1400
+ def list_durable_message_waits(id, function_id, execution_id, opts = {})
1401
+ data, _status_code, _headers = list_durable_message_waits_with_http_info(id, function_id, execution_id, opts)
1402
+ data
1403
+ end
1404
+
1405
+ # List a durable execution&#39;s open message waits
1406
+ # Lists the waits an execution has open in &#x60;ctx.waitForMessage&#x60;, oldest first, so you can see which message names it is waiting for. Project access tokens can list waits, including read-only ones.
1407
+ # @param id [String] Project ID
1408
+ # @param function_id [String] Durable function ID, or its name within the project
1409
+ # @param execution_id [String] Durable execution ID
1410
+ # @param [Hash] opts the optional parameters
1411
+ # @return [Array<(DurableMessageWaitList, Integer, Hash)>] DurableMessageWaitList data, response status code and response headers
1412
+ def list_durable_message_waits_with_http_info(id, function_id, execution_id, opts = {})
1413
+ if @api_client.config.debugging
1414
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.list_durable_message_waits ...'
1415
+ end
1416
+ # verify the required parameter 'id' is set
1417
+ if @api_client.config.client_side_validation && id.nil?
1418
+ fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.list_durable_message_waits"
1419
+ end
1420
+ # verify the required parameter 'function_id' is set
1421
+ if @api_client.config.client_side_validation && function_id.nil?
1422
+ fail ArgumentError, "Missing the required parameter 'function_id' when calling DurableFunctionsApi.list_durable_message_waits"
1423
+ end
1424
+ # verify the required parameter 'execution_id' is set
1425
+ if @api_client.config.client_side_validation && execution_id.nil?
1426
+ fail ArgumentError, "Missing the required parameter 'execution_id' when calling DurableFunctionsApi.list_durable_message_waits"
1427
+ end
1428
+ # resource path
1429
+ local_var_path = '/projects/{id}/durable-functions/{functionId}/executions/{executionId}/message-waits'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'functionId' + '}', CGI.escape(function_id.to_s)).sub('{' + 'executionId' + '}', CGI.escape(execution_id.to_s))
1430
+
1431
+ # query parameters
1432
+ query_params = opts[:query_params] || {}
1433
+
1434
+ # header parameters
1435
+ header_params = opts[:header_params] || {}
1436
+ # HTTP header 'Accept' (if needed)
1437
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1438
+
1439
+ # form parameters
1440
+ form_params = opts[:form_params] || {}
1441
+
1442
+ # http body (model)
1443
+ post_body = opts[:debug_body]
1444
+
1445
+ # return_type
1446
+ return_type = opts[:debug_return_type] || 'DurableMessageWaitList'
1447
+
1448
+ # auth_names
1449
+ auth_names = opts[:debug_auth_names] || ['UserToken', 'ProjectAccessToken']
1450
+
1451
+ new_options = opts.merge(
1452
+ :operation => :"DurableFunctionsApi.list_durable_message_waits",
1453
+ :header_params => header_params,
1454
+ :query_params => query_params,
1455
+ :form_params => form_params,
1456
+ :body => post_body,
1457
+ :auth_names => auth_names,
1458
+ :return_type => return_type
1459
+ )
1460
+
1461
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1462
+ if @api_client.config.debugging
1463
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#list_durable_message_waits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1464
+ end
1465
+ return data, status_code, headers
1466
+ end
1467
+
1468
+ # List a durable execution's messages
1469
+ # Lists the messages sent to and published by an execution, oldest first. Pass the last `seq` you read as `after` to read only what came next. Project access tokens can list messages, including read-only ones.
1470
+ # @param id [String] Project ID
1471
+ # @param function_id [String] Durable function ID, or its name within the project
1472
+ # @param execution_id [String] Durable execution ID
1473
+ # @param [Hash] opts the optional parameters
1474
+ # @option opts [DurableMessageDirection] :direction Return only messages travelling this way.
1475
+ # @option opts [String] :name Return only messages with this name.
1476
+ # @option opts [Integer] :after Return only messages whose &#x60;seq&#x60; is greater than this. (default to 0)
1477
+ # @option opts [Integer] :limit Most messages to return. (default to 100)
1478
+ # @return [DurableMessageList]
1479
+ def list_durable_messages(id, function_id, execution_id, opts = {})
1480
+ data, _status_code, _headers = list_durable_messages_with_http_info(id, function_id, execution_id, opts)
1481
+ data
1482
+ end
1483
+
1484
+ # List a durable execution&#39;s messages
1485
+ # Lists the messages sent to and published by an execution, oldest first. Pass the last &#x60;seq&#x60; you read as &#x60;after&#x60; to read only what came next. Project access tokens can list messages, including read-only ones.
1486
+ # @param id [String] Project ID
1487
+ # @param function_id [String] Durable function ID, or its name within the project
1488
+ # @param execution_id [String] Durable execution ID
1489
+ # @param [Hash] opts the optional parameters
1490
+ # @option opts [DurableMessageDirection] :direction Return only messages travelling this way.
1491
+ # @option opts [String] :name Return only messages with this name.
1492
+ # @option opts [Integer] :after Return only messages whose &#x60;seq&#x60; is greater than this. (default to 0)
1493
+ # @option opts [Integer] :limit Most messages to return. (default to 100)
1494
+ # @return [Array<(DurableMessageList, Integer, Hash)>] DurableMessageList data, response status code and response headers
1495
+ def list_durable_messages_with_http_info(id, function_id, execution_id, opts = {})
1496
+ if @api_client.config.debugging
1497
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.list_durable_messages ...'
1498
+ end
1499
+ # verify the required parameter 'id' is set
1500
+ if @api_client.config.client_side_validation && id.nil?
1501
+ fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.list_durable_messages"
1502
+ end
1503
+ # verify the required parameter 'function_id' is set
1504
+ if @api_client.config.client_side_validation && function_id.nil?
1505
+ fail ArgumentError, "Missing the required parameter 'function_id' when calling DurableFunctionsApi.list_durable_messages"
1506
+ end
1507
+ # verify the required parameter 'execution_id' is set
1508
+ if @api_client.config.client_side_validation && execution_id.nil?
1509
+ fail ArgumentError, "Missing the required parameter 'execution_id' when calling DurableFunctionsApi.list_durable_messages"
1510
+ end
1511
+ if @api_client.config.client_side_validation && !opts[:'name'].nil? && opts[:'name'].to_s.length > 237
1512
+ fail ArgumentError, 'invalid value for "opts[:"name"]" when calling DurableFunctionsApi.list_durable_messages, the character length must be smaller than or equal to 237.'
1513
+ end
1514
+
1515
+ if @api_client.config.client_side_validation && !opts[:'name'].nil? && opts[:'name'].to_s.length < 1
1516
+ fail ArgumentError, 'invalid value for "opts[:"name"]" when calling DurableFunctionsApi.list_durable_messages, the character length must be greater than or equal to 1.'
1517
+ end
1518
+
1519
+ pattern = Regexp.new(/^[ -~]+$/)
1520
+ if @api_client.config.client_side_validation && !opts[:'name'].nil? && opts[:'name'] !~ pattern
1521
+ fail ArgumentError, "invalid value for 'opts[:\"name\"]' when calling DurableFunctionsApi.list_durable_messages, must conform to the pattern #{pattern}."
1522
+ end
1523
+
1524
+ if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 0
1525
+ fail ArgumentError, 'invalid value for "opts[:"after"]" when calling DurableFunctionsApi.list_durable_messages, must be greater than or equal to 0.'
1526
+ end
1527
+
1528
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1529
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DurableFunctionsApi.list_durable_messages, must be smaller than or equal to 500.'
1530
+ end
1531
+
1532
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1533
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DurableFunctionsApi.list_durable_messages, must be greater than or equal to 1.'
1534
+ end
1535
+
1536
+ # resource path
1537
+ local_var_path = '/projects/{id}/durable-functions/{functionId}/executions/{executionId}/messages'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'functionId' + '}', CGI.escape(function_id.to_s)).sub('{' + 'executionId' + '}', CGI.escape(execution_id.to_s))
1538
+
1539
+ # query parameters
1540
+ query_params = opts[:query_params] || {}
1541
+ query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
1542
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
1543
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
1544
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1545
+
1546
+ # header parameters
1547
+ header_params = opts[:header_params] || {}
1548
+ # HTTP header 'Accept' (if needed)
1549
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1550
+
1551
+ # form parameters
1552
+ form_params = opts[:form_params] || {}
1553
+
1554
+ # http body (model)
1555
+ post_body = opts[:debug_body]
1556
+
1557
+ # return_type
1558
+ return_type = opts[:debug_return_type] || 'DurableMessageList'
1559
+
1560
+ # auth_names
1561
+ auth_names = opts[:debug_auth_names] || ['UserToken', 'ProjectAccessToken']
1562
+
1563
+ new_options = opts.merge(
1564
+ :operation => :"DurableFunctionsApi.list_durable_messages",
1565
+ :header_params => header_params,
1566
+ :query_params => query_params,
1567
+ :form_params => form_params,
1568
+ :body => post_body,
1569
+ :auth_names => auth_names,
1570
+ :return_type => return_type
1571
+ )
1572
+
1573
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1574
+ if @api_client.config.debugging
1575
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#list_durable_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1576
+ end
1577
+ return data, status_code, headers
1578
+ end
1579
+
1580
+ # List a durable execution's messages from an application
1581
+ # Lists the messages sent to and published by an execution, oldest first. Pass the last `seq` you read as `after` to read only what came next; that is how a client catches up after a live subscription reconnects. Access follows the same rules as sending.
1582
+ # @param function_id [String] Durable function ID, or its name within the project
1583
+ # @param execution_id [String] Durable execution ID
1584
+ # @param [Hash] opts the optional parameters
1585
+ # @option opts [String] :x_volcano_client_token The &#x60;client_token&#x60; the execution&#39;s start returned. Lets an anon key, or a user who did not start the execution, reach it.
1586
+ # @option opts [DurableMessageDirection] :direction Return only messages travelling this way.
1587
+ # @option opts [String] :name Return only messages with this name.
1588
+ # @option opts [Integer] :after Return only messages whose &#x60;seq&#x60; is greater than this. (default to 0)
1589
+ # @option opts [Integer] :limit Most messages to return. (default to 100)
1590
+ # @return [DurableMessageList]
1591
+ def list_durable_messages_from_application(function_id, execution_id, opts = {})
1592
+ data, _status_code, _headers = list_durable_messages_from_application_with_http_info(function_id, execution_id, opts)
1593
+ data
1594
+ end
1595
+
1596
+ # List a durable execution&#39;s messages from an application
1597
+ # Lists the messages sent to and published by an execution, oldest first. Pass the last &#x60;seq&#x60; you read as &#x60;after&#x60; to read only what came next; that is how a client catches up after a live subscription reconnects. Access follows the same rules as sending.
1598
+ # @param function_id [String] Durable function ID, or its name within the project
1599
+ # @param execution_id [String] Durable execution ID
1600
+ # @param [Hash] opts the optional parameters
1601
+ # @option opts [String] :x_volcano_client_token The &#x60;client_token&#x60; the execution&#39;s start returned. Lets an anon key, or a user who did not start the execution, reach it.
1602
+ # @option opts [DurableMessageDirection] :direction Return only messages travelling this way.
1603
+ # @option opts [String] :name Return only messages with this name.
1604
+ # @option opts [Integer] :after Return only messages whose &#x60;seq&#x60; is greater than this. (default to 0)
1605
+ # @option opts [Integer] :limit Most messages to return. (default to 100)
1606
+ # @return [Array<(DurableMessageList, Integer, Hash)>] DurableMessageList data, response status code and response headers
1607
+ def list_durable_messages_from_application_with_http_info(function_id, execution_id, opts = {})
1608
+ if @api_client.config.debugging
1609
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.list_durable_messages_from_application ...'
1610
+ end
1611
+ # verify the required parameter 'function_id' is set
1612
+ if @api_client.config.client_side_validation && function_id.nil?
1613
+ fail ArgumentError, "Missing the required parameter 'function_id' when calling DurableFunctionsApi.list_durable_messages_from_application"
1614
+ end
1615
+ # verify the required parameter 'execution_id' is set
1616
+ if @api_client.config.client_side_validation && execution_id.nil?
1617
+ fail ArgumentError, "Missing the required parameter 'execution_id' when calling DurableFunctionsApi.list_durable_messages_from_application"
1618
+ end
1619
+ if @api_client.config.client_side_validation && !opts[:'x_volcano_client_token'].nil? && opts[:'x_volcano_client_token'].to_s.length > 128
1620
+ fail ArgumentError, 'invalid value for "opts[:"x_volcano_client_token"]" when calling DurableFunctionsApi.list_durable_messages_from_application, the character length must be smaller than or equal to 128.'
1621
+ end
1622
+
1623
+ if @api_client.config.client_side_validation && !opts[:'name'].nil? && opts[:'name'].to_s.length > 237
1624
+ fail ArgumentError, 'invalid value for "opts[:"name"]" when calling DurableFunctionsApi.list_durable_messages_from_application, the character length must be smaller than or equal to 237.'
1625
+ end
1626
+
1627
+ if @api_client.config.client_side_validation && !opts[:'name'].nil? && opts[:'name'].to_s.length < 1
1628
+ fail ArgumentError, 'invalid value for "opts[:"name"]" when calling DurableFunctionsApi.list_durable_messages_from_application, the character length must be greater than or equal to 1.'
1629
+ end
1630
+
1631
+ pattern = Regexp.new(/^[ -~]+$/)
1632
+ if @api_client.config.client_side_validation && !opts[:'name'].nil? && opts[:'name'] !~ pattern
1633
+ fail ArgumentError, "invalid value for 'opts[:\"name\"]' when calling DurableFunctionsApi.list_durable_messages_from_application, must conform to the pattern #{pattern}."
1634
+ end
1635
+
1636
+ if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 0
1637
+ fail ArgumentError, 'invalid value for "opts[:"after"]" when calling DurableFunctionsApi.list_durable_messages_from_application, must be greater than or equal to 0.'
1638
+ end
1639
+
1640
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1641
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DurableFunctionsApi.list_durable_messages_from_application, must be smaller than or equal to 500.'
1642
+ end
1643
+
1644
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1645
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DurableFunctionsApi.list_durable_messages_from_application, must be greater than or equal to 1.'
1646
+ end
1647
+
1648
+ # resource path
1649
+ local_var_path = '/durable-functions/{functionId}/executions/{executionId}/messages'.sub('{' + 'functionId' + '}', CGI.escape(function_id.to_s)).sub('{' + 'executionId' + '}', CGI.escape(execution_id.to_s))
1650
+
1651
+ # query parameters
1652
+ query_params = opts[:query_params] || {}
1653
+ query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
1654
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
1655
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
1656
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1657
+
1658
+ # header parameters
1659
+ header_params = opts[:header_params] || {}
1660
+ # HTTP header 'Accept' (if needed)
1661
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1662
+ header_params[:'X-Volcano-Client-Token'] = opts[:'x_volcano_client_token'] if !opts[:'x_volcano_client_token'].nil?
1663
+
1664
+ # form parameters
1665
+ form_params = opts[:form_params] || {}
1666
+
1667
+ # http body (model)
1668
+ post_body = opts[:debug_body]
1669
+
1670
+ # return_type
1671
+ return_type = opts[:debug_return_type] || 'DurableMessageList'
1672
+
1673
+ # auth_names
1674
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'AuthUserAccessToken', 'AnonKey']
1675
+
1676
+ new_options = opts.merge(
1677
+ :operation => :"DurableFunctionsApi.list_durable_messages_from_application",
1678
+ :header_params => header_params,
1679
+ :query_params => query_params,
1680
+ :form_params => form_params,
1681
+ :body => post_body,
1682
+ :auth_names => auth_names,
1683
+ :return_type => return_type
1684
+ )
1685
+
1686
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1687
+ if @api_client.config.debugging
1688
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#list_durable_messages_from_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1689
+ end
1690
+ return data, status_code, headers
1691
+ end
1692
+
1693
+ # Open a messages session from inside a workflow
1694
+ # Opens the session a workflow publishes messages with. The Volcano SDK calls this once per workflow context, on its first `ctx.publish`; applications do not call it directly. As for a wait, `execution_ref` and `callback_id` are the credential. The session's token is delivered to the workflow itself and never appears in a response. Retrying is safe: a request for a session that is already registered returns it with `200`.
1695
+ # @param open_durable_message_session_request [OpenDurableMessageSessionRequest]
1696
+ # @param [Hash] opts the optional parameters
1697
+ # @return [DurableMessageSessionRegistration]
1698
+ def open_durable_message_session(open_durable_message_session_request, opts = {})
1699
+ data, _status_code, _headers = open_durable_message_session_with_http_info(open_durable_message_session_request, opts)
1700
+ data
1701
+ end
1702
+
1703
+ # Open a messages session from inside a workflow
1704
+ # Opens the session a workflow publishes messages with. The Volcano SDK calls this once per workflow context, on its first &#x60;ctx.publish&#x60;; applications do not call it directly. As for a wait, &#x60;execution_ref&#x60; and &#x60;callback_id&#x60; are the credential. The session&#39;s token is delivered to the workflow itself and never appears in a response. Retrying is safe: a request for a session that is already registered returns it with &#x60;200&#x60;.
1705
+ # @param open_durable_message_session_request [OpenDurableMessageSessionRequest]
1706
+ # @param [Hash] opts the optional parameters
1707
+ # @return [Array<(DurableMessageSessionRegistration, Integer, Hash)>] DurableMessageSessionRegistration data, response status code and response headers
1708
+ def open_durable_message_session_with_http_info(open_durable_message_session_request, opts = {})
1709
+ if @api_client.config.debugging
1710
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.open_durable_message_session ...'
1711
+ end
1712
+ # verify the required parameter 'open_durable_message_session_request' is set
1713
+ if @api_client.config.client_side_validation && open_durable_message_session_request.nil?
1714
+ fail ArgumentError, "Missing the required parameter 'open_durable_message_session_request' when calling DurableFunctionsApi.open_durable_message_session"
1715
+ end
1716
+ # resource path
1717
+ local_var_path = '/durable-messages/sessions'
1718
+
1719
+ # query parameters
1720
+ query_params = opts[:query_params] || {}
1721
+
1722
+ # header parameters
1723
+ header_params = opts[:header_params] || {}
1724
+ # HTTP header 'Accept' (if needed)
1725
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1726
+ # HTTP header 'Content-Type'
1727
+ content_type = @api_client.select_header_content_type(['application/json'])
1728
+ if !content_type.nil?
1729
+ header_params['Content-Type'] = content_type
1730
+ end
1731
+
1732
+ # form parameters
1733
+ form_params = opts[:form_params] || {}
1734
+
1735
+ # http body (model)
1736
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(open_durable_message_session_request)
1737
+
1738
+ # return_type
1739
+ return_type = opts[:debug_return_type] || 'DurableMessageSessionRegistration'
1740
+
1741
+ # auth_names
1742
+ auth_names = opts[:debug_auth_names] || []
1743
+
1744
+ new_options = opts.merge(
1745
+ :operation => :"DurableFunctionsApi.open_durable_message_session",
1746
+ :header_params => header_params,
1747
+ :query_params => query_params,
1748
+ :form_params => form_params,
1749
+ :body => post_body,
1750
+ :auth_names => auth_names,
1751
+ :return_type => return_type
1752
+ )
1753
+
1754
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1755
+ if @api_client.config.debugging
1756
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#open_durable_message_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1757
+ end
1758
+ return data, status_code, headers
1759
+ end
1760
+
1761
+ # Publish a message from inside a workflow
1762
+ # Publishes a named message from a running workflow. The Volcano SDK calls this from `ctx.publish`; applications do not call it directly. The message is stored, listed with the execution's messages, and delivered live to clients subscribed to the execution. Live delivery counts against the project's Realtime messages. The SDK sends an `Idempotency-Key` that a rerun of the publishing step repeats, so a step that runs again returns the first message with `200` and publishes nothing.
1763
+ # @param x_volcano_durable_session [String] The session token the workflow received when its session opened.
1764
+ # @param publish_durable_message_request [PublishDurableMessageRequest]
1765
+ # @param [Hash] opts the optional parameters
1766
+ # @option opts [String] :idempotency_key Makes a send safe to retry. A repeat with a key the same sender has used on the execution returns the first message and sends nothing. Keys of different senders never collide. Up to 255 characters.
1767
+ # @return [DurableMessage]
1768
+ def publish_durable_message(x_volcano_durable_session, publish_durable_message_request, opts = {})
1769
+ data, _status_code, _headers = publish_durable_message_with_http_info(x_volcano_durable_session, publish_durable_message_request, opts)
1770
+ data
1771
+ end
1772
+
1773
+ # Publish a message from inside a workflow
1774
+ # Publishes a named message from a running workflow. The Volcano SDK calls this from &#x60;ctx.publish&#x60;; applications do not call it directly. The message is stored, listed with the execution&#39;s messages, and delivered live to clients subscribed to the execution. Live delivery counts against the project&#39;s Realtime messages. The SDK sends an &#x60;Idempotency-Key&#x60; that a rerun of the publishing step repeats, so a step that runs again returns the first message with &#x60;200&#x60; and publishes nothing.
1775
+ # @param x_volcano_durable_session [String] The session token the workflow received when its session opened.
1776
+ # @param publish_durable_message_request [PublishDurableMessageRequest]
1777
+ # @param [Hash] opts the optional parameters
1778
+ # @option opts [String] :idempotency_key Makes a send safe to retry. A repeat with a key the same sender has used on the execution returns the first message and sends nothing. Keys of different senders never collide. Up to 255 characters.
1779
+ # @return [Array<(DurableMessage, Integer, Hash)>] DurableMessage data, response status code and response headers
1780
+ def publish_durable_message_with_http_info(x_volcano_durable_session, publish_durable_message_request, opts = {})
1781
+ if @api_client.config.debugging
1782
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.publish_durable_message ...'
1783
+ end
1784
+ # verify the required parameter 'x_volcano_durable_session' is set
1785
+ if @api_client.config.client_side_validation && x_volcano_durable_session.nil?
1786
+ fail ArgumentError, "Missing the required parameter 'x_volcano_durable_session' when calling DurableFunctionsApi.publish_durable_message"
1787
+ end
1788
+ if @api_client.config.client_side_validation && x_volcano_durable_session.to_s.length > 128
1789
+ fail ArgumentError, 'invalid value for "x_volcano_durable_session" when calling DurableFunctionsApi.publish_durable_message, the character length must be smaller than or equal to 128.'
1790
+ end
1791
+
1792
+ if @api_client.config.client_side_validation && x_volcano_durable_session.to_s.length < 1
1793
+ fail ArgumentError, 'invalid value for "x_volcano_durable_session" when calling DurableFunctionsApi.publish_durable_message, the character length must be greater than or equal to 1.'
1794
+ end
1795
+
1796
+ # verify the required parameter 'publish_durable_message_request' is set
1797
+ if @api_client.config.client_side_validation && publish_durable_message_request.nil?
1798
+ fail ArgumentError, "Missing the required parameter 'publish_durable_message_request' when calling DurableFunctionsApi.publish_durable_message"
1799
+ end
1800
+ if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255
1801
+ fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DurableFunctionsApi.publish_durable_message, the character length must be smaller than or equal to 255.'
1802
+ end
1803
+
1804
+ if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1
1805
+ fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DurableFunctionsApi.publish_durable_message, the character length must be greater than or equal to 1.'
1806
+ end
1807
+
1808
+ # resource path
1809
+ local_var_path = '/durable-messages/publish'
1810
+
1811
+ # query parameters
1812
+ query_params = opts[:query_params] || {}
1813
+
1814
+ # header parameters
1815
+ header_params = opts[:header_params] || {}
1816
+ # HTTP header 'Accept' (if needed)
1817
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1818
+ # HTTP header 'Content-Type'
1819
+ content_type = @api_client.select_header_content_type(['application/json'])
1820
+ if !content_type.nil?
1821
+ header_params['Content-Type'] = content_type
1822
+ end
1823
+ header_params[:'X-Volcano-Durable-Session'] = x_volcano_durable_session
1824
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
1825
+
1826
+ # form parameters
1827
+ form_params = opts[:form_params] || {}
1828
+
1829
+ # http body (model)
1830
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(publish_durable_message_request)
1831
+
1832
+ # return_type
1833
+ return_type = opts[:debug_return_type] || 'DurableMessage'
1834
+
1835
+ # auth_names
1836
+ auth_names = opts[:debug_auth_names] || []
1837
+
1838
+ new_options = opts.merge(
1839
+ :operation => :"DurableFunctionsApi.publish_durable_message",
1840
+ :header_params => header_params,
1841
+ :query_params => query_params,
1842
+ :form_params => form_params,
1843
+ :body => post_body,
1844
+ :auth_names => auth_names,
1845
+ :return_type => return_type
1846
+ )
1847
+
1848
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1849
+ if @api_client.config.debugging
1850
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#publish_durable_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1851
+ end
1852
+ return data, status_code, headers
1853
+ end
1854
+
1855
+ # Wait for a message from inside a workflow
1856
+ # Registers a wait for a named message. The Volcano SDK calls this from `ctx.waitForMessage`; applications do not call it directly. `execution_ref` and `callback_id` are opaque values the SDK reads from the running workflow. Together they are the request's credential, so the operation takes no other authentication. When a message for the name is already queued, the wait takes the oldest one at once. Retrying is safe: a request for a wait that is already registered returns it with `200`.
1857
+ # @param register_durable_message_wait_request [RegisterDurableMessageWaitRequest]
1858
+ # @param [Hash] opts the optional parameters
1859
+ # @return [DurableMessageWaitRegistration]
1860
+ def register_durable_message_wait(register_durable_message_wait_request, opts = {})
1861
+ data, _status_code, _headers = register_durable_message_wait_with_http_info(register_durable_message_wait_request, opts)
1862
+ data
1863
+ end
1864
+
1865
+ # Wait for a message from inside a workflow
1866
+ # Registers a wait for a named message. The Volcano SDK calls this from &#x60;ctx.waitForMessage&#x60;; applications do not call it directly. &#x60;execution_ref&#x60; and &#x60;callback_id&#x60; are opaque values the SDK reads from the running workflow. Together they are the request&#39;s credential, so the operation takes no other authentication. When a message for the name is already queued, the wait takes the oldest one at once. Retrying is safe: a request for a wait that is already registered returns it with &#x60;200&#x60;.
1867
+ # @param register_durable_message_wait_request [RegisterDurableMessageWaitRequest]
1868
+ # @param [Hash] opts the optional parameters
1869
+ # @return [Array<(DurableMessageWaitRegistration, Integer, Hash)>] DurableMessageWaitRegistration data, response status code and response headers
1870
+ def register_durable_message_wait_with_http_info(register_durable_message_wait_request, opts = {})
1871
+ if @api_client.config.debugging
1872
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.register_durable_message_wait ...'
1873
+ end
1874
+ # verify the required parameter 'register_durable_message_wait_request' is set
1875
+ if @api_client.config.client_side_validation && register_durable_message_wait_request.nil?
1876
+ fail ArgumentError, "Missing the required parameter 'register_durable_message_wait_request' when calling DurableFunctionsApi.register_durable_message_wait"
1877
+ end
1878
+ # resource path
1879
+ local_var_path = '/durable-messages/waits'
1880
+
1881
+ # query parameters
1882
+ query_params = opts[:query_params] || {}
1883
+
1884
+ # header parameters
1885
+ header_params = opts[:header_params] || {}
1886
+ # HTTP header 'Accept' (if needed)
1887
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1888
+ # HTTP header 'Content-Type'
1889
+ content_type = @api_client.select_header_content_type(['application/json'])
1890
+ if !content_type.nil?
1891
+ header_params['Content-Type'] = content_type
1892
+ end
1893
+
1894
+ # form parameters
1895
+ form_params = opts[:form_params] || {}
1896
+
1897
+ # http body (model)
1898
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(register_durable_message_wait_request)
1899
+
1900
+ # return_type
1901
+ return_type = opts[:debug_return_type] || 'DurableMessageWaitRegistration'
1902
+
1903
+ # auth_names
1904
+ auth_names = opts[:debug_auth_names] || []
1905
+
1906
+ new_options = opts.merge(
1907
+ :operation => :"DurableFunctionsApi.register_durable_message_wait",
1908
+ :header_params => header_params,
1909
+ :query_params => query_params,
1910
+ :form_params => form_params,
1911
+ :body => post_body,
1912
+ :auth_names => auth_names,
1913
+ :return_type => return_type
1914
+ )
1915
+
1916
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1917
+ if @api_client.config.debugging
1918
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#register_durable_message_wait\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1919
+ end
1920
+ return data, status_code, headers
1921
+ end
1922
+
1923
+ # Request an approval from inside a workflow
1924
+ # Registers an approval request for a running durable execution. The Volcano SDK calls this from `ctx.waitForApproval`; applications do not call it directly. `execution_ref` and `callback_id` are opaque values the SDK reads from the running workflow. Together they are the request's credential, so the operation takes no other authentication. The approval belongs to the project that owns the execution, and expires when the workflow's own approval timeout does. Retrying is safe: a request for an approval that is already registered returns it with `200`.
1925
+ # @param request_durable_approval_request [RequestDurableApprovalRequest]
1926
+ # @param [Hash] opts the optional parameters
1927
+ # @return [DurableApprovalRegistration]
1928
+ def request_durable_approval(request_durable_approval_request, opts = {})
1929
+ data, _status_code, _headers = request_durable_approval_with_http_info(request_durable_approval_request, opts)
1930
+ data
1931
+ end
1932
+
1933
+ # Request an approval from inside a workflow
1934
+ # Registers an approval request for a running durable execution. The Volcano SDK calls this from &#x60;ctx.waitForApproval&#x60;; applications do not call it directly. &#x60;execution_ref&#x60; and &#x60;callback_id&#x60; are opaque values the SDK reads from the running workflow. Together they are the request&#39;s credential, so the operation takes no other authentication. The approval belongs to the project that owns the execution, and expires when the workflow&#39;s own approval timeout does. Retrying is safe: a request for an approval that is already registered returns it with &#x60;200&#x60;.
1935
+ # @param request_durable_approval_request [RequestDurableApprovalRequest]
1936
+ # @param [Hash] opts the optional parameters
1937
+ # @return [Array<(DurableApprovalRegistration, Integer, Hash)>] DurableApprovalRegistration data, response status code and response headers
1938
+ def request_durable_approval_with_http_info(request_durable_approval_request, opts = {})
1939
+ if @api_client.config.debugging
1940
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.request_durable_approval ...'
1941
+ end
1942
+ # verify the required parameter 'request_durable_approval_request' is set
1943
+ if @api_client.config.client_side_validation && request_durable_approval_request.nil?
1944
+ fail ArgumentError, "Missing the required parameter 'request_durable_approval_request' when calling DurableFunctionsApi.request_durable_approval"
1945
+ end
1946
+ # resource path
1947
+ local_var_path = '/durable-approvals'
1948
+
1949
+ # query parameters
1950
+ query_params = opts[:query_params] || {}
1951
+
1952
+ # header parameters
1953
+ header_params = opts[:header_params] || {}
1954
+ # HTTP header 'Accept' (if needed)
1955
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1956
+ # HTTP header 'Content-Type'
1957
+ content_type = @api_client.select_header_content_type(['application/json'])
1958
+ if !content_type.nil?
1959
+ header_params['Content-Type'] = content_type
1960
+ end
1961
+
1962
+ # form parameters
1963
+ form_params = opts[:form_params] || {}
1964
+
1965
+ # http body (model)
1966
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_durable_approval_request)
1967
+
1968
+ # return_type
1969
+ return_type = opts[:debug_return_type] || 'DurableApprovalRegistration'
1970
+
1971
+ # auth_names
1972
+ auth_names = opts[:debug_auth_names] || []
1973
+
1974
+ new_options = opts.merge(
1975
+ :operation => :"DurableFunctionsApi.request_durable_approval",
1976
+ :header_params => header_params,
1977
+ :query_params => query_params,
1978
+ :form_params => form_params,
1979
+ :body => post_body,
1980
+ :auth_names => auth_names,
1981
+ :return_type => return_type
1982
+ )
1983
+
1984
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1985
+ if @api_client.config.debugging
1986
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#request_durable_approval\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1987
+ end
1988
+ return data, status_code, headers
1989
+ end
1990
+
1991
+ # Send a message to a durable execution
1992
+ # Sends a named message to a running execution, as `POST /durable-functions/{functionId}/executions/{executionId}/messages` does for an application. The workflow receives it from `ctx.waitForMessage` with the same name; until then it is kept, and waits take messages oldest first. Project access tokens can send messages, but read-only ones cannot. A message never decides an approval.
1993
+ # @param id [String] Project ID
1994
+ # @param function_id [String] Durable function ID, or its name within the project
1995
+ # @param execution_id [String] Durable execution ID
1996
+ # @param send_durable_message_request [SendDurableMessageRequest]
1997
+ # @param [Hash] opts the optional parameters
1998
+ # @option opts [String] :idempotency_key Makes a send safe to retry. A repeat with a key the same sender has used on the execution returns the first message and sends nothing. Keys of different senders never collide. Up to 255 characters.
1999
+ # @return [DurableMessage]
2000
+ def send_durable_message(id, function_id, execution_id, send_durable_message_request, opts = {})
2001
+ data, _status_code, _headers = send_durable_message_with_http_info(id, function_id, execution_id, send_durable_message_request, opts)
2002
+ data
2003
+ end
2004
+
2005
+ # Send a message to a durable execution
2006
+ # Sends a named message to a running execution, as &#x60;POST /durable-functions/{functionId}/executions/{executionId}/messages&#x60; does for an application. The workflow receives it from &#x60;ctx.waitForMessage&#x60; with the same name; until then it is kept, and waits take messages oldest first. Project access tokens can send messages, but read-only ones cannot. A message never decides an approval.
2007
+ # @param id [String] Project ID
2008
+ # @param function_id [String] Durable function ID, or its name within the project
2009
+ # @param execution_id [String] Durable execution ID
2010
+ # @param send_durable_message_request [SendDurableMessageRequest]
2011
+ # @param [Hash] opts the optional parameters
2012
+ # @option opts [String] :idempotency_key Makes a send safe to retry. A repeat with a key the same sender has used on the execution returns the first message and sends nothing. Keys of different senders never collide. Up to 255 characters.
2013
+ # @return [Array<(DurableMessage, Integer, Hash)>] DurableMessage data, response status code and response headers
2014
+ def send_durable_message_with_http_info(id, function_id, execution_id, send_durable_message_request, opts = {})
2015
+ if @api_client.config.debugging
2016
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.send_durable_message ...'
2017
+ end
2018
+ # verify the required parameter 'id' is set
2019
+ if @api_client.config.client_side_validation && id.nil?
2020
+ fail ArgumentError, "Missing the required parameter 'id' when calling DurableFunctionsApi.send_durable_message"
2021
+ end
2022
+ # verify the required parameter 'function_id' is set
2023
+ if @api_client.config.client_side_validation && function_id.nil?
2024
+ fail ArgumentError, "Missing the required parameter 'function_id' when calling DurableFunctionsApi.send_durable_message"
2025
+ end
2026
+ # verify the required parameter 'execution_id' is set
2027
+ if @api_client.config.client_side_validation && execution_id.nil?
2028
+ fail ArgumentError, "Missing the required parameter 'execution_id' when calling DurableFunctionsApi.send_durable_message"
2029
+ end
2030
+ # verify the required parameter 'send_durable_message_request' is set
2031
+ if @api_client.config.client_side_validation && send_durable_message_request.nil?
2032
+ fail ArgumentError, "Missing the required parameter 'send_durable_message_request' when calling DurableFunctionsApi.send_durable_message"
2033
+ end
2034
+ if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255
2035
+ fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DurableFunctionsApi.send_durable_message, the character length must be smaller than or equal to 255.'
2036
+ end
2037
+
2038
+ if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1
2039
+ fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DurableFunctionsApi.send_durable_message, the character length must be greater than or equal to 1.'
2040
+ end
2041
+
2042
+ # resource path
2043
+ local_var_path = '/projects/{id}/durable-functions/{functionId}/executions/{executionId}/messages'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'functionId' + '}', CGI.escape(function_id.to_s)).sub('{' + 'executionId' + '}', CGI.escape(execution_id.to_s))
2044
+
2045
+ # query parameters
2046
+ query_params = opts[:query_params] || {}
2047
+
2048
+ # header parameters
2049
+ header_params = opts[:header_params] || {}
2050
+ # HTTP header 'Accept' (if needed)
2051
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2052
+ # HTTP header 'Content-Type'
2053
+ content_type = @api_client.select_header_content_type(['application/json'])
2054
+ if !content_type.nil?
2055
+ header_params['Content-Type'] = content_type
2056
+ end
2057
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
2058
+
2059
+ # form parameters
2060
+ form_params = opts[:form_params] || {}
2061
+
2062
+ # http body (model)
2063
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(send_durable_message_request)
2064
+
2065
+ # return_type
2066
+ return_type = opts[:debug_return_type] || 'DurableMessage'
2067
+
2068
+ # auth_names
2069
+ auth_names = opts[:debug_auth_names] || ['UserToken', 'ProjectAccessToken']
2070
+
2071
+ new_options = opts.merge(
2072
+ :operation => :"DurableFunctionsApi.send_durable_message",
2073
+ :header_params => header_params,
2074
+ :query_params => query_params,
2075
+ :form_params => form_params,
2076
+ :body => post_body,
2077
+ :auth_names => auth_names,
2078
+ :return_type => return_type
2079
+ )
2080
+
2081
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2082
+ if @api_client.config.debugging
2083
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#send_durable_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2084
+ end
2085
+ return data, status_code, headers
2086
+ end
2087
+
2088
+ # Send a message to a durable execution from an application
2089
+ # Sends a named message to a running execution. The workflow receives it from `ctx.waitForMessage` with the same name. A message sent before anything waits for its name is kept, and each wait takes the oldest one, so messages arrive in the order they were sent. Messages never decide an approval: a workflow waiting in `ctx.waitForApproval` is not resumed by one. **With a service key:** any execution in the project. **With an auth user token:** an execution the user started, or one whose `X-Volcano-Client-Token` the request carries, of a durable function whose `visibility` is `authenticated` or `public`. **With an anon key:** an execution whose `X-Volcano-Client-Token` the request carries, of a function with `visibility: public`. Any other execution answers `404`, as a missing one does. Send `Idempotency-Key` to make a retry safe: a repeat with a key the same sender has used on the execution returns the first message with `200` and sends nothing.
2090
+ # @param function_id [String] Durable function ID, or its name within the project
2091
+ # @param execution_id [String] Durable execution ID
2092
+ # @param send_durable_message_request [SendDurableMessageRequest]
2093
+ # @param [Hash] opts the optional parameters
2094
+ # @option opts [String] :idempotency_key Makes a send safe to retry. A repeat with a key the same sender has used on the execution returns the first message and sends nothing. Keys of different senders never collide. Up to 255 characters.
2095
+ # @option opts [String] :x_volcano_client_token The &#x60;client_token&#x60; the execution&#39;s start returned. Lets an anon key, or a user who did not start the execution, reach it.
2096
+ # @return [DurableMessage]
2097
+ def send_durable_message_from_application(function_id, execution_id, send_durable_message_request, opts = {})
2098
+ data, _status_code, _headers = send_durable_message_from_application_with_http_info(function_id, execution_id, send_durable_message_request, opts)
2099
+ data
2100
+ end
2101
+
2102
+ # Send a message to a durable execution from an application
2103
+ # Sends a named message to a running execution. The workflow receives it from &#x60;ctx.waitForMessage&#x60; with the same name. A message sent before anything waits for its name is kept, and each wait takes the oldest one, so messages arrive in the order they were sent. Messages never decide an approval: a workflow waiting in &#x60;ctx.waitForApproval&#x60; is not resumed by one. **With a service key:** any execution in the project. **With an auth user token:** an execution the user started, or one whose &#x60;X-Volcano-Client-Token&#x60; the request carries, of a durable function whose &#x60;visibility&#x60; is &#x60;authenticated&#x60; or &#x60;public&#x60;. **With an anon key:** an execution whose &#x60;X-Volcano-Client-Token&#x60; the request carries, of a function with &#x60;visibility: public&#x60;. Any other execution answers &#x60;404&#x60;, as a missing one does. Send &#x60;Idempotency-Key&#x60; to make a retry safe: a repeat with a key the same sender has used on the execution returns the first message with &#x60;200&#x60; and sends nothing.
2104
+ # @param function_id [String] Durable function ID, or its name within the project
2105
+ # @param execution_id [String] Durable execution ID
2106
+ # @param send_durable_message_request [SendDurableMessageRequest]
2107
+ # @param [Hash] opts the optional parameters
2108
+ # @option opts [String] :idempotency_key Makes a send safe to retry. A repeat with a key the same sender has used on the execution returns the first message and sends nothing. Keys of different senders never collide. Up to 255 characters.
2109
+ # @option opts [String] :x_volcano_client_token The &#x60;client_token&#x60; the execution&#39;s start returned. Lets an anon key, or a user who did not start the execution, reach it.
2110
+ # @return [Array<(DurableMessage, Integer, Hash)>] DurableMessage data, response status code and response headers
2111
+ def send_durable_message_from_application_with_http_info(function_id, execution_id, send_durable_message_request, opts = {})
2112
+ if @api_client.config.debugging
2113
+ @api_client.config.logger.debug 'Calling API: DurableFunctionsApi.send_durable_message_from_application ...'
2114
+ end
2115
+ # verify the required parameter 'function_id' is set
2116
+ if @api_client.config.client_side_validation && function_id.nil?
2117
+ fail ArgumentError, "Missing the required parameter 'function_id' when calling DurableFunctionsApi.send_durable_message_from_application"
2118
+ end
2119
+ # verify the required parameter 'execution_id' is set
2120
+ if @api_client.config.client_side_validation && execution_id.nil?
2121
+ fail ArgumentError, "Missing the required parameter 'execution_id' when calling DurableFunctionsApi.send_durable_message_from_application"
2122
+ end
2123
+ # verify the required parameter 'send_durable_message_request' is set
2124
+ if @api_client.config.client_side_validation && send_durable_message_request.nil?
2125
+ fail ArgumentError, "Missing the required parameter 'send_durable_message_request' when calling DurableFunctionsApi.send_durable_message_from_application"
2126
+ end
2127
+ if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255
2128
+ fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DurableFunctionsApi.send_durable_message_from_application, the character length must be smaller than or equal to 255.'
2129
+ end
2130
+
2131
+ if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1
2132
+ fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DurableFunctionsApi.send_durable_message_from_application, the character length must be greater than or equal to 1.'
2133
+ end
2134
+
2135
+ if @api_client.config.client_side_validation && !opts[:'x_volcano_client_token'].nil? && opts[:'x_volcano_client_token'].to_s.length > 128
2136
+ fail ArgumentError, 'invalid value for "opts[:"x_volcano_client_token"]" when calling DurableFunctionsApi.send_durable_message_from_application, the character length must be smaller than or equal to 128.'
2137
+ end
2138
+
2139
+ # resource path
2140
+ local_var_path = '/durable-functions/{functionId}/executions/{executionId}/messages'.sub('{' + 'functionId' + '}', CGI.escape(function_id.to_s)).sub('{' + 'executionId' + '}', CGI.escape(execution_id.to_s))
2141
+
2142
+ # query parameters
2143
+ query_params = opts[:query_params] || {}
2144
+
2145
+ # header parameters
2146
+ header_params = opts[:header_params] || {}
2147
+ # HTTP header 'Accept' (if needed)
2148
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2149
+ # HTTP header 'Content-Type'
2150
+ content_type = @api_client.select_header_content_type(['application/json'])
2151
+ if !content_type.nil?
2152
+ header_params['Content-Type'] = content_type
2153
+ end
2154
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
2155
+ header_params[:'X-Volcano-Client-Token'] = opts[:'x_volcano_client_token'] if !opts[:'x_volcano_client_token'].nil?
2156
+
2157
+ # form parameters
2158
+ form_params = opts[:form_params] || {}
2159
+
2160
+ # http body (model)
2161
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(send_durable_message_request)
2162
+
2163
+ # return_type
2164
+ return_type = opts[:debug_return_type] || 'DurableMessage'
2165
+
2166
+ # auth_names
2167
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'AuthUserAccessToken', 'AnonKey']
2168
+
2169
+ new_options = opts.merge(
2170
+ :operation => :"DurableFunctionsApi.send_durable_message_from_application",
2171
+ :header_params => header_params,
2172
+ :query_params => query_params,
2173
+ :form_params => form_params,
2174
+ :body => post_body,
2175
+ :auth_names => auth_names,
2176
+ :return_type => return_type
2177
+ )
2178
+
2179
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2180
+ if @api_client.config.debugging
2181
+ @api_client.config.logger.debug "API called: DurableFunctionsApi#send_durable_message_from_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2182
+ end
2183
+ return data, status_code, headers
2184
+ end
2185
+
910
2186
  # Start a durable execution
911
2187
  # Starts an execution and returns its handle. Never returns a result: an execution can outlive any request a client could hold open, so the result is read back from `GET /projects/{id}/durable-functions/{functionId}/executions/{executionId}`. The request body is the execution's input and must be valid JSON if present. An empty body starts the execution with no input. Send `X-Volcano-Execution-Name` to make the start idempotent: repeating a start with the same name returns the existing execution instead of beginning a second one. Each execution counts against the project's durable execution allowance, the operations it performs count against the durable operations allowance when it finishes, and the number of executions in flight at once is capped by the plan.
912
2188
  # @param id [String] Project ID
@@ -996,7 +2272,7 @@ module Volcano::Generated
996
2272
  end
997
2273
 
998
2274
  # Start a durable execution from an application
999
- # Starts an execution of a durable function using an application credential, and returns its handle. This is the durable counterpart of `POST /functions/{functionId}/invoke`, and it is the endpoint an application calls. Like that one, it is not project-scoped: an anon key, a service key and an auth user token each carry their own project. The project-scoped collection under `/projects/{id}/durable-functions/...` remains the owner's management surface. **With a service key or an auth user token:** any durable function in the project. **With an anon key:** requires the `functions.invoke` permission, and the function must have `is_public: true`. Starting is all this endpoint does. Reading a result or stopping an execution requires the project owner's token, because an anon key is shared by everyone who loads the page and an execution is addressed by id alone. Send `X-Volcano-Execution-Name` to make the start idempotent: repeating a start with the same name returns the existing execution instead of beginning a second one. Each execution counts once against the project's durable execution allowance, however many times the start is retried under the same execution name, and the number in flight at once is capped by the plan. The operations the execution performs are counted against the durable operations allowance when it finishes.
2275
+ # Starts an execution of a durable function using an application credential, and returns its handle. This is the durable counterpart of `POST /functions/{functionId}/invoke`, and it is the endpoint an application calls. Like that one, it is not project-scoped: an anon key, a service key and an auth user token each carry their own project. The project-scoped collection under `/projects/{id}/durable-functions/...` remains the owner's management surface. **With a service key:** any durable function in the project. **With an auth user token:** a durable function whose `visibility` is `authenticated` or `public`. **With an anon key:** requires the `functions.invoke` permission, and the function must have `visibility: public`. A `private` durable function answers every credential but a service key exactly as a missing one, with 404. Starting is all this endpoint does. Reading a result or stopping an execution requires the project owner's token, because an anon key is shared by everyone who loads the page and an execution is addressed by id alone. Send `X-Volcano-Execution-Name` to make the start idempotent: repeating a start with the same name returns the existing execution instead of beginning a second one. Each execution counts once against the project's durable execution allowance, however many times the start is retried under the same execution name, and the number in flight at once is capped by the plan. The operations the execution performs are counted against the durable operations allowance when it finishes.
1000
2276
  # @param function_id [String] Durable function ID, or its name within the project
1001
2277
  # @param [Hash] opts the optional parameters
1002
2278
  # @option opts [String] :x_volcano_execution_name Idempotency key for this execution. Generated when omitted. A repeat under a name that already names a running execution returns that execution and is not charged again. Letters, digits, &#x60;-&#x60;, &#x60;_&#x60; and &#x60;.&#x60;, up to 255 characters. Anything else is rejected with &#x60;400&#x60;.
@@ -1008,7 +2284,7 @@ module Volcano::Generated
1008
2284
  end
1009
2285
 
1010
2286
  # Start a durable execution from an application
1011
- # Starts an execution of a durable function using an application credential, and returns its handle. This is the durable counterpart of &#x60;POST /functions/{functionId}/invoke&#x60;, and it is the endpoint an application calls. Like that one, it is not project-scoped: an anon key, a service key and an auth user token each carry their own project. The project-scoped collection under &#x60;/projects/{id}/durable-functions/...&#x60; remains the owner&#39;s management surface. **With a service key or an auth user token:** any durable function in the project. **With an anon key:** requires the &#x60;functions.invoke&#x60; permission, and the function must have &#x60;is_public: true&#x60;. Starting is all this endpoint does. Reading a result or stopping an execution requires the project owner&#39;s token, because an anon key is shared by everyone who loads the page and an execution is addressed by id alone. Send &#x60;X-Volcano-Execution-Name&#x60; to make the start idempotent: repeating a start with the same name returns the existing execution instead of beginning a second one. Each execution counts once against the project&#39;s durable execution allowance, however many times the start is retried under the same execution name, and the number in flight at once is capped by the plan. The operations the execution performs are counted against the durable operations allowance when it finishes.
2287
+ # Starts an execution of a durable function using an application credential, and returns its handle. This is the durable counterpart of &#x60;POST /functions/{functionId}/invoke&#x60;, and it is the endpoint an application calls. Like that one, it is not project-scoped: an anon key, a service key and an auth user token each carry their own project. The project-scoped collection under &#x60;/projects/{id}/durable-functions/...&#x60; remains the owner&#39;s management surface. **With a service key:** any durable function in the project. **With an auth user token:** a durable function whose &#x60;visibility&#x60; is &#x60;authenticated&#x60; or &#x60;public&#x60;. **With an anon key:** requires the &#x60;functions.invoke&#x60; permission, and the function must have &#x60;visibility: public&#x60;. A &#x60;private&#x60; durable function answers every credential but a service key exactly as a missing one, with 404. Starting is all this endpoint does. Reading a result or stopping an execution requires the project owner&#39;s token, because an anon key is shared by everyone who loads the page and an execution is addressed by id alone. Send &#x60;X-Volcano-Execution-Name&#x60; to make the start idempotent: repeating a start with the same name returns the existing execution instead of beginning a second one. Each execution counts once against the project&#39;s durable execution allowance, however many times the start is retried under the same execution name, and the number in flight at once is capped by the plan. The operations the execution performs are counted against the durable operations allowance when it finishes.
1012
2288
  # @param function_id [String] Durable function ID, or its name within the project
1013
2289
  # @param [Hash] opts the optional parameters
1014
2290
  # @option opts [String] :x_volcano_execution_name Idempotency key for this execution. Generated when omitted. A repeat under a name that already names a running execution returns that execution and is not charged again. Letters, digits, &#x60;-&#x60;, &#x60;_&#x60; and &#x60;.&#x60;, up to 255 characters. Anything else is rejected with &#x60;400&#x60;.