daytona_api_client 0.164.0.alpha.1 → 1.0.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 (207) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +101 -0
  4. data/daytona_api_client.gemspec +2 -2
  5. data/lib/daytona_api_client/api/api_keys_api.rb +1 -1
  6. data/lib/daytona_api_client/api/audit_api.rb +66 -18
  7. data/lib/daytona_api_client/api/docker_registry_api.rb +2 -5
  8. data/lib/daytona_api_client/api/health_api.rb +1 -52
  9. data/lib/daytona_api_client/api/organizations_api.rb +130 -982
  10. data/lib/daytona_api_client/api/preview_api.rb +5 -74
  11. data/lib/daytona_api_client/api/runners_api.rb +21 -408
  12. data/lib/daytona_api_client/api/sandbox_api.rb +192 -967
  13. data/lib/daytona_api_client/api/snapshots_api.rb +2 -68
  14. data/lib/daytona_api_client/api/toolbox_api.rb +740 -740
  15. data/lib/daytona_api_client/api/users_api.rb +2 -2
  16. data/lib/daytona_api_client/api/volumes_api.rb +1 -1
  17. data/lib/daytona_api_client/api/webhooks_api.rb +3 -3
  18. data/lib/daytona_api_client/api/workspace_api.rb +5 -5
  19. data/lib/daytona_api_client/api_client.rb +1 -1
  20. data/lib/daytona_api_client/configuration.rb +1 -4
  21. data/lib/daytona_api_client/models/account_provider.rb +0 -2
  22. data/lib/daytona_api_client/models/announcement.rb +0 -2
  23. data/lib/daytona_api_client/models/api_key_list.rb +0 -2
  24. data/lib/daytona_api_client/models/api_key_response.rb +0 -2
  25. data/lib/daytona_api_client/models/audit_log.rb +1 -21
  26. data/lib/daytona_api_client/models/build_info.rb +4 -33
  27. data/lib/daytona_api_client/models/command.rb +0 -2
  28. data/lib/daytona_api_client/models/completion_context.rb +0 -2
  29. data/lib/daytona_api_client/models/completion_item.rb +0 -2
  30. data/lib/daytona_api_client/models/completion_list.rb +0 -2
  31. data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -2
  32. data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -2
  33. data/lib/daytona_api_client/models/computer_use_status_response.rb +0 -2
  34. data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -2
  35. data/lib/daytona_api_client/models/create_api_key.rb +1 -3
  36. data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -168
  37. data/lib/daytona_api_client/models/create_build_info.rb +0 -2
  38. data/lib/daytona_api_client/models/create_docker_registry.rb +0 -2
  39. data/lib/daytona_api_client/models/create_linked_account.rb +0 -2
  40. data/lib/daytona_api_client/models/create_organization.rb +4 -33
  41. data/lib/daytona_api_client/models/create_organization_invitation.rb +0 -2
  42. data/lib/daytona_api_client/models/create_organization_quota.rb +0 -2
  43. data/lib/daytona_api_client/models/create_organization_role.rb +0 -2
  44. data/lib/daytona_api_client/models/create_runner.rb +315 -33
  45. data/lib/daytona_api_client/models/create_sandbox.rb +1 -13
  46. data/lib/daytona_api_client/models/create_session_request.rb +0 -2
  47. data/lib/daytona_api_client/models/create_snapshot.rb +4 -16
  48. data/lib/daytona_api_client/models/create_user.rb +1 -12
  49. data/lib/daytona_api_client/models/create_volume.rb +0 -2
  50. data/lib/daytona_api_client/models/create_workspace.rb +0 -2
  51. data/lib/daytona_api_client/models/daytona_configuration.rb +4 -53
  52. data/lib/daytona_api_client/models/display_info_response.rb +0 -2
  53. data/lib/daytona_api_client/models/docker_registry.rb +0 -2
  54. data/lib/daytona_api_client/models/download_files.rb +0 -2
  55. data/lib/daytona_api_client/models/execute_request.rb +0 -2
  56. data/lib/daytona_api_client/models/execute_response.rb +0 -2
  57. data/lib/daytona_api_client/models/file_info.rb +0 -2
  58. data/lib/daytona_api_client/models/file_status.rb +0 -2
  59. data/lib/daytona_api_client/models/git_add_request.rb +0 -2
  60. data/lib/daytona_api_client/models/git_branch_request.rb +0 -2
  61. data/lib/daytona_api_client/models/git_checkout_request.rb +0 -2
  62. data/lib/daytona_api_client/models/git_clone_request.rb +0 -2
  63. data/lib/daytona_api_client/models/git_commit_info.rb +0 -2
  64. data/lib/daytona_api_client/models/git_commit_request.rb +0 -2
  65. data/lib/daytona_api_client/models/git_commit_response.rb +0 -2
  66. data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -2
  67. data/lib/daytona_api_client/models/git_repo_request.rb +0 -2
  68. data/lib/daytona_api_client/models/git_status.rb +0 -2
  69. data/lib/daytona_api_client/models/health_controller_check200_response.rb +0 -2
  70. data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +0 -2
  71. data/lib/daytona_api_client/models/health_controller_check503_response.rb +0 -2
  72. data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -2
  73. data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -2
  74. data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -2
  75. data/lib/daytona_api_client/models/list_branch_response.rb +0 -2
  76. data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -2
  77. data/lib/daytona_api_client/models/lsp_document_request.rb +0 -2
  78. data/lib/daytona_api_client/models/lsp_location.rb +0 -2
  79. data/lib/daytona_api_client/models/lsp_server_request.rb +0 -2
  80. data/lib/daytona_api_client/models/lsp_symbol.rb +0 -2
  81. data/lib/daytona_api_client/models/match.rb +0 -2
  82. data/lib/daytona_api_client/models/mouse_click_request.rb +0 -2
  83. data/lib/daytona_api_client/models/mouse_click_response.rb +0 -2
  84. data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -2
  85. data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -2
  86. data/lib/daytona_api_client/models/mouse_move_request.rb +0 -2
  87. data/lib/daytona_api_client/models/mouse_move_response.rb +0 -2
  88. data/lib/daytona_api_client/models/mouse_position.rb +0 -2
  89. data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -2
  90. data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -2
  91. data/lib/daytona_api_client/models/oidc_config.rb +0 -2
  92. data/lib/daytona_api_client/models/organization.rb +85 -148
  93. data/lib/daytona_api_client/models/organization_invitation.rb +0 -2
  94. data/lib/daytona_api_client/models/organization_role.rb +0 -2
  95. data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +0 -2
  96. data/lib/daytona_api_client/models/organization_suspension.rb +5 -9
  97. data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -20
  98. data/lib/daytona_api_client/models/organization_user.rb +0 -2
  99. data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -16
  100. data/lib/daytona_api_client/models/paginated_sandboxes.rb +0 -2
  101. data/lib/daytona_api_client/models/paginated_snapshots.rb +0 -2
  102. data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -6
  103. data/lib/daytona_api_client/models/port_preview_url.rb +14 -33
  104. data/lib/daytona_api_client/models/position.rb +0 -2
  105. data/lib/daytona_api_client/models/posthog_config.rb +0 -2
  106. data/lib/daytona_api_client/models/process_errors_response.rb +0 -2
  107. data/lib/daytona_api_client/models/process_logs_response.rb +0 -2
  108. data/lib/daytona_api_client/models/process_restart_response.rb +0 -2
  109. data/lib/daytona_api_client/models/process_status_response.rb +0 -2
  110. data/lib/daytona_api_client/models/project_dir_response.rb +0 -2
  111. data/lib/daytona_api_client/models/pty_create_request.rb +0 -2
  112. data/lib/daytona_api_client/models/pty_create_response.rb +0 -2
  113. data/lib/daytona_api_client/models/pty_list_response.rb +0 -2
  114. data/lib/daytona_api_client/models/pty_resize_request.rb +0 -2
  115. data/lib/daytona_api_client/models/pty_session_info.rb +0 -2
  116. data/lib/daytona_api_client/models/range.rb +0 -2
  117. data/lib/daytona_api_client/models/region.rb +4 -180
  118. data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -2
  119. data/lib/daytona_api_client/models/registry_push_access_dto.rb +0 -2
  120. data/lib/daytona_api_client/models/replace_request.rb +0 -2
  121. data/lib/daytona_api_client/models/replace_result.rb +0 -2
  122. data/lib/daytona_api_client/models/runner.rb +117 -81
  123. data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -2
  124. data/lib/daytona_api_client/models/sandbox.rb +14 -80
  125. data/lib/daytona_api_client/models/sandbox_info.rb +0 -2
  126. data/lib/daytona_api_client/models/sandbox_labels.rb +0 -2
  127. data/lib/daytona_api_client/models/sandbox_state.rb +1 -2
  128. data/lib/daytona_api_client/models/sandbox_volume.rb +4 -16
  129. data/lib/daytona_api_client/models/screenshot_response.rb +0 -2
  130. data/lib/daytona_api_client/models/search_files_response.rb +0 -2
  131. data/lib/daytona_api_client/models/send_webhook_dto.rb +1 -25
  132. data/lib/daytona_api_client/models/session.rb +0 -2
  133. data/lib/daytona_api_client/models/session_execute_request.rb +0 -2
  134. data/lib/daytona_api_client/models/session_execute_response.rb +0 -2
  135. data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +0 -2
  136. data/lib/daytona_api_client/models/snapshot_dto.rb +4 -38
  137. data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
  138. data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -33
  139. data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -6
  140. data/lib/daytona_api_client/models/storage_access_dto.rb +0 -2
  141. data/lib/daytona_api_client/models/update_docker_registry.rb +0 -2
  142. data/lib/daytona_api_client/models/update_organization_invitation.rb +0 -2
  143. data/lib/daytona_api_client/models/update_organization_member_access.rb +0 -2
  144. data/lib/daytona_api_client/models/update_organization_quota.rb +41 -92
  145. data/lib/daytona_api_client/models/update_organization_role.rb +0 -2
  146. data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +6 -28
  147. data/lib/daytona_api_client/models/user.rb +0 -2
  148. data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -2
  149. data/lib/daytona_api_client/models/user_public_key.rb +0 -2
  150. data/lib/daytona_api_client/models/volume_dto.rb +0 -2
  151. data/lib/daytona_api_client/models/webhook_app_portal_access.rb +1 -30
  152. data/lib/daytona_api_client/models/webhook_controller_get_status200_response.rb +0 -2
  153. data/lib/daytona_api_client/models/webhook_initialization_status.rb +0 -2
  154. data/lib/daytona_api_client/models/windows_response.rb +0 -2
  155. data/lib/daytona_api_client/models/work_dir_response.rb +0 -2
  156. data/lib/daytona_api_client/models/workspace.rb +27 -66
  157. data/lib/daytona_api_client/version.rb +1 -1
  158. data/lib/daytona_api_client.rb +1 -42
  159. data/project.json +11 -38
  160. metadata +5 -50
  161. data/.gitignore +0 -39
  162. data/.openapi-generator/FILES +0 -206
  163. data/.openapi-generator/VERSION +0 -1
  164. data/.openapi-generator-ignore +0 -31
  165. data/.rspec +0 -2
  166. data/.rubocop.yml +0 -148
  167. data/fix-gemspec.sh +0 -11
  168. data/lib/daytona_api_client/api/admin_api.rb +0 -386
  169. data/lib/daytona_api_client/api/jobs_api.rb +0 -299
  170. data/lib/daytona_api_client/api/regions_api.rb +0 -77
  171. data/lib/daytona_api_client/models/admin_create_runner.rb +0 -387
  172. data/lib/daytona_api_client/models/create_region.rb +0 -271
  173. data/lib/daytona_api_client/models/create_region_response.rb +0 -282
  174. data/lib/daytona_api_client/models/create_runner_response.rb +0 -265
  175. data/lib/daytona_api_client/models/job_status.rb +0 -42
  176. data/lib/daytona_api_client/models/job_type.rb +0 -50
  177. data/lib/daytona_api_client/models/log_entry.rb +0 -407
  178. data/lib/daytona_api_client/models/metric_data_point.rb +0 -265
  179. data/lib/daytona_api_client/models/metric_series.rb +0 -267
  180. data/lib/daytona_api_client/models/metrics_response.rb +0 -240
  181. data/lib/daytona_api_client/models/otel_config.rb +0 -251
  182. data/lib/daytona_api_client/models/paginated_logs.rb +0 -321
  183. data/lib/daytona_api_client/models/paginated_traces.rb +0 -321
  184. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -240
  185. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -251
  186. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -231
  187. data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -238
  188. data/lib/daytona_api_client/models/region_quota.rb +0 -341
  189. data/lib/daytona_api_client/models/region_type.rb +0 -41
  190. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -393
  191. data/lib/daytona_api_client/models/resize_sandbox.rb +0 -298
  192. data/lib/daytona_api_client/models/runner_full.rb +0 -781
  193. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -535
  194. data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -290
  195. data/lib/daytona_api_client/models/runner_service_health.rb +0 -275
  196. data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -319
  197. data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -265
  198. data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -238
  199. data/lib/daytona_api_client/models/trace_span.rb +0 -405
  200. data/lib/daytona_api_client/models/trace_summary.rb +0 -383
  201. data/lib/daytona_api_client/models/update_job_status.rb +0 -280
  202. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -238
  203. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -247
  204. data/lib/daytona_api_client/models/update_region.rb +0 -244
  205. data/lib/daytona_api_client/models/url.rb +0 -238
  206. data/lib/daytona_api_client/models/webhook_event.rb +0 -45
  207. data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -265
@@ -20,38 +20,36 @@ module DaytonaApiClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Archive sandbox
23
- # @param sandbox_id_or_name [String]
23
+ # @param sandbox_id [String]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
26
- # @return [Sandbox]
27
- def archive_sandbox(sandbox_id_or_name, opts = {})
28
- data, _status_code, _headers = archive_sandbox_with_http_info(sandbox_id_or_name, opts)
29
- data
26
+ # @return [nil]
27
+ def archive_sandbox(sandbox_id, opts = {})
28
+ archive_sandbox_with_http_info(sandbox_id, opts)
29
+ nil
30
30
  end
31
31
 
32
32
  # Archive sandbox
33
- # @param sandbox_id_or_name [String]
33
+ # @param sandbox_id [String]
34
34
  # @param [Hash] opts the optional parameters
35
35
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
36
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
37
- def archive_sandbox_with_http_info(sandbox_id_or_name, opts = {})
36
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
+ def archive_sandbox_with_http_info(sandbox_id, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: SandboxApi.archive_sandbox ...'
40
40
  end
41
- # verify the required parameter 'sandbox_id_or_name' is set
42
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
43
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.archive_sandbox"
41
+ # verify the required parameter 'sandbox_id' is set
42
+ if @api_client.config.client_side_validation && sandbox_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.archive_sandbox"
44
44
  end
45
45
  # resource path
46
- local_var_path = '/sandbox/{sandboxIdOrName}/archive'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
46
+ local_var_path = '/sandbox/{sandboxId}/archive'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
47
47
 
48
48
  # query parameters
49
49
  query_params = opts[:query_params] || {}
50
50
 
51
51
  # header parameters
52
52
  header_params = opts[:header_params] || {}
53
- # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
53
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
56
54
 
57
55
  # form parameters
@@ -61,7 +59,7 @@ module DaytonaApiClient
61
59
  post_body = opts[:debug_body]
62
60
 
63
61
  # return_type
64
- return_type = opts[:debug_return_type] || 'Sandbox'
62
+ return_type = opts[:debug_return_type]
65
63
 
66
64
  # auth_names
67
65
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -84,30 +82,30 @@ module DaytonaApiClient
84
82
  end
85
83
 
86
84
  # Create sandbox backup
87
- # @param sandbox_id_or_name [String] ID or name of the sandbox
85
+ # @param sandbox_id [String] ID of the sandbox
88
86
  # @param [Hash] opts the optional parameters
89
87
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
90
88
  # @return [Sandbox]
91
- def create_backup(sandbox_id_or_name, opts = {})
92
- data, _status_code, _headers = create_backup_with_http_info(sandbox_id_or_name, opts)
89
+ def create_backup(sandbox_id, opts = {})
90
+ data, _status_code, _headers = create_backup_with_http_info(sandbox_id, opts)
93
91
  data
94
92
  end
95
93
 
96
94
  # Create sandbox backup
97
- # @param sandbox_id_or_name [String] ID or name of the sandbox
95
+ # @param sandbox_id [String] ID of the sandbox
98
96
  # @param [Hash] opts the optional parameters
99
97
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
100
98
  # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
101
- def create_backup_with_http_info(sandbox_id_or_name, opts = {})
99
+ def create_backup_with_http_info(sandbox_id, opts = {})
102
100
  if @api_client.config.debugging
103
101
  @api_client.config.logger.debug 'Calling API: SandboxApi.create_backup ...'
104
102
  end
105
- # verify the required parameter 'sandbox_id_or_name' is set
106
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
107
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.create_backup"
103
+ # verify the required parameter 'sandbox_id' is set
104
+ if @api_client.config.client_side_validation && sandbox_id.nil?
105
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.create_backup"
108
106
  end
109
107
  # resource path
110
- local_var_path = '/sandbox/{sandboxIdOrName}/backup'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
108
+ local_var_path = '/sandbox/{sandboxId}/backup'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
111
109
 
112
110
  # query parameters
113
111
  query_params = opts[:query_params] || {}
@@ -183,7 +181,7 @@ module DaytonaApiClient
183
181
  # HTTP header 'Content-Type'
184
182
  content_type = @api_client.select_header_content_type(['application/json'])
185
183
  if !content_type.nil?
186
- header_params['Content-Type'] = content_type
184
+ header_params['Content-Type'] = content_type
187
185
  end
188
186
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
189
187
 
@@ -217,32 +215,32 @@ module DaytonaApiClient
217
215
  end
218
216
 
219
217
  # Create SSH access for sandbox
220
- # @param sandbox_id_or_name [String] ID or name of the sandbox
218
+ # @param sandbox_id [String] ID of the sandbox
221
219
  # @param [Hash] opts the optional parameters
222
220
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
223
221
  # @option opts [Float] :expires_in_minutes Expiration time in minutes (default: 60)
224
222
  # @return [SshAccessDto]
225
- def create_ssh_access(sandbox_id_or_name, opts = {})
226
- data, _status_code, _headers = create_ssh_access_with_http_info(sandbox_id_or_name, opts)
223
+ def create_ssh_access(sandbox_id, opts = {})
224
+ data, _status_code, _headers = create_ssh_access_with_http_info(sandbox_id, opts)
227
225
  data
228
226
  end
229
227
 
230
228
  # Create SSH access for sandbox
231
- # @param sandbox_id_or_name [String] ID or name of the sandbox
229
+ # @param sandbox_id [String] ID of the sandbox
232
230
  # @param [Hash] opts the optional parameters
233
231
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
234
232
  # @option opts [Float] :expires_in_minutes Expiration time in minutes (default: 60)
235
233
  # @return [Array<(SshAccessDto, Integer, Hash)>] SshAccessDto data, response status code and response headers
236
- def create_ssh_access_with_http_info(sandbox_id_or_name, opts = {})
234
+ def create_ssh_access_with_http_info(sandbox_id, opts = {})
237
235
  if @api_client.config.debugging
238
236
  @api_client.config.logger.debug 'Calling API: SandboxApi.create_ssh_access ...'
239
237
  end
240
- # verify the required parameter 'sandbox_id_or_name' is set
241
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
242
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.create_ssh_access"
238
+ # verify the required parameter 'sandbox_id' is set
239
+ if @api_client.config.client_side_validation && sandbox_id.nil?
240
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.create_ssh_access"
243
241
  end
244
242
  # resource path
245
- local_var_path = '/sandbox/{sandboxIdOrName}/ssh-access'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
243
+ local_var_path = '/sandbox/{sandboxId}/ssh-access'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
246
244
 
247
245
  # query parameters
248
246
  query_params = opts[:query_params] || {}
@@ -284,38 +282,36 @@ module DaytonaApiClient
284
282
  end
285
283
 
286
284
  # Delete sandbox
287
- # @param sandbox_id_or_name [String] ID or name of the sandbox
285
+ # @param sandbox_id [String] ID of the sandbox
288
286
  # @param [Hash] opts the optional parameters
289
287
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
290
- # @return [Sandbox]
291
- def delete_sandbox(sandbox_id_or_name, opts = {})
292
- data, _status_code, _headers = delete_sandbox_with_http_info(sandbox_id_or_name, opts)
293
- data
288
+ # @return [nil]
289
+ def delete_sandbox(sandbox_id, opts = {})
290
+ delete_sandbox_with_http_info(sandbox_id, opts)
291
+ nil
294
292
  end
295
293
 
296
294
  # Delete sandbox
297
- # @param sandbox_id_or_name [String] ID or name of the sandbox
295
+ # @param sandbox_id [String] ID of the sandbox
298
296
  # @param [Hash] opts the optional parameters
299
297
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
300
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
301
- def delete_sandbox_with_http_info(sandbox_id_or_name, opts = {})
298
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
299
+ def delete_sandbox_with_http_info(sandbox_id, opts = {})
302
300
  if @api_client.config.debugging
303
301
  @api_client.config.logger.debug 'Calling API: SandboxApi.delete_sandbox ...'
304
302
  end
305
- # verify the required parameter 'sandbox_id_or_name' is set
306
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
307
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.delete_sandbox"
303
+ # verify the required parameter 'sandbox_id' is set
304
+ if @api_client.config.client_side_validation && sandbox_id.nil?
305
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.delete_sandbox"
308
306
  end
309
307
  # resource path
310
- local_var_path = '/sandbox/{sandboxIdOrName}'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
308
+ local_var_path = '/sandbox/{sandboxId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
311
309
 
312
310
  # query parameters
313
311
  query_params = opts[:query_params] || {}
314
312
 
315
313
  # header parameters
316
314
  header_params = opts[:header_params] || {}
317
- # HTTP header 'Accept' (if needed)
318
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
319
315
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
320
316
 
321
317
  # form parameters
@@ -325,7 +321,7 @@ module DaytonaApiClient
325
321
  post_body = opts[:debug_body]
326
322
 
327
323
  # return_type
328
- return_type = opts[:debug_return_type] || 'Sandbox'
324
+ return_type = opts[:debug_return_type]
329
325
 
330
326
  # auth_names
331
327
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -347,109 +343,33 @@ module DaytonaApiClient
347
343
  return data, status_code, headers
348
344
  end
349
345
 
350
- # Expire signed preview URL for a sandbox port
351
- # @param sandbox_id_or_name [String] ID or name of the sandbox
352
- # @param port [Integer] Port number to expire signed preview URL for
353
- # @param token [String] Token to expire signed preview URL for
354
- # @param [Hash] opts the optional parameters
355
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
356
- # @return [nil]
357
- def expire_signed_port_preview_url(sandbox_id_or_name, port, token, opts = {})
358
- expire_signed_port_preview_url_with_http_info(sandbox_id_or_name, port, token, opts)
359
- nil
360
- end
361
-
362
- # Expire signed preview URL for a sandbox port
363
- # @param sandbox_id_or_name [String] ID or name of the sandbox
364
- # @param port [Integer] Port number to expire signed preview URL for
365
- # @param token [String] Token to expire signed preview URL for
366
- # @param [Hash] opts the optional parameters
367
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
368
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
369
- def expire_signed_port_preview_url_with_http_info(sandbox_id_or_name, port, token, opts = {})
370
- if @api_client.config.debugging
371
- @api_client.config.logger.debug 'Calling API: SandboxApi.expire_signed_port_preview_url ...'
372
- end
373
- # verify the required parameter 'sandbox_id_or_name' is set
374
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
375
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.expire_signed_port_preview_url"
376
- end
377
- # verify the required parameter 'port' is set
378
- if @api_client.config.client_side_validation && port.nil?
379
- fail ArgumentError, "Missing the required parameter 'port' when calling SandboxApi.expire_signed_port_preview_url"
380
- end
381
- # verify the required parameter 'token' is set
382
- if @api_client.config.client_side_validation && token.nil?
383
- fail ArgumentError, "Missing the required parameter 'token' when calling SandboxApi.expire_signed_port_preview_url"
384
- end
385
- # resource path
386
- local_var_path = '/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url/{token}/expire'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s)).sub('{' + 'port' + '}', CGI.escape(port.to_s)).sub('{' + 'token' + '}', CGI.escape(token.to_s))
387
-
388
- # query parameters
389
- query_params = opts[:query_params] || {}
390
-
391
- # header parameters
392
- header_params = opts[:header_params] || {}
393
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
394
-
395
- # form parameters
396
- form_params = opts[:form_params] || {}
397
-
398
- # http body (model)
399
- post_body = opts[:debug_body]
400
-
401
- # return_type
402
- return_type = opts[:debug_return_type]
403
-
404
- # auth_names
405
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
406
-
407
- new_options = opts.merge(
408
- :operation => :"SandboxApi.expire_signed_port_preview_url",
409
- :header_params => header_params,
410
- :query_params => query_params,
411
- :form_params => form_params,
412
- :body => post_body,
413
- :auth_names => auth_names,
414
- :return_type => return_type
415
- )
416
-
417
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
418
- if @api_client.config.debugging
419
- @api_client.config.logger.debug "API called: SandboxApi#expire_signed_port_preview_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
420
- end
421
- return data, status_code, headers
422
- end
423
-
424
346
  # Get build logs
425
- # This endpoint is deprecated. Use `getBuildLogsUrl` instead.
426
- # @param sandbox_id_or_name [String] ID or name of the sandbox
347
+ # @param sandbox_id [String] ID of the sandbox
427
348
  # @param [Hash] opts the optional parameters
428
349
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
429
350
  # @option opts [Boolean] :follow Whether to follow the logs stream
430
351
  # @return [nil]
431
- def get_build_logs(sandbox_id_or_name, opts = {})
432
- get_build_logs_with_http_info(sandbox_id_or_name, opts)
352
+ def get_build_logs(sandbox_id, opts = {})
353
+ get_build_logs_with_http_info(sandbox_id, opts)
433
354
  nil
434
355
  end
435
356
 
436
357
  # Get build logs
437
- # This endpoint is deprecated. Use &#x60;getBuildLogsUrl&#x60; instead.
438
- # @param sandbox_id_or_name [String] ID or name of the sandbox
358
+ # @param sandbox_id [String] ID of the sandbox
439
359
  # @param [Hash] opts the optional parameters
440
360
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
441
361
  # @option opts [Boolean] :follow Whether to follow the logs stream
442
362
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
443
- def get_build_logs_with_http_info(sandbox_id_or_name, opts = {})
363
+ def get_build_logs_with_http_info(sandbox_id, opts = {})
444
364
  if @api_client.config.debugging
445
365
  @api_client.config.logger.debug 'Calling API: SandboxApi.get_build_logs ...'
446
366
  end
447
- # verify the required parameter 'sandbox_id_or_name' is set
448
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
449
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.get_build_logs"
367
+ # verify the required parameter 'sandbox_id' is set
368
+ if @api_client.config.client_side_validation && sandbox_id.nil?
369
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_build_logs"
450
370
  end
451
371
  # resource path
452
- local_var_path = '/sandbox/{sandboxIdOrName}/build-logs'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
372
+ local_var_path = '/sandbox/{sandboxId}/build-logs'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
453
373
 
454
374
  # query parameters
455
375
  query_params = opts[:query_params] || {}
@@ -488,101 +408,37 @@ module DaytonaApiClient
488
408
  return data, status_code, headers
489
409
  end
490
410
 
491
- # Get build logs URL
492
- # @param sandbox_id_or_name [String] ID or name of the sandbox
493
- # @param [Hash] opts the optional parameters
494
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
495
- # @return [Url]
496
- def get_build_logs_url(sandbox_id_or_name, opts = {})
497
- data, _status_code, _headers = get_build_logs_url_with_http_info(sandbox_id_or_name, opts)
498
- data
499
- end
500
-
501
- # Get build logs URL
502
- # @param sandbox_id_or_name [String] ID or name of the sandbox
503
- # @param [Hash] opts the optional parameters
504
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
505
- # @return [Array<(Url, Integer, Hash)>] Url data, response status code and response headers
506
- def get_build_logs_url_with_http_info(sandbox_id_or_name, opts = {})
507
- if @api_client.config.debugging
508
- @api_client.config.logger.debug 'Calling API: SandboxApi.get_build_logs_url ...'
509
- end
510
- # verify the required parameter 'sandbox_id_or_name' is set
511
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
512
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.get_build_logs_url"
513
- end
514
- # resource path
515
- local_var_path = '/sandbox/{sandboxIdOrName}/build-logs-url'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
516
-
517
- # query parameters
518
- query_params = opts[:query_params] || {}
519
-
520
- # header parameters
521
- header_params = opts[:header_params] || {}
522
- # HTTP header 'Accept' (if needed)
523
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
524
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
525
-
526
- # form parameters
527
- form_params = opts[:form_params] || {}
528
-
529
- # http body (model)
530
- post_body = opts[:debug_body]
531
-
532
- # return_type
533
- return_type = opts[:debug_return_type] || 'Url'
534
-
535
- # auth_names
536
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
537
-
538
- new_options = opts.merge(
539
- :operation => :"SandboxApi.get_build_logs_url",
540
- :header_params => header_params,
541
- :query_params => query_params,
542
- :form_params => form_params,
543
- :body => post_body,
544
- :auth_names => auth_names,
545
- :return_type => return_type
546
- )
547
-
548
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
549
- if @api_client.config.debugging
550
- @api_client.config.logger.debug "API called: SandboxApi#get_build_logs_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
551
- end
552
- return data, status_code, headers
553
- end
554
-
555
411
  # Get preview URL for a sandbox port
556
- # @param sandbox_id_or_name [String] ID or name of the sandbox
412
+ # @param sandbox_id [String] ID of the sandbox
557
413
  # @param port [Float] Port number to get preview URL for
558
414
  # @param [Hash] opts the optional parameters
559
415
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
560
416
  # @return [PortPreviewUrl]
561
- def get_port_preview_url(sandbox_id_or_name, port, opts = {})
562
- data, _status_code, _headers = get_port_preview_url_with_http_info(sandbox_id_or_name, port, opts)
417
+ def get_port_preview_url(sandbox_id, port, opts = {})
418
+ data, _status_code, _headers = get_port_preview_url_with_http_info(sandbox_id, port, opts)
563
419
  data
564
420
  end
565
421
 
566
422
  # Get preview URL for a sandbox port
567
- # @param sandbox_id_or_name [String] ID or name of the sandbox
423
+ # @param sandbox_id [String] ID of the sandbox
568
424
  # @param port [Float] Port number to get preview URL for
569
425
  # @param [Hash] opts the optional parameters
570
426
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
571
427
  # @return [Array<(PortPreviewUrl, Integer, Hash)>] PortPreviewUrl data, response status code and response headers
572
- def get_port_preview_url_with_http_info(sandbox_id_or_name, port, opts = {})
428
+ def get_port_preview_url_with_http_info(sandbox_id, port, opts = {})
573
429
  if @api_client.config.debugging
574
430
  @api_client.config.logger.debug 'Calling API: SandboxApi.get_port_preview_url ...'
575
431
  end
576
- # verify the required parameter 'sandbox_id_or_name' is set
577
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
578
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.get_port_preview_url"
432
+ # verify the required parameter 'sandbox_id' is set
433
+ if @api_client.config.client_side_validation && sandbox_id.nil?
434
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_port_preview_url"
579
435
  end
580
436
  # verify the required parameter 'port' is set
581
437
  if @api_client.config.client_side_validation && port.nil?
582
438
  fail ArgumentError, "Missing the required parameter 'port' when calling SandboxApi.get_port_preview_url"
583
439
  end
584
440
  # resource path
585
- local_var_path = '/sandbox/{sandboxIdOrName}/ports/{port}/preview-url'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s)).sub('{' + 'port' + '}', CGI.escape(port.to_s))
441
+ local_var_path = '/sandbox/{sandboxId}/ports/{port}/preview-url'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'port' + '}', CGI.escape(port.to_s))
586
442
 
587
443
  # query parameters
588
444
  query_params = opts[:query_params] || {}
@@ -623,32 +479,32 @@ module DaytonaApiClient
623
479
  end
624
480
 
625
481
  # Get sandbox details
626
- # @param sandbox_id_or_name [String] ID or name of the sandbox
482
+ # @param sandbox_id [String] ID of the sandbox
627
483
  # @param [Hash] opts the optional parameters
628
484
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
629
485
  # @option opts [Boolean] :verbose Include verbose output
630
486
  # @return [Sandbox]
631
- def get_sandbox(sandbox_id_or_name, opts = {})
632
- data, _status_code, _headers = get_sandbox_with_http_info(sandbox_id_or_name, opts)
487
+ def get_sandbox(sandbox_id, opts = {})
488
+ data, _status_code, _headers = get_sandbox_with_http_info(sandbox_id, opts)
633
489
  data
634
490
  end
635
491
 
636
492
  # Get sandbox details
637
- # @param sandbox_id_or_name [String] ID or name of the sandbox
493
+ # @param sandbox_id [String] ID of the sandbox
638
494
  # @param [Hash] opts the optional parameters
639
495
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
640
496
  # @option opts [Boolean] :verbose Include verbose output
641
497
  # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
642
- def get_sandbox_with_http_info(sandbox_id_or_name, opts = {})
498
+ def get_sandbox_with_http_info(sandbox_id, opts = {})
643
499
  if @api_client.config.debugging
644
500
  @api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox ...'
645
501
  end
646
- # verify the required parameter 'sandbox_id_or_name' is set
647
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
648
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.get_sandbox"
502
+ # verify the required parameter 'sandbox_id' is set
503
+ if @api_client.config.client_side_validation && sandbox_id.nil?
504
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_sandbox"
649
505
  end
650
506
  # resource path
651
- local_var_path = '/sandbox/{sandboxIdOrName}'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
507
+ local_var_path = '/sandbox/{sandboxId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
652
508
 
653
509
  # query parameters
654
510
  query_params = opts[:query_params] || {}
@@ -689,145 +545,28 @@ module DaytonaApiClient
689
545
  return data, status_code, headers
690
546
  end
691
547
 
692
- # Get sandbox logs
693
- # Retrieve OTEL logs for a sandbox within a time range
694
- # @param sandbox_id [String] ID of the sandbox
695
- # @param from [Time] Start of time range (ISO 8601)
696
- # @param to [Time] End of time range (ISO 8601)
697
- # @param [Hash] opts the optional parameters
698
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
699
- # @option opts [Float] :page Page number (1-indexed) (default to 1)
700
- # @option opts [Float] :limit Number of items per page (default to 100)
701
- # @option opts [Array<String>] :severities Filter by severity levels (DEBUG, INFO, WARN, ERROR)
702
- # @option opts [String] :search Search in log body
703
- # @return [PaginatedLogs]
704
- def get_sandbox_logs(sandbox_id, from, to, opts = {})
705
- data, _status_code, _headers = get_sandbox_logs_with_http_info(sandbox_id, from, to, opts)
706
- data
707
- end
708
-
709
- # Get sandbox logs
710
- # Retrieve OTEL logs for a sandbox within a time range
711
- # @param sandbox_id [String] ID of the sandbox
712
- # @param from [Time] Start of time range (ISO 8601)
713
- # @param to [Time] End of time range (ISO 8601)
714
- # @param [Hash] opts the optional parameters
715
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
716
- # @option opts [Float] :page Page number (1-indexed) (default to 1)
717
- # @option opts [Float] :limit Number of items per page (default to 100)
718
- # @option opts [Array<String>] :severities Filter by severity levels (DEBUG, INFO, WARN, ERROR)
719
- # @option opts [String] :search Search in log body
720
- # @return [Array<(PaginatedLogs, Integer, Hash)>] PaginatedLogs data, response status code and response headers
721
- def get_sandbox_logs_with_http_info(sandbox_id, from, to, opts = {})
722
- if @api_client.config.debugging
723
- @api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox_logs ...'
724
- end
725
- # verify the required parameter 'sandbox_id' is set
726
- if @api_client.config.client_side_validation && sandbox_id.nil?
727
- fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_sandbox_logs"
728
- end
729
- # verify the required parameter 'from' is set
730
- if @api_client.config.client_side_validation && from.nil?
731
- fail ArgumentError, "Missing the required parameter 'from' when calling SandboxApi.get_sandbox_logs"
732
- end
733
- # verify the required parameter 'to' is set
734
- if @api_client.config.client_side_validation && to.nil?
735
- fail ArgumentError, "Missing the required parameter 'to' when calling SandboxApi.get_sandbox_logs"
736
- end
737
- # resource path
738
- local_var_path = '/sandbox/{sandboxId}/telemetry/logs'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
739
-
740
- # query parameters
741
- query_params = opts[:query_params] || {}
742
- query_params[:'from'] = from
743
- query_params[:'to'] = to
744
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
745
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
746
- query_params[:'severities'] = @api_client.build_collection_param(opts[:'severities'], :multi) if !opts[:'severities'].nil?
747
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
748
-
749
- # header parameters
750
- header_params = opts[:header_params] || {}
751
- # HTTP header 'Accept' (if needed)
752
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
753
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
754
-
755
- # form parameters
756
- form_params = opts[:form_params] || {}
757
-
758
- # http body (model)
759
- post_body = opts[:debug_body]
760
-
761
- # return_type
762
- return_type = opts[:debug_return_type] || 'PaginatedLogs'
763
-
764
- # auth_names
765
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
766
-
767
- new_options = opts.merge(
768
- :operation => :"SandboxApi.get_sandbox_logs",
769
- :header_params => header_params,
770
- :query_params => query_params,
771
- :form_params => form_params,
772
- :body => post_body,
773
- :auth_names => auth_names,
774
- :return_type => return_type
775
- )
776
-
777
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
778
- if @api_client.config.debugging
779
- @api_client.config.logger.debug "API called: SandboxApi#get_sandbox_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
780
- end
781
- return data, status_code, headers
782
- end
783
-
784
- # Get sandbox metrics
785
- # Retrieve OTEL metrics for a sandbox within a time range
786
- # @param sandbox_id [String] ID of the sandbox
787
- # @param from [Time] Start of time range (ISO 8601)
788
- # @param to [Time] End of time range (ISO 8601)
548
+ # List all regions where sandboxes have been created
789
549
  # @param [Hash] opts the optional parameters
790
550
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
791
- # @option opts [Array<String>] :metric_names Filter by metric names
792
- # @return [MetricsResponse]
793
- def get_sandbox_metrics(sandbox_id, from, to, opts = {})
794
- data, _status_code, _headers = get_sandbox_metrics_with_http_info(sandbox_id, from, to, opts)
551
+ # @return [Array<Region>]
552
+ def get_sandbox_regions(opts = {})
553
+ data, _status_code, _headers = get_sandbox_regions_with_http_info(opts)
795
554
  data
796
555
  end
797
556
 
798
- # Get sandbox metrics
799
- # Retrieve OTEL metrics for a sandbox within a time range
800
- # @param sandbox_id [String] ID of the sandbox
801
- # @param from [Time] Start of time range (ISO 8601)
802
- # @param to [Time] End of time range (ISO 8601)
557
+ # List all regions where sandboxes have been created
803
558
  # @param [Hash] opts the optional parameters
804
559
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
805
- # @option opts [Array<String>] :metric_names Filter by metric names
806
- # @return [Array<(MetricsResponse, Integer, Hash)>] MetricsResponse data, response status code and response headers
807
- def get_sandbox_metrics_with_http_info(sandbox_id, from, to, opts = {})
560
+ # @return [Array<(Array<Region>, Integer, Hash)>] Array<Region> data, response status code and response headers
561
+ def get_sandbox_regions_with_http_info(opts = {})
808
562
  if @api_client.config.debugging
809
- @api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox_metrics ...'
810
- end
811
- # verify the required parameter 'sandbox_id' is set
812
- if @api_client.config.client_side_validation && sandbox_id.nil?
813
- fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_sandbox_metrics"
814
- end
815
- # verify the required parameter 'from' is set
816
- if @api_client.config.client_side_validation && from.nil?
817
- fail ArgumentError, "Missing the required parameter 'from' when calling SandboxApi.get_sandbox_metrics"
818
- end
819
- # verify the required parameter 'to' is set
820
- if @api_client.config.client_side_validation && to.nil?
821
- fail ArgumentError, "Missing the required parameter 'to' when calling SandboxApi.get_sandbox_metrics"
563
+ @api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox_regions ...'
822
564
  end
823
565
  # resource path
824
- local_var_path = '/sandbox/{sandboxId}/telemetry/metrics'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
566
+ local_var_path = '/sandbox/regions'
825
567
 
826
568
  # query parameters
827
569
  query_params = opts[:query_params] || {}
828
- query_params[:'from'] = from
829
- query_params[:'to'] = to
830
- query_params[:'metricNames'] = @api_client.build_collection_param(opts[:'metric_names'], :multi) if !opts[:'metric_names'].nil?
831
570
 
832
571
  # header parameters
833
572
  header_params = opts[:header_params] || {}
@@ -842,13 +581,13 @@ module DaytonaApiClient
842
581
  post_body = opts[:debug_body]
843
582
 
844
583
  # return_type
845
- return_type = opts[:debug_return_type] || 'MetricsResponse'
584
+ return_type = opts[:debug_return_type] || 'Array<Region>'
846
585
 
847
586
  # auth_names
848
587
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
849
588
 
850
589
  new_options = opts.merge(
851
- :operation => :"SandboxApi.get_sandbox_metrics",
590
+ :operation => :"SandboxApi.get_sandbox_regions",
852
591
  :header_params => header_params,
853
592
  :query_params => query_params,
854
593
  :form_params => form_params,
@@ -859,165 +598,7 @@ module DaytonaApiClient
859
598
 
860
599
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
861
600
  if @api_client.config.debugging
862
- @api_client.config.logger.debug "API called: SandboxApi#get_sandbox_metrics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
863
- end
864
- return data, status_code, headers
865
- end
866
-
867
- # Get trace spans
868
- # Retrieve all spans for a specific trace
869
- # @param sandbox_id [String] ID of the sandbox
870
- # @param trace_id [String] ID of the trace
871
- # @param [Hash] opts the optional parameters
872
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
873
- # @return [Array<TraceSpan>]
874
- def get_sandbox_trace_spans(sandbox_id, trace_id, opts = {})
875
- data, _status_code, _headers = get_sandbox_trace_spans_with_http_info(sandbox_id, trace_id, opts)
876
- data
877
- end
878
-
879
- # Get trace spans
880
- # Retrieve all spans for a specific trace
881
- # @param sandbox_id [String] ID of the sandbox
882
- # @param trace_id [String] ID of the trace
883
- # @param [Hash] opts the optional parameters
884
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
885
- # @return [Array<(Array<TraceSpan>, Integer, Hash)>] Array<TraceSpan> data, response status code and response headers
886
- def get_sandbox_trace_spans_with_http_info(sandbox_id, trace_id, opts = {})
887
- if @api_client.config.debugging
888
- @api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox_trace_spans ...'
889
- end
890
- # verify the required parameter 'sandbox_id' is set
891
- if @api_client.config.client_side_validation && sandbox_id.nil?
892
- fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_sandbox_trace_spans"
893
- end
894
- # verify the required parameter 'trace_id' is set
895
- if @api_client.config.client_side_validation && trace_id.nil?
896
- fail ArgumentError, "Missing the required parameter 'trace_id' when calling SandboxApi.get_sandbox_trace_spans"
897
- end
898
- # resource path
899
- local_var_path = '/sandbox/{sandboxId}/telemetry/traces/{traceId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'traceId' + '}', CGI.escape(trace_id.to_s))
900
-
901
- # query parameters
902
- query_params = opts[:query_params] || {}
903
-
904
- # header parameters
905
- header_params = opts[:header_params] || {}
906
- # HTTP header 'Accept' (if needed)
907
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
908
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
909
-
910
- # form parameters
911
- form_params = opts[:form_params] || {}
912
-
913
- # http body (model)
914
- post_body = opts[:debug_body]
915
-
916
- # return_type
917
- return_type = opts[:debug_return_type] || 'Array<TraceSpan>'
918
-
919
- # auth_names
920
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
921
-
922
- new_options = opts.merge(
923
- :operation => :"SandboxApi.get_sandbox_trace_spans",
924
- :header_params => header_params,
925
- :query_params => query_params,
926
- :form_params => form_params,
927
- :body => post_body,
928
- :auth_names => auth_names,
929
- :return_type => return_type
930
- )
931
-
932
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
933
- if @api_client.config.debugging
934
- @api_client.config.logger.debug "API called: SandboxApi#get_sandbox_trace_spans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
935
- end
936
- return data, status_code, headers
937
- end
938
-
939
- # Get sandbox traces
940
- # Retrieve OTEL traces for a sandbox within a time range
941
- # @param sandbox_id [String] ID of the sandbox
942
- # @param from [Time] Start of time range (ISO 8601)
943
- # @param to [Time] End of time range (ISO 8601)
944
- # @param [Hash] opts the optional parameters
945
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
946
- # @option opts [Float] :page Page number (1-indexed) (default to 1)
947
- # @option opts [Float] :limit Number of items per page (default to 100)
948
- # @return [PaginatedTraces]
949
- def get_sandbox_traces(sandbox_id, from, to, opts = {})
950
- data, _status_code, _headers = get_sandbox_traces_with_http_info(sandbox_id, from, to, opts)
951
- data
952
- end
953
-
954
- # Get sandbox traces
955
- # Retrieve OTEL traces for a sandbox within a time range
956
- # @param sandbox_id [String] ID of the sandbox
957
- # @param from [Time] Start of time range (ISO 8601)
958
- # @param to [Time] End of time range (ISO 8601)
959
- # @param [Hash] opts the optional parameters
960
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
961
- # @option opts [Float] :page Page number (1-indexed) (default to 1)
962
- # @option opts [Float] :limit Number of items per page (default to 100)
963
- # @return [Array<(PaginatedTraces, Integer, Hash)>] PaginatedTraces data, response status code and response headers
964
- def get_sandbox_traces_with_http_info(sandbox_id, from, to, opts = {})
965
- if @api_client.config.debugging
966
- @api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox_traces ...'
967
- end
968
- # verify the required parameter 'sandbox_id' is set
969
- if @api_client.config.client_side_validation && sandbox_id.nil?
970
- fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_sandbox_traces"
971
- end
972
- # verify the required parameter 'from' is set
973
- if @api_client.config.client_side_validation && from.nil?
974
- fail ArgumentError, "Missing the required parameter 'from' when calling SandboxApi.get_sandbox_traces"
975
- end
976
- # verify the required parameter 'to' is set
977
- if @api_client.config.client_side_validation && to.nil?
978
- fail ArgumentError, "Missing the required parameter 'to' when calling SandboxApi.get_sandbox_traces"
979
- end
980
- # resource path
981
- local_var_path = '/sandbox/{sandboxId}/telemetry/traces'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
982
-
983
- # query parameters
984
- query_params = opts[:query_params] || {}
985
- query_params[:'from'] = from
986
- query_params[:'to'] = to
987
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
988
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
989
-
990
- # header parameters
991
- header_params = opts[:header_params] || {}
992
- # HTTP header 'Accept' (if needed)
993
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
994
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
995
-
996
- # form parameters
997
- form_params = opts[:form_params] || {}
998
-
999
- # http body (model)
1000
- post_body = opts[:debug_body]
1001
-
1002
- # return_type
1003
- return_type = opts[:debug_return_type] || 'PaginatedTraces'
1004
-
1005
- # auth_names
1006
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1007
-
1008
- new_options = opts.merge(
1009
- :operation => :"SandboxApi.get_sandbox_traces",
1010
- :header_params => header_params,
1011
- :query_params => query_params,
1012
- :form_params => form_params,
1013
- :body => post_body,
1014
- :auth_names => auth_names,
1015
- :return_type => return_type
1016
- )
1017
-
1018
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1019
- if @api_client.config.debugging
1020
- @api_client.config.logger.debug "API called: SandboxApi#get_sandbox_traces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
601
+ @api_client.config.logger.debug "API called: SandboxApi#get_sandbox_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1021
602
  end
1022
603
  return data, status_code, headers
1023
604
  end
@@ -1033,160 +614,23 @@ module DaytonaApiClient
1033
614
  data
1034
615
  end
1035
616
 
1036
- # Get sandboxes for the authenticated runner
1037
- # @param [Hash] opts the optional parameters
1038
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1039
- # @option opts [String] :states Comma-separated list of sandbox states to filter by
1040
- # @option opts [Boolean] :skip_reconciling_sandboxes Skip sandboxes where state differs from desired state
1041
- # @return [Array<(Array<Sandbox>, Integer, Hash)>] Array<Sandbox> data, response status code and response headers
1042
- def get_sandboxes_for_runner_with_http_info(opts = {})
1043
- if @api_client.config.debugging
1044
- @api_client.config.logger.debug 'Calling API: SandboxApi.get_sandboxes_for_runner ...'
1045
- end
1046
- # resource path
1047
- local_var_path = '/sandbox/for-runner'
1048
-
1049
- # query parameters
1050
- query_params = opts[:query_params] || {}
1051
- query_params[:'states'] = opts[:'states'] if !opts[:'states'].nil?
1052
- query_params[:'skipReconcilingSandboxes'] = opts[:'skip_reconciling_sandboxes'] if !opts[:'skip_reconciling_sandboxes'].nil?
1053
-
1054
- # header parameters
1055
- header_params = opts[:header_params] || {}
1056
- # HTTP header 'Accept' (if needed)
1057
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1058
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1059
-
1060
- # form parameters
1061
- form_params = opts[:form_params] || {}
1062
-
1063
- # http body (model)
1064
- post_body = opts[:debug_body]
1065
-
1066
- # return_type
1067
- return_type = opts[:debug_return_type] || 'Array<Sandbox>'
1068
-
1069
- # auth_names
1070
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1071
-
1072
- new_options = opts.merge(
1073
- :operation => :"SandboxApi.get_sandboxes_for_runner",
1074
- :header_params => header_params,
1075
- :query_params => query_params,
1076
- :form_params => form_params,
1077
- :body => post_body,
1078
- :auth_names => auth_names,
1079
- :return_type => return_type
1080
- )
1081
-
1082
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1083
- if @api_client.config.debugging
1084
- @api_client.config.logger.debug "API called: SandboxApi#get_sandboxes_for_runner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1085
- end
1086
- return data, status_code, headers
1087
- end
1088
-
1089
- # Get signed preview URL for a sandbox port
1090
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1091
- # @param port [Integer] Port number to get signed preview URL for
1092
- # @param [Hash] opts the optional parameters
1093
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1094
- # @option opts [Integer] :expires_in_seconds Expiration time in seconds (default: 60 seconds)
1095
- # @return [SignedPortPreviewUrl]
1096
- def get_signed_port_preview_url(sandbox_id_or_name, port, opts = {})
1097
- data, _status_code, _headers = get_signed_port_preview_url_with_http_info(sandbox_id_or_name, port, opts)
1098
- data
1099
- end
1100
-
1101
- # Get signed preview URL for a sandbox port
1102
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1103
- # @param port [Integer] Port number to get signed preview URL for
1104
- # @param [Hash] opts the optional parameters
1105
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1106
- # @option opts [Integer] :expires_in_seconds Expiration time in seconds (default: 60 seconds)
1107
- # @return [Array<(SignedPortPreviewUrl, Integer, Hash)>] SignedPortPreviewUrl data, response status code and response headers
1108
- def get_signed_port_preview_url_with_http_info(sandbox_id_or_name, port, opts = {})
1109
- if @api_client.config.debugging
1110
- @api_client.config.logger.debug 'Calling API: SandboxApi.get_signed_port_preview_url ...'
1111
- end
1112
- # verify the required parameter 'sandbox_id_or_name' is set
1113
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1114
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.get_signed_port_preview_url"
1115
- end
1116
- # verify the required parameter 'port' is set
1117
- if @api_client.config.client_side_validation && port.nil?
1118
- fail ArgumentError, "Missing the required parameter 'port' when calling SandboxApi.get_signed_port_preview_url"
1119
- end
1120
- # resource path
1121
- local_var_path = '/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s)).sub('{' + 'port' + '}', CGI.escape(port.to_s))
1122
-
1123
- # query parameters
1124
- query_params = opts[:query_params] || {}
1125
- query_params[:'expiresInSeconds'] = opts[:'expires_in_seconds'] if !opts[:'expires_in_seconds'].nil?
1126
-
1127
- # header parameters
1128
- header_params = opts[:header_params] || {}
1129
- # HTTP header 'Accept' (if needed)
1130
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1131
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1132
-
1133
- # form parameters
1134
- form_params = opts[:form_params] || {}
1135
-
1136
- # http body (model)
1137
- post_body = opts[:debug_body]
1138
-
1139
- # return_type
1140
- return_type = opts[:debug_return_type] || 'SignedPortPreviewUrl'
1141
-
1142
- # auth_names
1143
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1144
-
1145
- new_options = opts.merge(
1146
- :operation => :"SandboxApi.get_signed_port_preview_url",
1147
- :header_params => header_params,
1148
- :query_params => query_params,
1149
- :form_params => form_params,
1150
- :body => post_body,
1151
- :auth_names => auth_names,
1152
- :return_type => return_type
1153
- )
1154
-
1155
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1156
- if @api_client.config.debugging
1157
- @api_client.config.logger.debug "API called: SandboxApi#get_signed_port_preview_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1158
- end
1159
- return data, status_code, headers
1160
- end
1161
-
1162
- # Get toolbox proxy URL for a sandbox
1163
- # @param sandbox_id [String] ID of the sandbox
1164
- # @param [Hash] opts the optional parameters
1165
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1166
- # @return [ToolboxProxyUrl]
1167
- def get_toolbox_proxy_url(sandbox_id, opts = {})
1168
- data, _status_code, _headers = get_toolbox_proxy_url_with_http_info(sandbox_id, opts)
1169
- data
1170
- end
1171
-
1172
- # Get toolbox proxy URL for a sandbox
1173
- # @param sandbox_id [String] ID of the sandbox
617
+ # Get sandboxes for the authenticated runner
1174
618
  # @param [Hash] opts the optional parameters
1175
619
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1176
- # @return [Array<(ToolboxProxyUrl, Integer, Hash)>] ToolboxProxyUrl data, response status code and response headers
1177
- def get_toolbox_proxy_url_with_http_info(sandbox_id, opts = {})
620
+ # @option opts [String] :states Comma-separated list of sandbox states to filter by
621
+ # @option opts [Boolean] :skip_reconciling_sandboxes Skip sandboxes where state differs from desired state
622
+ # @return [Array<(Array<Sandbox>, Integer, Hash)>] Array<Sandbox> data, response status code and response headers
623
+ def get_sandboxes_for_runner_with_http_info(opts = {})
1178
624
  if @api_client.config.debugging
1179
- @api_client.config.logger.debug 'Calling API: SandboxApi.get_toolbox_proxy_url ...'
1180
- end
1181
- # verify the required parameter 'sandbox_id' is set
1182
- if @api_client.config.client_side_validation && sandbox_id.nil?
1183
- fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_toolbox_proxy_url"
625
+ @api_client.config.logger.debug 'Calling API: SandboxApi.get_sandboxes_for_runner ...'
1184
626
  end
1185
627
  # resource path
1186
- local_var_path = '/sandbox/{sandboxId}/toolbox-proxy-url'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
628
+ local_var_path = '/sandbox/for-runner'
1187
629
 
1188
630
  # query parameters
1189
631
  query_params = opts[:query_params] || {}
632
+ query_params[:'states'] = opts[:'states'] if !opts[:'states'].nil?
633
+ query_params[:'skipReconcilingSandboxes'] = opts[:'skip_reconciling_sandboxes'] if !opts[:'skip_reconciling_sandboxes'].nil?
1190
634
 
1191
635
  # header parameters
1192
636
  header_params = opts[:header_params] || {}
@@ -1201,13 +645,13 @@ module DaytonaApiClient
1201
645
  post_body = opts[:debug_body]
1202
646
 
1203
647
  # return_type
1204
- return_type = opts[:debug_return_type] || 'ToolboxProxyUrl'
648
+ return_type = opts[:debug_return_type] || 'Array<Sandbox>'
1205
649
 
1206
650
  # auth_names
1207
651
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1208
652
 
1209
653
  new_options = opts.merge(
1210
- :operation => :"SandboxApi.get_toolbox_proxy_url",
654
+ :operation => :"SandboxApi.get_sandboxes_for_runner",
1211
655
  :header_params => header_params,
1212
656
  :query_params => query_params,
1213
657
  :form_params => form_params,
@@ -1218,7 +662,7 @@ module DaytonaApiClient
1218
662
 
1219
663
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1220
664
  if @api_client.config.debugging
1221
- @api_client.config.logger.debug "API called: SandboxApi#get_toolbox_proxy_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
665
+ @api_client.config.logger.debug "API called: SandboxApi#get_sandboxes_for_runner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1222
666
  end
1223
667
  return data, status_code, headers
1224
668
  end
@@ -1296,7 +740,6 @@ module DaytonaApiClient
1296
740
  # @option opts [Float] :page Page number of the results (default to 1)
1297
741
  # @option opts [Float] :limit Number of results per page (default to 100)
1298
742
  # @option opts [String] :id Filter by partial ID match
1299
- # @option opts [String] :name Filter by partial name match
1300
743
  # @option opts [String] :labels JSON encoded labels to filter by
1301
744
  # @option opts [Boolean] :include_errored_deleted Include results with errored state and deleted desired state (default to false)
1302
745
  # @option opts [Array<String>] :states List of states to filter by
@@ -1324,7 +767,6 @@ module DaytonaApiClient
1324
767
  # @option opts [Float] :page Page number of the results (default to 1)
1325
768
  # @option opts [Float] :limit Number of results per page (default to 100)
1326
769
  # @option opts [String] :id Filter by partial ID match
1327
- # @option opts [String] :name Filter by partial name match
1328
770
  # @option opts [String] :labels JSON encoded labels to filter by
1329
771
  # @option opts [Boolean] :include_errored_deleted Include results with errored state and deleted desired state (default to false)
1330
772
  # @option opts [Array<String>] :states List of states to filter by
@@ -1357,7 +799,7 @@ module DaytonaApiClient
1357
799
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxApi.list_sandboxes_paginated, must be greater than or equal to 1.'
1358
800
  end
1359
801
 
1360
- allowable_values = ["creating", "restoring", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving", "resizing"]
802
+ allowable_values = ["creating", "restoring", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving"]
1361
803
  if @api_client.config.client_side_validation && opts[:'states'] && !opts[:'states'].all? { |item| allowable_values.include?(item) }
1362
804
  fail ArgumentError, "invalid value for \"states\", must include one of #{allowable_values}"
1363
805
  end
@@ -1385,7 +827,7 @@ module DaytonaApiClient
1385
827
  fail ArgumentError, 'invalid value for "opts[:"max_disk_gi_b"]" when calling SandboxApi.list_sandboxes_paginated, must be greater than or equal to 1.'
1386
828
  end
1387
829
 
1388
- allowable_values = ["id", "name", "state", "snapshot", "region", "updatedAt", "createdAt"]
830
+ allowable_values = ["id", "state", "snapshot", "region", "updatedAt", "createdAt"]
1389
831
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
1390
832
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
1391
833
  end
@@ -1401,7 +843,6 @@ module DaytonaApiClient
1401
843
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1402
844
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1403
845
  query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
1404
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
1405
846
  query_params[:'labels'] = opts[:'labels'] if !opts[:'labels'].nil?
1406
847
  query_params[:'includeErroredDeleted'] = opts[:'include_errored_deleted'] if !opts[:'include_errored_deleted'].nil?
1407
848
  query_params[:'states'] = @api_client.build_collection_param(opts[:'states'], :multi) if !opts[:'states'].nil?
@@ -1453,101 +894,37 @@ module DaytonaApiClient
1453
894
  return data, status_code, headers
1454
895
  end
1455
896
 
1456
- # Recover sandbox from error state
1457
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1458
- # @param [Hash] opts the optional parameters
1459
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1460
- # @return [Sandbox]
1461
- def recover_sandbox(sandbox_id_or_name, opts = {})
1462
- data, _status_code, _headers = recover_sandbox_with_http_info(sandbox_id_or_name, opts)
1463
- data
1464
- end
1465
-
1466
- # Recover sandbox from error state
1467
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1468
- # @param [Hash] opts the optional parameters
1469
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1470
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1471
- def recover_sandbox_with_http_info(sandbox_id_or_name, opts = {})
1472
- if @api_client.config.debugging
1473
- @api_client.config.logger.debug 'Calling API: SandboxApi.recover_sandbox ...'
1474
- end
1475
- # verify the required parameter 'sandbox_id_or_name' is set
1476
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1477
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.recover_sandbox"
1478
- end
1479
- # resource path
1480
- local_var_path = '/sandbox/{sandboxIdOrName}/recover'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
1481
-
1482
- # query parameters
1483
- query_params = opts[:query_params] || {}
1484
-
1485
- # header parameters
1486
- header_params = opts[:header_params] || {}
1487
- # HTTP header 'Accept' (if needed)
1488
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1489
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
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] || 'Sandbox'
1499
-
1500
- # auth_names
1501
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1502
-
1503
- new_options = opts.merge(
1504
- :operation => :"SandboxApi.recover_sandbox",
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(:POST, local_var_path, new_options)
1514
- if @api_client.config.debugging
1515
- @api_client.config.logger.debug "API called: SandboxApi#recover_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1516
- end
1517
- return data, status_code, headers
1518
- end
1519
-
1520
897
  # Replace sandbox labels
1521
- # @param sandbox_id_or_name [String] ID or name of the sandbox
898
+ # @param sandbox_id [String] ID of the sandbox
1522
899
  # @param sandbox_labels [SandboxLabels]
1523
900
  # @param [Hash] opts the optional parameters
1524
901
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1525
902
  # @return [SandboxLabels]
1526
- def replace_labels(sandbox_id_or_name, sandbox_labels, opts = {})
1527
- data, _status_code, _headers = replace_labels_with_http_info(sandbox_id_or_name, sandbox_labels, opts)
903
+ def replace_labels(sandbox_id, sandbox_labels, opts = {})
904
+ data, _status_code, _headers = replace_labels_with_http_info(sandbox_id, sandbox_labels, opts)
1528
905
  data
1529
906
  end
1530
907
 
1531
908
  # Replace sandbox labels
1532
- # @param sandbox_id_or_name [String] ID or name of the sandbox
909
+ # @param sandbox_id [String] ID of the sandbox
1533
910
  # @param sandbox_labels [SandboxLabels]
1534
911
  # @param [Hash] opts the optional parameters
1535
912
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1536
913
  # @return [Array<(SandboxLabels, Integer, Hash)>] SandboxLabels data, response status code and response headers
1537
- def replace_labels_with_http_info(sandbox_id_or_name, sandbox_labels, opts = {})
914
+ def replace_labels_with_http_info(sandbox_id, sandbox_labels, opts = {})
1538
915
  if @api_client.config.debugging
1539
916
  @api_client.config.logger.debug 'Calling API: SandboxApi.replace_labels ...'
1540
917
  end
1541
- # verify the required parameter 'sandbox_id_or_name' is set
1542
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1543
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.replace_labels"
918
+ # verify the required parameter 'sandbox_id' is set
919
+ if @api_client.config.client_side_validation && sandbox_id.nil?
920
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.replace_labels"
1544
921
  end
1545
922
  # verify the required parameter 'sandbox_labels' is set
1546
923
  if @api_client.config.client_side_validation && sandbox_labels.nil?
1547
924
  fail ArgumentError, "Missing the required parameter 'sandbox_labels' when calling SandboxApi.replace_labels"
1548
925
  end
1549
926
  # resource path
1550
- local_var_path = '/sandbox/{sandboxIdOrName}/labels'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
927
+ local_var_path = '/sandbox/{sandboxId}/labels'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
1551
928
 
1552
929
  # query parameters
1553
930
  query_params = opts[:query_params] || {}
@@ -1559,7 +936,7 @@ module DaytonaApiClient
1559
936
  # HTTP header 'Content-Type'
1560
937
  content_type = @api_client.select_header_content_type(['application/json'])
1561
938
  if !content_type.nil?
1562
- header_params['Content-Type'] = content_type
939
+ header_params['Content-Type'] = content_type
1563
940
  end
1564
941
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1565
942
 
@@ -1592,108 +969,33 @@ module DaytonaApiClient
1592
969
  return data, status_code, headers
1593
970
  end
1594
971
 
1595
- # Resize sandbox resources
1596
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1597
- # @param resize_sandbox [ResizeSandbox]
1598
- # @param [Hash] opts the optional parameters
1599
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1600
- # @return [Sandbox]
1601
- def resize_sandbox(sandbox_id_or_name, resize_sandbox, opts = {})
1602
- data, _status_code, _headers = resize_sandbox_with_http_info(sandbox_id_or_name, resize_sandbox, opts)
1603
- data
1604
- end
1605
-
1606
- # Resize sandbox resources
1607
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1608
- # @param resize_sandbox [ResizeSandbox]
1609
- # @param [Hash] opts the optional parameters
1610
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1611
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1612
- def resize_sandbox_with_http_info(sandbox_id_or_name, resize_sandbox, opts = {})
1613
- if @api_client.config.debugging
1614
- @api_client.config.logger.debug 'Calling API: SandboxApi.resize_sandbox ...'
1615
- end
1616
- # verify the required parameter 'sandbox_id_or_name' is set
1617
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1618
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.resize_sandbox"
1619
- end
1620
- # verify the required parameter 'resize_sandbox' is set
1621
- if @api_client.config.client_side_validation && resize_sandbox.nil?
1622
- fail ArgumentError, "Missing the required parameter 'resize_sandbox' when calling SandboxApi.resize_sandbox"
1623
- end
1624
- # resource path
1625
- local_var_path = '/sandbox/{sandboxIdOrName}/resize'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
1626
-
1627
- # query parameters
1628
- query_params = opts[:query_params] || {}
1629
-
1630
- # header parameters
1631
- header_params = opts[:header_params] || {}
1632
- # HTTP header 'Accept' (if needed)
1633
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1634
- # HTTP header 'Content-Type'
1635
- content_type = @api_client.select_header_content_type(['application/json'])
1636
- if !content_type.nil?
1637
- header_params['Content-Type'] = content_type
1638
- end
1639
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1640
-
1641
- # form parameters
1642
- form_params = opts[:form_params] || {}
1643
-
1644
- # http body (model)
1645
- post_body = opts[:debug_body] || @api_client.object_to_http_body(resize_sandbox)
1646
-
1647
- # return_type
1648
- return_type = opts[:debug_return_type] || 'Sandbox'
1649
-
1650
- # auth_names
1651
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1652
-
1653
- new_options = opts.merge(
1654
- :operation => :"SandboxApi.resize_sandbox",
1655
- :header_params => header_params,
1656
- :query_params => query_params,
1657
- :form_params => form_params,
1658
- :body => post_body,
1659
- :auth_names => auth_names,
1660
- :return_type => return_type
1661
- )
1662
-
1663
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1664
- if @api_client.config.debugging
1665
- @api_client.config.logger.debug "API called: SandboxApi#resize_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1666
- end
1667
- return data, status_code, headers
1668
- end
1669
-
1670
972
  # Revoke SSH access for sandbox
1671
- # @param sandbox_id_or_name [String] ID or name of the sandbox
973
+ # @param sandbox_id [String] ID of the sandbox
1672
974
  # @param [Hash] opts the optional parameters
1673
975
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1674
976
  # @option opts [String] :token SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
1675
- # @return [Sandbox]
1676
- def revoke_ssh_access(sandbox_id_or_name, opts = {})
1677
- data, _status_code, _headers = revoke_ssh_access_with_http_info(sandbox_id_or_name, opts)
1678
- data
977
+ # @return [nil]
978
+ def revoke_ssh_access(sandbox_id, opts = {})
979
+ revoke_ssh_access_with_http_info(sandbox_id, opts)
980
+ nil
1679
981
  end
1680
982
 
1681
983
  # Revoke SSH access for sandbox
1682
- # @param sandbox_id_or_name [String] ID or name of the sandbox
984
+ # @param sandbox_id [String] ID of the sandbox
1683
985
  # @param [Hash] opts the optional parameters
1684
986
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1685
987
  # @option opts [String] :token SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
1686
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1687
- def revoke_ssh_access_with_http_info(sandbox_id_or_name, opts = {})
988
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
989
+ def revoke_ssh_access_with_http_info(sandbox_id, opts = {})
1688
990
  if @api_client.config.debugging
1689
991
  @api_client.config.logger.debug 'Calling API: SandboxApi.revoke_ssh_access ...'
1690
992
  end
1691
- # verify the required parameter 'sandbox_id_or_name' is set
1692
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1693
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.revoke_ssh_access"
993
+ # verify the required parameter 'sandbox_id' is set
994
+ if @api_client.config.client_side_validation && sandbox_id.nil?
995
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.revoke_ssh_access"
1694
996
  end
1695
997
  # resource path
1696
- local_var_path = '/sandbox/{sandboxIdOrName}/ssh-access'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
998
+ local_var_path = '/sandbox/{sandboxId}/ssh-access'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
1697
999
 
1698
1000
  # query parameters
1699
1001
  query_params = opts[:query_params] || {}
@@ -1701,8 +1003,6 @@ module DaytonaApiClient
1701
1003
 
1702
1004
  # header parameters
1703
1005
  header_params = opts[:header_params] || {}
1704
- # HTTP header 'Accept' (if needed)
1705
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1706
1006
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1707
1007
 
1708
1008
  # form parameters
@@ -1712,7 +1012,7 @@ module DaytonaApiClient
1712
1012
  post_body = opts[:debug_body]
1713
1013
 
1714
1014
  # return_type
1715
- return_type = opts[:debug_return_type] || 'Sandbox'
1015
+ return_type = opts[:debug_return_type]
1716
1016
 
1717
1017
  # auth_names
1718
1018
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -1735,44 +1035,42 @@ module DaytonaApiClient
1735
1035
  end
1736
1036
 
1737
1037
  # Set sandbox auto-archive interval
1738
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1038
+ # @param sandbox_id [String] ID of the sandbox
1739
1039
  # @param interval [Float] Auto-archive interval in minutes (0 means the maximum interval will be used)
1740
1040
  # @param [Hash] opts the optional parameters
1741
1041
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1742
- # @return [Sandbox]
1743
- def set_auto_archive_interval(sandbox_id_or_name, interval, opts = {})
1744
- data, _status_code, _headers = set_auto_archive_interval_with_http_info(sandbox_id_or_name, interval, opts)
1745
- data
1042
+ # @return [nil]
1043
+ def set_auto_archive_interval(sandbox_id, interval, opts = {})
1044
+ set_auto_archive_interval_with_http_info(sandbox_id, interval, opts)
1045
+ nil
1746
1046
  end
1747
1047
 
1748
1048
  # Set sandbox auto-archive interval
1749
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1049
+ # @param sandbox_id [String] ID of the sandbox
1750
1050
  # @param interval [Float] Auto-archive interval in minutes (0 means the maximum interval will be used)
1751
1051
  # @param [Hash] opts the optional parameters
1752
1052
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1753
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1754
- def set_auto_archive_interval_with_http_info(sandbox_id_or_name, interval, opts = {})
1053
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1054
+ def set_auto_archive_interval_with_http_info(sandbox_id, interval, opts = {})
1755
1055
  if @api_client.config.debugging
1756
1056
  @api_client.config.logger.debug 'Calling API: SandboxApi.set_auto_archive_interval ...'
1757
1057
  end
1758
- # verify the required parameter 'sandbox_id_or_name' is set
1759
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1760
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.set_auto_archive_interval"
1058
+ # verify the required parameter 'sandbox_id' is set
1059
+ if @api_client.config.client_side_validation && sandbox_id.nil?
1060
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.set_auto_archive_interval"
1761
1061
  end
1762
1062
  # verify the required parameter 'interval' is set
1763
1063
  if @api_client.config.client_side_validation && interval.nil?
1764
1064
  fail ArgumentError, "Missing the required parameter 'interval' when calling SandboxApi.set_auto_archive_interval"
1765
1065
  end
1766
1066
  # resource path
1767
- local_var_path = '/sandbox/{sandboxIdOrName}/autoarchive/{interval}'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s)).sub('{' + 'interval' + '}', CGI.escape(interval.to_s))
1067
+ local_var_path = '/sandbox/{sandboxId}/autoarchive/{interval}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'interval' + '}', CGI.escape(interval.to_s))
1768
1068
 
1769
1069
  # query parameters
1770
1070
  query_params = opts[:query_params] || {}
1771
1071
 
1772
1072
  # header parameters
1773
1073
  header_params = opts[:header_params] || {}
1774
- # HTTP header 'Accept' (if needed)
1775
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1776
1074
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1777
1075
 
1778
1076
  # form parameters
@@ -1782,7 +1080,7 @@ module DaytonaApiClient
1782
1080
  post_body = opts[:debug_body]
1783
1081
 
1784
1082
  # return_type
1785
- return_type = opts[:debug_return_type] || 'Sandbox'
1083
+ return_type = opts[:debug_return_type]
1786
1084
 
1787
1085
  # auth_names
1788
1086
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -1805,44 +1103,42 @@ module DaytonaApiClient
1805
1103
  end
1806
1104
 
1807
1105
  # Set sandbox auto-delete interval
1808
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1106
+ # @param sandbox_id [String] ID of the sandbox
1809
1107
  # @param interval [Float] Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1810
1108
  # @param [Hash] opts the optional parameters
1811
1109
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1812
- # @return [Sandbox]
1813
- def set_auto_delete_interval(sandbox_id_or_name, interval, opts = {})
1814
- data, _status_code, _headers = set_auto_delete_interval_with_http_info(sandbox_id_or_name, interval, opts)
1815
- data
1110
+ # @return [nil]
1111
+ def set_auto_delete_interval(sandbox_id, interval, opts = {})
1112
+ set_auto_delete_interval_with_http_info(sandbox_id, interval, opts)
1113
+ nil
1816
1114
  end
1817
1115
 
1818
1116
  # Set sandbox auto-delete interval
1819
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1117
+ # @param sandbox_id [String] ID of the sandbox
1820
1118
  # @param interval [Float] Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1821
1119
  # @param [Hash] opts the optional parameters
1822
1120
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1823
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1824
- def set_auto_delete_interval_with_http_info(sandbox_id_or_name, interval, opts = {})
1121
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1122
+ def set_auto_delete_interval_with_http_info(sandbox_id, interval, opts = {})
1825
1123
  if @api_client.config.debugging
1826
1124
  @api_client.config.logger.debug 'Calling API: SandboxApi.set_auto_delete_interval ...'
1827
1125
  end
1828
- # verify the required parameter 'sandbox_id_or_name' is set
1829
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1830
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.set_auto_delete_interval"
1126
+ # verify the required parameter 'sandbox_id' is set
1127
+ if @api_client.config.client_side_validation && sandbox_id.nil?
1128
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.set_auto_delete_interval"
1831
1129
  end
1832
1130
  # verify the required parameter 'interval' is set
1833
1131
  if @api_client.config.client_side_validation && interval.nil?
1834
1132
  fail ArgumentError, "Missing the required parameter 'interval' when calling SandboxApi.set_auto_delete_interval"
1835
1133
  end
1836
1134
  # resource path
1837
- local_var_path = '/sandbox/{sandboxIdOrName}/autodelete/{interval}'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s)).sub('{' + 'interval' + '}', CGI.escape(interval.to_s))
1135
+ local_var_path = '/sandbox/{sandboxId}/autodelete/{interval}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'interval' + '}', CGI.escape(interval.to_s))
1838
1136
 
1839
1137
  # query parameters
1840
1138
  query_params = opts[:query_params] || {}
1841
1139
 
1842
1140
  # header parameters
1843
1141
  header_params = opts[:header_params] || {}
1844
- # HTTP header 'Accept' (if needed)
1845
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1846
1142
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1847
1143
 
1848
1144
  # form parameters
@@ -1852,7 +1148,7 @@ module DaytonaApiClient
1852
1148
  post_body = opts[:debug_body]
1853
1149
 
1854
1150
  # return_type
1855
- return_type = opts[:debug_return_type] || 'Sandbox'
1151
+ return_type = opts[:debug_return_type]
1856
1152
 
1857
1153
  # auth_names
1858
1154
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -1875,44 +1171,42 @@ module DaytonaApiClient
1875
1171
  end
1876
1172
 
1877
1173
  # Set sandbox auto-stop interval
1878
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1174
+ # @param sandbox_id [String] ID of the sandbox
1879
1175
  # @param interval [Float] Auto-stop interval in minutes (0 to disable)
1880
1176
  # @param [Hash] opts the optional parameters
1881
1177
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1882
- # @return [Sandbox]
1883
- def set_autostop_interval(sandbox_id_or_name, interval, opts = {})
1884
- data, _status_code, _headers = set_autostop_interval_with_http_info(sandbox_id_or_name, interval, opts)
1885
- data
1178
+ # @return [nil]
1179
+ def set_autostop_interval(sandbox_id, interval, opts = {})
1180
+ set_autostop_interval_with_http_info(sandbox_id, interval, opts)
1181
+ nil
1886
1182
  end
1887
1183
 
1888
1184
  # Set sandbox auto-stop interval
1889
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1185
+ # @param sandbox_id [String] ID of the sandbox
1890
1186
  # @param interval [Float] Auto-stop interval in minutes (0 to disable)
1891
1187
  # @param [Hash] opts the optional parameters
1892
1188
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1893
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1894
- def set_autostop_interval_with_http_info(sandbox_id_or_name, interval, opts = {})
1189
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1190
+ def set_autostop_interval_with_http_info(sandbox_id, interval, opts = {})
1895
1191
  if @api_client.config.debugging
1896
1192
  @api_client.config.logger.debug 'Calling API: SandboxApi.set_autostop_interval ...'
1897
1193
  end
1898
- # verify the required parameter 'sandbox_id_or_name' is set
1899
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1900
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.set_autostop_interval"
1194
+ # verify the required parameter 'sandbox_id' is set
1195
+ if @api_client.config.client_side_validation && sandbox_id.nil?
1196
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.set_autostop_interval"
1901
1197
  end
1902
1198
  # verify the required parameter 'interval' is set
1903
1199
  if @api_client.config.client_side_validation && interval.nil?
1904
1200
  fail ArgumentError, "Missing the required parameter 'interval' when calling SandboxApi.set_autostop_interval"
1905
1201
  end
1906
1202
  # resource path
1907
- local_var_path = '/sandbox/{sandboxIdOrName}/autostop/{interval}'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s)).sub('{' + 'interval' + '}', CGI.escape(interval.to_s))
1203
+ local_var_path = '/sandbox/{sandboxId}/autostop/{interval}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'interval' + '}', CGI.escape(interval.to_s))
1908
1204
 
1909
1205
  # query parameters
1910
1206
  query_params = opts[:query_params] || {}
1911
1207
 
1912
1208
  # header parameters
1913
1209
  header_params = opts[:header_params] || {}
1914
- # HTTP header 'Accept' (if needed)
1915
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1916
1210
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1917
1211
 
1918
1212
  # form parameters
@@ -1922,7 +1216,7 @@ module DaytonaApiClient
1922
1216
  post_body = opts[:debug_body]
1923
1217
 
1924
1218
  # return_type
1925
- return_type = opts[:debug_return_type] || 'Sandbox'
1219
+ return_type = opts[:debug_return_type]
1926
1220
 
1927
1221
  # auth_names
1928
1222
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -1945,30 +1239,30 @@ module DaytonaApiClient
1945
1239
  end
1946
1240
 
1947
1241
  # Start sandbox
1948
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1242
+ # @param sandbox_id [String] ID of the sandbox
1949
1243
  # @param [Hash] opts the optional parameters
1950
1244
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1951
1245
  # @return [Sandbox]
1952
- def start_sandbox(sandbox_id_or_name, opts = {})
1953
- data, _status_code, _headers = start_sandbox_with_http_info(sandbox_id_or_name, opts)
1246
+ def start_sandbox(sandbox_id, opts = {})
1247
+ data, _status_code, _headers = start_sandbox_with_http_info(sandbox_id, opts)
1954
1248
  data
1955
1249
  end
1956
1250
 
1957
1251
  # Start sandbox
1958
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1252
+ # @param sandbox_id [String] ID of the sandbox
1959
1253
  # @param [Hash] opts the optional parameters
1960
1254
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1961
1255
  # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1962
- def start_sandbox_with_http_info(sandbox_id_or_name, opts = {})
1256
+ def start_sandbox_with_http_info(sandbox_id, opts = {})
1963
1257
  if @api_client.config.debugging
1964
1258
  @api_client.config.logger.debug 'Calling API: SandboxApi.start_sandbox ...'
1965
1259
  end
1966
- # verify the required parameter 'sandbox_id_or_name' is set
1967
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1968
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.start_sandbox"
1260
+ # verify the required parameter 'sandbox_id' is set
1261
+ if @api_client.config.client_side_validation && sandbox_id.nil?
1262
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.start_sandbox"
1969
1263
  end
1970
1264
  # resource path
1971
- local_var_path = '/sandbox/{sandboxIdOrName}/start'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
1265
+ local_var_path = '/sandbox/{sandboxId}/start'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
1972
1266
 
1973
1267
  # query parameters
1974
1268
  query_params = opts[:query_params] || {}
@@ -2009,97 +1303,30 @@ module DaytonaApiClient
2009
1303
  end
2010
1304
 
2011
1305
  # Stop sandbox
2012
- # @param sandbox_id_or_name [String] ID or name of the sandbox
2013
- # @param [Hash] opts the optional parameters
2014
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2015
- # @option opts [Boolean] :force Force stop the sandbox using SIGKILL instead of SIGTERM
2016
- # @return [Sandbox]
2017
- def stop_sandbox(sandbox_id_or_name, opts = {})
2018
- data, _status_code, _headers = stop_sandbox_with_http_info(sandbox_id_or_name, opts)
2019
- data
2020
- end
2021
-
2022
- # Stop sandbox
2023
- # @param sandbox_id_or_name [String] ID or name of the sandbox
2024
- # @param [Hash] opts the optional parameters
2025
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2026
- # @option opts [Boolean] :force Force stop the sandbox using SIGKILL instead of SIGTERM
2027
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
2028
- def stop_sandbox_with_http_info(sandbox_id_or_name, opts = {})
2029
- if @api_client.config.debugging
2030
- @api_client.config.logger.debug 'Calling API: SandboxApi.stop_sandbox ...'
2031
- end
2032
- # verify the required parameter 'sandbox_id_or_name' is set
2033
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
2034
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.stop_sandbox"
2035
- end
2036
- # resource path
2037
- local_var_path = '/sandbox/{sandboxIdOrName}/stop'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
2038
-
2039
- # query parameters
2040
- query_params = opts[:query_params] || {}
2041
- query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
2042
-
2043
- # header parameters
2044
- header_params = opts[:header_params] || {}
2045
- # HTTP header 'Accept' (if needed)
2046
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2047
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
2048
-
2049
- # form parameters
2050
- form_params = opts[:form_params] || {}
2051
-
2052
- # http body (model)
2053
- post_body = opts[:debug_body]
2054
-
2055
- # return_type
2056
- return_type = opts[:debug_return_type] || 'Sandbox'
2057
-
2058
- # auth_names
2059
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2060
-
2061
- new_options = opts.merge(
2062
- :operation => :"SandboxApi.stop_sandbox",
2063
- :header_params => header_params,
2064
- :query_params => query_params,
2065
- :form_params => form_params,
2066
- :body => post_body,
2067
- :auth_names => auth_names,
2068
- :return_type => return_type
2069
- )
2070
-
2071
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2072
- if @api_client.config.debugging
2073
- @api_client.config.logger.debug "API called: SandboxApi#stop_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2074
- end
2075
- return data, status_code, headers
2076
- end
2077
-
2078
- # Update sandbox last activity
2079
1306
  # @param sandbox_id [String] ID of the sandbox
2080
1307
  # @param [Hash] opts the optional parameters
2081
1308
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2082
1309
  # @return [nil]
2083
- def update_last_activity(sandbox_id, opts = {})
2084
- update_last_activity_with_http_info(sandbox_id, opts)
1310
+ def stop_sandbox(sandbox_id, opts = {})
1311
+ stop_sandbox_with_http_info(sandbox_id, opts)
2085
1312
  nil
2086
1313
  end
2087
1314
 
2088
- # Update sandbox last activity
1315
+ # Stop sandbox
2089
1316
  # @param sandbox_id [String] ID of the sandbox
2090
1317
  # @param [Hash] opts the optional parameters
2091
1318
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2092
1319
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2093
- def update_last_activity_with_http_info(sandbox_id, opts = {})
1320
+ def stop_sandbox_with_http_info(sandbox_id, opts = {})
2094
1321
  if @api_client.config.debugging
2095
- @api_client.config.logger.debug 'Calling API: SandboxApi.update_last_activity ...'
1322
+ @api_client.config.logger.debug 'Calling API: SandboxApi.stop_sandbox ...'
2096
1323
  end
2097
1324
  # verify the required parameter 'sandbox_id' is set
2098
1325
  if @api_client.config.client_side_validation && sandbox_id.nil?
2099
- fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.update_last_activity"
1326
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.stop_sandbox"
2100
1327
  end
2101
1328
  # resource path
2102
- local_var_path = '/sandbox/{sandboxId}/last-activity'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
1329
+ local_var_path = '/sandbox/{sandboxId}/stop'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
2103
1330
 
2104
1331
  # query parameters
2105
1332
  query_params = opts[:query_params] || {}
@@ -2121,7 +1348,7 @@ module DaytonaApiClient
2121
1348
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2122
1349
 
2123
1350
  new_options = opts.merge(
2124
- :operation => :"SandboxApi.update_last_activity",
1351
+ :operation => :"SandboxApi.stop_sandbox",
2125
1352
  :header_params => header_params,
2126
1353
  :query_params => query_params,
2127
1354
  :form_params => form_params,
@@ -2132,50 +1359,48 @@ module DaytonaApiClient
2132
1359
 
2133
1360
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2134
1361
  if @api_client.config.debugging
2135
- @api_client.config.logger.debug "API called: SandboxApi#update_last_activity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1362
+ @api_client.config.logger.debug "API called: SandboxApi#stop_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2136
1363
  end
2137
1364
  return data, status_code, headers
2138
1365
  end
2139
1366
 
2140
1367
  # Update public status
2141
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1368
+ # @param sandbox_id [String] ID of the sandbox
2142
1369
  # @param is_public [Boolean] Public status to set
2143
1370
  # @param [Hash] opts the optional parameters
2144
1371
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2145
- # @return [Sandbox]
2146
- def update_public_status(sandbox_id_or_name, is_public, opts = {})
2147
- data, _status_code, _headers = update_public_status_with_http_info(sandbox_id_or_name, is_public, opts)
2148
- data
1372
+ # @return [nil]
1373
+ def update_public_status(sandbox_id, is_public, opts = {})
1374
+ update_public_status_with_http_info(sandbox_id, is_public, opts)
1375
+ nil
2149
1376
  end
2150
1377
 
2151
1378
  # Update public status
2152
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1379
+ # @param sandbox_id [String] ID of the sandbox
2153
1380
  # @param is_public [Boolean] Public status to set
2154
1381
  # @param [Hash] opts the optional parameters
2155
1382
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2156
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
2157
- def update_public_status_with_http_info(sandbox_id_or_name, is_public, opts = {})
1383
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1384
+ def update_public_status_with_http_info(sandbox_id, is_public, opts = {})
2158
1385
  if @api_client.config.debugging
2159
1386
  @api_client.config.logger.debug 'Calling API: SandboxApi.update_public_status ...'
2160
1387
  end
2161
- # verify the required parameter 'sandbox_id_or_name' is set
2162
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
2163
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.update_public_status"
1388
+ # verify the required parameter 'sandbox_id' is set
1389
+ if @api_client.config.client_side_validation && sandbox_id.nil?
1390
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.update_public_status"
2164
1391
  end
2165
1392
  # verify the required parameter 'is_public' is set
2166
1393
  if @api_client.config.client_side_validation && is_public.nil?
2167
1394
  fail ArgumentError, "Missing the required parameter 'is_public' when calling SandboxApi.update_public_status"
2168
1395
  end
2169
1396
  # resource path
2170
- local_var_path = '/sandbox/{sandboxIdOrName}/public/{isPublic}'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s)).sub('{' + 'isPublic' + '}', CGI.escape(is_public.to_s))
1397
+ local_var_path = '/sandbox/{sandboxId}/public/{isPublic}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'isPublic' + '}', CGI.escape(is_public.to_s))
2171
1398
 
2172
1399
  # query parameters
2173
1400
  query_params = opts[:query_params] || {}
2174
1401
 
2175
1402
  # header parameters
2176
1403
  header_params = opts[:header_params] || {}
2177
- # HTTP header 'Accept' (if needed)
2178
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2179
1404
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
2180
1405
 
2181
1406
  # form parameters
@@ -2185,7 +1410,7 @@ module DaytonaApiClient
2185
1410
  post_body = opts[:debug_body]
2186
1411
 
2187
1412
  # return_type
2188
- return_type = opts[:debug_return_type] || 'Sandbox'
1413
+ return_type = opts[:debug_return_type]
2189
1414
 
2190
1415
  # auth_names
2191
1416
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -2247,7 +1472,7 @@ module DaytonaApiClient
2247
1472
  # HTTP header 'Content-Type'
2248
1473
  content_type = @api_client.select_header_content_type(['application/json'])
2249
1474
  if !content_type.nil?
2250
- header_params['Content-Type'] = content_type
1475
+ header_params['Content-Type'] = content_type
2251
1476
  end
2252
1477
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
2253
1478