volcano-sdk 0.32.7 → 0.34.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 (496) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +54 -2
  3. data/lib/volcano/auth_profile_fields.rb +2 -2
  4. data/lib/volcano/client.rb +3 -2
  5. data/lib/volcano/durable.rb +7 -34
  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_models.rb +0 -4
  11. data/lib/volcano/errors.rb +5 -0
  12. data/lib/volcano/generated/lib/volcano-generated/api/anon_keys_api.rb +8 -8
  13. data/lib/volcano/generated/lib/volcano-generated/api/auth_admin_api.rb +17 -17
  14. data/lib/volcano/generated/lib/volcano-generated/api/auth_configuration_api.rb +26 -26
  15. data/lib/volcano/generated/lib/volcano-generated/api/authentication_api.rb +4 -4
  16. data/lib/volcano/generated/lib/volcano-generated/api/database_backups_api.rb +11 -11
  17. data/lib/volcano/generated/lib/volcano-generated/api/database_branches_api.rb +9 -9
  18. data/lib/volcano/generated/lib/volcano-generated/api/database_queries_api.rb +4 -4
  19. data/lib/volcano/generated/lib/volcano-generated/api/databases_api.rb +18 -18
  20. data/lib/volcano/generated/lib/volcano-generated/api/durable_functions_api.rb +559 -8
  21. data/lib/volcano/generated/lib/volcano-generated/api/frontends_api.rb +337 -21
  22. data/lib/volcano/generated/lib/volcano-generated/api/functions_api.rb +33 -27
  23. data/lib/volcano/generated/lib/volcano-generated/api/git_connections_api.rb +19 -11
  24. data/lib/volcano/generated/lib/volcano-generated/api/locks_api.rb +2 -2
  25. data/lib/volcano/generated/lib/volcano-generated/api/logs_api.rb +11 -11
  26. data/lib/volcano/generated/lib/volcano-generated/api/o_auth_authentication_api.rb +2 -2
  27. data/lib/volcano/generated/lib/volcano-generated/api/o_auth_configuration_api.rb +8 -8
  28. data/lib/volcano/generated/lib/volcano-generated/api/project_access_tokens_api.rb +479 -0
  29. data/lib/volcano/generated/lib/volcano-generated/api/project_imports_api.rb +10 -2
  30. data/lib/volcano/generated/lib/volcano-generated/api/projects_api.rb +110 -30
  31. data/lib/volcano/generated/lib/volcano-generated/api/realtime_api.rb +5 -5
  32. data/lib/volcano/generated/lib/volcano-generated/api/sandboxes_api.rb +1792 -0
  33. data/lib/volcano/generated/lib/volcano-generated/api/service_keys_api.rb +9 -9
  34. data/lib/volcano/generated/lib/volcano-generated/api/storage_admin_api.rb +4 -4
  35. data/lib/volcano/generated/lib/volcano-generated/api/storage_buckets_api.rb +7 -7
  36. data/lib/volcano/generated/lib/volcano-generated/api/storage_objects_api.rb +2 -2
  37. data/lib/volcano/generated/lib/volcano-generated/api/storage_policies_api.rb +5 -5
  38. data/lib/volcano/generated/lib/volcano-generated/api/system_api.rb +310 -2
  39. data/lib/volcano/generated/lib/volcano-generated/api/variables_api.rb +13 -13
  40. data/lib/volcano/generated/lib/volcano-generated/api/verified_domains_api.rb +214 -0
  41. data/lib/volcano/generated/lib/volcano-generated/api_client.rb +2 -2
  42. data/lib/volcano/generated/lib/volcano-generated/api_error.rb +2 -2
  43. data/lib/volcano/generated/lib/volcano-generated/api_model_base.rb +2 -2
  44. data/lib/volcano/generated/lib/volcano-generated/configuration.rb +11 -3
  45. data/lib/volcano/generated/lib/volcano-generated/models/anon_key.rb +2 -2
  46. data/lib/volcano/generated/lib/volcano-generated/models/auth_config.rb +2 -2
  47. data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email200_response.rb +2 -2
  48. data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email_change200_response.rb +2 -2
  49. data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email_change_request.rb +2 -2
  50. data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email_request.rb +2 -2
  51. data/lib/volcano/generated/lib/volcano-generated/models/auth_convert_anonymous200_response.rb +2 -2
  52. data/lib/volcano/generated/lib/volcano-generated/models/auth_device_authorize_request.rb +2 -2
  53. data/lib/volcano/generated/lib/volcano-generated/models/auth_device_token_request.rb +2 -2
  54. data/lib/volcano/generated/lib/volcano-generated/models/auth_device_verify200_response.rb +2 -2
  55. data/lib/volcano/generated/lib/volcano-generated/models/auth_device_verify_request.rb +2 -2
  56. data/lib/volcano/generated/lib/volcano-generated/models/auth_forgot_password200_response.rb +2 -2
  57. data/lib/volcano/generated/lib/volcano-generated/models/auth_forgot_password_request.rb +2 -2
  58. data/lib/volcano/generated/lib/volcano-generated/models/auth_get_my_sessions200_response.rb +2 -2
  59. data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page.rb +2 -2
  60. data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page_defaults.rb +2 -2
  61. data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page_response.rb +2 -2
  62. data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page_runtime.rb +2 -2
  63. data/lib/volcano/generated/lib/volcano-generated/models/auth_identities_response.rb +2 -2
  64. data/lib/volcano/generated/lib/volcano-generated/models/auth_identity.rb +2 -2
  65. data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_interval.rb +2 -2
  66. data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_response.rb +2 -2
  67. data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_series_point.rb +67 -4
  68. data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_summary.rb +77 -5
  69. data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_window.rb +2 -2
  70. data/lib/volcano/generated/lib/volcano-generated/models/auth_link_o_auth_provider200_response.rb +2 -2
  71. data/lib/volcano/generated/lib/volcano-generated/models/auth_list_o_auth_providers200_response.rb +2 -2
  72. data/lib/volcano/generated/lib/volcano-generated/models/auth_list_o_auth_providers200_response_providers_inner.rb +2 -2
  73. data/lib/volcano/generated/lib/volcano-generated/models/auth_method_summary.rb +2 -2
  74. data/lib/volcano/generated/lib/volcano-generated/models/auth_methods_response.rb +2 -2
  75. data/lib/volcano/generated/lib/volcano-generated/models/auth_o_auth_exchange_request.rb +2 -2
  76. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_appearance_defaults.rb +2 -2
  77. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_appearance_options.rb +2 -2
  78. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_appearance_response.rb +2 -2
  79. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_density.rb +2 -2
  80. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_font.rb +2 -2
  81. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_layout.rb +2 -2
  82. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_radius.rb +2 -2
  83. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_scale.rb +2 -2
  84. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_theme.rb +2 -2
  85. data/lib/volcano/generated/lib/volcano-generated/models/auth_page_theme_colors.rb +2 -2
  86. data/lib/volcano/generated/lib/volcano-generated/models/auth_password_policy.rb +2 -2
  87. data/lib/volcano/generated/lib/volcano-generated/models/auth_platform_exchange_request.rb +2 -2
  88. data/lib/volcano/generated/lib/volcano-generated/models/auth_refresh_request.rb +2 -2
  89. data/lib/volcano/generated/lib/volcano-generated/models/auth_request_email_change200_response.rb +2 -2
  90. data/lib/volcano/generated/lib/volcano-generated/models/auth_request_email_change_request.rb +2 -2
  91. data/lib/volcano/generated/lib/volcano-generated/models/auth_reset_password200_response.rb +2 -2
  92. data/lib/volcano/generated/lib/volcano-generated/models/auth_reset_password_request.rb +2 -2
  93. data/lib/volcano/generated/lib/volcano-generated/models/auth_session.rb +2 -2
  94. data/lib/volcano/generated/lib/volcano-generated/models/auth_signin_request.rb +2 -2
  95. data/lib/volcano/generated/lib/volcano-generated/models/auth_signup_anonymous_request.rb +2 -2
  96. data/lib/volcano/generated/lib/volcano-generated/models/auth_signup_request.rb +2 -2
  97. data/lib/volcano/generated/lib/volcano-generated/models/auth_signup_response.rb +2 -2
  98. data/lib/volcano/generated/lib/volcano-generated/models/auth_token_response.rb +2 -2
  99. data/lib/volcano/generated/lib/volcano-generated/models/auth_update_user_request.rb +2 -2
  100. data/lib/volcano/generated/lib/volcano-generated/models/auth_user.rb +2 -2
  101. data/lib/volcano/generated/lib/volcano-generated/models/ban_auth_user_request.rb +2 -2
  102. data/lib/volcano/generated/lib/volcano-generated/models/ban_user_response.rb +2 -2
  103. data/lib/volcano/generated/lib/volcano-generated/models/batch_function_deploy_failure.rb +2 -2
  104. data/lib/volcano/generated/lib/volcano-generated/models/batch_function_deploy_response.rb +2 -2
  105. data/lib/volcano/generated/lib/volcano-generated/models/byoc_project_config_frontend_custom_domain_tls_config.rb +270 -0
  106. data/lib/volcano/generated/lib/volcano-generated/models/byoc_project_config_frontend_custom_domain_tls_config_not.rb +102 -0
  107. data/lib/volcano/generated/lib/volcano-generated/models/call_mcp200_response.rb +220 -0
  108. data/lib/volcano/generated/lib/volcano-generated/models/call_mcp200_response_error.rb +190 -0
  109. data/lib/volcano/generated/lib/volcano-generated/models/call_mcp200_response_id.rb +105 -0
  110. data/lib/volcano/generated/lib/volcano-generated/models/call_mcp_request.rb +236 -0
  111. data/lib/volcano/generated/lib/volcano-generated/models/call_mcp_request_id.rb +105 -0
  112. data/lib/volcano/generated/lib/volcano-generated/models/call_o_auth_provider_api200_response.rb +2 -2
  113. data/lib/volcano/generated/lib/volcano-generated/models/call_o_auth_provider_api_request.rb +2 -2
  114. data/lib/volcano/generated/lib/volcano-generated/models/complete_upload_session_response.rb +2 -2
  115. data/lib/volcano/generated/lib/volcano-generated/models/configure_auth_methods_request.rb +2 -2
  116. data/lib/volcano/generated/lib/volcano-generated/models/configure_auth_methods_request_oauth_providers_inner.rb +2 -2
  117. data/lib/volcano/generated/lib/volcano-generated/models/connect_project_git_request.rb +2 -2
  118. data/lib/volcano/generated/lib/volcano-generated/models/create_anon_key_request.rb +2 -2
  119. data/lib/volcano/generated/lib/volcano-generated/models/create_database_backup_request.rb +2 -2
  120. data/lib/volcano/generated/lib/volcano-generated/models/create_database_branch_request.rb +2 -2
  121. data/lib/volcano/generated/lib/volcano-generated/models/create_database_request.rb +6 -6
  122. data/lib/volcano/generated/lib/volcano-generated/models/create_database_restore_request.rb +2 -2
  123. data/lib/volcano/generated/lib/volcano-generated/models/create_email_template_request.rb +2 -2
  124. data/lib/volcano/generated/lib/volcano-generated/models/create_frontend_custom_domain_request.rb +12 -3
  125. data/lib/volcano/generated/lib/volcano-generated/models/create_frontend_function_route_request.rb +230 -0
  126. data/lib/volcano/generated/lib/volcano-generated/models/create_function_scheduler_request.rb +2 -2
  127. data/lib/volcano/generated/lib/volcano-generated/models/create_o_auth_config_request.rb +2 -2
  128. data/lib/volcano/generated/lib/volcano-generated/models/create_project_access_token_request.rb +241 -0
  129. data/lib/volcano/generated/lib/volcano-generated/models/create_project_request.rb +57 -3
  130. data/lib/volcano/generated/lib/volcano-generated/models/create_sandbox_session_request.rb +292 -0
  131. data/lib/volcano/generated/lib/volcano-generated/models/create_sandbox_template_request.rb +247 -0
  132. data/lib/volcano/generated/lib/volcano-generated/models/create_service_key_request.rb +2 -2
  133. data/lib/volcano/generated/lib/volcano-generated/models/create_storage_bucket_request.rb +2 -2
  134. data/lib/volcano/generated/lib/volcano-generated/models/create_storage_policy_request.rb +2 -2
  135. data/lib/volcano/generated/lib/volcano-generated/models/create_upload_session_request.rb +2 -2
  136. data/lib/volcano/generated/lib/volcano-generated/models/create_upload_session_response.rb +2 -2
  137. data/lib/volcano/generated/lib/volcano-generated/models/create_variable_request.rb +3 -2
  138. data/lib/volcano/generated/lib/volcano-generated/models/created_project_access_token.rb +459 -0
  139. data/lib/volcano/generated/lib/volcano-generated/models/database.rb +2 -2
  140. data/lib/volcano/generated/lib/volcano-generated/models/database_backup.rb +2 -2
  141. data/lib/volcano/generated/lib/volcano-generated/models/database_backup_list.rb +2 -2
  142. data/lib/volcano/generated/lib/volcano-generated/models/database_backup_schedule.rb +2 -2
  143. data/lib/volcano/generated/lib/volcano-generated/models/database_backup_schedule_entry.rb +2 -2
  144. data/lib/volcano/generated/lib/volcano-generated/models/database_branch.rb +2 -2
  145. data/lib/volcano/generated/lib/volcano-generated/models/database_branch_list.rb +2 -2
  146. data/lib/volcano/generated/lib/volcano-generated/models/database_branch_storage.rb +2 -2
  147. data/lib/volcano/generated/lib/volcano-generated/models/database_delete_request.rb +2 -2
  148. data/lib/volcano/generated/lib/volcano-generated/models/database_insert_request.rb +3 -3
  149. data/lib/volcano/generated/lib/volcano-generated/models/database_query_filter.rb +2 -2
  150. data/lib/volcano/generated/lib/volcano-generated/models/database_query_filter_value.rb +3 -3
  151. data/lib/volcano/generated/lib/volcano-generated/models/database_query_filter_value_one_of_inner.rb +3 -3
  152. data/lib/volcano/generated/lib/volcano-generated/models/database_query_order.rb +2 -2
  153. data/lib/volcano/generated/lib/volcano-generated/models/database_query_performance_database.rb +2 -2
  154. data/lib/volcano/generated/lib/volcano-generated/models/database_query_performance_item.rb +4 -4
  155. data/lib/volcano/generated/lib/volcano-generated/models/database_query_performance_response.rb +2 -2
  156. data/lib/volcano/generated/lib/volcano-generated/models/database_query_result.rb +2 -2
  157. data/lib/volcano/generated/lib/volcano-generated/models/database_restore.rb +2 -2
  158. data/lib/volcano/generated/lib/volcano-generated/models/database_restore_list.rb +2 -2
  159. data/lib/volcano/generated/lib/volcano-generated/models/database_restore_window.rb +2 -2
  160. data/lib/volcano/generated/lib/volcano-generated/models/database_select_request.rb +2 -2
  161. data/lib/volcano/generated/lib/volcano-generated/models/database_stats.rb +2 -2
  162. data/lib/volcano/generated/lib/volcano-generated/models/database_update_request.rb +3 -3
  163. data/lib/volcano/generated/lib/volcano-generated/models/delete_database202_response.rb +2 -2
  164. data/lib/volcano/generated/lib/volcano-generated/models/delete_database_backup200_response.rb +2 -2
  165. data/lib/volcano/generated/lib/volcano-generated/models/delete_database_branch202_response.rb +2 -2
  166. data/lib/volcano/generated/lib/volcano-generated/models/deployment_phase.rb +2 -2
  167. data/lib/volcano/generated/lib/volcano-generated/models/deployment_progress.rb +2 -2
  168. data/lib/volcano/generated/lib/volcano-generated/models/deployment_reference.rb +2 -2
  169. data/lib/volcano/generated/lib/volcano-generated/models/device_authorization_response.rb +2 -2
  170. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval.rb +406 -0
  171. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_counts.rb +295 -0
  172. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_daily_counts.rb +190 -0
  173. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_decider.rb +191 -0
  174. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_decision.rb +203 -0
  175. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_decision_request.rb +167 -0
  176. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_execution.rb +211 -0
  177. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_function.rb +177 -0
  178. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_function_counts.rb +190 -0
  179. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_registration.rb +225 -0
  180. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_stats.rb +339 -0
  181. data/lib/volcano/generated/lib/volcano-generated/models/durable_approval_status.rb +43 -0
  182. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution.rb +2 -2
  183. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_error.rb +2 -2
  184. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_invocation.rb +191 -0
  185. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_operation.rb +372 -0
  186. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_operation_attempt.rb +271 -0
  187. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_operation_list.rb +234 -0
  188. data/lib/volcano/generated/lib/volcano-generated/models/durable_execution_status.rb +2 -2
  189. data/lib/volcano/generated/lib/volcano-generated/models/durable_function.rb +31 -4
  190. data/lib/volcano/generated/lib/volcano-generated/models/durable_function_config.rb +2 -2
  191. data/lib/volcano/generated/lib/volcano-generated/models/email_template.rb +2 -2
  192. data/lib/volcano/generated/lib/volcano-generated/models/error.rb +2 -2
  193. data/lib/volcano/generated/lib/volcano-generated/models/export_project_source_request.rb +2 -2
  194. data/lib/volcano/generated/lib/volcano-generated/models/frontend.rb +85 -3
  195. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_conflict_error.rb +191 -0
  196. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_response.rb +27 -5
  197. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_tls_config.rb +42 -18
  198. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_tls_config_not.rb +103 -0
  199. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_tls_config_not_any_of.rb +188 -0
  200. data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_tls_config_not_any_of1.rb +188 -0
  201. data/lib/volcano/generated/lib/volcano-generated/models/frontend_deployment.rb +24 -68
  202. data/lib/volcano/generated/lib/volcano-generated/models/frontend_domain_routing_record.rb +2 -2
  203. data/lib/volcano/generated/lib/volcano-generated/models/frontend_domain_verification_record.rb +3 -2
  204. data/lib/volcano/generated/lib/volcano-generated/models/frontend_function_route.rb +375 -0
  205. data/lib/volcano/generated/lib/volcano-generated/models/frontend_function_route_list.rb +166 -0
  206. data/lib/volcano/generated/lib/volcano-generated/models/frontend_usage_daily_entry.rb +2 -2
  207. data/lib/volcano/generated/lib/volcano-generated/models/frontend_usage_data.rb +2 -2
  208. data/lib/volcano/generated/lib/volcano-generated/models/frontend_usage_history_response.rb +2 -2
  209. data/lib/volcano/generated/lib/volcano-generated/models/function.rb +31 -14
  210. data/lib/volcano/generated/lib/volcano-generated/models/function_deployment.rb +24 -50
  211. data/lib/volcano/generated/lib/volcano-generated/models/function_http_auth_mode.rb +2 -2
  212. data/lib/volcano/generated/lib/volcano-generated/models/function_invocation_mode.rb +2 -2
  213. data/lib/volcano/generated/lib/volcano-generated/models/function_invocation_request.rb +2 -2
  214. data/lib/volcano/generated/lib/volcano-generated/models/function_kind.rb +2 -2
  215. data/lib/volcano/generated/lib/volcano-generated/models/function_kind_filter.rb +40 -0
  216. data/lib/volcano/generated/lib/volcano-generated/models/function_region.rb +2 -2
  217. data/lib/volcano/generated/lib/volcano-generated/models/function_runtime_deployment.rb +2 -2
  218. data/lib/volcano/generated/lib/volcano-generated/models/function_runtime_option.rb +30 -3
  219. data/lib/volcano/generated/lib/volcano-generated/models/function_runtimes_response.rb +2 -2
  220. data/lib/volcano/generated/lib/volcano-generated/models/function_scheduler.rb +2 -2
  221. data/lib/volcano/generated/lib/volcano-generated/models/function_scheduler_list_response.rb +2 -2
  222. data/lib/volcano/generated/lib/volcano-generated/models/function_visibility.rb +41 -0
  223. data/lib/volcano/generated/lib/volcano-generated/models/get_auth_methods200_response.rb +2 -2
  224. data/lib/volcano/generated/lib/volcano-generated/models/get_auth_methods200_response_email_password.rb +2 -2
  225. data/lib/volcano/generated/lib/volcano-generated/models/get_auth_methods200_response_oauth_providers_inner.rb +2 -2
  226. data/lib/volcano/generated/lib/volcano-generated/models/git_connect_start_response.rb +2 -2
  227. data/lib/volcano/generated/lib/volcano-generated/models/git_connection.rb +2 -2
  228. data/lib/volcano/generated/lib/volcano-generated/models/git_connections_response.rb +2 -2
  229. data/lib/volcano/generated/lib/volcano-generated/models/git_installation.rb +2 -2
  230. data/lib/volcano/generated/lib/volcano-generated/models/git_installations_response.rb +2 -2
  231. data/lib/volcano/generated/lib/volcano-generated/models/git_repositories_response.rb +2 -2
  232. data/lib/volcano/generated/lib/volcano-generated/models/git_repository.rb +2 -2
  233. data/lib/volcano/generated/lib/volcano-generated/models/hosted_auth_page_type.rb +2 -2
  234. data/lib/volcano/generated/lib/volcano-generated/models/hosted_login_email_check_request.rb +2 -2
  235. data/lib/volcano/generated/lib/volcano-generated/models/hosted_login_email_check_response.rb +2 -2
  236. data/lib/volcano/generated/lib/volcano-generated/models/hosted_login_options_response.rb +2 -2
  237. data/lib/volcano/generated/lib/volcano-generated/models/hosted_renderable_page_type.rb +2 -2
  238. data/lib/volcano/generated/lib/volcano-generated/models/import_connect_start_response.rb +2 -2
  239. data/lib/volcano/generated/lib/volcano-generated/models/import_connection.rb +2 -2
  240. data/lib/volcano/generated/lib/volcano-generated/models/import_connections_response.rb +2 -2
  241. data/lib/volcano/generated/lib/volcano-generated/models/import_provider.rb +2 -2
  242. data/lib/volcano/generated/lib/volcano-generated/models/import_source.rb +2 -2
  243. data/lib/volcano/generated/lib/volcano-generated/models/import_sources_response.rb +2 -2
  244. data/lib/volcano/generated/lib/volcano-generated/models/list_anon_keys200_response.rb +2 -2
  245. data/lib/volcano/generated/lib/volcano-generated/models/list_available_o_auth_providers200_response.rb +2 -2
  246. data/lib/volcano/generated/lib/volcano-generated/models/list_available_o_auth_providers200_response_providers_inner.rb +2 -2
  247. data/lib/volcano/generated/lib/volcano-generated/models/list_database_regions200_response_inner.rb +2 -2
  248. data/lib/volcano/generated/lib/volcano-generated/models/list_email_templates200_response.rb +2 -2
  249. data/lib/volcano/generated/lib/volcano-generated/models/list_o_auth_configs200_response.rb +2 -2
  250. data/lib/volcano/generated/lib/volcano-generated/models/list_postgres_versions200_response_inner.rb +14 -4
  251. data/lib/volcano/generated/lib/volcano-generated/models/list_storage_buckets200_response.rb +3 -3
  252. data/lib/volcano/generated/lib/volcano-generated/models/list_storage_objects_admin200_response.rb +2 -2
  253. data/lib/volcano/generated/lib/volcano-generated/models/live_log_level.rb +2 -2
  254. data/lib/volcano/generated/lib/volcano-generated/models/log_activity_bucket.rb +5 -5
  255. data/lib/volcano/generated/lib/volcano-generated/models/log_activity_bucket_counts.rb +2 -2
  256. data/lib/volcano/generated/lib/volcano-generated/models/log_activity_request.rb +5 -5
  257. data/lib/volcano/generated/lib/volcano-generated/models/log_activity_response.rb +2 -2
  258. data/lib/volcano/generated/lib/volcano-generated/models/log_database_request_resource.rb +2 -2
  259. data/lib/volcano/generated/lib/volcano-generated/models/log_deployment.rb +2 -2
  260. data/lib/volcano/generated/lib/volcano-generated/models/log_deployment_request_selector.rb +2 -2
  261. data/lib/volcano/generated/lib/volcano-generated/models/log_event.rb +2 -2
  262. data/lib/volcano/generated/lib/volcano-generated/models/log_event_body.rb +3 -3
  263. data/lib/volcano/generated/lib/volcano-generated/models/log_frontend_request_resource.rb +2 -2
  264. data/lib/volcano/generated/lib/volcano-generated/models/log_function_request_resource.rb +13 -3
  265. data/lib/volcano/generated/lib/volcano-generated/models/log_request_resource.rb +3 -3
  266. data/lib/volcano/generated/lib/volcano-generated/models/log_resource.rb +2 -2
  267. data/lib/volcano/generated/lib/volcano-generated/models/log_search_event.rb +2 -2
  268. data/lib/volcano/generated/lib/volcano-generated/models/log_search_request.rb +2 -2
  269. data/lib/volcano/generated/lib/volcano-generated/models/log_search_response.rb +4 -4
  270. data/lib/volcano/generated/lib/volcano-generated/models/log_stream_request.rb +2 -2
  271. data/lib/volcano/generated/lib/volcano-generated/models/managed_project_config_frontend_custom_domain_tls_config.rb +189 -0
  272. data/lib/volcano/generated/lib/volcano-generated/models/metric_usage_data.rb +3 -3
  273. data/lib/volcano/generated/lib/volcano-generated/models/o_auth_config.rb +2 -2
  274. data/lib/volcano/generated/lib/volcano-generated/models/o_auth_error_response.rb +2 -2
  275. data/lib/volcano/generated/lib/volcano-generated/models/paginated_auth_users.rb +2 -2
  276. data/lib/volcano/generated/lib/volcano-generated/models/paginated_databases.rb +2 -2
  277. data/lib/volcano/generated/lib/volcano-generated/models/paginated_durable_approvals.rb +274 -0
  278. data/lib/volcano/generated/lib/volcano-generated/models/paginated_durable_executions.rb +2 -2
  279. data/lib/volcano/generated/lib/volcano-generated/models/paginated_durable_functions.rb +2 -2
  280. data/lib/volcano/generated/lib/volcano-generated/models/paginated_frontend_deployments.rb +2 -2
  281. data/lib/volcano/generated/lib/volcano-generated/models/paginated_frontends.rb +2 -2
  282. data/lib/volcano/generated/lib/volcano-generated/models/paginated_function_deployments.rb +2 -2
  283. data/lib/volcano/generated/lib/volcano-generated/models/paginated_functions.rb +2 -2
  284. data/lib/volcano/generated/lib/volcano-generated/models/paginated_project_access_tokens.rb +279 -0
  285. data/lib/volcano/generated/lib/volcano-generated/models/paginated_project_custom_domains.rb +2 -2
  286. data/lib/volcano/generated/lib/volcano-generated/models/paginated_project_deployments.rb +2 -2
  287. data/lib/volcano/generated/lib/volcano-generated/models/paginated_projects.rb +2 -2
  288. data/lib/volcano/generated/lib/volcano-generated/models/paginated_service_keys.rb +2 -2
  289. data/lib/volcano/generated/lib/volcano-generated/models/paginated_storage_buckets.rb +2 -2
  290. data/lib/volcano/generated/lib/volcano-generated/models/paginated_variables.rb +2 -2
  291. data/lib/volcano/generated/lib/volcano-generated/models/platform_exchange_response.rb +2 -2
  292. data/lib/volcano/generated/lib/volcano-generated/models/preview_auth_page_request.rb +2 -2
  293. data/lib/volcano/generated/lib/volcano-generated/models/preview_auth_page_response.rb +2 -2
  294. data/lib/volcano/generated/lib/volcano-generated/models/project.rb +13 -13
  295. data/lib/volcano/generated/lib/volcano-generated/models/project_access_token.rb +426 -0
  296. data/lib/volcano/generated/lib/volcano-generated/models/project_access_token_scope.rb +40 -0
  297. data/lib/volcano/generated/lib/volcano-generated/models/project_access_token_usage.rb +299 -0
  298. data/lib/volcano/generated/lib/volcano-generated/models/project_access_token_usage_daily_entry.rb +191 -0
  299. data/lib/volcano/generated/lib/volcano-generated/models/project_config.rb +40 -6
  300. data/lib/volcano/generated/lib/volcano-generated/models/project_config_apply_result.rb +2 -2
  301. data/lib/volcano/generated/lib/volcano-generated/models/project_config_apply_result_entry.rb +2 -2
  302. data/lib/volcano/generated/lib/volcano-generated/models/project_config_apply_summary.rb +2 -2
  303. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth.rb +2 -2
  304. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_cors.rb +2 -2
  305. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email.rb +2 -2
  306. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_from.rb +2 -2
  307. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_password_provider.rb +2 -2
  308. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_smtp.rb +2 -2
  309. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_verification.rb +2 -2
  310. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_managed_pages.rb +2 -2
  311. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_page_appearance.rb +2 -2
  312. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_page_layouts.rb +2 -2
  313. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_password.rb +2 -2
  314. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_password_reset.rb +2 -2
  315. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_providers.rb +2 -2
  316. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_rate_limits.rb +2 -2
  317. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_redirects.rb +2 -2
  318. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_sessions.rb +2 -2
  319. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_signup.rb +2 -2
  320. data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_tokens.rb +2 -2
  321. data/lib/volcano/generated/lib/volcano-generated/models/project_config_bucket.rb +2 -2
  322. data/lib/volcano/generated/lib/volcano-generated/models/project_config_bucket_policy.rb +2 -2
  323. data/lib/volcano/generated/lib/volcano-generated/models/project_config_custom_domain.rb +14 -5
  324. data/lib/volcano/generated/lib/volcano-generated/models/project_config_database.rb +6 -6
  325. data/lib/volcano/generated/lib/volcano-generated/models/project_config_email_template.rb +2 -2
  326. data/lib/volcano/generated/lib/volcano-generated/models/project_config_email_templates.rb +2 -2
  327. data/lib/volcano/generated/lib/volcano-generated/models/project_config_frontend.rb +103 -6
  328. data/lib/volcano/generated/lib/volcano-generated/models/project_config_frontend_custom_domain_tls_config.rb +105 -0
  329. data/lib/volcano/generated/lib/volcano-generated/models/project_config_frontend_function_route.rb +240 -0
  330. data/lib/volcano/generated/lib/volcano-generated/models/project_config_function.rb +13 -4
  331. data/lib/volcano/generated/lib/volcano-generated/models/project_config_hosted_page.rb +2 -2
  332. data/lib/volcano/generated/lib/volcano-generated/models/project_config_hosted_pages.rb +2 -2
  333. data/lib/volcano/generated/lib/volcano-generated/models/project_config_missing_resource.rb +4 -4
  334. data/lib/volcano/generated/lib/volcano-generated/models/project_config_o_auth_provider.rb +2 -2
  335. data/lib/volcano/generated/lib/volcano-generated/models/project_config_project.rb +2 -2
  336. data/lib/volcano/generated/lib/volcano-generated/models/project_config_realtime.rb +2 -2
  337. data/lib/volcano/generated/lib/volcano-generated/models/project_config_sandbox.rb +327 -0
  338. data/lib/volcano/generated/lib/volcano-generated/models/project_config_scheduler.rb +2 -2
  339. data/lib/volcano/generated/lib/volcano-generated/models/project_config_skipped_resource.rb +4 -4
  340. data/lib/volcano/generated/lib/volcano-generated/models/project_config_validation_error.rb +2 -2
  341. data/lib/volcano/generated/lib/volcano-generated/models/project_config_validation_error_response.rb +2 -2
  342. data/lib/volcano/generated/lib/volcano-generated/models/project_config_variable.rb +3 -2
  343. data/lib/volcano/generated/lib/volcano-generated/models/project_deployment.rb +3 -12
  344. data/lib/volcano/generated/lib/volcano-generated/models/project_deployment_resource.rb +2 -2
  345. data/lib/volcano/generated/lib/volcano-generated/models/project_deployment_summary.rb +3 -3
  346. data/lib/volcano/generated/lib/volcano-generated/models/project_frontend_custom_domain.rb +27 -5
  347. data/lib/volcano/generated/lib/volcano-generated/models/project_frontend_custom_domain_all_of_frontend.rb +2 -2
  348. data/lib/volcano/generated/lib/volcano-generated/models/project_git_connection.rb +2 -2
  349. data/lib/volcano/generated/lib/volcano-generated/models/project_git_connection_summary.rb +2 -2
  350. data/lib/volcano/generated/lib/volcano-generated/models/project_git_deploy_settings.rb +2 -2
  351. data/lib/volcano/generated/lib/volcano-generated/models/project_health_category.rb +2 -2
  352. data/lib/volcano/generated/lib/volcano-generated/models/project_health_check.rb +2 -2
  353. data/lib/volcano/generated/lib/volcano-generated/models/project_health_data_status.rb +2 -2
  354. data/lib/volcano/generated/lib/volcano-generated/models/project_health_evidence.rb +2 -2
  355. data/lib/volcano/generated/lib/volcano-generated/models/project_health_resource.rb +2 -2
  356. data/lib/volcano/generated/lib/volcano-generated/models/project_health_response.rb +2 -2
  357. data/lib/volcano/generated/lib/volcano-generated/models/project_health_scope.rb +2 -2
  358. data/lib/volcano/generated/lib/volcano-generated/models/project_health_status.rb +2 -2
  359. data/lib/volcano/generated/lib/volcano-generated/models/project_health_summary.rb +2 -2
  360. data/lib/volcano/generated/lib/volcano-generated/models/project_import_action.rb +2 -2
  361. data/lib/volcano/generated/lib/volcano-generated/models/project_import_action_code.rb +2 -2
  362. data/lib/volcano/generated/lib/volcano-generated/models/project_import_destination.rb +2 -2
  363. data/lib/volcano/generated/lib/volcano-generated/models/project_import_destination_mode.rb +2 -2
  364. data/lib/volcano/generated/lib/volcano-generated/models/project_import_disposition.rb +2 -2
  365. data/lib/volcano/generated/lib/volcano-generated/models/project_import_finding.rb +2 -2
  366. data/lib/volcano/generated/lib/volcano-generated/models/project_import_impact.rb +2 -2
  367. data/lib/volcano/generated/lib/volcano-generated/models/project_import_preflight_request.rb +2 -2
  368. data/lib/volcano/generated/lib/volcano-generated/models/project_import_readiness.rb +2 -2
  369. data/lib/volcano/generated/lib/volcano-generated/models/project_import_report.rb +2 -2
  370. data/lib/volcano/generated/lib/volcano-generated/models/project_import_resource.rb +2 -2
  371. data/lib/volcano/generated/lib/volcano-generated/models/project_import_resource_kind.rb +2 -2
  372. data/lib/volcano/generated/lib/volcano-generated/models/project_import_run.rb +2 -2
  373. data/lib/volcano/generated/lib/volcano-generated/models/project_import_run_status.rb +2 -2
  374. data/lib/volcano/generated/lib/volcano-generated/models/project_import_start_request.rb +2 -2
  375. data/lib/volcano/generated/lib/volcano-generated/models/project_import_summary.rb +2 -2
  376. data/lib/volcano/generated/lib/volcano-generated/models/project_import_target.rb +2 -2
  377. data/lib/volcano/generated/lib/volcano-generated/models/project_lock_lease.rb +2 -2
  378. data/lib/volcano/generated/lib/volcano-generated/models/project_lock_lease_request.rb +2 -2
  379. data/lib/volcano/generated/lib/volcano-generated/models/project_lock_state.rb +2 -2
  380. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_data_status.rb +2 -2
  381. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_dimensions.rb +2 -2
  382. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_group_by.rb +2 -2
  383. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_metric.rb +2 -2
  384. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query.rb +2 -2
  385. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query_request.rb +2 -2
  386. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query_response.rb +2 -2
  387. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query_time_range.rb +2 -2
  388. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_result.rb +2 -2
  389. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_unit.rb +2 -2
  390. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_value.rb +2 -2
  391. data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_window.rb +2 -2
  392. data/lib/volcano/generated/lib/volcano-generated/models/project_source_export.rb +2 -2
  393. data/lib/volcano/generated/lib/volcano-generated/models/project_source_export_omission.rb +2 -2
  394. data/lib/volcano/generated/lib/volcano-generated/models/project_source_export_skip.rb +2 -2
  395. data/lib/volcano/generated/lib/volcano-generated/models/project_source_export_state.rb +2 -2
  396. data/lib/volcano/generated/lib/volcano-generated/models/project_template_installation.rb +217 -0
  397. data/lib/volcano/generated/lib/volcano-generated/models/project_usage_response.rb +2 -2
  398. data/lib/volcano/generated/lib/volcano-generated/models/publish_sandbox_preset_request.rb +268 -0
  399. data/lib/volcano/generated/lib/volcano-generated/models/realtime_config.rb +2 -2
  400. data/lib/volcano/generated/lib/volcano-generated/models/realtime_plan_limits.rb +2 -2
  401. data/lib/volcano/generated/lib/volcano-generated/models/realtime_stats.rb +2 -2
  402. data/lib/volcano/generated/lib/volcano-generated/models/refresh_o_auth_provider_token200_response.rb +2 -2
  403. data/lib/volcano/generated/lib/volcano-generated/models/replace_frontend_shared_variables_request.rb +237 -0
  404. data/lib/volcano/generated/lib/volcano-generated/models/replace_shared_variables_request.rb +2 -2
  405. data/lib/volcano/generated/lib/volcano-generated/models/request_durable_approval_request.rb +355 -0
  406. data/lib/volcano/generated/lib/volcano-generated/models/reset_database_password200_response.rb +2 -2
  407. data/lib/volcano/generated/lib/volcano-generated/models/resolve_function_response.rb +13 -3
  408. data/lib/volcano/generated/lib/volcano-generated/models/resource_reference.rb +2 -2
  409. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_access.rb +216 -0
  410. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_access_request.rb +221 -0
  411. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_build_log_page.rb +176 -0
  412. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_build_log_page_data_inner.rb +190 -0
  413. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_capacity.rb +199 -0
  414. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_capacity_list.rb +166 -0
  415. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_command_request.rb +251 -0
  416. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_command_result.rb +294 -0
  417. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_deployment.rb +242 -0
  418. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_deployment_page.rb +192 -0
  419. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_execution_request.rb +329 -0
  420. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_execution_result.rb +381 -0
  421. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_file_read_request.rb +182 -0
  422. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_file_result.rb +164 -0
  423. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_file_write_request.rb +217 -0
  424. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_pagination.rb +199 -0
  425. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_preset.rb +294 -0
  426. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_preset_list.rb +166 -0
  427. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_session.rb +407 -0
  428. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_session_page.rb +192 -0
  429. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_subject_grant_request.rb +164 -0
  430. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_template.rb +321 -0
  431. data/lib/volcano/generated/lib/volcano-generated/models/sandbox_template_page.rb +192 -0
  432. data/lib/volcano/generated/lib/volcano-generated/models/schedule_request.rb +2 -2
  433. data/lib/volcano/generated/lib/volcano-generated/models/service_key.rb +2 -2
  434. data/lib/volcano/generated/lib/volcano-generated/models/set_project_git_production_branch_request.rb +2 -2
  435. data/lib/volcano/generated/lib/volcano-generated/models/storage_bucket.rb +2 -2
  436. data/lib/volcano/generated/lib/volcano-generated/models/storage_copy_request.rb +2 -2
  437. data/lib/volcano/generated/lib/volcano-generated/models/storage_list_response.rb +2 -2
  438. data/lib/volcano/generated/lib/volcano-generated/models/storage_move_request.rb +2 -2
  439. data/lib/volcano/generated/lib/volcano-generated/models/storage_object.rb +2 -2
  440. data/lib/volcano/generated/lib/volcano-generated/models/storage_object_with_bucket.rb +2 -2
  441. data/lib/volcano/generated/lib/volcano-generated/models/storage_policy.rb +2 -2
  442. data/lib/volcano/generated/lib/volcano-generated/models/storage_stats.rb +2 -2
  443. data/lib/volcano/generated/lib/volcano-generated/models/storage_visibility_request.rb +2 -2
  444. data/lib/volcano/generated/lib/volcano-generated/models/test_email_request.rb +2 -2
  445. data/lib/volcano/generated/lib/volcano-generated/models/test_email_response.rb +2 -2
  446. data/lib/volcano/generated/lib/volcano-generated/models/unban_user_response.rb +2 -2
  447. data/lib/volcano/generated/lib/volcano-generated/models/update_auth_config_request.rb +2 -2
  448. data/lib/volcano/generated/lib/volcano-generated/models/update_auth_hosted_page_request.rb +2 -2
  449. data/lib/volcano/generated/lib/volcano-generated/models/update_auth_page_layout_request.rb +2 -2
  450. data/lib/volcano/generated/lib/volcano-generated/models/update_auth_page_theme_request.rb +2 -2
  451. data/lib/volcano/generated/lib/volcano-generated/models/update_database_branch_request.rb +2 -2
  452. data/lib/volcano/generated/lib/volcano-generated/models/update_database_type_request.rb +2 -2
  453. data/lib/volcano/generated/lib/volcano-generated/models/update_email_template_request.rb +2 -2
  454. data/lib/volcano/generated/lib/volcano-generated/models/update_function_request.rb +13 -4
  455. data/lib/volcano/generated/lib/volcano-generated/models/update_function_scheduler_request.rb +2 -2
  456. data/lib/volcano/generated/lib/volcano-generated/models/update_o_auth_config_request.rb +2 -2
  457. data/lib/volcano/generated/lib/volcano-generated/models/update_project_git_deploy_settings_request.rb +2 -2
  458. data/lib/volcano/generated/lib/volcano-generated/models/update_project_request.rb +2 -2
  459. data/lib/volcano/generated/lib/volcano-generated/models/update_realtime_config_request.rb +2 -2
  460. data/lib/volcano/generated/lib/volcano-generated/models/update_sandbox_template_request.rb +175 -0
  461. data/lib/volcano/generated/lib/volcano-generated/models/update_storage_bucket_request.rb +2 -2
  462. data/lib/volcano/generated/lib/volcano-generated/models/update_variable_request.rb +2 -2
  463. data/lib/volcano/generated/lib/volcano-generated/models/upload_session_part.rb +2 -2
  464. data/lib/volcano/generated/lib/volcano-generated/models/upload_session_status_response.rb +2 -2
  465. data/lib/volcano/generated/lib/volcano-generated/models/upload_storage_object201_response.rb +3 -3
  466. data/lib/volcano/generated/lib/volcano-generated/models/usage_data_point.rb +2 -2
  467. data/lib/volcano/generated/lib/volcano-generated/models/variable.rb +13 -3
  468. data/lib/volcano/generated/lib/volcano-generated/models/verified_domain.rb +192 -0
  469. data/lib/volcano/generated/lib/volcano-generated/models/verified_domains_response.rb +166 -0
  470. data/lib/volcano/generated/lib/volcano-generated/models/verify_domain_request.rb +183 -0
  471. data/lib/volcano/generated/lib/volcano-generated/version.rb +2 -2
  472. data/lib/volcano/generated/lib/volcano-generated.rb +82 -2
  473. data/lib/volcano/generated_transport.rb +1 -0
  474. data/lib/volcano/generated_transport_durable.rb +59 -0
  475. data/lib/volcano/generated_transport_functions.rb +1 -1
  476. data/lib/volcano/generated_transport_sandbox.rb +101 -0
  477. data/lib/volcano/lock_response.rb +2 -2
  478. data/lib/volcano/sandbox_deployment_response.rb +39 -0
  479. data/lib/volcano/sandbox_deployments.rb +79 -0
  480. data/lib/volcano/sandbox_files.rb +37 -0
  481. data/lib/volcano/sandbox_models.rb +32 -0
  482. data/lib/volcano/sandbox_request.rb +98 -0
  483. data/lib/volcano/sandbox_response.rb +74 -0
  484. data/lib/volcano/sandbox_session.rb +78 -0
  485. data/lib/volcano/sandboxes.rb +69 -0
  486. data/lib/volcano/storage_mutations.rb +2 -2
  487. data/lib/volcano/storage_object_response.rb +2 -2
  488. data/lib/volcano/transport.rb +1 -1
  489. data/lib/volcano/version.rb +1 -1
  490. data/lib/volcano.rb +13 -0
  491. data/sig/client.rbs +1 -0
  492. data/sig/core_facades.rbs +14 -0
  493. data/sig/durable_approval_records.rbs +218 -0
  494. data/sig/errors.rbs +3 -0
  495. data/sig/sandboxes.rbs +125 -0
  496. metadata +119 -10
@@ -0,0 +1,1792 @@
1
+ =begin
2
+ #Volcano API
3
+
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
+
6
+ The version of the OpenAPI document: 3.0.0
7
+ Contact: support@volcano.dev
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Volcano::Generated
16
+ class SandboxesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a sandbox template from a verified preset
23
+ # @param id [String]
24
+ # @param idempotency_key [String]
25
+ # @param create_sandbox_template_request [CreateSandboxTemplateRequest]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [SandboxTemplate]
28
+ def create_sandbox(id, idempotency_key, create_sandbox_template_request, opts = {})
29
+ data, _status_code, _headers = create_sandbox_with_http_info(id, idempotency_key, create_sandbox_template_request, opts)
30
+ data
31
+ end
32
+
33
+ # Create a sandbox template from a verified preset
34
+ # @param id [String]
35
+ # @param idempotency_key [String]
36
+ # @param create_sandbox_template_request [CreateSandboxTemplateRequest]
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(SandboxTemplate, Integer, Hash)>] SandboxTemplate data, response status code and response headers
39
+ def create_sandbox_with_http_info(id, idempotency_key, create_sandbox_template_request, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.create_sandbox ...'
42
+ end
43
+ # verify the required parameter 'id' is set
44
+ if @api_client.config.client_side_validation && id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.create_sandbox"
46
+ end
47
+ # verify the required parameter 'idempotency_key' is set
48
+ if @api_client.config.client_side_validation && idempotency_key.nil?
49
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling SandboxesApi.create_sandbox"
50
+ end
51
+ # verify the required parameter 'create_sandbox_template_request' is set
52
+ if @api_client.config.client_side_validation && create_sandbox_template_request.nil?
53
+ fail ArgumentError, "Missing the required parameter 'create_sandbox_template_request' when calling SandboxesApi.create_sandbox"
54
+ end
55
+ # resource path
56
+ local_var_path = '/projects/{id}/sandboxes'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
57
+
58
+ # query parameters
59
+ query_params = opts[:query_params] || {}
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
65
+ # HTTP header 'Content-Type'
66
+ content_type = @api_client.select_header_content_type(['application/json'])
67
+ if !content_type.nil?
68
+ header_params['Content-Type'] = content_type
69
+ end
70
+ header_params[:'Idempotency-Key'] = idempotency_key
71
+
72
+ # form parameters
73
+ form_params = opts[:form_params] || {}
74
+
75
+ # http body (model)
76
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_sandbox_template_request)
77
+
78
+ # return_type
79
+ return_type = opts[:debug_return_type] || 'SandboxTemplate'
80
+
81
+ # auth_names
82
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
83
+
84
+ new_options = opts.merge(
85
+ :operation => :"SandboxesApi.create_sandbox",
86
+ :header_params => header_params,
87
+ :query_params => query_params,
88
+ :form_params => form_params,
89
+ :body => post_body,
90
+ :auth_names => auth_names,
91
+ :return_type => return_type
92
+ )
93
+
94
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug "API called: SandboxesApi#create_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
97
+ end
98
+ return data, status_code, headers
99
+ end
100
+
101
+ # Start a sandbox session
102
+ # @param id [String]
103
+ # @param idempotency_key [String]
104
+ # @param create_sandbox_session_request [CreateSandboxSessionRequest]
105
+ # @param [Hash] opts the optional parameters
106
+ # @return [SandboxSession]
107
+ def create_sandbox_session(id, idempotency_key, create_sandbox_session_request, opts = {})
108
+ data, _status_code, _headers = create_sandbox_session_with_http_info(id, idempotency_key, create_sandbox_session_request, opts)
109
+ data
110
+ end
111
+
112
+ # Start a sandbox session
113
+ # @param id [String]
114
+ # @param idempotency_key [String]
115
+ # @param create_sandbox_session_request [CreateSandboxSessionRequest]
116
+ # @param [Hash] opts the optional parameters
117
+ # @return [Array<(SandboxSession, Integer, Hash)>] SandboxSession data, response status code and response headers
118
+ def create_sandbox_session_with_http_info(id, idempotency_key, create_sandbox_session_request, opts = {})
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.create_sandbox_session ...'
121
+ end
122
+ # verify the required parameter 'id' is set
123
+ if @api_client.config.client_side_validation && id.nil?
124
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.create_sandbox_session"
125
+ end
126
+ # verify the required parameter 'idempotency_key' is set
127
+ if @api_client.config.client_side_validation && idempotency_key.nil?
128
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling SandboxesApi.create_sandbox_session"
129
+ end
130
+ # resource path
131
+ local_var_path = '/projects/{id}/sandbox-sessions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
132
+
133
+ # query parameters
134
+ query_params = opts[:query_params] || {}
135
+
136
+ # header parameters
137
+ header_params = opts[:header_params] || {}
138
+ # HTTP header 'Accept' (if needed)
139
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
140
+ # HTTP header 'Content-Type'
141
+ content_type = @api_client.select_header_content_type(['application/json'])
142
+ if !content_type.nil?
143
+ header_params['Content-Type'] = content_type
144
+ end
145
+ header_params[:'Idempotency-Key'] = idempotency_key
146
+
147
+ # form parameters
148
+ form_params = opts[:form_params] || {}
149
+
150
+ # http body (model)
151
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_sandbox_session_request)
152
+
153
+ # return_type
154
+ return_type = opts[:debug_return_type] || 'SandboxSession'
155
+
156
+ # auth_names
157
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
158
+
159
+ new_options = opts.merge(
160
+ :operation => :"SandboxesApi.create_sandbox_session",
161
+ :header_params => header_params,
162
+ :query_params => query_params,
163
+ :form_params => form_params,
164
+ :body => post_body,
165
+ :auth_names => auth_names,
166
+ :return_type => return_type
167
+ )
168
+
169
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
170
+ if @api_client.config.debugging
171
+ @api_client.config.logger.debug "API called: SandboxesApi#create_sandbox_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
172
+ end
173
+ return data, status_code, headers
174
+ end
175
+
176
+ # Issue a short-lived port-scoped access credential
177
+ # @param session_id [String]
178
+ # @param sandbox_access_request [SandboxAccessRequest]
179
+ # @param [Hash] opts the optional parameters
180
+ # @return [SandboxAccess]
181
+ def create_sandbox_session_access(session_id, sandbox_access_request, opts = {})
182
+ data, _status_code, _headers = create_sandbox_session_access_with_http_info(session_id, sandbox_access_request, opts)
183
+ data
184
+ end
185
+
186
+ # Issue a short-lived port-scoped access credential
187
+ # @param session_id [String]
188
+ # @param sandbox_access_request [SandboxAccessRequest]
189
+ # @param [Hash] opts the optional parameters
190
+ # @return [Array<(SandboxAccess, Integer, Hash)>] SandboxAccess data, response status code and response headers
191
+ def create_sandbox_session_access_with_http_info(session_id, sandbox_access_request, opts = {})
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.create_sandbox_session_access ...'
194
+ end
195
+ # verify the required parameter 'session_id' is set
196
+ if @api_client.config.client_side_validation && session_id.nil?
197
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling SandboxesApi.create_sandbox_session_access"
198
+ end
199
+ # verify the required parameter 'sandbox_access_request' is set
200
+ if @api_client.config.client_side_validation && sandbox_access_request.nil?
201
+ fail ArgumentError, "Missing the required parameter 'sandbox_access_request' when calling SandboxesApi.create_sandbox_session_access"
202
+ end
203
+ # resource path
204
+ local_var_path = '/sandbox-sessions/{sessionId}/access'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
205
+
206
+ # query parameters
207
+ query_params = opts[:query_params] || {}
208
+
209
+ # header parameters
210
+ header_params = opts[:header_params] || {}
211
+ # HTTP header 'Accept' (if needed)
212
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
213
+ # HTTP header 'Content-Type'
214
+ content_type = @api_client.select_header_content_type(['application/json'])
215
+ if !content_type.nil?
216
+ header_params['Content-Type'] = content_type
217
+ end
218
+
219
+ # form parameters
220
+ form_params = opts[:form_params] || {}
221
+
222
+ # http body (model)
223
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(sandbox_access_request)
224
+
225
+ # return_type
226
+ return_type = opts[:debug_return_type] || 'SandboxAccess'
227
+
228
+ # auth_names
229
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'AuthUserAccessToken', 'UserToken']
230
+
231
+ new_options = opts.merge(
232
+ :operation => :"SandboxesApi.create_sandbox_session_access",
233
+ :header_params => header_params,
234
+ :query_params => query_params,
235
+ :form_params => form_params,
236
+ :body => post_body,
237
+ :auth_names => auth_names,
238
+ :return_type => return_type
239
+ )
240
+
241
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
242
+ if @api_client.config.debugging
243
+ @api_client.config.logger.debug "API called: SandboxesApi#create_sandbox_session_access\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
244
+ end
245
+ return data, status_code, headers
246
+ end
247
+
248
+ # Retire a template and terminate its sessions
249
+ # @param id [String]
250
+ # @param sandbox_id [String]
251
+ # @param [Hash] opts the optional parameters
252
+ # @return [nil]
253
+ def delete_sandbox(id, sandbox_id, opts = {})
254
+ delete_sandbox_with_http_info(id, sandbox_id, opts)
255
+ nil
256
+ end
257
+
258
+ # Retire a template and terminate its sessions
259
+ # @param id [String]
260
+ # @param sandbox_id [String]
261
+ # @param [Hash] opts the optional parameters
262
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
263
+ def delete_sandbox_with_http_info(id, sandbox_id, opts = {})
264
+ if @api_client.config.debugging
265
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.delete_sandbox ...'
266
+ end
267
+ # verify the required parameter 'id' is set
268
+ if @api_client.config.client_side_validation && id.nil?
269
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.delete_sandbox"
270
+ end
271
+ # verify the required parameter 'sandbox_id' is set
272
+ if @api_client.config.client_side_validation && sandbox_id.nil?
273
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxesApi.delete_sandbox"
274
+ end
275
+ # resource path
276
+ local_var_path = '/projects/{id}/sandboxes/{sandboxId}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
277
+
278
+ # query parameters
279
+ query_params = opts[:query_params] || {}
280
+
281
+ # header parameters
282
+ header_params = opts[:header_params] || {}
283
+ # HTTP header 'Accept' (if needed)
284
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
285
+
286
+ # form parameters
287
+ form_params = opts[:form_params] || {}
288
+
289
+ # http body (model)
290
+ post_body = opts[:debug_body]
291
+
292
+ # return_type
293
+ return_type = opts[:debug_return_type]
294
+
295
+ # auth_names
296
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
297
+
298
+ new_options = opts.merge(
299
+ :operation => :"SandboxesApi.delete_sandbox",
300
+ :header_params => header_params,
301
+ :query_params => query_params,
302
+ :form_params => form_params,
303
+ :body => post_body,
304
+ :auth_names => auth_names,
305
+ :return_type => return_type
306
+ )
307
+
308
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
309
+ if @api_client.config.debugging
310
+ @api_client.config.logger.debug "API called: SandboxesApi#delete_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
311
+ end
312
+ return data, status_code, headers
313
+ end
314
+
315
+ # Build and deploy a custom sandbox template
316
+ # Upload a tar.gz context with a Dockerfile. The template ID may be new. Retries with the same Idempotency-Key and content return the same deployment. Existing sessions retain their image while the replacement builds and validates.
317
+ # @param id [String]
318
+ # @param sandbox_id [String]
319
+ # @param idempotency_key [String]
320
+ # @param name [String]
321
+ # @param code [File] Source tar.gz archive, limited to 32 MiB compressed and expanded.
322
+ # @param [Hash] opts the optional parameters
323
+ # @option opts [Integer] :memory_mb Memory in MiB. Defaults to 1024 when omitted.
324
+ # @option opts [String] :ports JSON array of application ports that must become ready before activation, for example [8080].
325
+ # @return [SandboxDeployment]
326
+ def deploy_sandbox(id, sandbox_id, idempotency_key, name, code, opts = {})
327
+ data, _status_code, _headers = deploy_sandbox_with_http_info(id, sandbox_id, idempotency_key, name, code, opts)
328
+ data
329
+ end
330
+
331
+ # Build and deploy a custom sandbox template
332
+ # Upload a tar.gz context with a Dockerfile. The template ID may be new. Retries with the same Idempotency-Key and content return the same deployment. Existing sessions retain their image while the replacement builds and validates.
333
+ # @param id [String]
334
+ # @param sandbox_id [String]
335
+ # @param idempotency_key [String]
336
+ # @param name [String]
337
+ # @param code [File] Source tar.gz archive, limited to 32 MiB compressed and expanded.
338
+ # @param [Hash] opts the optional parameters
339
+ # @option opts [Integer] :memory_mb Memory in MiB. Defaults to 1024 when omitted.
340
+ # @option opts [String] :ports JSON array of application ports that must become ready before activation, for example [8080].
341
+ # @return [Array<(SandboxDeployment, Integer, Hash)>] SandboxDeployment data, response status code and response headers
342
+ def deploy_sandbox_with_http_info(id, sandbox_id, idempotency_key, name, code, opts = {})
343
+ if @api_client.config.debugging
344
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.deploy_sandbox ...'
345
+ end
346
+ # verify the required parameter 'id' is set
347
+ if @api_client.config.client_side_validation && id.nil?
348
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.deploy_sandbox"
349
+ end
350
+ # verify the required parameter 'sandbox_id' is set
351
+ if @api_client.config.client_side_validation && sandbox_id.nil?
352
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxesApi.deploy_sandbox"
353
+ end
354
+ # verify the required parameter 'idempotency_key' is set
355
+ if @api_client.config.client_side_validation && idempotency_key.nil?
356
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling SandboxesApi.deploy_sandbox"
357
+ end
358
+ # verify the required parameter 'name' is set
359
+ if @api_client.config.client_side_validation && name.nil?
360
+ fail ArgumentError, "Missing the required parameter 'name' when calling SandboxesApi.deploy_sandbox"
361
+ end
362
+ pattern = Regexp.new(/^[a-z][a-z0-9-]{0,62}$/)
363
+ if @api_client.config.client_side_validation && name !~ pattern
364
+ fail ArgumentError, "invalid value for 'name' when calling SandboxesApi.deploy_sandbox, must conform to the pattern #{pattern}."
365
+ end
366
+
367
+ # verify the required parameter 'code' is set
368
+ if @api_client.config.client_side_validation && code.nil?
369
+ fail ArgumentError, "Missing the required parameter 'code' when calling SandboxesApi.deploy_sandbox"
370
+ end
371
+ allowable_values = [1024, 2048]
372
+ if @api_client.config.client_side_validation && opts[:'memory_mb'] && !allowable_values.include?(opts[:'memory_mb'])
373
+ fail ArgumentError, "invalid value for \"memory_mb\", must be one of #{allowable_values}"
374
+ end
375
+ # resource path
376
+ local_var_path = '/projects/{id}/sandboxes/{sandboxId}/deployments'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
377
+
378
+ # query parameters
379
+ query_params = opts[:query_params] || {}
380
+
381
+ # header parameters
382
+ header_params = opts[:header_params] || {}
383
+ # HTTP header 'Accept' (if needed)
384
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
385
+ # HTTP header 'Content-Type'
386
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
387
+ if !content_type.nil?
388
+ header_params['Content-Type'] = content_type
389
+ end
390
+ header_params[:'Idempotency-Key'] = idempotency_key
391
+
392
+ # form parameters
393
+ form_params = opts[:form_params] || {}
394
+ form_params['name'] = name
395
+ form_params['code'] = code
396
+ form_params['memory_mb'] = opts[:'memory_mb'] if !opts[:'memory_mb'].nil?
397
+ form_params['ports'] = opts[:'ports'] if !opts[:'ports'].nil?
398
+
399
+ # http body (model)
400
+ post_body = opts[:debug_body]
401
+
402
+ # return_type
403
+ return_type = opts[:debug_return_type] || 'SandboxDeployment'
404
+
405
+ # auth_names
406
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
407
+
408
+ new_options = opts.merge(
409
+ :operation => :"SandboxesApi.deploy_sandbox",
410
+ :header_params => header_params,
411
+ :query_params => query_params,
412
+ :form_params => form_params,
413
+ :body => post_body,
414
+ :auth_names => auth_names,
415
+ :return_type => return_type
416
+ )
417
+
418
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
419
+ if @api_client.config.debugging
420
+ @api_client.config.logger.debug "API called: SandboxesApi#deploy_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
+ end
422
+ return data, status_code, headers
423
+ end
424
+
425
+ # Execute once and return after confirmed termination
426
+ # @param id [String]
427
+ # @param idempotency_key [String]
428
+ # @param sandbox_execution_request [SandboxExecutionRequest]
429
+ # @param [Hash] opts the optional parameters
430
+ # @return [SandboxExecutionResult]
431
+ def execute_sandbox(id, idempotency_key, sandbox_execution_request, opts = {})
432
+ data, _status_code, _headers = execute_sandbox_with_http_info(id, idempotency_key, sandbox_execution_request, opts)
433
+ data
434
+ end
435
+
436
+ # Execute once and return after confirmed termination
437
+ # @param id [String]
438
+ # @param idempotency_key [String]
439
+ # @param sandbox_execution_request [SandboxExecutionRequest]
440
+ # @param [Hash] opts the optional parameters
441
+ # @return [Array<(SandboxExecutionResult, Integer, Hash)>] SandboxExecutionResult data, response status code and response headers
442
+ def execute_sandbox_with_http_info(id, idempotency_key, sandbox_execution_request, opts = {})
443
+ if @api_client.config.debugging
444
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.execute_sandbox ...'
445
+ end
446
+ # verify the required parameter 'id' is set
447
+ if @api_client.config.client_side_validation && id.nil?
448
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.execute_sandbox"
449
+ end
450
+ # verify the required parameter 'idempotency_key' is set
451
+ if @api_client.config.client_side_validation && idempotency_key.nil?
452
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling SandboxesApi.execute_sandbox"
453
+ end
454
+ # resource path
455
+ local_var_path = '/projects/{id}/sandbox-executions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
456
+
457
+ # query parameters
458
+ query_params = opts[:query_params] || {}
459
+
460
+ # header parameters
461
+ header_params = opts[:header_params] || {}
462
+ # HTTP header 'Accept' (if needed)
463
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
464
+ # HTTP header 'Content-Type'
465
+ content_type = @api_client.select_header_content_type(['application/json'])
466
+ if !content_type.nil?
467
+ header_params['Content-Type'] = content_type
468
+ end
469
+ header_params[:'Idempotency-Key'] = idempotency_key
470
+
471
+ # form parameters
472
+ form_params = opts[:form_params] || {}
473
+
474
+ # http body (model)
475
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(sandbox_execution_request)
476
+
477
+ # return_type
478
+ return_type = opts[:debug_return_type] || 'SandboxExecutionResult'
479
+
480
+ # auth_names
481
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
482
+
483
+ new_options = opts.merge(
484
+ :operation => :"SandboxesApi.execute_sandbox",
485
+ :header_params => header_params,
486
+ :query_params => query_params,
487
+ :form_params => form_params,
488
+ :body => post_body,
489
+ :auth_names => auth_names,
490
+ :return_type => return_type
491
+ )
492
+
493
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
494
+ if @api_client.config.debugging
495
+ @api_client.config.logger.debug "API called: SandboxesApi#execute_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
496
+ end
497
+ return data, status_code, headers
498
+ end
499
+
500
+ # Execute a command within a session
501
+ # @param session_id [String]
502
+ # @param idempotency_key [String]
503
+ # @param sandbox_command_request [SandboxCommandRequest]
504
+ # @param [Hash] opts the optional parameters
505
+ # @return [SandboxCommandResult]
506
+ def execute_sandbox_session(session_id, idempotency_key, sandbox_command_request, opts = {})
507
+ data, _status_code, _headers = execute_sandbox_session_with_http_info(session_id, idempotency_key, sandbox_command_request, opts)
508
+ data
509
+ end
510
+
511
+ # Execute a command within a session
512
+ # @param session_id [String]
513
+ # @param idempotency_key [String]
514
+ # @param sandbox_command_request [SandboxCommandRequest]
515
+ # @param [Hash] opts the optional parameters
516
+ # @return [Array<(SandboxCommandResult, Integer, Hash)>] SandboxCommandResult data, response status code and response headers
517
+ def execute_sandbox_session_with_http_info(session_id, idempotency_key, sandbox_command_request, opts = {})
518
+ if @api_client.config.debugging
519
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.execute_sandbox_session ...'
520
+ end
521
+ # verify the required parameter 'session_id' is set
522
+ if @api_client.config.client_side_validation && session_id.nil?
523
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling SandboxesApi.execute_sandbox_session"
524
+ end
525
+ # verify the required parameter 'idempotency_key' is set
526
+ if @api_client.config.client_side_validation && idempotency_key.nil?
527
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling SandboxesApi.execute_sandbox_session"
528
+ end
529
+ # verify the required parameter 'sandbox_command_request' is set
530
+ if @api_client.config.client_side_validation && sandbox_command_request.nil?
531
+ fail ArgumentError, "Missing the required parameter 'sandbox_command_request' when calling SandboxesApi.execute_sandbox_session"
532
+ end
533
+ # resource path
534
+ local_var_path = '/sandbox-sessions/{sessionId}/exec'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
535
+
536
+ # query parameters
537
+ query_params = opts[:query_params] || {}
538
+
539
+ # header parameters
540
+ header_params = opts[:header_params] || {}
541
+ # HTTP header 'Accept' (if needed)
542
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
543
+ # HTTP header 'Content-Type'
544
+ content_type = @api_client.select_header_content_type(['application/json'])
545
+ if !content_type.nil?
546
+ header_params['Content-Type'] = content_type
547
+ end
548
+ header_params[:'Idempotency-Key'] = idempotency_key
549
+
550
+ # form parameters
551
+ form_params = opts[:form_params] || {}
552
+
553
+ # http body (model)
554
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(sandbox_command_request)
555
+
556
+ # return_type
557
+ return_type = opts[:debug_return_type] || 'SandboxCommandResult'
558
+
559
+ # auth_names
560
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'AuthUserAccessToken', 'UserToken']
561
+
562
+ new_options = opts.merge(
563
+ :operation => :"SandboxesApi.execute_sandbox_session",
564
+ :header_params => header_params,
565
+ :query_params => query_params,
566
+ :form_params => form_params,
567
+ :body => post_body,
568
+ :auth_names => auth_names,
569
+ :return_type => return_type
570
+ )
571
+
572
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
573
+ if @api_client.config.debugging
574
+ @api_client.config.logger.debug "API called: SandboxesApi#execute_sandbox_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
575
+ end
576
+ return data, status_code, headers
577
+ end
578
+
579
+ # Get a sandbox template
580
+ # @param id [String]
581
+ # @param sandbox_id [String]
582
+ # @param [Hash] opts the optional parameters
583
+ # @return [SandboxTemplate]
584
+ def get_sandbox(id, sandbox_id, opts = {})
585
+ data, _status_code, _headers = get_sandbox_with_http_info(id, sandbox_id, opts)
586
+ data
587
+ end
588
+
589
+ # Get a sandbox template
590
+ # @param id [String]
591
+ # @param sandbox_id [String]
592
+ # @param [Hash] opts the optional parameters
593
+ # @return [Array<(SandboxTemplate, Integer, Hash)>] SandboxTemplate data, response status code and response headers
594
+ def get_sandbox_with_http_info(id, sandbox_id, opts = {})
595
+ if @api_client.config.debugging
596
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.get_sandbox ...'
597
+ end
598
+ # verify the required parameter 'id' is set
599
+ if @api_client.config.client_side_validation && id.nil?
600
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.get_sandbox"
601
+ end
602
+ # verify the required parameter 'sandbox_id' is set
603
+ if @api_client.config.client_side_validation && sandbox_id.nil?
604
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxesApi.get_sandbox"
605
+ end
606
+ # resource path
607
+ local_var_path = '/projects/{id}/sandboxes/{sandboxId}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
608
+
609
+ # query parameters
610
+ query_params = opts[:query_params] || {}
611
+
612
+ # header parameters
613
+ header_params = opts[:header_params] || {}
614
+ # HTTP header 'Accept' (if needed)
615
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
616
+
617
+ # form parameters
618
+ form_params = opts[:form_params] || {}
619
+
620
+ # http body (model)
621
+ post_body = opts[:debug_body]
622
+
623
+ # return_type
624
+ return_type = opts[:debug_return_type] || 'SandboxTemplate'
625
+
626
+ # auth_names
627
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
628
+
629
+ new_options = opts.merge(
630
+ :operation => :"SandboxesApi.get_sandbox",
631
+ :header_params => header_params,
632
+ :query_params => query_params,
633
+ :form_params => form_params,
634
+ :body => post_body,
635
+ :auth_names => auth_names,
636
+ :return_type => return_type
637
+ )
638
+
639
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
640
+ if @api_client.config.debugging
641
+ @api_client.config.logger.debug "API called: SandboxesApi#get_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
642
+ end
643
+ return data, status_code, headers
644
+ end
645
+
646
+ # Get a sandbox deployment
647
+ # @param id [String]
648
+ # @param sandbox_id [String]
649
+ # @param deployment_id [String]
650
+ # @param [Hash] opts the optional parameters
651
+ # @return [SandboxDeployment]
652
+ def get_sandbox_deployment(id, sandbox_id, deployment_id, opts = {})
653
+ data, _status_code, _headers = get_sandbox_deployment_with_http_info(id, sandbox_id, deployment_id, opts)
654
+ data
655
+ end
656
+
657
+ # Get a sandbox deployment
658
+ # @param id [String]
659
+ # @param sandbox_id [String]
660
+ # @param deployment_id [String]
661
+ # @param [Hash] opts the optional parameters
662
+ # @return [Array<(SandboxDeployment, Integer, Hash)>] SandboxDeployment data, response status code and response headers
663
+ def get_sandbox_deployment_with_http_info(id, sandbox_id, deployment_id, opts = {})
664
+ if @api_client.config.debugging
665
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.get_sandbox_deployment ...'
666
+ end
667
+ # verify the required parameter 'id' is set
668
+ if @api_client.config.client_side_validation && id.nil?
669
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.get_sandbox_deployment"
670
+ end
671
+ # verify the required parameter 'sandbox_id' is set
672
+ if @api_client.config.client_side_validation && sandbox_id.nil?
673
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxesApi.get_sandbox_deployment"
674
+ end
675
+ # verify the required parameter 'deployment_id' is set
676
+ if @api_client.config.client_side_validation && deployment_id.nil?
677
+ fail ArgumentError, "Missing the required parameter 'deployment_id' when calling SandboxesApi.get_sandbox_deployment"
678
+ end
679
+ # resource path
680
+ local_var_path = '/projects/{id}/sandboxes/{sandboxId}/deployments/{deploymentId}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'deploymentId' + '}', CGI.escape(deployment_id.to_s))
681
+
682
+ # query parameters
683
+ query_params = opts[:query_params] || {}
684
+
685
+ # header parameters
686
+ header_params = opts[:header_params] || {}
687
+ # HTTP header 'Accept' (if needed)
688
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
689
+
690
+ # form parameters
691
+ form_params = opts[:form_params] || {}
692
+
693
+ # http body (model)
694
+ post_body = opts[:debug_body]
695
+
696
+ # return_type
697
+ return_type = opts[:debug_return_type] || 'SandboxDeployment'
698
+
699
+ # auth_names
700
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
701
+
702
+ new_options = opts.merge(
703
+ :operation => :"SandboxesApi.get_sandbox_deployment",
704
+ :header_params => header_params,
705
+ :query_params => query_params,
706
+ :form_params => form_params,
707
+ :body => post_body,
708
+ :auth_names => auth_names,
709
+ :return_type => return_type
710
+ )
711
+
712
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
713
+ if @api_client.config.debugging
714
+ @api_client.config.logger.debug "API called: SandboxesApi#get_sandbox_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
715
+ end
716
+ return data, status_code, headers
717
+ end
718
+
719
+ # Read sandbox deployment build logs
720
+ # @param id [String]
721
+ # @param sandbox_id [String]
722
+ # @param deployment_id [String]
723
+ # @param region [String]
724
+ # @param [Hash] opts the optional parameters
725
+ # @option opts [String] :cursor
726
+ # @option opts [Integer] :limit (default to 100)
727
+ # @return [SandboxBuildLogPage]
728
+ def get_sandbox_deployment_logs(id, sandbox_id, deployment_id, region, opts = {})
729
+ data, _status_code, _headers = get_sandbox_deployment_logs_with_http_info(id, sandbox_id, deployment_id, region, opts)
730
+ data
731
+ end
732
+
733
+ # Read sandbox deployment build logs
734
+ # @param id [String]
735
+ # @param sandbox_id [String]
736
+ # @param deployment_id [String]
737
+ # @param region [String]
738
+ # @param [Hash] opts the optional parameters
739
+ # @option opts [String] :cursor
740
+ # @option opts [Integer] :limit (default to 100)
741
+ # @return [Array<(SandboxBuildLogPage, Integer, Hash)>] SandboxBuildLogPage data, response status code and response headers
742
+ def get_sandbox_deployment_logs_with_http_info(id, sandbox_id, deployment_id, region, opts = {})
743
+ if @api_client.config.debugging
744
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.get_sandbox_deployment_logs ...'
745
+ end
746
+ # verify the required parameter 'id' is set
747
+ if @api_client.config.client_side_validation && id.nil?
748
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.get_sandbox_deployment_logs"
749
+ end
750
+ # verify the required parameter 'sandbox_id' is set
751
+ if @api_client.config.client_side_validation && sandbox_id.nil?
752
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxesApi.get_sandbox_deployment_logs"
753
+ end
754
+ # verify the required parameter 'deployment_id' is set
755
+ if @api_client.config.client_side_validation && deployment_id.nil?
756
+ fail ArgumentError, "Missing the required parameter 'deployment_id' when calling SandboxesApi.get_sandbox_deployment_logs"
757
+ end
758
+ # verify the required parameter 'region' is set
759
+ if @api_client.config.client_side_validation && region.nil?
760
+ fail ArgumentError, "Missing the required parameter 'region' when calling SandboxesApi.get_sandbox_deployment_logs"
761
+ end
762
+ pattern = Regexp.new(/^(aws-)?[a-z]{2}(-[a-z]+)+-[0-9]+$/)
763
+ if @api_client.config.client_side_validation && region !~ pattern
764
+ fail ArgumentError, "invalid value for 'region' when calling SandboxesApi.get_sandbox_deployment_logs, must conform to the pattern #{pattern}."
765
+ end
766
+
767
+ if @api_client.config.client_side_validation && !opts[:'cursor'].nil? && opts[:'cursor'].to_s.length > 2048
768
+ fail ArgumentError, 'invalid value for "opts[:"cursor"]" when calling SandboxesApi.get_sandbox_deployment_logs, the character length must be smaller than or equal to 2048.'
769
+ end
770
+
771
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
772
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxesApi.get_sandbox_deployment_logs, must be smaller than or equal to 1000.'
773
+ end
774
+
775
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
776
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxesApi.get_sandbox_deployment_logs, must be greater than or equal to 1.'
777
+ end
778
+
779
+ # resource path
780
+ local_var_path = '/projects/{id}/sandboxes/{sandboxId}/deployments/{deploymentId}/logs'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'deploymentId' + '}', CGI.escape(deployment_id.to_s))
781
+
782
+ # query parameters
783
+ query_params = opts[:query_params] || {}
784
+ query_params[:'region'] = region
785
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
786
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
787
+
788
+ # header parameters
789
+ header_params = opts[:header_params] || {}
790
+ # HTTP header 'Accept' (if needed)
791
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
792
+
793
+ # form parameters
794
+ form_params = opts[:form_params] || {}
795
+
796
+ # http body (model)
797
+ post_body = opts[:debug_body]
798
+
799
+ # return_type
800
+ return_type = opts[:debug_return_type] || 'SandboxBuildLogPage'
801
+
802
+ # auth_names
803
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
804
+
805
+ new_options = opts.merge(
806
+ :operation => :"SandboxesApi.get_sandbox_deployment_logs",
807
+ :header_params => header_params,
808
+ :query_params => query_params,
809
+ :form_params => form_params,
810
+ :body => post_body,
811
+ :auth_names => auth_names,
812
+ :return_type => return_type
813
+ )
814
+
815
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
816
+ if @api_client.config.debugging
817
+ @api_client.config.logger.debug "API called: SandboxesApi#get_sandbox_deployment_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
818
+ end
819
+ return data, status_code, headers
820
+ end
821
+
822
+ # Download the retained custom sandbox source
823
+ # @param id [String]
824
+ # @param sandbox_id [String]
825
+ # @param deployment_id [String]
826
+ # @param [Hash] opts the optional parameters
827
+ # @return [File]
828
+ def get_sandbox_deployment_source(id, sandbox_id, deployment_id, opts = {})
829
+ data, _status_code, _headers = get_sandbox_deployment_source_with_http_info(id, sandbox_id, deployment_id, opts)
830
+ data
831
+ end
832
+
833
+ # Download the retained custom sandbox source
834
+ # @param id [String]
835
+ # @param sandbox_id [String]
836
+ # @param deployment_id [String]
837
+ # @param [Hash] opts the optional parameters
838
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
839
+ def get_sandbox_deployment_source_with_http_info(id, sandbox_id, deployment_id, opts = {})
840
+ if @api_client.config.debugging
841
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.get_sandbox_deployment_source ...'
842
+ end
843
+ # verify the required parameter 'id' is set
844
+ if @api_client.config.client_side_validation && id.nil?
845
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.get_sandbox_deployment_source"
846
+ end
847
+ # verify the required parameter 'sandbox_id' is set
848
+ if @api_client.config.client_side_validation && sandbox_id.nil?
849
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxesApi.get_sandbox_deployment_source"
850
+ end
851
+ # verify the required parameter 'deployment_id' is set
852
+ if @api_client.config.client_side_validation && deployment_id.nil?
853
+ fail ArgumentError, "Missing the required parameter 'deployment_id' when calling SandboxesApi.get_sandbox_deployment_source"
854
+ end
855
+ # resource path
856
+ local_var_path = '/projects/{id}/sandboxes/{sandboxId}/deployments/{deploymentId}/source'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'deploymentId' + '}', CGI.escape(deployment_id.to_s))
857
+
858
+ # query parameters
859
+ query_params = opts[:query_params] || {}
860
+
861
+ # header parameters
862
+ header_params = opts[:header_params] || {}
863
+ # HTTP header 'Accept' (if needed)
864
+ header_params['Accept'] = @api_client.select_header_accept(['application/gzip', 'application/json']) unless header_params['Accept']
865
+
866
+ # form parameters
867
+ form_params = opts[:form_params] || {}
868
+
869
+ # http body (model)
870
+ post_body = opts[:debug_body]
871
+
872
+ # return_type
873
+ return_type = opts[:debug_return_type] || 'File'
874
+
875
+ # auth_names
876
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
877
+
878
+ new_options = opts.merge(
879
+ :operation => :"SandboxesApi.get_sandbox_deployment_source",
880
+ :header_params => header_params,
881
+ :query_params => query_params,
882
+ :form_params => form_params,
883
+ :body => post_body,
884
+ :auth_names => auth_names,
885
+ :return_type => return_type
886
+ )
887
+
888
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
889
+ if @api_client.config.debugging
890
+ @api_client.config.logger.debug "API called: SandboxesApi#get_sandbox_deployment_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
891
+ end
892
+ return data, status_code, headers
893
+ end
894
+
895
+ # Get a sandbox session
896
+ # @param session_id [String]
897
+ # @param [Hash] opts the optional parameters
898
+ # @return [SandboxSession]
899
+ def get_sandbox_session(session_id, opts = {})
900
+ data, _status_code, _headers = get_sandbox_session_with_http_info(session_id, opts)
901
+ data
902
+ end
903
+
904
+ # Get a sandbox session
905
+ # @param session_id [String]
906
+ # @param [Hash] opts the optional parameters
907
+ # @return [Array<(SandboxSession, Integer, Hash)>] SandboxSession data, response status code and response headers
908
+ def get_sandbox_session_with_http_info(session_id, opts = {})
909
+ if @api_client.config.debugging
910
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.get_sandbox_session ...'
911
+ end
912
+ # verify the required parameter 'session_id' is set
913
+ if @api_client.config.client_side_validation && session_id.nil?
914
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling SandboxesApi.get_sandbox_session"
915
+ end
916
+ # resource path
917
+ local_var_path = '/sandbox-sessions/{sessionId}'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
918
+
919
+ # query parameters
920
+ query_params = opts[:query_params] || {}
921
+
922
+ # header parameters
923
+ header_params = opts[:header_params] || {}
924
+ # HTTP header 'Accept' (if needed)
925
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
926
+
927
+ # form parameters
928
+ form_params = opts[:form_params] || {}
929
+
930
+ # http body (model)
931
+ post_body = opts[:debug_body]
932
+
933
+ # return_type
934
+ return_type = opts[:debug_return_type] || 'SandboxSession'
935
+
936
+ # auth_names
937
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'AuthUserAccessToken', 'UserToken']
938
+
939
+ new_options = opts.merge(
940
+ :operation => :"SandboxesApi.get_sandbox_session",
941
+ :header_params => header_params,
942
+ :query_params => query_params,
943
+ :form_params => form_params,
944
+ :body => post_body,
945
+ :auth_names => auth_names,
946
+ :return_type => return_type
947
+ )
948
+
949
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
950
+ if @api_client.config.debugging
951
+ @api_client.config.logger.debug "API called: SandboxesApi#get_sandbox_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
952
+ end
953
+ return data, status_code, headers
954
+ end
955
+
956
+ # Authorize an authenticated project user for this session
957
+ # @param session_id [String]
958
+ # @param subject_id [String]
959
+ # @param sandbox_subject_grant_request [SandboxSubjectGrantRequest]
960
+ # @param [Hash] opts the optional parameters
961
+ # @return [nil]
962
+ def grant_sandbox_session(session_id, subject_id, sandbox_subject_grant_request, opts = {})
963
+ grant_sandbox_session_with_http_info(session_id, subject_id, sandbox_subject_grant_request, opts)
964
+ nil
965
+ end
966
+
967
+ # Authorize an authenticated project user for this session
968
+ # @param session_id [String]
969
+ # @param subject_id [String]
970
+ # @param sandbox_subject_grant_request [SandboxSubjectGrantRequest]
971
+ # @param [Hash] opts the optional parameters
972
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
973
+ def grant_sandbox_session_with_http_info(session_id, subject_id, sandbox_subject_grant_request, opts = {})
974
+ if @api_client.config.debugging
975
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.grant_sandbox_session ...'
976
+ end
977
+ # verify the required parameter 'session_id' is set
978
+ if @api_client.config.client_side_validation && session_id.nil?
979
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling SandboxesApi.grant_sandbox_session"
980
+ end
981
+ # verify the required parameter 'subject_id' is set
982
+ if @api_client.config.client_side_validation && subject_id.nil?
983
+ fail ArgumentError, "Missing the required parameter 'subject_id' when calling SandboxesApi.grant_sandbox_session"
984
+ end
985
+ # verify the required parameter 'sandbox_subject_grant_request' is set
986
+ if @api_client.config.client_side_validation && sandbox_subject_grant_request.nil?
987
+ fail ArgumentError, "Missing the required parameter 'sandbox_subject_grant_request' when calling SandboxesApi.grant_sandbox_session"
988
+ end
989
+ # resource path
990
+ local_var_path = '/sandbox-sessions/{sessionId}/grants/{subjectId}'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)).sub('{' + 'subjectId' + '}', CGI.escape(subject_id.to_s))
991
+
992
+ # query parameters
993
+ query_params = opts[:query_params] || {}
994
+
995
+ # header parameters
996
+ header_params = opts[:header_params] || {}
997
+ # HTTP header 'Accept' (if needed)
998
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
999
+ # HTTP header 'Content-Type'
1000
+ content_type = @api_client.select_header_content_type(['application/json'])
1001
+ if !content_type.nil?
1002
+ header_params['Content-Type'] = content_type
1003
+ end
1004
+
1005
+ # form parameters
1006
+ form_params = opts[:form_params] || {}
1007
+
1008
+ # http body (model)
1009
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(sandbox_subject_grant_request)
1010
+
1011
+ # return_type
1012
+ return_type = opts[:debug_return_type]
1013
+
1014
+ # auth_names
1015
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
1016
+
1017
+ new_options = opts.merge(
1018
+ :operation => :"SandboxesApi.grant_sandbox_session",
1019
+ :header_params => header_params,
1020
+ :query_params => query_params,
1021
+ :form_params => form_params,
1022
+ :body => post_body,
1023
+ :auth_names => auth_names,
1024
+ :return_type => return_type
1025
+ )
1026
+
1027
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1028
+ if @api_client.config.debugging
1029
+ @api_client.config.logger.debug "API called: SandboxesApi#grant_sandbox_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1030
+ end
1031
+ return data, status_code, headers
1032
+ end
1033
+
1034
+ # List sandbox deployment history
1035
+ # @param id [String]
1036
+ # @param sandbox_id [String]
1037
+ # @param [Hash] opts the optional parameters
1038
+ # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
1039
+ # @option opts [String] :cursor Opaque keyset pagination cursor from a previous response&#39;s &#x60;next_cursor&#x60; — pages forward. Mutually exclusive with &#x60;page&#x60; and &#x60;ending_before&#x60;; combining them returns 400. When supplied, the request&#39;s &#x60;search&#x60; and &#x60;limit&#x60; must match the values bound to the cursor or the request returns 400.
1040
+ # @return [SandboxDeploymentPage]
1041
+ def list_sandbox_deployments(id, sandbox_id, opts = {})
1042
+ data, _status_code, _headers = list_sandbox_deployments_with_http_info(id, sandbox_id, opts)
1043
+ data
1044
+ end
1045
+
1046
+ # List sandbox deployment history
1047
+ # @param id [String]
1048
+ # @param sandbox_id [String]
1049
+ # @param [Hash] opts the optional parameters
1050
+ # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
1051
+ # @option opts [String] :cursor Opaque keyset pagination cursor from a previous response&#39;s &#x60;next_cursor&#x60; — pages forward. Mutually exclusive with &#x60;page&#x60; and &#x60;ending_before&#x60;; combining them returns 400. When supplied, the request&#39;s &#x60;search&#x60; and &#x60;limit&#x60; must match the values bound to the cursor or the request returns 400.
1052
+ # @return [Array<(SandboxDeploymentPage, Integer, Hash)>] SandboxDeploymentPage data, response status code and response headers
1053
+ def list_sandbox_deployments_with_http_info(id, sandbox_id, opts = {})
1054
+ if @api_client.config.debugging
1055
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.list_sandbox_deployments ...'
1056
+ end
1057
+ # verify the required parameter 'id' is set
1058
+ if @api_client.config.client_side_validation && id.nil?
1059
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.list_sandbox_deployments"
1060
+ end
1061
+ # verify the required parameter 'sandbox_id' is set
1062
+ if @api_client.config.client_side_validation && sandbox_id.nil?
1063
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxesApi.list_sandbox_deployments"
1064
+ end
1065
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
1066
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxesApi.list_sandbox_deployments, must be smaller than or equal to 100.'
1067
+ end
1068
+
1069
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1070
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxesApi.list_sandbox_deployments, must be greater than or equal to 1.'
1071
+ end
1072
+
1073
+ # resource path
1074
+ local_var_path = '/projects/{id}/sandboxes/{sandboxId}/deployments'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
1075
+
1076
+ # query parameters
1077
+ query_params = opts[:query_params] || {}
1078
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1079
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1080
+
1081
+ # header parameters
1082
+ header_params = opts[:header_params] || {}
1083
+ # HTTP header 'Accept' (if needed)
1084
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1085
+
1086
+ # form parameters
1087
+ form_params = opts[:form_params] || {}
1088
+
1089
+ # http body (model)
1090
+ post_body = opts[:debug_body]
1091
+
1092
+ # return_type
1093
+ return_type = opts[:debug_return_type] || 'SandboxDeploymentPage'
1094
+
1095
+ # auth_names
1096
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
1097
+
1098
+ new_options = opts.merge(
1099
+ :operation => :"SandboxesApi.list_sandbox_deployments",
1100
+ :header_params => header_params,
1101
+ :query_params => query_params,
1102
+ :form_params => form_params,
1103
+ :body => post_body,
1104
+ :auth_names => auth_names,
1105
+ :return_type => return_type
1106
+ )
1107
+
1108
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1109
+ if @api_client.config.debugging
1110
+ @api_client.config.logger.debug "API called: SandboxesApi#list_sandbox_deployments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1111
+ end
1112
+ return data, status_code, headers
1113
+ end
1114
+
1115
+ # List available sandbox presets
1116
+ # @param [Hash] opts the optional parameters
1117
+ # @return [SandboxPresetList]
1118
+ def list_sandbox_presets(opts = {})
1119
+ data, _status_code, _headers = list_sandbox_presets_with_http_info(opts)
1120
+ data
1121
+ end
1122
+
1123
+ # List available sandbox presets
1124
+ # @param [Hash] opts the optional parameters
1125
+ # @return [Array<(SandboxPresetList, Integer, Hash)>] SandboxPresetList data, response status code and response headers
1126
+ def list_sandbox_presets_with_http_info(opts = {})
1127
+ if @api_client.config.debugging
1128
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.list_sandbox_presets ...'
1129
+ end
1130
+ # resource path
1131
+ local_var_path = '/sandboxes/presets'
1132
+
1133
+ # query parameters
1134
+ query_params = opts[:query_params] || {}
1135
+
1136
+ # header parameters
1137
+ header_params = opts[:header_params] || {}
1138
+ # HTTP header 'Accept' (if needed)
1139
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1140
+
1141
+ # form parameters
1142
+ form_params = opts[:form_params] || {}
1143
+
1144
+ # http body (model)
1145
+ post_body = opts[:debug_body]
1146
+
1147
+ # return_type
1148
+ return_type = opts[:debug_return_type] || 'SandboxPresetList'
1149
+
1150
+ # auth_names
1151
+ auth_names = opts[:debug_auth_names] || []
1152
+
1153
+ new_options = opts.merge(
1154
+ :operation => :"SandboxesApi.list_sandbox_presets",
1155
+ :header_params => header_params,
1156
+ :query_params => query_params,
1157
+ :form_params => form_params,
1158
+ :body => post_body,
1159
+ :auth_names => auth_names,
1160
+ :return_type => return_type
1161
+ )
1162
+
1163
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1164
+ if @api_client.config.debugging
1165
+ @api_client.config.logger.debug "API called: SandboxesApi#list_sandbox_presets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1166
+ end
1167
+ return data, status_code, headers
1168
+ end
1169
+
1170
+ # List project sandbox sessions
1171
+ # @param id [String]
1172
+ # @param [Hash] opts the optional parameters
1173
+ # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
1174
+ # @option opts [String] :cursor Opaque keyset pagination cursor from a previous response&#39;s &#x60;next_cursor&#x60; — pages forward. Mutually exclusive with &#x60;page&#x60; and &#x60;ending_before&#x60;; combining them returns 400. When supplied, the request&#39;s &#x60;search&#x60; and &#x60;limit&#x60; must match the values bound to the cursor or the request returns 400.
1175
+ # @return [SandboxSessionPage]
1176
+ def list_sandbox_sessions(id, opts = {})
1177
+ data, _status_code, _headers = list_sandbox_sessions_with_http_info(id, opts)
1178
+ data
1179
+ end
1180
+
1181
+ # List project sandbox sessions
1182
+ # @param id [String]
1183
+ # @param [Hash] opts the optional parameters
1184
+ # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
1185
+ # @option opts [String] :cursor Opaque keyset pagination cursor from a previous response&#39;s &#x60;next_cursor&#x60; — pages forward. Mutually exclusive with &#x60;page&#x60; and &#x60;ending_before&#x60;; combining them returns 400. When supplied, the request&#39;s &#x60;search&#x60; and &#x60;limit&#x60; must match the values bound to the cursor or the request returns 400.
1186
+ # @return [Array<(SandboxSessionPage, Integer, Hash)>] SandboxSessionPage data, response status code and response headers
1187
+ def list_sandbox_sessions_with_http_info(id, opts = {})
1188
+ if @api_client.config.debugging
1189
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.list_sandbox_sessions ...'
1190
+ end
1191
+ # verify the required parameter 'id' is set
1192
+ if @api_client.config.client_side_validation && id.nil?
1193
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.list_sandbox_sessions"
1194
+ end
1195
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
1196
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxesApi.list_sandbox_sessions, must be smaller than or equal to 100.'
1197
+ end
1198
+
1199
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1200
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxesApi.list_sandbox_sessions, must be greater than or equal to 1.'
1201
+ end
1202
+
1203
+ # resource path
1204
+ local_var_path = '/projects/{id}/sandbox-sessions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1205
+
1206
+ # query parameters
1207
+ query_params = opts[:query_params] || {}
1208
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1209
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1210
+
1211
+ # header parameters
1212
+ header_params = opts[:header_params] || {}
1213
+ # HTTP header 'Accept' (if needed)
1214
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1215
+
1216
+ # form parameters
1217
+ form_params = opts[:form_params] || {}
1218
+
1219
+ # http body (model)
1220
+ post_body = opts[:debug_body]
1221
+
1222
+ # return_type
1223
+ return_type = opts[:debug_return_type] || 'SandboxSessionPage'
1224
+
1225
+ # auth_names
1226
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
1227
+
1228
+ new_options = opts.merge(
1229
+ :operation => :"SandboxesApi.list_sandbox_sessions",
1230
+ :header_params => header_params,
1231
+ :query_params => query_params,
1232
+ :form_params => form_params,
1233
+ :body => post_body,
1234
+ :auth_names => auth_names,
1235
+ :return_type => return_type
1236
+ )
1237
+
1238
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1239
+ if @api_client.config.debugging
1240
+ @api_client.config.logger.debug "API called: SandboxesApi#list_sandbox_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1241
+ end
1242
+ return data, status_code, headers
1243
+ end
1244
+
1245
+ # List sandbox templates
1246
+ # @param id [String]
1247
+ # @param [Hash] opts the optional parameters
1248
+ # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
1249
+ # @option opts [String] :cursor Opaque keyset pagination cursor from a previous response&#39;s &#x60;next_cursor&#x60; — pages forward. Mutually exclusive with &#x60;page&#x60; and &#x60;ending_before&#x60;; combining them returns 400. When supplied, the request&#39;s &#x60;search&#x60; and &#x60;limit&#x60; must match the values bound to the cursor or the request returns 400.
1250
+ # @return [SandboxTemplatePage]
1251
+ def list_sandboxes(id, opts = {})
1252
+ data, _status_code, _headers = list_sandboxes_with_http_info(id, opts)
1253
+ data
1254
+ end
1255
+
1256
+ # List sandbox templates
1257
+ # @param id [String]
1258
+ # @param [Hash] opts the optional parameters
1259
+ # @option opts [Integer] :limit Number of items per page (max 100) (default to 10)
1260
+ # @option opts [String] :cursor Opaque keyset pagination cursor from a previous response&#39;s &#x60;next_cursor&#x60; — pages forward. Mutually exclusive with &#x60;page&#x60; and &#x60;ending_before&#x60;; combining them returns 400. When supplied, the request&#39;s &#x60;search&#x60; and &#x60;limit&#x60; must match the values bound to the cursor or the request returns 400.
1261
+ # @return [Array<(SandboxTemplatePage, Integer, Hash)>] SandboxTemplatePage data, response status code and response headers
1262
+ def list_sandboxes_with_http_info(id, opts = {})
1263
+ if @api_client.config.debugging
1264
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.list_sandboxes ...'
1265
+ end
1266
+ # verify the required parameter 'id' is set
1267
+ if @api_client.config.client_side_validation && id.nil?
1268
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.list_sandboxes"
1269
+ end
1270
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
1271
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxesApi.list_sandboxes, must be smaller than or equal to 100.'
1272
+ end
1273
+
1274
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1275
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxesApi.list_sandboxes, must be greater than or equal to 1.'
1276
+ end
1277
+
1278
+ # resource path
1279
+ local_var_path = '/projects/{id}/sandboxes'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1280
+
1281
+ # query parameters
1282
+ query_params = opts[:query_params] || {}
1283
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1284
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1285
+
1286
+ # header parameters
1287
+ header_params = opts[:header_params] || {}
1288
+ # HTTP header 'Accept' (if needed)
1289
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1290
+
1291
+ # form parameters
1292
+ form_params = opts[:form_params] || {}
1293
+
1294
+ # http body (model)
1295
+ post_body = opts[:debug_body]
1296
+
1297
+ # return_type
1298
+ return_type = opts[:debug_return_type] || 'SandboxTemplatePage'
1299
+
1300
+ # auth_names
1301
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
1302
+
1303
+ new_options = opts.merge(
1304
+ :operation => :"SandboxesApi.list_sandboxes",
1305
+ :header_params => header_params,
1306
+ :query_params => query_params,
1307
+ :form_params => form_params,
1308
+ :body => post_body,
1309
+ :auth_names => auth_names,
1310
+ :return_type => return_type
1311
+ )
1312
+
1313
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1314
+ if @api_client.config.debugging
1315
+ @api_client.config.logger.debug "API called: SandboxesApi#list_sandboxes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1316
+ end
1317
+ return data, status_code, headers
1318
+ end
1319
+
1320
+ # Read a workspace file
1321
+ # @param session_id [String]
1322
+ # @param sandbox_file_read_request [SandboxFileReadRequest]
1323
+ # @param [Hash] opts the optional parameters
1324
+ # @return [SandboxFileResult]
1325
+ def read_sandbox_session_file(session_id, sandbox_file_read_request, opts = {})
1326
+ data, _status_code, _headers = read_sandbox_session_file_with_http_info(session_id, sandbox_file_read_request, opts)
1327
+ data
1328
+ end
1329
+
1330
+ # Read a workspace file
1331
+ # @param session_id [String]
1332
+ # @param sandbox_file_read_request [SandboxFileReadRequest]
1333
+ # @param [Hash] opts the optional parameters
1334
+ # @return [Array<(SandboxFileResult, Integer, Hash)>] SandboxFileResult data, response status code and response headers
1335
+ def read_sandbox_session_file_with_http_info(session_id, sandbox_file_read_request, opts = {})
1336
+ if @api_client.config.debugging
1337
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.read_sandbox_session_file ...'
1338
+ end
1339
+ # verify the required parameter 'session_id' is set
1340
+ if @api_client.config.client_side_validation && session_id.nil?
1341
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling SandboxesApi.read_sandbox_session_file"
1342
+ end
1343
+ # verify the required parameter 'sandbox_file_read_request' is set
1344
+ if @api_client.config.client_side_validation && sandbox_file_read_request.nil?
1345
+ fail ArgumentError, "Missing the required parameter 'sandbox_file_read_request' when calling SandboxesApi.read_sandbox_session_file"
1346
+ end
1347
+ # resource path
1348
+ local_var_path = '/sandbox-sessions/{sessionId}/files/read'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
1349
+
1350
+ # query parameters
1351
+ query_params = opts[:query_params] || {}
1352
+
1353
+ # header parameters
1354
+ header_params = opts[:header_params] || {}
1355
+ # HTTP header 'Accept' (if needed)
1356
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1357
+ # HTTP header 'Content-Type'
1358
+ content_type = @api_client.select_header_content_type(['application/json'])
1359
+ if !content_type.nil?
1360
+ header_params['Content-Type'] = content_type
1361
+ end
1362
+
1363
+ # form parameters
1364
+ form_params = opts[:form_params] || {}
1365
+
1366
+ # http body (model)
1367
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(sandbox_file_read_request)
1368
+
1369
+ # return_type
1370
+ return_type = opts[:debug_return_type] || 'SandboxFileResult'
1371
+
1372
+ # auth_names
1373
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'AuthUserAccessToken', 'UserToken']
1374
+
1375
+ new_options = opts.merge(
1376
+ :operation => :"SandboxesApi.read_sandbox_session_file",
1377
+ :header_params => header_params,
1378
+ :query_params => query_params,
1379
+ :form_params => form_params,
1380
+ :body => post_body,
1381
+ :auth_names => auth_names,
1382
+ :return_type => return_type
1383
+ )
1384
+
1385
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1386
+ if @api_client.config.debugging
1387
+ @api_client.config.logger.debug "API called: SandboxesApi#read_sandbox_session_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1388
+ end
1389
+ return data, status_code, headers
1390
+ end
1391
+
1392
+ # Resume a sandbox session
1393
+ # @param session_id [String]
1394
+ # @param [Hash] opts the optional parameters
1395
+ # @return [SandboxSession]
1396
+ def resume_sandbox_session(session_id, opts = {})
1397
+ data, _status_code, _headers = resume_sandbox_session_with_http_info(session_id, opts)
1398
+ data
1399
+ end
1400
+
1401
+ # Resume a sandbox session
1402
+ # @param session_id [String]
1403
+ # @param [Hash] opts the optional parameters
1404
+ # @return [Array<(SandboxSession, Integer, Hash)>] SandboxSession data, response status code and response headers
1405
+ def resume_sandbox_session_with_http_info(session_id, opts = {})
1406
+ if @api_client.config.debugging
1407
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.resume_sandbox_session ...'
1408
+ end
1409
+ # verify the required parameter 'session_id' is set
1410
+ if @api_client.config.client_side_validation && session_id.nil?
1411
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling SandboxesApi.resume_sandbox_session"
1412
+ end
1413
+ # resource path
1414
+ local_var_path = '/sandbox-sessions/{sessionId}/resume'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
1415
+
1416
+ # query parameters
1417
+ query_params = opts[:query_params] || {}
1418
+
1419
+ # header parameters
1420
+ header_params = opts[:header_params] || {}
1421
+ # HTTP header 'Accept' (if needed)
1422
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1423
+
1424
+ # form parameters
1425
+ form_params = opts[:form_params] || {}
1426
+
1427
+ # http body (model)
1428
+ post_body = opts[:debug_body]
1429
+
1430
+ # return_type
1431
+ return_type = opts[:debug_return_type] || 'SandboxSession'
1432
+
1433
+ # auth_names
1434
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
1435
+
1436
+ new_options = opts.merge(
1437
+ :operation => :"SandboxesApi.resume_sandbox_session",
1438
+ :header_params => header_params,
1439
+ :query_params => query_params,
1440
+ :form_params => form_params,
1441
+ :body => post_body,
1442
+ :auth_names => auth_names,
1443
+ :return_type => return_type
1444
+ )
1445
+
1446
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1447
+ if @api_client.config.debugging
1448
+ @api_client.config.logger.debug "API called: SandboxesApi#resume_sandbox_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1449
+ end
1450
+ return data, status_code, headers
1451
+ end
1452
+
1453
+ # Revoke a project user session grant
1454
+ # @param session_id [String]
1455
+ # @param subject_id [String]
1456
+ # @param [Hash] opts the optional parameters
1457
+ # @return [nil]
1458
+ def revoke_sandbox_session(session_id, subject_id, opts = {})
1459
+ revoke_sandbox_session_with_http_info(session_id, subject_id, opts)
1460
+ nil
1461
+ end
1462
+
1463
+ # Revoke a project user session grant
1464
+ # @param session_id [String]
1465
+ # @param subject_id [String]
1466
+ # @param [Hash] opts the optional parameters
1467
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1468
+ def revoke_sandbox_session_with_http_info(session_id, subject_id, opts = {})
1469
+ if @api_client.config.debugging
1470
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.revoke_sandbox_session ...'
1471
+ end
1472
+ # verify the required parameter 'session_id' is set
1473
+ if @api_client.config.client_side_validation && session_id.nil?
1474
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling SandboxesApi.revoke_sandbox_session"
1475
+ end
1476
+ # verify the required parameter 'subject_id' is set
1477
+ if @api_client.config.client_side_validation && subject_id.nil?
1478
+ fail ArgumentError, "Missing the required parameter 'subject_id' when calling SandboxesApi.revoke_sandbox_session"
1479
+ end
1480
+ # resource path
1481
+ local_var_path = '/sandbox-sessions/{sessionId}/grants/{subjectId}'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)).sub('{' + 'subjectId' + '}', CGI.escape(subject_id.to_s))
1482
+
1483
+ # query parameters
1484
+ query_params = opts[:query_params] || {}
1485
+
1486
+ # header parameters
1487
+ header_params = opts[:header_params] || {}
1488
+ # HTTP header 'Accept' (if needed)
1489
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1490
+
1491
+ # form parameters
1492
+ form_params = opts[:form_params] || {}
1493
+
1494
+ # http body (model)
1495
+ post_body = opts[:debug_body]
1496
+
1497
+ # return_type
1498
+ return_type = opts[:debug_return_type]
1499
+
1500
+ # auth_names
1501
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
1502
+
1503
+ new_options = opts.merge(
1504
+ :operation => :"SandboxesApi.revoke_sandbox_session",
1505
+ :header_params => header_params,
1506
+ :query_params => query_params,
1507
+ :form_params => form_params,
1508
+ :body => post_body,
1509
+ :auth_names => auth_names,
1510
+ :return_type => return_type
1511
+ )
1512
+
1513
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1514
+ if @api_client.config.debugging
1515
+ @api_client.config.logger.debug "API called: SandboxesApi#revoke_sandbox_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1516
+ end
1517
+ return data, status_code, headers
1518
+ end
1519
+
1520
+ # Suspend a sandbox session
1521
+ # @param session_id [String]
1522
+ # @param [Hash] opts the optional parameters
1523
+ # @return [SandboxSession]
1524
+ def suspend_sandbox_session(session_id, opts = {})
1525
+ data, _status_code, _headers = suspend_sandbox_session_with_http_info(session_id, opts)
1526
+ data
1527
+ end
1528
+
1529
+ # Suspend a sandbox session
1530
+ # @param session_id [String]
1531
+ # @param [Hash] opts the optional parameters
1532
+ # @return [Array<(SandboxSession, Integer, Hash)>] SandboxSession data, response status code and response headers
1533
+ def suspend_sandbox_session_with_http_info(session_id, opts = {})
1534
+ if @api_client.config.debugging
1535
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.suspend_sandbox_session ...'
1536
+ end
1537
+ # verify the required parameter 'session_id' is set
1538
+ if @api_client.config.client_side_validation && session_id.nil?
1539
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling SandboxesApi.suspend_sandbox_session"
1540
+ end
1541
+ # resource path
1542
+ local_var_path = '/sandbox-sessions/{sessionId}/suspend'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
1543
+
1544
+ # query parameters
1545
+ query_params = opts[:query_params] || {}
1546
+
1547
+ # header parameters
1548
+ header_params = opts[:header_params] || {}
1549
+ # HTTP header 'Accept' (if needed)
1550
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1551
+
1552
+ # form parameters
1553
+ form_params = opts[:form_params] || {}
1554
+
1555
+ # http body (model)
1556
+ post_body = opts[:debug_body]
1557
+
1558
+ # return_type
1559
+ return_type = opts[:debug_return_type] || 'SandboxSession'
1560
+
1561
+ # auth_names
1562
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
1563
+
1564
+ new_options = opts.merge(
1565
+ :operation => :"SandboxesApi.suspend_sandbox_session",
1566
+ :header_params => header_params,
1567
+ :query_params => query_params,
1568
+ :form_params => form_params,
1569
+ :body => post_body,
1570
+ :auth_names => auth_names,
1571
+ :return_type => return_type
1572
+ )
1573
+
1574
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1575
+ if @api_client.config.debugging
1576
+ @api_client.config.logger.debug "API called: SandboxesApi#suspend_sandbox_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1577
+ end
1578
+ return data, status_code, headers
1579
+ end
1580
+
1581
+ # Request sandbox termination
1582
+ # @param session_id [String]
1583
+ # @param [Hash] opts the optional parameters
1584
+ # @return [SandboxSession]
1585
+ def terminate_sandbox_session(session_id, opts = {})
1586
+ data, _status_code, _headers = terminate_sandbox_session_with_http_info(session_id, opts)
1587
+ data
1588
+ end
1589
+
1590
+ # Request sandbox termination
1591
+ # @param session_id [String]
1592
+ # @param [Hash] opts the optional parameters
1593
+ # @return [Array<(SandboxSession, Integer, Hash)>] SandboxSession data, response status code and response headers
1594
+ def terminate_sandbox_session_with_http_info(session_id, opts = {})
1595
+ if @api_client.config.debugging
1596
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.terminate_sandbox_session ...'
1597
+ end
1598
+ # verify the required parameter 'session_id' is set
1599
+ if @api_client.config.client_side_validation && session_id.nil?
1600
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling SandboxesApi.terminate_sandbox_session"
1601
+ end
1602
+ # resource path
1603
+ local_var_path = '/sandbox-sessions/{sessionId}'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
1604
+
1605
+ # query parameters
1606
+ query_params = opts[:query_params] || {}
1607
+
1608
+ # header parameters
1609
+ header_params = opts[:header_params] || {}
1610
+ # HTTP header 'Accept' (if needed)
1611
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1612
+
1613
+ # form parameters
1614
+ form_params = opts[:form_params] || {}
1615
+
1616
+ # http body (model)
1617
+ post_body = opts[:debug_body]
1618
+
1619
+ # return_type
1620
+ return_type = opts[:debug_return_type] || 'SandboxSession'
1621
+
1622
+ # auth_names
1623
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
1624
+
1625
+ new_options = opts.merge(
1626
+ :operation => :"SandboxesApi.terminate_sandbox_session",
1627
+ :header_params => header_params,
1628
+ :query_params => query_params,
1629
+ :form_params => form_params,
1630
+ :body => post_body,
1631
+ :auth_names => auth_names,
1632
+ :return_type => return_type
1633
+ )
1634
+
1635
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1636
+ if @api_client.config.debugging
1637
+ @api_client.config.logger.debug "API called: SandboxesApi#terminate_sandbox_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1638
+ end
1639
+ return data, status_code, headers
1640
+ end
1641
+
1642
+ # Rename a sandbox template
1643
+ # @param id [String]
1644
+ # @param sandbox_id [String]
1645
+ # @param update_sandbox_template_request [UpdateSandboxTemplateRequest]
1646
+ # @param [Hash] opts the optional parameters
1647
+ # @return [SandboxTemplate]
1648
+ def update_sandbox(id, sandbox_id, update_sandbox_template_request, opts = {})
1649
+ data, _status_code, _headers = update_sandbox_with_http_info(id, sandbox_id, update_sandbox_template_request, opts)
1650
+ data
1651
+ end
1652
+
1653
+ # Rename a sandbox template
1654
+ # @param id [String]
1655
+ # @param sandbox_id [String]
1656
+ # @param update_sandbox_template_request [UpdateSandboxTemplateRequest]
1657
+ # @param [Hash] opts the optional parameters
1658
+ # @return [Array<(SandboxTemplate, Integer, Hash)>] SandboxTemplate data, response status code and response headers
1659
+ def update_sandbox_with_http_info(id, sandbox_id, update_sandbox_template_request, opts = {})
1660
+ if @api_client.config.debugging
1661
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.update_sandbox ...'
1662
+ end
1663
+ # verify the required parameter 'id' is set
1664
+ if @api_client.config.client_side_validation && id.nil?
1665
+ fail ArgumentError, "Missing the required parameter 'id' when calling SandboxesApi.update_sandbox"
1666
+ end
1667
+ # verify the required parameter 'sandbox_id' is set
1668
+ if @api_client.config.client_side_validation && sandbox_id.nil?
1669
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxesApi.update_sandbox"
1670
+ end
1671
+ # verify the required parameter 'update_sandbox_template_request' is set
1672
+ if @api_client.config.client_side_validation && update_sandbox_template_request.nil?
1673
+ fail ArgumentError, "Missing the required parameter 'update_sandbox_template_request' when calling SandboxesApi.update_sandbox"
1674
+ end
1675
+ # resource path
1676
+ local_var_path = '/projects/{id}/sandboxes/{sandboxId}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
1677
+
1678
+ # query parameters
1679
+ query_params = opts[:query_params] || {}
1680
+
1681
+ # header parameters
1682
+ header_params = opts[:header_params] || {}
1683
+ # HTTP header 'Accept' (if needed)
1684
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1685
+ # HTTP header 'Content-Type'
1686
+ content_type = @api_client.select_header_content_type(['application/json'])
1687
+ if !content_type.nil?
1688
+ header_params['Content-Type'] = content_type
1689
+ end
1690
+
1691
+ # form parameters
1692
+ form_params = opts[:form_params] || {}
1693
+
1694
+ # http body (model)
1695
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_sandbox_template_request)
1696
+
1697
+ # return_type
1698
+ return_type = opts[:debug_return_type] || 'SandboxTemplate'
1699
+
1700
+ # auth_names
1701
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'UserToken']
1702
+
1703
+ new_options = opts.merge(
1704
+ :operation => :"SandboxesApi.update_sandbox",
1705
+ :header_params => header_params,
1706
+ :query_params => query_params,
1707
+ :form_params => form_params,
1708
+ :body => post_body,
1709
+ :auth_names => auth_names,
1710
+ :return_type => return_type
1711
+ )
1712
+
1713
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1714
+ if @api_client.config.debugging
1715
+ @api_client.config.logger.debug "API called: SandboxesApi#update_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1716
+ end
1717
+ return data, status_code, headers
1718
+ end
1719
+
1720
+ # Write a workspace file
1721
+ # @param session_id [String]
1722
+ # @param sandbox_file_write_request [SandboxFileWriteRequest]
1723
+ # @param [Hash] opts the optional parameters
1724
+ # @return [nil]
1725
+ def write_sandbox_session_file(session_id, sandbox_file_write_request, opts = {})
1726
+ write_sandbox_session_file_with_http_info(session_id, sandbox_file_write_request, opts)
1727
+ nil
1728
+ end
1729
+
1730
+ # Write a workspace file
1731
+ # @param session_id [String]
1732
+ # @param sandbox_file_write_request [SandboxFileWriteRequest]
1733
+ # @param [Hash] opts the optional parameters
1734
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1735
+ def write_sandbox_session_file_with_http_info(session_id, sandbox_file_write_request, opts = {})
1736
+ if @api_client.config.debugging
1737
+ @api_client.config.logger.debug 'Calling API: SandboxesApi.write_sandbox_session_file ...'
1738
+ end
1739
+ # verify the required parameter 'session_id' is set
1740
+ if @api_client.config.client_side_validation && session_id.nil?
1741
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling SandboxesApi.write_sandbox_session_file"
1742
+ end
1743
+ # verify the required parameter 'sandbox_file_write_request' is set
1744
+ if @api_client.config.client_side_validation && sandbox_file_write_request.nil?
1745
+ fail ArgumentError, "Missing the required parameter 'sandbox_file_write_request' when calling SandboxesApi.write_sandbox_session_file"
1746
+ end
1747
+ # resource path
1748
+ local_var_path = '/sandbox-sessions/{sessionId}/files/write'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
1749
+
1750
+ # query parameters
1751
+ query_params = opts[:query_params] || {}
1752
+
1753
+ # header parameters
1754
+ header_params = opts[:header_params] || {}
1755
+ # HTTP header 'Accept' (if needed)
1756
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1757
+ # HTTP header 'Content-Type'
1758
+ content_type = @api_client.select_header_content_type(['application/json'])
1759
+ if !content_type.nil?
1760
+ header_params['Content-Type'] = content_type
1761
+ end
1762
+
1763
+ # form parameters
1764
+ form_params = opts[:form_params] || {}
1765
+
1766
+ # http body (model)
1767
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(sandbox_file_write_request)
1768
+
1769
+ # return_type
1770
+ return_type = opts[:debug_return_type]
1771
+
1772
+ # auth_names
1773
+ auth_names = opts[:debug_auth_names] || ['ServiceRoleKey', 'AuthUserAccessToken', 'UserToken']
1774
+
1775
+ new_options = opts.merge(
1776
+ :operation => :"SandboxesApi.write_sandbox_session_file",
1777
+ :header_params => header_params,
1778
+ :query_params => query_params,
1779
+ :form_params => form_params,
1780
+ :body => post_body,
1781
+ :auth_names => auth_names,
1782
+ :return_type => return_type
1783
+ )
1784
+
1785
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1786
+ if @api_client.config.debugging
1787
+ @api_client.config.logger.debug "API called: SandboxesApi#write_sandbox_session_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1788
+ end
1789
+ return data, status_code, headers
1790
+ end
1791
+ end
1792
+ end