daytona_api_client 0.126.0.pre.alpha.4 → 0.134.0.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +23 -0
  3. data/.openapi-generator-ignore +0 -2
  4. data/daytona_api_client.gemspec +1 -1
  5. data/fix-gemspec.sh +1 -1
  6. data/lib/daytona_api_client/api/admin_api.rb +325 -0
  7. data/lib/daytona_api_client/api/docker_registry_api.rb +3 -0
  8. data/lib/daytona_api_client/api/jobs_api.rb +299 -0
  9. data/lib/daytona_api_client/api/organizations_api.rb +518 -0
  10. data/lib/daytona_api_client/api/preview_api.rb +67 -0
  11. data/lib/daytona_api_client/api/regions_api.rb +9 -15
  12. data/lib/daytona_api_client/api/runners_api.rb +291 -23
  13. data/lib/daytona_api_client/api/sandbox_api.rb +277 -0
  14. data/lib/daytona_api_client/api/snapshots_api.rb +66 -0
  15. data/lib/daytona_api_client/models/admin_create_runner.rb +385 -0
  16. data/lib/daytona_api_client/models/build_info.rb +31 -4
  17. data/lib/daytona_api_client/models/create_region.rb +269 -0
  18. data/lib/daytona_api_client/models/create_region_response.rb +280 -0
  19. data/lib/daytona_api_client/models/create_runner.rb +31 -315
  20. data/lib/daytona_api_client/models/create_runner_response.rb +263 -0
  21. data/lib/daytona_api_client/models/create_snapshot.rb +14 -4
  22. data/lib/daytona_api_client/models/{create_audit_log.rb → job.rb} +166 -79
  23. data/lib/daytona_api_client/models/job_status.rb +42 -0
  24. data/lib/daytona_api_client/models/job_type.rb +49 -0
  25. data/lib/daytona_api_client/models/{paginated_snapshots_dto.rb → paginated_jobs.rb} +4 -4
  26. data/lib/daytona_api_client/models/poll_jobs_response.rb +238 -0
  27. data/lib/daytona_api_client/models/regenerate_api_key_response.rb +236 -0
  28. data/lib/daytona_api_client/models/region.rb +86 -4
  29. data/lib/daytona_api_client/models/region_type.rb +41 -0
  30. data/lib/daytona_api_client/models/runner.rb +79 -117
  31. data/lib/daytona_api_client/models/runner_full.rb +779 -0
  32. data/lib/daytona_api_client/models/runner_health_metrics.rb +533 -0
  33. data/lib/daytona_api_client/models/runner_healthcheck.rb +276 -0
  34. data/lib/daytona_api_client/models/runner_snapshot_dto.rb +0 -17
  35. data/lib/daytona_api_client/models/sandbox.rb +14 -4
  36. data/lib/daytona_api_client/models/signed_port_preview_url.rb +317 -0
  37. data/lib/daytona_api_client/models/snapshot_dto.rb +36 -4
  38. data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +263 -0
  39. data/lib/daytona_api_client/models/ssh_access_dto.rb +31 -4
  40. data/lib/daytona_api_client/models/toolbox_proxy_url.rb +236 -0
  41. data/lib/daytona_api_client/models/update_job_status.rb +278 -0
  42. data/lib/daytona_api_client/models/update_region.rb +242 -0
  43. data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +14 -4
  44. data/lib/daytona_api_client/models/url.rb +236 -0
  45. data/lib/daytona_api_client/models/workspace.rb +11 -1
  46. data/lib/daytona_api_client/version.rb +1 -1
  47. data/lib/daytona_api_client.rb +22 -0
  48. data/project.json +10 -4
  49. metadata +23 -5
  50. data/Gemfile +0 -9
  51. data/Gemfile.lock +0 -101
@@ -27,9 +27,6 @@ module DaytonaApiClient
27
27
  # The proxy URL of the runner
28
28
  attr_accessor :proxy_url
29
29
 
30
- # The API key for the runner
31
- attr_accessor :api_key
32
-
33
30
  # The CPU capacity of the runner
34
31
  attr_accessor :cpu
35
32
 
@@ -69,12 +66,18 @@ module DaytonaApiClient
69
66
  # Current snapshot count
70
67
  attr_accessor :current_snapshot_count
71
68
 
69
+ # Current number of started sandboxes
70
+ attr_accessor :current_started_sandboxes
71
+
72
72
  # Runner availability score
73
73
  attr_accessor :availability_score
74
74
 
75
75
  # The region of the runner
76
76
  attr_accessor :region
77
77
 
78
+ # The name of the runner
79
+ attr_accessor :name
80
+
78
81
  # The state of the runner
79
82
  attr_accessor :state
80
83
 
@@ -90,9 +93,15 @@ module DaytonaApiClient
90
93
  # The last update timestamp of the runner
91
94
  attr_accessor :updated_at
92
95
 
93
- # The version of the runner
96
+ # The version of the runner (deprecated in favor of apiVersion)
94
97
  attr_accessor :version
95
98
 
99
+ # The api version of the runner
100
+ attr_accessor :api_version
101
+
102
+ # The app version of the runner
103
+ attr_accessor :app_version
104
+
96
105
  class EnumAttributeValidator
97
106
  attr_reader :datatype
98
107
  attr_reader :allowable_values
@@ -122,7 +131,6 @@ module DaytonaApiClient
122
131
  :'domain' => :'domain',
123
132
  :'api_url' => :'apiUrl',
124
133
  :'proxy_url' => :'proxyUrl',
125
- :'api_key' => :'apiKey',
126
134
  :'cpu' => :'cpu',
127
135
  :'memory' => :'memory',
128
136
  :'disk' => :'disk',
@@ -136,14 +144,18 @@ module DaytonaApiClient
136
144
  :'current_allocated_memory_gi_b' => :'currentAllocatedMemoryGiB',
137
145
  :'current_allocated_disk_gi_b' => :'currentAllocatedDiskGiB',
138
146
  :'current_snapshot_count' => :'currentSnapshotCount',
147
+ :'current_started_sandboxes' => :'currentStartedSandboxes',
139
148
  :'availability_score' => :'availabilityScore',
140
149
  :'region' => :'region',
150
+ :'name' => :'name',
141
151
  :'state' => :'state',
142
152
  :'last_checked' => :'lastChecked',
143
153
  :'unschedulable' => :'unschedulable',
144
154
  :'created_at' => :'createdAt',
145
155
  :'updated_at' => :'updatedAt',
146
- :'version' => :'version'
156
+ :'version' => :'version',
157
+ :'api_version' => :'apiVersion',
158
+ :'app_version' => :'appVersion'
147
159
  }
148
160
  end
149
161
 
@@ -164,7 +176,6 @@ module DaytonaApiClient
164
176
  :'domain' => :'String',
165
177
  :'api_url' => :'String',
166
178
  :'proxy_url' => :'String',
167
- :'api_key' => :'String',
168
179
  :'cpu' => :'Float',
169
180
  :'memory' => :'Float',
170
181
  :'disk' => :'Float',
@@ -178,14 +189,18 @@ module DaytonaApiClient
178
189
  :'current_allocated_memory_gi_b' => :'Float',
179
190
  :'current_allocated_disk_gi_b' => :'Float',
180
191
  :'current_snapshot_count' => :'Float',
192
+ :'current_started_sandboxes' => :'Float',
181
193
  :'availability_score' => :'Float',
182
194
  :'region' => :'String',
195
+ :'name' => :'String',
183
196
  :'state' => :'RunnerState',
184
197
  :'last_checked' => :'String',
185
198
  :'unschedulable' => :'Boolean',
186
199
  :'created_at' => :'String',
187
200
  :'updated_at' => :'String',
188
- :'version' => :'String'
201
+ :'version' => :'String',
202
+ :'api_version' => :'String',
203
+ :'app_version' => :'String'
189
204
  }
190
205
  end
191
206
 
@@ -219,26 +234,14 @@ module DaytonaApiClient
219
234
 
220
235
  if attributes.key?(:'domain')
221
236
  self.domain = attributes[:'domain']
222
- else
223
- self.domain = nil
224
237
  end
225
238
 
226
239
  if attributes.key?(:'api_url')
227
240
  self.api_url = attributes[:'api_url']
228
- else
229
- self.api_url = nil
230
241
  end
231
242
 
232
243
  if attributes.key?(:'proxy_url')
233
244
  self.proxy_url = attributes[:'proxy_url']
234
- else
235
- self.proxy_url = nil
236
- end
237
-
238
- if attributes.key?(:'api_key')
239
- self.api_key = attributes[:'api_key']
240
- else
241
- self.api_key = nil
242
245
  end
243
246
 
244
247
  if attributes.key?(:'cpu')
@@ -261,14 +264,10 @@ module DaytonaApiClient
261
264
 
262
265
  if attributes.key?(:'gpu')
263
266
  self.gpu = attributes[:'gpu']
264
- else
265
- self.gpu = nil
266
267
  end
267
268
 
268
269
  if attributes.key?(:'gpu_type')
269
270
  self.gpu_type = attributes[:'gpu_type']
270
- else
271
- self.gpu_type = nil
272
271
  end
273
272
 
274
273
  if attributes.key?(:'_class')
@@ -305,6 +304,10 @@ module DaytonaApiClient
305
304
  self.current_snapshot_count = attributes[:'current_snapshot_count']
306
305
  end
307
306
 
307
+ if attributes.key?(:'current_started_sandboxes')
308
+ self.current_started_sandboxes = attributes[:'current_started_sandboxes']
309
+ end
310
+
308
311
  if attributes.key?(:'availability_score')
309
312
  self.availability_score = attributes[:'availability_score']
310
313
  end
@@ -315,6 +318,12 @@ module DaytonaApiClient
315
318
  self.region = nil
316
319
  end
317
320
 
321
+ if attributes.key?(:'name')
322
+ self.name = attributes[:'name']
323
+ else
324
+ self.name = nil
325
+ end
326
+
318
327
  if attributes.key?(:'state')
319
328
  self.state = attributes[:'state']
320
329
  else
@@ -348,6 +357,16 @@ module DaytonaApiClient
348
357
  else
349
358
  self.version = nil
350
359
  end
360
+
361
+ if attributes.key?(:'api_version')
362
+ self.api_version = attributes[:'api_version']
363
+ else
364
+ self.api_version = nil
365
+ end
366
+
367
+ if attributes.key?(:'app_version')
368
+ self.app_version = attributes[:'app_version']
369
+ end
351
370
  end
352
371
 
353
372
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -359,22 +378,6 @@ module DaytonaApiClient
359
378
  invalid_properties.push('invalid value for "id", id cannot be nil.')
360
379
  end
361
380
 
362
- if @domain.nil?
363
- invalid_properties.push('invalid value for "domain", domain cannot be nil.')
364
- end
365
-
366
- if @api_url.nil?
367
- invalid_properties.push('invalid value for "api_url", api_url cannot be nil.')
368
- end
369
-
370
- if @proxy_url.nil?
371
- invalid_properties.push('invalid value for "proxy_url", proxy_url cannot be nil.')
372
- end
373
-
374
- if @api_key.nil?
375
- invalid_properties.push('invalid value for "api_key", api_key cannot be nil.')
376
- end
377
-
378
381
  if @cpu.nil?
379
382
  invalid_properties.push('invalid value for "cpu", cpu cannot be nil.')
380
383
  end
@@ -387,14 +390,6 @@ module DaytonaApiClient
387
390
  invalid_properties.push('invalid value for "disk", disk cannot be nil.')
388
391
  end
389
392
 
390
- if @gpu.nil?
391
- invalid_properties.push('invalid value for "gpu", gpu cannot be nil.')
392
- end
393
-
394
- if @gpu_type.nil?
395
- invalid_properties.push('invalid value for "gpu_type", gpu_type cannot be nil.')
396
- end
397
-
398
393
  if @_class.nil?
399
394
  invalid_properties.push('invalid value for "_class", _class cannot be nil.')
400
395
  end
@@ -403,6 +398,10 @@ module DaytonaApiClient
403
398
  invalid_properties.push('invalid value for "region", region cannot be nil.')
404
399
  end
405
400
 
401
+ if @name.nil?
402
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
403
+ end
404
+
406
405
  if @state.nil?
407
406
  invalid_properties.push('invalid value for "state", state cannot be nil.')
408
407
  end
@@ -423,6 +422,10 @@ module DaytonaApiClient
423
422
  invalid_properties.push('invalid value for "version", version cannot be nil.')
424
423
  end
425
424
 
425
+ if @api_version.nil?
426
+ invalid_properties.push('invalid value for "api_version", api_version cannot be nil.')
427
+ end
428
+
426
429
  invalid_properties
427
430
  end
428
431
 
@@ -431,22 +434,18 @@ module DaytonaApiClient
431
434
  def valid?
432
435
  warn '[DEPRECATED] the `valid?` method is obsolete'
433
436
  return false if @id.nil?
434
- return false if @domain.nil?
435
- return false if @api_url.nil?
436
- return false if @proxy_url.nil?
437
- return false if @api_key.nil?
438
437
  return false if @cpu.nil?
439
438
  return false if @memory.nil?
440
439
  return false if @disk.nil?
441
- return false if @gpu.nil?
442
- return false if @gpu_type.nil?
443
440
  return false if @_class.nil?
444
441
  return false if @region.nil?
442
+ return false if @name.nil?
445
443
  return false if @state.nil?
446
444
  return false if @unschedulable.nil?
447
445
  return false if @created_at.nil?
448
446
  return false if @updated_at.nil?
449
447
  return false if @version.nil?
448
+ return false if @api_version.nil?
450
449
  true
451
450
  end
452
451
 
@@ -460,46 +459,6 @@ module DaytonaApiClient
460
459
  @id = id
461
460
  end
462
461
 
463
- # Custom attribute writer method with validation
464
- # @param [Object] domain Value to be assigned
465
- def domain=(domain)
466
- if domain.nil?
467
- fail ArgumentError, 'domain cannot be nil'
468
- end
469
-
470
- @domain = domain
471
- end
472
-
473
- # Custom attribute writer method with validation
474
- # @param [Object] api_url Value to be assigned
475
- def api_url=(api_url)
476
- if api_url.nil?
477
- fail ArgumentError, 'api_url cannot be nil'
478
- end
479
-
480
- @api_url = api_url
481
- end
482
-
483
- # Custom attribute writer method with validation
484
- # @param [Object] proxy_url Value to be assigned
485
- def proxy_url=(proxy_url)
486
- if proxy_url.nil?
487
- fail ArgumentError, 'proxy_url cannot be nil'
488
- end
489
-
490
- @proxy_url = proxy_url
491
- end
492
-
493
- # Custom attribute writer method with validation
494
- # @param [Object] api_key Value to be assigned
495
- def api_key=(api_key)
496
- if api_key.nil?
497
- fail ArgumentError, 'api_key cannot be nil'
498
- end
499
-
500
- @api_key = api_key
501
- end
502
-
503
462
  # Custom attribute writer method with validation
504
463
  # @param [Object] cpu Value to be assigned
505
464
  def cpu=(cpu)
@@ -530,26 +489,6 @@ module DaytonaApiClient
530
489
  @disk = disk
531
490
  end
532
491
 
533
- # Custom attribute writer method with validation
534
- # @param [Object] gpu Value to be assigned
535
- def gpu=(gpu)
536
- if gpu.nil?
537
- fail ArgumentError, 'gpu cannot be nil'
538
- end
539
-
540
- @gpu = gpu
541
- end
542
-
543
- # Custom attribute writer method with validation
544
- # @param [Object] gpu_type Value to be assigned
545
- def gpu_type=(gpu_type)
546
- if gpu_type.nil?
547
- fail ArgumentError, 'gpu_type cannot be nil'
548
- end
549
-
550
- @gpu_type = gpu_type
551
- end
552
-
553
492
  # Custom attribute writer method with validation
554
493
  # @param [Object] _class Value to be assigned
555
494
  def _class=(_class)
@@ -570,6 +509,16 @@ module DaytonaApiClient
570
509
  @region = region
571
510
  end
572
511
 
512
+ # Custom attribute writer method with validation
513
+ # @param [Object] name Value to be assigned
514
+ def name=(name)
515
+ if name.nil?
516
+ fail ArgumentError, 'name cannot be nil'
517
+ end
518
+
519
+ @name = name
520
+ end
521
+
573
522
  # Custom attribute writer method with validation
574
523
  # @param [Object] state Value to be assigned
575
524
  def state=(state)
@@ -620,6 +569,16 @@ module DaytonaApiClient
620
569
  @version = version
621
570
  end
622
571
 
572
+ # Custom attribute writer method with validation
573
+ # @param [Object] api_version Value to be assigned
574
+ def api_version=(api_version)
575
+ if api_version.nil?
576
+ fail ArgumentError, 'api_version cannot be nil'
577
+ end
578
+
579
+ @api_version = api_version
580
+ end
581
+
623
582
  # Checks equality by comparing each attribute.
624
583
  # @param [Object] Object to be compared
625
584
  def ==(o)
@@ -629,7 +588,6 @@ module DaytonaApiClient
629
588
  domain == o.domain &&
630
589
  api_url == o.api_url &&
631
590
  proxy_url == o.proxy_url &&
632
- api_key == o.api_key &&
633
591
  cpu == o.cpu &&
634
592
  memory == o.memory &&
635
593
  disk == o.disk &&
@@ -643,14 +601,18 @@ module DaytonaApiClient
643
601
  current_allocated_memory_gi_b == o.current_allocated_memory_gi_b &&
644
602
  current_allocated_disk_gi_b == o.current_allocated_disk_gi_b &&
645
603
  current_snapshot_count == o.current_snapshot_count &&
604
+ current_started_sandboxes == o.current_started_sandboxes &&
646
605
  availability_score == o.availability_score &&
647
606
  region == o.region &&
607
+ name == o.name &&
648
608
  state == o.state &&
649
609
  last_checked == o.last_checked &&
650
610
  unschedulable == o.unschedulable &&
651
611
  created_at == o.created_at &&
652
612
  updated_at == o.updated_at &&
653
- version == o.version
613
+ version == o.version &&
614
+ api_version == o.api_version &&
615
+ app_version == o.app_version
654
616
  end
655
617
 
656
618
  # @see the `==` method
@@ -662,7 +624,7 @@ module DaytonaApiClient
662
624
  # Calculates hash code according to all attributes.
663
625
  # @return [Integer] Hash code
664
626
  def hash
665
- [id, domain, api_url, proxy_url, api_key, cpu, memory, disk, gpu, gpu_type, _class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, availability_score, region, state, last_checked, unschedulable, created_at, updated_at, version].hash
627
+ [id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, _class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, created_at, updated_at, version, api_version, app_version].hash
666
628
  end
667
629
 
668
630
  # Builds the object from hash