daytona_api_client 0.134.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 (77) 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/audit_api.rb +66 -18
  6. data/lib/daytona_api_client/api/docker_registry_api.rb +0 -3
  7. data/lib/daytona_api_client/api/organizations_api.rb +29 -754
  8. data/lib/daytona_api_client/api/preview_api.rb +5 -74
  9. data/lib/daytona_api_client/api/runners_api.rb +20 -343
  10. data/lib/daytona_api_client/api/sandbox_api.rb +194 -558
  11. data/lib/daytona_api_client/api/snapshots_api.rb +0 -66
  12. data/lib/daytona_api_client/api/toolbox_api.rb +711 -711
  13. data/lib/daytona_api_client/api/workspace_api.rb +3 -3
  14. data/lib/daytona_api_client/models/build_info.rb +4 -31
  15. data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -166
  16. data/lib/daytona_api_client/models/create_organization.rb +4 -31
  17. data/lib/daytona_api_client/models/create_runner.rb +315 -31
  18. data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
  19. data/lib/daytona_api_client/models/create_snapshot.rb +4 -14
  20. data/lib/daytona_api_client/models/create_user.rb +1 -10
  21. data/lib/daytona_api_client/models/daytona_configuration.rb +4 -41
  22. data/lib/daytona_api_client/models/organization.rb +85 -53
  23. data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -18
  24. data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -14
  25. data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -4
  26. data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
  27. data/lib/daytona_api_client/models/region.rb +4 -178
  28. data/lib/daytona_api_client/models/runner.rb +117 -79
  29. data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -0
  30. data/lib/daytona_api_client/models/sandbox.rb +14 -51
  31. data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
  32. data/lib/daytona_api_client/models/snapshot_dto.rb +4 -36
  33. data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
  34. data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -31
  35. data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
  36. data/lib/daytona_api_client/models/update_organization_quota.rb +41 -41
  37. data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -24
  38. data/lib/daytona_api_client/models/workspace.rb +35 -45
  39. data/lib/daytona_api_client/version.rb +1 -1
  40. data/lib/daytona_api_client.rb +1 -30
  41. data/project.json +6 -34
  42. metadata +5 -38
  43. data/.gitignore +0 -39
  44. data/.openapi-generator/FILES +0 -194
  45. data/.openapi-generator/VERSION +0 -1
  46. data/.openapi-generator-ignore +0 -31
  47. data/.rspec +0 -2
  48. data/.rubocop.yml +0 -148
  49. data/fix-gemspec.sh +0 -11
  50. data/lib/daytona_api_client/api/admin_api.rb +0 -325
  51. data/lib/daytona_api_client/api/jobs_api.rb +0 -299
  52. data/lib/daytona_api_client/api/regions_api.rb +0 -77
  53. data/lib/daytona_api_client/models/admin_create_runner.rb +0 -385
  54. data/lib/daytona_api_client/models/create_region.rb +0 -269
  55. data/lib/daytona_api_client/models/create_region_response.rb +0 -280
  56. data/lib/daytona_api_client/models/create_runner_response.rb +0 -263
  57. data/lib/daytona_api_client/models/job_status.rb +0 -42
  58. data/lib/daytona_api_client/models/job_type.rb +0 -49
  59. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -238
  60. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -249
  61. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -229
  62. data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -236
  63. data/lib/daytona_api_client/models/region_quota.rb +0 -339
  64. data/lib/daytona_api_client/models/region_type.rb +0 -41
  65. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
  66. data/lib/daytona_api_client/models/runner_full.rb +0 -779
  67. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -533
  68. data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -276
  69. data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -317
  70. data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -263
  71. data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -236
  72. data/lib/daytona_api_client/models/update_job_status.rb +0 -278
  73. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -236
  74. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -245
  75. data/lib/daytona_api_client/models/update_region.rb +0 -242
  76. data/lib/daytona_api_client/models/url.rb +0 -236
  77. data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
@@ -27,6 +27,9 @@ 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
+
30
33
  # The CPU capacity of the runner
31
34
  attr_accessor :cpu
32
35
 
@@ -66,18 +69,12 @@ module DaytonaApiClient
66
69
  # Current snapshot count
67
70
  attr_accessor :current_snapshot_count
68
71
 
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
-
81
78
  # The state of the runner
82
79
  attr_accessor :state
83
80
 
@@ -93,15 +90,9 @@ module DaytonaApiClient
93
90
  # The last update timestamp of the runner
94
91
  attr_accessor :updated_at
95
92
 
96
- # The version of the runner (deprecated in favor of apiVersion)
93
+ # The version of the runner
97
94
  attr_accessor :version
98
95
 
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
-
105
96
  class EnumAttributeValidator
106
97
  attr_reader :datatype
107
98
  attr_reader :allowable_values
@@ -131,6 +122,7 @@ module DaytonaApiClient
131
122
  :'domain' => :'domain',
132
123
  :'api_url' => :'apiUrl',
133
124
  :'proxy_url' => :'proxyUrl',
125
+ :'api_key' => :'apiKey',
134
126
  :'cpu' => :'cpu',
135
127
  :'memory' => :'memory',
136
128
  :'disk' => :'disk',
@@ -144,18 +136,14 @@ module DaytonaApiClient
144
136
  :'current_allocated_memory_gi_b' => :'currentAllocatedMemoryGiB',
145
137
  :'current_allocated_disk_gi_b' => :'currentAllocatedDiskGiB',
146
138
  :'current_snapshot_count' => :'currentSnapshotCount',
147
- :'current_started_sandboxes' => :'currentStartedSandboxes',
148
139
  :'availability_score' => :'availabilityScore',
149
140
  :'region' => :'region',
150
- :'name' => :'name',
151
141
  :'state' => :'state',
152
142
  :'last_checked' => :'lastChecked',
153
143
  :'unschedulable' => :'unschedulable',
154
144
  :'created_at' => :'createdAt',
155
145
  :'updated_at' => :'updatedAt',
156
- :'version' => :'version',
157
- :'api_version' => :'apiVersion',
158
- :'app_version' => :'appVersion'
146
+ :'version' => :'version'
159
147
  }
160
148
  end
161
149
 
@@ -176,6 +164,7 @@ module DaytonaApiClient
176
164
  :'domain' => :'String',
177
165
  :'api_url' => :'String',
178
166
  :'proxy_url' => :'String',
167
+ :'api_key' => :'String',
179
168
  :'cpu' => :'Float',
180
169
  :'memory' => :'Float',
181
170
  :'disk' => :'Float',
@@ -189,18 +178,14 @@ module DaytonaApiClient
189
178
  :'current_allocated_memory_gi_b' => :'Float',
190
179
  :'current_allocated_disk_gi_b' => :'Float',
191
180
  :'current_snapshot_count' => :'Float',
192
- :'current_started_sandboxes' => :'Float',
193
181
  :'availability_score' => :'Float',
194
182
  :'region' => :'String',
195
- :'name' => :'String',
196
183
  :'state' => :'RunnerState',
197
184
  :'last_checked' => :'String',
198
185
  :'unschedulable' => :'Boolean',
199
186
  :'created_at' => :'String',
200
187
  :'updated_at' => :'String',
201
- :'version' => :'String',
202
- :'api_version' => :'String',
203
- :'app_version' => :'String'
188
+ :'version' => :'String'
204
189
  }
205
190
  end
206
191
 
@@ -234,14 +219,26 @@ module DaytonaApiClient
234
219
 
235
220
  if attributes.key?(:'domain')
236
221
  self.domain = attributes[:'domain']
222
+ else
223
+ self.domain = nil
237
224
  end
238
225
 
239
226
  if attributes.key?(:'api_url')
240
227
  self.api_url = attributes[:'api_url']
228
+ else
229
+ self.api_url = nil
241
230
  end
242
231
 
243
232
  if attributes.key?(:'proxy_url')
244
233
  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
245
242
  end
246
243
 
247
244
  if attributes.key?(:'cpu')
@@ -264,10 +261,14 @@ module DaytonaApiClient
264
261
 
265
262
  if attributes.key?(:'gpu')
266
263
  self.gpu = attributes[:'gpu']
264
+ else
265
+ self.gpu = nil
267
266
  end
268
267
 
269
268
  if attributes.key?(:'gpu_type')
270
269
  self.gpu_type = attributes[:'gpu_type']
270
+ else
271
+ self.gpu_type = nil
271
272
  end
272
273
 
273
274
  if attributes.key?(:'_class')
@@ -304,10 +305,6 @@ module DaytonaApiClient
304
305
  self.current_snapshot_count = attributes[:'current_snapshot_count']
305
306
  end
306
307
 
307
- if attributes.key?(:'current_started_sandboxes')
308
- self.current_started_sandboxes = attributes[:'current_started_sandboxes']
309
- end
310
-
311
308
  if attributes.key?(:'availability_score')
312
309
  self.availability_score = attributes[:'availability_score']
313
310
  end
@@ -318,12 +315,6 @@ module DaytonaApiClient
318
315
  self.region = nil
319
316
  end
320
317
 
321
- if attributes.key?(:'name')
322
- self.name = attributes[:'name']
323
- else
324
- self.name = nil
325
- end
326
-
327
318
  if attributes.key?(:'state')
328
319
  self.state = attributes[:'state']
329
320
  else
@@ -357,16 +348,6 @@ module DaytonaApiClient
357
348
  else
358
349
  self.version = nil
359
350
  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
370
351
  end
371
352
 
372
353
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -378,6 +359,22 @@ module DaytonaApiClient
378
359
  invalid_properties.push('invalid value for "id", id cannot be nil.')
379
360
  end
380
361
 
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
+
381
378
  if @cpu.nil?
382
379
  invalid_properties.push('invalid value for "cpu", cpu cannot be nil.')
383
380
  end
@@ -390,6 +387,14 @@ module DaytonaApiClient
390
387
  invalid_properties.push('invalid value for "disk", disk cannot be nil.')
391
388
  end
392
389
 
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
+
393
398
  if @_class.nil?
394
399
  invalid_properties.push('invalid value for "_class", _class cannot be nil.')
395
400
  end
@@ -398,10 +403,6 @@ module DaytonaApiClient
398
403
  invalid_properties.push('invalid value for "region", region cannot be nil.')
399
404
  end
400
405
 
401
- if @name.nil?
402
- invalid_properties.push('invalid value for "name", name cannot be nil.')
403
- end
404
-
405
406
  if @state.nil?
406
407
  invalid_properties.push('invalid value for "state", state cannot be nil.')
407
408
  end
@@ -422,10 +423,6 @@ module DaytonaApiClient
422
423
  invalid_properties.push('invalid value for "version", version cannot be nil.')
423
424
  end
424
425
 
425
- if @api_version.nil?
426
- invalid_properties.push('invalid value for "api_version", api_version cannot be nil.')
427
- end
428
-
429
426
  invalid_properties
430
427
  end
431
428
 
@@ -434,18 +431,22 @@ module DaytonaApiClient
434
431
  def valid?
435
432
  warn '[DEPRECATED] the `valid?` method is obsolete'
436
433
  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?
437
438
  return false if @cpu.nil?
438
439
  return false if @memory.nil?
439
440
  return false if @disk.nil?
441
+ return false if @gpu.nil?
442
+ return false if @gpu_type.nil?
440
443
  return false if @_class.nil?
441
444
  return false if @region.nil?
442
- return false if @name.nil?
443
445
  return false if @state.nil?
444
446
  return false if @unschedulable.nil?
445
447
  return false if @created_at.nil?
446
448
  return false if @updated_at.nil?
447
449
  return false if @version.nil?
448
- return false if @api_version.nil?
449
450
  true
450
451
  end
451
452
 
@@ -459,6 +460,46 @@ module DaytonaApiClient
459
460
  @id = id
460
461
  end
461
462
 
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
+
462
503
  # Custom attribute writer method with validation
463
504
  # @param [Object] cpu Value to be assigned
464
505
  def cpu=(cpu)
@@ -489,6 +530,26 @@ module DaytonaApiClient
489
530
  @disk = disk
490
531
  end
491
532
 
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
+
492
553
  # Custom attribute writer method with validation
493
554
  # @param [Object] _class Value to be assigned
494
555
  def _class=(_class)
@@ -509,16 +570,6 @@ module DaytonaApiClient
509
570
  @region = region
510
571
  end
511
572
 
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
-
522
573
  # Custom attribute writer method with validation
523
574
  # @param [Object] state Value to be assigned
524
575
  def state=(state)
@@ -569,16 +620,6 @@ module DaytonaApiClient
569
620
  @version = version
570
621
  end
571
622
 
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
-
582
623
  # Checks equality by comparing each attribute.
583
624
  # @param [Object] Object to be compared
584
625
  def ==(o)
@@ -588,6 +629,7 @@ module DaytonaApiClient
588
629
  domain == o.domain &&
589
630
  api_url == o.api_url &&
590
631
  proxy_url == o.proxy_url &&
632
+ api_key == o.api_key &&
591
633
  cpu == o.cpu &&
592
634
  memory == o.memory &&
593
635
  disk == o.disk &&
@@ -601,18 +643,14 @@ module DaytonaApiClient
601
643
  current_allocated_memory_gi_b == o.current_allocated_memory_gi_b &&
602
644
  current_allocated_disk_gi_b == o.current_allocated_disk_gi_b &&
603
645
  current_snapshot_count == o.current_snapshot_count &&
604
- current_started_sandboxes == o.current_started_sandboxes &&
605
646
  availability_score == o.availability_score &&
606
647
  region == o.region &&
607
- name == o.name &&
608
648
  state == o.state &&
609
649
  last_checked == o.last_checked &&
610
650
  unschedulable == o.unschedulable &&
611
651
  created_at == o.created_at &&
612
652
  updated_at == o.updated_at &&
613
- version == o.version &&
614
- api_version == o.api_version &&
615
- app_version == o.app_version
653
+ version == o.version
616
654
  end
617
655
 
618
656
  # @see the `==` method
@@ -624,7 +662,7 @@ module DaytonaApiClient
624
662
  # Calculates hash code according to all attributes.
625
663
  # @return [Integer] Hash code
626
664
  def 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
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
628
666
  end
629
667
 
630
668
  # Builds the object from hash
@@ -88,6 +88,8 @@ module DaytonaApiClient
88
88
 
89
89
  if attributes.key?(:'runner_domain')
90
90
  self.runner_domain = attributes[:'runner_domain']
91
+ else
92
+ self.runner_domain = nil
91
93
  end
92
94
  end
93
95
 
@@ -104,6 +106,10 @@ module DaytonaApiClient
104
106
  invalid_properties.push('invalid value for "runner_id", runner_id cannot be nil.')
105
107
  end
106
108
 
109
+ if @runner_domain.nil?
110
+ invalid_properties.push('invalid value for "runner_domain", runner_domain cannot be nil.')
111
+ end
112
+
107
113
  invalid_properties
108
114
  end
109
115
 
@@ -113,6 +119,7 @@ module DaytonaApiClient
113
119
  warn '[DEPRECATED] the `valid?` method is obsolete'
114
120
  return false if @runner_snapshot_id.nil?
115
121
  return false if @runner_id.nil?
122
+ return false if @runner_domain.nil?
116
123
  true
117
124
  end
118
125
 
@@ -136,6 +143,16 @@ module DaytonaApiClient
136
143
  @runner_id = runner_id
137
144
  end
138
145
 
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] runner_domain Value to be assigned
148
+ def runner_domain=(runner_domain)
149
+ if runner_domain.nil?
150
+ fail ArgumentError, 'runner_domain cannot be nil'
151
+ end
152
+
153
+ @runner_domain = runner_domain
154
+ end
155
+
139
156
  # Checks equality by comparing each attribute.
140
157
  # @param [Object] Object to be compared
141
158
  def ==(o)
@@ -21,9 +21,6 @@ module DaytonaApiClient
21
21
  # The organization ID of the sandbox
22
22
  attr_accessor :organization_id
23
23
 
24
- # The name of the sandbox
25
- attr_accessor :name
26
-
27
24
  # The snapshot used for the sandbox
28
25
  attr_accessor :snapshot
29
26
 
@@ -69,9 +66,6 @@ module DaytonaApiClient
69
66
  # The error reason of the sandbox
70
67
  attr_accessor :error_reason
71
68
 
72
- # Whether the sandbox error is recoverable.
73
- attr_accessor :recoverable
74
-
75
69
  # The state of the backup
76
70
  attr_accessor :backup_state
77
71
 
@@ -87,6 +81,9 @@ module DaytonaApiClient
87
81
  # Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
88
82
  attr_accessor :auto_delete_interval
89
83
 
84
+ # The domain name of the runner
85
+ attr_accessor :runner_domain
86
+
90
87
  # Array of volumes attached to the sandbox
91
88
  attr_accessor :volumes
92
89
 
@@ -105,9 +102,6 @@ module DaytonaApiClient
105
102
  # The version of the daemon running in the sandbox
106
103
  attr_accessor :daemon_version
107
104
 
108
- # The runner ID of the sandbox
109
- attr_accessor :runner_id
110
-
111
105
  class EnumAttributeValidator
112
106
  attr_reader :datatype
113
107
  attr_reader :allowable_values
@@ -135,7 +129,6 @@ module DaytonaApiClient
135
129
  {
136
130
  :'id' => :'id',
137
131
  :'organization_id' => :'organizationId',
138
- :'name' => :'name',
139
132
  :'snapshot' => :'snapshot',
140
133
  :'user' => :'user',
141
134
  :'env' => :'env',
@@ -151,19 +144,18 @@ module DaytonaApiClient
151
144
  :'state' => :'state',
152
145
  :'desired_state' => :'desiredState',
153
146
  :'error_reason' => :'errorReason',
154
- :'recoverable' => :'recoverable',
155
147
  :'backup_state' => :'backupState',
156
148
  :'backup_created_at' => :'backupCreatedAt',
157
149
  :'auto_stop_interval' => :'autoStopInterval',
158
150
  :'auto_archive_interval' => :'autoArchiveInterval',
159
151
  :'auto_delete_interval' => :'autoDeleteInterval',
152
+ :'runner_domain' => :'runnerDomain',
160
153
  :'volumes' => :'volumes',
161
154
  :'build_info' => :'buildInfo',
162
155
  :'created_at' => :'createdAt',
163
156
  :'updated_at' => :'updatedAt',
164
157
  :'_class' => :'class',
165
- :'daemon_version' => :'daemonVersion',
166
- :'runner_id' => :'runnerId'
158
+ :'daemon_version' => :'daemonVersion'
167
159
  }
168
160
  end
169
161
 
@@ -182,7 +174,6 @@ module DaytonaApiClient
182
174
  {
183
175
  :'id' => :'String',
184
176
  :'organization_id' => :'String',
185
- :'name' => :'String',
186
177
  :'snapshot' => :'String',
187
178
  :'user' => :'String',
188
179
  :'env' => :'Hash<String, String>',
@@ -198,19 +189,18 @@ module DaytonaApiClient
198
189
  :'state' => :'SandboxState',
199
190
  :'desired_state' => :'SandboxDesiredState',
200
191
  :'error_reason' => :'String',
201
- :'recoverable' => :'Boolean',
202
192
  :'backup_state' => :'String',
203
193
  :'backup_created_at' => :'String',
204
194
  :'auto_stop_interval' => :'Float',
205
195
  :'auto_archive_interval' => :'Float',
206
196
  :'auto_delete_interval' => :'Float',
197
+ :'runner_domain' => :'String',
207
198
  :'volumes' => :'Array<SandboxVolume>',
208
199
  :'build_info' => :'BuildInfo',
209
200
  :'created_at' => :'String',
210
201
  :'updated_at' => :'String',
211
202
  :'_class' => :'String',
212
- :'daemon_version' => :'String',
213
- :'runner_id' => :'String'
203
+ :'daemon_version' => :'String'
214
204
  }
215
205
  end
216
206
 
@@ -248,12 +238,6 @@ module DaytonaApiClient
248
238
  self.organization_id = nil
249
239
  end
250
240
 
251
- if attributes.key?(:'name')
252
- self.name = attributes[:'name']
253
- else
254
- self.name = nil
255
- end
256
-
257
241
  if attributes.key?(:'snapshot')
258
242
  self.snapshot = attributes[:'snapshot']
259
243
  end
@@ -338,10 +322,6 @@ module DaytonaApiClient
338
322
  self.error_reason = attributes[:'error_reason']
339
323
  end
340
324
 
341
- if attributes.key?(:'recoverable')
342
- self.recoverable = attributes[:'recoverable']
343
- end
344
-
345
325
  if attributes.key?(:'backup_state')
346
326
  self.backup_state = attributes[:'backup_state']
347
327
  end
@@ -362,6 +342,10 @@ module DaytonaApiClient
362
342
  self.auto_delete_interval = attributes[:'auto_delete_interval']
363
343
  end
364
344
 
345
+ if attributes.key?(:'runner_domain')
346
+ self.runner_domain = attributes[:'runner_domain']
347
+ end
348
+
365
349
  if attributes.key?(:'volumes')
366
350
  if (value = attributes[:'volumes']).is_a?(Array)
367
351
  self.volumes = value
@@ -387,10 +371,6 @@ module DaytonaApiClient
387
371
  if attributes.key?(:'daemon_version')
388
372
  self.daemon_version = attributes[:'daemon_version']
389
373
  end
390
-
391
- if attributes.key?(:'runner_id')
392
- self.runner_id = attributes[:'runner_id']
393
- end
394
374
  end
395
375
 
396
376
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -406,10 +386,6 @@ module DaytonaApiClient
406
386
  invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
407
387
  end
408
388
 
409
- if @name.nil?
410
- invalid_properties.push('invalid value for "name", name cannot be nil.')
411
- end
412
-
413
389
  if @user.nil?
414
390
  invalid_properties.push('invalid value for "user", user cannot be nil.')
415
391
  end
@@ -459,7 +435,6 @@ module DaytonaApiClient
459
435
  warn '[DEPRECATED] the `valid?` method is obsolete'
460
436
  return false if @id.nil?
461
437
  return false if @organization_id.nil?
462
- return false if @name.nil?
463
438
  return false if @user.nil?
464
439
  return false if @env.nil?
465
440
  return false if @labels.nil?
@@ -497,16 +472,6 @@ module DaytonaApiClient
497
472
  @organization_id = organization_id
498
473
  end
499
474
 
500
- # Custom attribute writer method with validation
501
- # @param [Object] name Value to be assigned
502
- def name=(name)
503
- if name.nil?
504
- fail ArgumentError, 'name cannot be nil'
505
- end
506
-
507
- @name = name
508
- end
509
-
510
475
  # Custom attribute writer method with validation
511
476
  # @param [Object] user Value to be assigned
512
477
  def user=(user)
@@ -634,7 +599,6 @@ module DaytonaApiClient
634
599
  self.class == o.class &&
635
600
  id == o.id &&
636
601
  organization_id == o.organization_id &&
637
- name == o.name &&
638
602
  snapshot == o.snapshot &&
639
603
  user == o.user &&
640
604
  env == o.env &&
@@ -650,19 +614,18 @@ module DaytonaApiClient
650
614
  state == o.state &&
651
615
  desired_state == o.desired_state &&
652
616
  error_reason == o.error_reason &&
653
- recoverable == o.recoverable &&
654
617
  backup_state == o.backup_state &&
655
618
  backup_created_at == o.backup_created_at &&
656
619
  auto_stop_interval == o.auto_stop_interval &&
657
620
  auto_archive_interval == o.auto_archive_interval &&
658
621
  auto_delete_interval == o.auto_delete_interval &&
622
+ runner_domain == o.runner_domain &&
659
623
  volumes == o.volumes &&
660
624
  build_info == o.build_info &&
661
625
  created_at == o.created_at &&
662
626
  updated_at == o.updated_at &&
663
627
  _class == o._class &&
664
- daemon_version == o.daemon_version &&
665
- runner_id == o.runner_id
628
+ daemon_version == o.daemon_version
666
629
  end
667
630
 
668
631
  # @see the `==` method
@@ -674,7 +637,7 @@ module DaytonaApiClient
674
637
  # Calculates hash code according to all attributes.
675
638
  # @return [Integer] Hash code
676
639
  def hash
677
- [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, _class, daemon_version, runner_id].hash
640
+ [id, organization_id, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, runner_domain, volumes, build_info, created_at, updated_at, _class, daemon_version].hash
678
641
  end
679
642
 
680
643
  # Builds the object from hash