daytona_api_client 0.126.0.pre.alpha.5 → 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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/daytona_api_client.gemspec +2 -2
  4. data/lib/daytona_api_client/api/audit_api.rb +66 -18
  5. data/lib/daytona_api_client/api/organizations_api.rb +12 -219
  6. data/lib/daytona_api_client/api/preview_api.rb +5 -7
  7. data/lib/daytona_api_client/api/runners_api.rb +0 -55
  8. data/lib/daytona_api_client/api/sandbox_api.rb +222 -309
  9. data/lib/daytona_api_client/api/toolbox_api.rb +711 -711
  10. data/lib/daytona_api_client/api/workspace_api.rb +3 -3
  11. data/lib/daytona_api_client/models/create_organization.rb +4 -31
  12. data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
  13. data/lib/daytona_api_client/models/create_user.rb +1 -10
  14. data/lib/daytona_api_client/models/daytona_configuration.rb +4 -41
  15. data/lib/daytona_api_client/models/organization.rb +85 -53
  16. data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -18
  17. data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -14
  18. data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
  19. data/lib/daytona_api_client/models/region.rb +4 -96
  20. data/lib/daytona_api_client/models/sandbox.rb +11 -38
  21. data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
  22. data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
  23. data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
  24. data/lib/daytona_api_client/models/update_organization_quota.rb +41 -41
  25. data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -14
  26. data/lib/daytona_api_client/models/workspace.rb +38 -38
  27. data/lib/daytona_api_client/version.rb +1 -1
  28. data/lib/daytona_api_client.rb +1 -8
  29. data/project.json +7 -29
  30. metadata +1 -16
  31. data/.gitignore +0 -39
  32. data/.openapi-generator/FILES +0 -171
  33. data/.openapi-generator/VERSION +0 -1
  34. data/.openapi-generator-ignore +0 -33
  35. data/.rspec +0 -2
  36. data/.rubocop.yml +0 -148
  37. data/fix-gemspec.sh +0 -11
  38. data/lib/daytona_api_client/api/regions_api.rb +0 -83
  39. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -249
  40. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -229
  41. data/lib/daytona_api_client/models/region_quota.rb +0 -339
  42. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
  43. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -236
  44. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -245
  45. data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
@@ -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] || {}
@@ -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']
@@ -348,32 +344,32 @@ module DaytonaApiClient
348
344
  end
349
345
 
350
346
  # Get build logs
351
- # @param sandbox_id_or_name [String] ID or name of the sandbox
347
+ # @param sandbox_id [String] ID of the sandbox
352
348
  # @param [Hash] opts the optional parameters
353
349
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
354
350
  # @option opts [Boolean] :follow Whether to follow the logs stream
355
351
  # @return [nil]
356
- def get_build_logs(sandbox_id_or_name, opts = {})
357
- 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)
358
354
  nil
359
355
  end
360
356
 
361
357
  # Get build logs
362
- # @param sandbox_id_or_name [String] ID or name of the sandbox
358
+ # @param sandbox_id [String] ID of the sandbox
363
359
  # @param [Hash] opts the optional parameters
364
360
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
365
361
  # @option opts [Boolean] :follow Whether to follow the logs stream
366
362
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
367
- def get_build_logs_with_http_info(sandbox_id_or_name, opts = {})
363
+ def get_build_logs_with_http_info(sandbox_id, opts = {})
368
364
  if @api_client.config.debugging
369
365
  @api_client.config.logger.debug 'Calling API: SandboxApi.get_build_logs ...'
370
366
  end
371
- # verify the required parameter 'sandbox_id_or_name' is set
372
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
373
- 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"
374
370
  end
375
371
  # resource path
376
- 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))
377
373
 
378
374
  # query parameters
379
375
  query_params = opts[:query_params] || {}
@@ -413,36 +409,36 @@ module DaytonaApiClient
413
409
  end
414
410
 
415
411
  # Get preview URL for a sandbox port
416
- # @param sandbox_id_or_name [String] ID or name of the sandbox
412
+ # @param sandbox_id [String] ID of the sandbox
417
413
  # @param port [Float] Port number to get preview URL for
418
414
  # @param [Hash] opts the optional parameters
419
415
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
420
416
  # @return [PortPreviewUrl]
421
- def get_port_preview_url(sandbox_id_or_name, port, opts = {})
422
- 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)
423
419
  data
424
420
  end
425
421
 
426
422
  # Get preview URL for a sandbox port
427
- # @param sandbox_id_or_name [String] ID or name of the sandbox
423
+ # @param sandbox_id [String] ID of the sandbox
428
424
  # @param port [Float] Port number to get preview URL for
429
425
  # @param [Hash] opts the optional parameters
430
426
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
431
427
  # @return [Array<(PortPreviewUrl, Integer, Hash)>] PortPreviewUrl data, response status code and response headers
432
- 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 = {})
433
429
  if @api_client.config.debugging
434
430
  @api_client.config.logger.debug 'Calling API: SandboxApi.get_port_preview_url ...'
435
431
  end
436
- # verify the required parameter 'sandbox_id_or_name' is set
437
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
438
- 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"
439
435
  end
440
436
  # verify the required parameter 'port' is set
441
437
  if @api_client.config.client_side_validation && port.nil?
442
438
  fail ArgumentError, "Missing the required parameter 'port' when calling SandboxApi.get_port_preview_url"
443
439
  end
444
440
  # resource path
445
- 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))
446
442
 
447
443
  # query parameters
448
444
  query_params = opts[:query_params] || {}
@@ -483,32 +479,32 @@ module DaytonaApiClient
483
479
  end
484
480
 
485
481
  # Get sandbox details
486
- # @param sandbox_id_or_name [String] ID or name of the sandbox
482
+ # @param sandbox_id [String] ID of the sandbox
487
483
  # @param [Hash] opts the optional parameters
488
484
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
489
485
  # @option opts [Boolean] :verbose Include verbose output
490
486
  # @return [Sandbox]
491
- def get_sandbox(sandbox_id_or_name, opts = {})
492
- 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)
493
489
  data
494
490
  end
495
491
 
496
492
  # Get sandbox details
497
- # @param sandbox_id_or_name [String] ID or name of the sandbox
493
+ # @param sandbox_id [String] ID of the sandbox
498
494
  # @param [Hash] opts the optional parameters
499
495
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
500
496
  # @option opts [Boolean] :verbose Include verbose output
501
497
  # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
502
- def get_sandbox_with_http_info(sandbox_id_or_name, opts = {})
498
+ def get_sandbox_with_http_info(sandbox_id, opts = {})
503
499
  if @api_client.config.debugging
504
500
  @api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox ...'
505
501
  end
506
- # verify the required parameter 'sandbox_id_or_name' is set
507
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
508
- 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"
509
505
  end
510
506
  # resource path
511
- 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))
512
508
 
513
509
  # query parameters
514
510
  query_params = opts[:query_params] || {}
@@ -549,6 +545,64 @@ module DaytonaApiClient
549
545
  return data, status_code, headers
550
546
  end
551
547
 
548
+ # List all regions where sandboxes have been created
549
+ # @param [Hash] opts the optional parameters
550
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
551
+ # @return [Array<Region>]
552
+ def get_sandbox_regions(opts = {})
553
+ data, _status_code, _headers = get_sandbox_regions_with_http_info(opts)
554
+ data
555
+ end
556
+
557
+ # List all regions where sandboxes have been created
558
+ # @param [Hash] opts the optional parameters
559
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
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 = {})
562
+ if @api_client.config.debugging
563
+ @api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox_regions ...'
564
+ end
565
+ # resource path
566
+ local_var_path = '/sandbox/regions'
567
+
568
+ # query parameters
569
+ query_params = opts[:query_params] || {}
570
+
571
+ # header parameters
572
+ header_params = opts[:header_params] || {}
573
+ # HTTP header 'Accept' (if needed)
574
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
575
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
576
+
577
+ # form parameters
578
+ form_params = opts[:form_params] || {}
579
+
580
+ # http body (model)
581
+ post_body = opts[:debug_body]
582
+
583
+ # return_type
584
+ return_type = opts[:debug_return_type] || 'Array<Region>'
585
+
586
+ # auth_names
587
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
588
+
589
+ new_options = opts.merge(
590
+ :operation => :"SandboxApi.get_sandbox_regions",
591
+ :header_params => header_params,
592
+ :query_params => query_params,
593
+ :form_params => form_params,
594
+ :body => post_body,
595
+ :auth_names => auth_names,
596
+ :return_type => return_type
597
+ )
598
+
599
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
600
+ if @api_client.config.debugging
601
+ @api_client.config.logger.debug "API called: SandboxApi#get_sandbox_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
602
+ end
603
+ return data, status_code, headers
604
+ end
605
+
552
606
  # Get sandboxes for the authenticated runner
553
607
  # @param [Hash] opts the optional parameters
554
608
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
@@ -686,7 +740,6 @@ module DaytonaApiClient
686
740
  # @option opts [Float] :page Page number of the results (default to 1)
687
741
  # @option opts [Float] :limit Number of results per page (default to 100)
688
742
  # @option opts [String] :id Filter by partial ID match
689
- # @option opts [String] :name Filter by partial name match
690
743
  # @option opts [String] :labels JSON encoded labels to filter by
691
744
  # @option opts [Boolean] :include_errored_deleted Include results with errored state and deleted desired state (default to false)
692
745
  # @option opts [Array<String>] :states List of states to filter by
@@ -714,7 +767,6 @@ module DaytonaApiClient
714
767
  # @option opts [Float] :page Page number of the results (default to 1)
715
768
  # @option opts [Float] :limit Number of results per page (default to 100)
716
769
  # @option opts [String] :id Filter by partial ID match
717
- # @option opts [String] :name Filter by partial name match
718
770
  # @option opts [String] :labels JSON encoded labels to filter by
719
771
  # @option opts [Boolean] :include_errored_deleted Include results with errored state and deleted desired state (default to false)
720
772
  # @option opts [Array<String>] :states List of states to filter by
@@ -775,7 +827,7 @@ module DaytonaApiClient
775
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.'
776
828
  end
777
829
 
778
- allowable_values = ["id", "name", "state", "snapshot", "region", "updatedAt", "createdAt"]
830
+ allowable_values = ["id", "state", "snapshot", "region", "updatedAt", "createdAt"]
779
831
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
780
832
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
781
833
  end
@@ -791,7 +843,6 @@ module DaytonaApiClient
791
843
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
792
844
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
793
845
  query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
794
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
795
846
  query_params[:'labels'] = opts[:'labels'] if !opts[:'labels'].nil?
796
847
  query_params[:'includeErroredDeleted'] = opts[:'include_errored_deleted'] if !opts[:'include_errored_deleted'].nil?
797
848
  query_params[:'states'] = @api_client.build_collection_param(opts[:'states'], :multi) if !opts[:'states'].nil?
@@ -843,101 +894,37 @@ module DaytonaApiClient
843
894
  return data, status_code, headers
844
895
  end
845
896
 
846
- # Recover sandbox from error state
847
- # @param sandbox_id_or_name [String] ID or name of the sandbox
848
- # @param [Hash] opts the optional parameters
849
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
850
- # @return [Sandbox]
851
- def recover_sandbox(sandbox_id_or_name, opts = {})
852
- data, _status_code, _headers = recover_sandbox_with_http_info(sandbox_id_or_name, opts)
853
- data
854
- end
855
-
856
- # Recover sandbox from error state
857
- # @param sandbox_id_or_name [String] ID or name of the sandbox
858
- # @param [Hash] opts the optional parameters
859
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
860
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
861
- def recover_sandbox_with_http_info(sandbox_id_or_name, opts = {})
862
- if @api_client.config.debugging
863
- @api_client.config.logger.debug 'Calling API: SandboxApi.recover_sandbox ...'
864
- end
865
- # verify the required parameter 'sandbox_id_or_name' is set
866
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
867
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.recover_sandbox"
868
- end
869
- # resource path
870
- local_var_path = '/sandbox/{sandboxIdOrName}/recover'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
871
-
872
- # query parameters
873
- query_params = opts[:query_params] || {}
874
-
875
- # header parameters
876
- header_params = opts[:header_params] || {}
877
- # HTTP header 'Accept' (if needed)
878
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
879
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
880
-
881
- # form parameters
882
- form_params = opts[:form_params] || {}
883
-
884
- # http body (model)
885
- post_body = opts[:debug_body]
886
-
887
- # return_type
888
- return_type = opts[:debug_return_type] || 'Sandbox'
889
-
890
- # auth_names
891
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
892
-
893
- new_options = opts.merge(
894
- :operation => :"SandboxApi.recover_sandbox",
895
- :header_params => header_params,
896
- :query_params => query_params,
897
- :form_params => form_params,
898
- :body => post_body,
899
- :auth_names => auth_names,
900
- :return_type => return_type
901
- )
902
-
903
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
904
- if @api_client.config.debugging
905
- @api_client.config.logger.debug "API called: SandboxApi#recover_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
906
- end
907
- return data, status_code, headers
908
- end
909
-
910
897
  # Replace sandbox labels
911
- # @param sandbox_id_or_name [String] ID or name of the sandbox
898
+ # @param sandbox_id [String] ID of the sandbox
912
899
  # @param sandbox_labels [SandboxLabels]
913
900
  # @param [Hash] opts the optional parameters
914
901
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
915
902
  # @return [SandboxLabels]
916
- def replace_labels(sandbox_id_or_name, sandbox_labels, opts = {})
917
- 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)
918
905
  data
919
906
  end
920
907
 
921
908
  # Replace sandbox labels
922
- # @param sandbox_id_or_name [String] ID or name of the sandbox
909
+ # @param sandbox_id [String] ID of the sandbox
923
910
  # @param sandbox_labels [SandboxLabels]
924
911
  # @param [Hash] opts the optional parameters
925
912
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
926
913
  # @return [Array<(SandboxLabels, Integer, Hash)>] SandboxLabels data, response status code and response headers
927
- 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 = {})
928
915
  if @api_client.config.debugging
929
916
  @api_client.config.logger.debug 'Calling API: SandboxApi.replace_labels ...'
930
917
  end
931
- # verify the required parameter 'sandbox_id_or_name' is set
932
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
933
- 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"
934
921
  end
935
922
  # verify the required parameter 'sandbox_labels' is set
936
923
  if @api_client.config.client_side_validation && sandbox_labels.nil?
937
924
  fail ArgumentError, "Missing the required parameter 'sandbox_labels' when calling SandboxApi.replace_labels"
938
925
  end
939
926
  # resource path
940
- 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))
941
928
 
942
929
  # query parameters
943
930
  query_params = opts[:query_params] || {}
@@ -983,32 +970,32 @@ module DaytonaApiClient
983
970
  end
984
971
 
985
972
  # Revoke SSH access for sandbox
986
- # @param sandbox_id_or_name [String] ID or name of the sandbox
973
+ # @param sandbox_id [String] ID of the sandbox
987
974
  # @param [Hash] opts the optional parameters
988
975
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
989
976
  # @option opts [String] :token SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
990
- # @return [Sandbox]
991
- def revoke_ssh_access(sandbox_id_or_name, opts = {})
992
- data, _status_code, _headers = revoke_ssh_access_with_http_info(sandbox_id_or_name, opts)
993
- data
977
+ # @return [nil]
978
+ def revoke_ssh_access(sandbox_id, opts = {})
979
+ revoke_ssh_access_with_http_info(sandbox_id, opts)
980
+ nil
994
981
  end
995
982
 
996
983
  # Revoke SSH access for sandbox
997
- # @param sandbox_id_or_name [String] ID or name of the sandbox
984
+ # @param sandbox_id [String] ID of the sandbox
998
985
  # @param [Hash] opts the optional parameters
999
986
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1000
987
  # @option opts [String] :token SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
1001
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1002
- 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 = {})
1003
990
  if @api_client.config.debugging
1004
991
  @api_client.config.logger.debug 'Calling API: SandboxApi.revoke_ssh_access ...'
1005
992
  end
1006
- # verify the required parameter 'sandbox_id_or_name' is set
1007
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1008
- 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"
1009
996
  end
1010
997
  # resource path
1011
- 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))
1012
999
 
1013
1000
  # query parameters
1014
1001
  query_params = opts[:query_params] || {}
@@ -1016,8 +1003,6 @@ module DaytonaApiClient
1016
1003
 
1017
1004
  # header parameters
1018
1005
  header_params = opts[:header_params] || {}
1019
- # HTTP header 'Accept' (if needed)
1020
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1021
1006
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1022
1007
 
1023
1008
  # form parameters
@@ -1027,7 +1012,7 @@ module DaytonaApiClient
1027
1012
  post_body = opts[:debug_body]
1028
1013
 
1029
1014
  # return_type
1030
- return_type = opts[:debug_return_type] || 'Sandbox'
1015
+ return_type = opts[:debug_return_type]
1031
1016
 
1032
1017
  # auth_names
1033
1018
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -1050,44 +1035,42 @@ module DaytonaApiClient
1050
1035
  end
1051
1036
 
1052
1037
  # Set sandbox auto-archive interval
1053
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1038
+ # @param sandbox_id [String] ID of the sandbox
1054
1039
  # @param interval [Float] Auto-archive interval in minutes (0 means the maximum interval will be used)
1055
1040
  # @param [Hash] opts the optional parameters
1056
1041
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1057
- # @return [Sandbox]
1058
- def set_auto_archive_interval(sandbox_id_or_name, interval, opts = {})
1059
- data, _status_code, _headers = set_auto_archive_interval_with_http_info(sandbox_id_or_name, interval, opts)
1060
- 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
1061
1046
  end
1062
1047
 
1063
1048
  # Set sandbox auto-archive interval
1064
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1049
+ # @param sandbox_id [String] ID of the sandbox
1065
1050
  # @param interval [Float] Auto-archive interval in minutes (0 means the maximum interval will be used)
1066
1051
  # @param [Hash] opts the optional parameters
1067
1052
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1068
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1069
- 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 = {})
1070
1055
  if @api_client.config.debugging
1071
1056
  @api_client.config.logger.debug 'Calling API: SandboxApi.set_auto_archive_interval ...'
1072
1057
  end
1073
- # verify the required parameter 'sandbox_id_or_name' is set
1074
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1075
- 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"
1076
1061
  end
1077
1062
  # verify the required parameter 'interval' is set
1078
1063
  if @api_client.config.client_side_validation && interval.nil?
1079
1064
  fail ArgumentError, "Missing the required parameter 'interval' when calling SandboxApi.set_auto_archive_interval"
1080
1065
  end
1081
1066
  # resource path
1082
- 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))
1083
1068
 
1084
1069
  # query parameters
1085
1070
  query_params = opts[:query_params] || {}
1086
1071
 
1087
1072
  # header parameters
1088
1073
  header_params = opts[:header_params] || {}
1089
- # HTTP header 'Accept' (if needed)
1090
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1091
1074
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1092
1075
 
1093
1076
  # form parameters
@@ -1097,7 +1080,7 @@ module DaytonaApiClient
1097
1080
  post_body = opts[:debug_body]
1098
1081
 
1099
1082
  # return_type
1100
- return_type = opts[:debug_return_type] || 'Sandbox'
1083
+ return_type = opts[:debug_return_type]
1101
1084
 
1102
1085
  # auth_names
1103
1086
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -1120,44 +1103,42 @@ module DaytonaApiClient
1120
1103
  end
1121
1104
 
1122
1105
  # Set sandbox auto-delete interval
1123
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1106
+ # @param sandbox_id [String] ID of the sandbox
1124
1107
  # @param interval [Float] Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1125
1108
  # @param [Hash] opts the optional parameters
1126
1109
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1127
- # @return [Sandbox]
1128
- def set_auto_delete_interval(sandbox_id_or_name, interval, opts = {})
1129
- data, _status_code, _headers = set_auto_delete_interval_with_http_info(sandbox_id_or_name, interval, opts)
1130
- 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
1131
1114
  end
1132
1115
 
1133
1116
  # Set sandbox auto-delete interval
1134
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1117
+ # @param sandbox_id [String] ID of the sandbox
1135
1118
  # @param interval [Float] Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1136
1119
  # @param [Hash] opts the optional parameters
1137
1120
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1138
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1139
- 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 = {})
1140
1123
  if @api_client.config.debugging
1141
1124
  @api_client.config.logger.debug 'Calling API: SandboxApi.set_auto_delete_interval ...'
1142
1125
  end
1143
- # verify the required parameter 'sandbox_id_or_name' is set
1144
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1145
- 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"
1146
1129
  end
1147
1130
  # verify the required parameter 'interval' is set
1148
1131
  if @api_client.config.client_side_validation && interval.nil?
1149
1132
  fail ArgumentError, "Missing the required parameter 'interval' when calling SandboxApi.set_auto_delete_interval"
1150
1133
  end
1151
1134
  # resource path
1152
- 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))
1153
1136
 
1154
1137
  # query parameters
1155
1138
  query_params = opts[:query_params] || {}
1156
1139
 
1157
1140
  # header parameters
1158
1141
  header_params = opts[:header_params] || {}
1159
- # HTTP header 'Accept' (if needed)
1160
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1161
1142
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1162
1143
 
1163
1144
  # form parameters
@@ -1167,7 +1148,7 @@ module DaytonaApiClient
1167
1148
  post_body = opts[:debug_body]
1168
1149
 
1169
1150
  # return_type
1170
- return_type = opts[:debug_return_type] || 'Sandbox'
1151
+ return_type = opts[:debug_return_type]
1171
1152
 
1172
1153
  # auth_names
1173
1154
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -1190,44 +1171,42 @@ module DaytonaApiClient
1190
1171
  end
1191
1172
 
1192
1173
  # Set sandbox auto-stop interval
1193
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1174
+ # @param sandbox_id [String] ID of the sandbox
1194
1175
  # @param interval [Float] Auto-stop interval in minutes (0 to disable)
1195
1176
  # @param [Hash] opts the optional parameters
1196
1177
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1197
- # @return [Sandbox]
1198
- def set_autostop_interval(sandbox_id_or_name, interval, opts = {})
1199
- data, _status_code, _headers = set_autostop_interval_with_http_info(sandbox_id_or_name, interval, opts)
1200
- 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
1201
1182
  end
1202
1183
 
1203
1184
  # Set sandbox auto-stop interval
1204
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1185
+ # @param sandbox_id [String] ID of the sandbox
1205
1186
  # @param interval [Float] Auto-stop interval in minutes (0 to disable)
1206
1187
  # @param [Hash] opts the optional parameters
1207
1188
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1208
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1209
- 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 = {})
1210
1191
  if @api_client.config.debugging
1211
1192
  @api_client.config.logger.debug 'Calling API: SandboxApi.set_autostop_interval ...'
1212
1193
  end
1213
- # verify the required parameter 'sandbox_id_or_name' is set
1214
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1215
- 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"
1216
1197
  end
1217
1198
  # verify the required parameter 'interval' is set
1218
1199
  if @api_client.config.client_side_validation && interval.nil?
1219
1200
  fail ArgumentError, "Missing the required parameter 'interval' when calling SandboxApi.set_autostop_interval"
1220
1201
  end
1221
1202
  # resource path
1222
- 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))
1223
1204
 
1224
1205
  # query parameters
1225
1206
  query_params = opts[:query_params] || {}
1226
1207
 
1227
1208
  # header parameters
1228
1209
  header_params = opts[:header_params] || {}
1229
- # HTTP header 'Accept' (if needed)
1230
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1231
1210
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1232
1211
 
1233
1212
  # form parameters
@@ -1237,7 +1216,7 @@ module DaytonaApiClient
1237
1216
  post_body = opts[:debug_body]
1238
1217
 
1239
1218
  # return_type
1240
- return_type = opts[:debug_return_type] || 'Sandbox'
1219
+ return_type = opts[:debug_return_type]
1241
1220
 
1242
1221
  # auth_names
1243
1222
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -1260,30 +1239,30 @@ module DaytonaApiClient
1260
1239
  end
1261
1240
 
1262
1241
  # Start sandbox
1263
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1242
+ # @param sandbox_id [String] ID of the sandbox
1264
1243
  # @param [Hash] opts the optional parameters
1265
1244
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1266
1245
  # @return [Sandbox]
1267
- def start_sandbox(sandbox_id_or_name, opts = {})
1268
- 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)
1269
1248
  data
1270
1249
  end
1271
1250
 
1272
1251
  # Start sandbox
1273
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1252
+ # @param sandbox_id [String] ID of the sandbox
1274
1253
  # @param [Hash] opts the optional parameters
1275
1254
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1276
1255
  # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1277
- def start_sandbox_with_http_info(sandbox_id_or_name, opts = {})
1256
+ def start_sandbox_with_http_info(sandbox_id, opts = {})
1278
1257
  if @api_client.config.debugging
1279
1258
  @api_client.config.logger.debug 'Calling API: SandboxApi.start_sandbox ...'
1280
1259
  end
1281
- # verify the required parameter 'sandbox_id_or_name' is set
1282
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1283
- 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"
1284
1263
  end
1285
1264
  # resource path
1286
- 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))
1287
1266
 
1288
1267
  # query parameters
1289
1268
  query_params = opts[:query_params] || {}
@@ -1324,94 +1303,30 @@ module DaytonaApiClient
1324
1303
  end
1325
1304
 
1326
1305
  # Stop sandbox
1327
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1328
- # @param [Hash] opts the optional parameters
1329
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1330
- # @return [Sandbox]
1331
- def stop_sandbox(sandbox_id_or_name, opts = {})
1332
- data, _status_code, _headers = stop_sandbox_with_http_info(sandbox_id_or_name, opts)
1333
- data
1334
- end
1335
-
1336
- # Stop sandbox
1337
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1338
- # @param [Hash] opts the optional parameters
1339
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1340
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1341
- def stop_sandbox_with_http_info(sandbox_id_or_name, opts = {})
1342
- if @api_client.config.debugging
1343
- @api_client.config.logger.debug 'Calling API: SandboxApi.stop_sandbox ...'
1344
- end
1345
- # verify the required parameter 'sandbox_id_or_name' is set
1346
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1347
- fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.stop_sandbox"
1348
- end
1349
- # resource path
1350
- local_var_path = '/sandbox/{sandboxIdOrName}/stop'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
1351
-
1352
- # query parameters
1353
- query_params = opts[:query_params] || {}
1354
-
1355
- # header parameters
1356
- header_params = opts[:header_params] || {}
1357
- # HTTP header 'Accept' (if needed)
1358
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1359
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1360
-
1361
- # form parameters
1362
- form_params = opts[:form_params] || {}
1363
-
1364
- # http body (model)
1365
- post_body = opts[:debug_body]
1366
-
1367
- # return_type
1368
- return_type = opts[:debug_return_type] || 'Sandbox'
1369
-
1370
- # auth_names
1371
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1372
-
1373
- new_options = opts.merge(
1374
- :operation => :"SandboxApi.stop_sandbox",
1375
- :header_params => header_params,
1376
- :query_params => query_params,
1377
- :form_params => form_params,
1378
- :body => post_body,
1379
- :auth_names => auth_names,
1380
- :return_type => return_type
1381
- )
1382
-
1383
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1384
- if @api_client.config.debugging
1385
- @api_client.config.logger.debug "API called: SandboxApi#stop_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1386
- end
1387
- return data, status_code, headers
1388
- end
1389
-
1390
- # Update sandbox last activity
1391
1306
  # @param sandbox_id [String] ID of the sandbox
1392
1307
  # @param [Hash] opts the optional parameters
1393
1308
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1394
1309
  # @return [nil]
1395
- def update_last_activity(sandbox_id, opts = {})
1396
- 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)
1397
1312
  nil
1398
1313
  end
1399
1314
 
1400
- # Update sandbox last activity
1315
+ # Stop sandbox
1401
1316
  # @param sandbox_id [String] ID of the sandbox
1402
1317
  # @param [Hash] opts the optional parameters
1403
1318
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1404
1319
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1405
- def update_last_activity_with_http_info(sandbox_id, opts = {})
1320
+ def stop_sandbox_with_http_info(sandbox_id, opts = {})
1406
1321
  if @api_client.config.debugging
1407
- @api_client.config.logger.debug 'Calling API: SandboxApi.update_last_activity ...'
1322
+ @api_client.config.logger.debug 'Calling API: SandboxApi.stop_sandbox ...'
1408
1323
  end
1409
1324
  # verify the required parameter 'sandbox_id' is set
1410
1325
  if @api_client.config.client_side_validation && sandbox_id.nil?
1411
- 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"
1412
1327
  end
1413
1328
  # resource path
1414
- 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))
1415
1330
 
1416
1331
  # query parameters
1417
1332
  query_params = opts[:query_params] || {}
@@ -1433,7 +1348,7 @@ module DaytonaApiClient
1433
1348
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1434
1349
 
1435
1350
  new_options = opts.merge(
1436
- :operation => :"SandboxApi.update_last_activity",
1351
+ :operation => :"SandboxApi.stop_sandbox",
1437
1352
  :header_params => header_params,
1438
1353
  :query_params => query_params,
1439
1354
  :form_params => form_params,
@@ -1444,50 +1359,48 @@ module DaytonaApiClient
1444
1359
 
1445
1360
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1446
1361
  if @api_client.config.debugging
1447
- @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}"
1448
1363
  end
1449
1364
  return data, status_code, headers
1450
1365
  end
1451
1366
 
1452
1367
  # Update public status
1453
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1368
+ # @param sandbox_id [String] ID of the sandbox
1454
1369
  # @param is_public [Boolean] Public status to set
1455
1370
  # @param [Hash] opts the optional parameters
1456
1371
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1457
- # @return [Sandbox]
1458
- def update_public_status(sandbox_id_or_name, is_public, opts = {})
1459
- data, _status_code, _headers = update_public_status_with_http_info(sandbox_id_or_name, is_public, opts)
1460
- 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
1461
1376
  end
1462
1377
 
1463
1378
  # Update public status
1464
- # @param sandbox_id_or_name [String] ID or name of the sandbox
1379
+ # @param sandbox_id [String] ID of the sandbox
1465
1380
  # @param is_public [Boolean] Public status to set
1466
1381
  # @param [Hash] opts the optional parameters
1467
1382
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1468
- # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1469
- 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 = {})
1470
1385
  if @api_client.config.debugging
1471
1386
  @api_client.config.logger.debug 'Calling API: SandboxApi.update_public_status ...'
1472
1387
  end
1473
- # verify the required parameter 'sandbox_id_or_name' is set
1474
- if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
1475
- 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"
1476
1391
  end
1477
1392
  # verify the required parameter 'is_public' is set
1478
1393
  if @api_client.config.client_side_validation && is_public.nil?
1479
1394
  fail ArgumentError, "Missing the required parameter 'is_public' when calling SandboxApi.update_public_status"
1480
1395
  end
1481
1396
  # resource path
1482
- 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))
1483
1398
 
1484
1399
  # query parameters
1485
1400
  query_params = opts[:query_params] || {}
1486
1401
 
1487
1402
  # header parameters
1488
1403
  header_params = opts[:header_params] || {}
1489
- # HTTP header 'Accept' (if needed)
1490
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1491
1404
  header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1492
1405
 
1493
1406
  # form parameters
@@ -1497,7 +1410,7 @@ module DaytonaApiClient
1497
1410
  post_body = opts[:debug_body]
1498
1411
 
1499
1412
  # return_type
1500
- return_type = opts[:debug_return_type] || 'Sandbox'
1413
+ return_type = opts[:debug_return_type]
1501
1414
 
1502
1415
  # auth_names
1503
1416
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']