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.
- checksums.yaml +4 -4
- data/Gemfile +9 -0
- data/Gemfile.lock +101 -0
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +66 -18
- data/lib/daytona_api_client/api/docker_registry_api.rb +0 -3
- data/lib/daytona_api_client/api/organizations_api.rb +29 -754
- data/lib/daytona_api_client/api/preview_api.rb +5 -74
- data/lib/daytona_api_client/api/runners_api.rb +20 -343
- data/lib/daytona_api_client/api/sandbox_api.rb +194 -558
- data/lib/daytona_api_client/api/snapshots_api.rb +0 -66
- data/lib/daytona_api_client/api/toolbox_api.rb +711 -711
- data/lib/daytona_api_client/api/workspace_api.rb +3 -3
- data/lib/daytona_api_client/models/build_info.rb +4 -31
- data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -166
- data/lib/daytona_api_client/models/create_organization.rb +4 -31
- data/lib/daytona_api_client/models/create_runner.rb +315 -31
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
- data/lib/daytona_api_client/models/create_snapshot.rb +4 -14
- data/lib/daytona_api_client/models/create_user.rb +1 -10
- data/lib/daytona_api_client/models/daytona_configuration.rb +4 -41
- data/lib/daytona_api_client/models/organization.rb +85 -53
- data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -18
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -14
- data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -4
- data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
- data/lib/daytona_api_client/models/region.rb +4 -178
- data/lib/daytona_api_client/models/runner.rb +117 -79
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -0
- data/lib/daytona_api_client/models/sandbox.rb +14 -51
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
- data/lib/daytona_api_client/models/snapshot_dto.rb +4 -36
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -31
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -41
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -24
- data/lib/daytona_api_client/models/workspace.rb +35 -45
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +1 -30
- data/project.json +6 -34
- metadata +5 -38
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -194
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -31
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/admin_api.rb +0 -325
- data/lib/daytona_api_client/api/jobs_api.rb +0 -299
- data/lib/daytona_api_client/api/regions_api.rb +0 -77
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -385
- data/lib/daytona_api_client/models/create_region.rb +0 -269
- data/lib/daytona_api_client/models/create_region_response.rb +0 -280
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -263
- data/lib/daytona_api_client/models/job_status.rb +0 -42
- data/lib/daytona_api_client/models/job_type.rb +0 -49
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -238
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -249
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -229
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -236
- data/lib/daytona_api_client/models/region_quota.rb +0 -339
- data/lib/daytona_api_client/models/region_type.rb +0 -41
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
- data/lib/daytona_api_client/models/runner_full.rb +0 -779
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -533
- data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -276
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -317
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -263
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -236
- data/lib/daytona_api_client/models/update_job_status.rb +0 -278
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -236
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -245
- data/lib/daytona_api_client/models/update_region.rb +0 -242
- data/lib/daytona_api_client/models/url.rb +0 -236
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
|
@@ -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,8 +102,8 @@ module DaytonaApiClient
|
|
|
105
102
|
# The version of the daemon running in the sandbox
|
|
106
103
|
attr_accessor :daemon_version
|
|
107
104
|
|
|
108
|
-
# The
|
|
109
|
-
attr_accessor :
|
|
105
|
+
# The name of the workspace
|
|
106
|
+
attr_accessor :name
|
|
110
107
|
|
|
111
108
|
# The image used for the workspace
|
|
112
109
|
attr_accessor :image
|
|
@@ -147,7 +144,6 @@ module DaytonaApiClient
|
|
|
147
144
|
{
|
|
148
145
|
:'id' => :'id',
|
|
149
146
|
:'organization_id' => :'organizationId',
|
|
150
|
-
:'name' => :'name',
|
|
151
147
|
:'snapshot' => :'snapshot',
|
|
152
148
|
:'user' => :'user',
|
|
153
149
|
:'env' => :'env',
|
|
@@ -163,19 +159,19 @@ module DaytonaApiClient
|
|
|
163
159
|
:'state' => :'state',
|
|
164
160
|
:'desired_state' => :'desiredState',
|
|
165
161
|
:'error_reason' => :'errorReason',
|
|
166
|
-
:'recoverable' => :'recoverable',
|
|
167
162
|
:'backup_state' => :'backupState',
|
|
168
163
|
:'backup_created_at' => :'backupCreatedAt',
|
|
169
164
|
:'auto_stop_interval' => :'autoStopInterval',
|
|
170
165
|
:'auto_archive_interval' => :'autoArchiveInterval',
|
|
171
166
|
:'auto_delete_interval' => :'autoDeleteInterval',
|
|
167
|
+
:'runner_domain' => :'runnerDomain',
|
|
172
168
|
:'volumes' => :'volumes',
|
|
173
169
|
:'build_info' => :'buildInfo',
|
|
174
170
|
:'created_at' => :'createdAt',
|
|
175
171
|
:'updated_at' => :'updatedAt',
|
|
176
172
|
:'_class' => :'class',
|
|
177
173
|
:'daemon_version' => :'daemonVersion',
|
|
178
|
-
:'
|
|
174
|
+
:'name' => :'name',
|
|
179
175
|
:'image' => :'image',
|
|
180
176
|
:'snapshot_state' => :'snapshotState',
|
|
181
177
|
:'snapshot_created_at' => :'snapshotCreatedAt',
|
|
@@ -198,7 +194,6 @@ module DaytonaApiClient
|
|
|
198
194
|
{
|
|
199
195
|
:'id' => :'String',
|
|
200
196
|
:'organization_id' => :'String',
|
|
201
|
-
:'name' => :'String',
|
|
202
197
|
:'snapshot' => :'String',
|
|
203
198
|
:'user' => :'String',
|
|
204
199
|
:'env' => :'Hash<String, String>',
|
|
@@ -214,19 +209,19 @@ module DaytonaApiClient
|
|
|
214
209
|
:'state' => :'SandboxState',
|
|
215
210
|
:'desired_state' => :'SandboxDesiredState',
|
|
216
211
|
:'error_reason' => :'String',
|
|
217
|
-
:'recoverable' => :'Boolean',
|
|
218
212
|
:'backup_state' => :'String',
|
|
219
213
|
:'backup_created_at' => :'String',
|
|
220
214
|
:'auto_stop_interval' => :'Float',
|
|
221
215
|
:'auto_archive_interval' => :'Float',
|
|
222
216
|
:'auto_delete_interval' => :'Float',
|
|
217
|
+
:'runner_domain' => :'String',
|
|
223
218
|
:'volumes' => :'Array<SandboxVolume>',
|
|
224
219
|
:'build_info' => :'BuildInfo',
|
|
225
220
|
:'created_at' => :'String',
|
|
226
221
|
:'updated_at' => :'String',
|
|
227
222
|
:'_class' => :'String',
|
|
228
223
|
:'daemon_version' => :'String',
|
|
229
|
-
:'
|
|
224
|
+
:'name' => :'String',
|
|
230
225
|
:'image' => :'String',
|
|
231
226
|
:'snapshot_state' => :'String',
|
|
232
227
|
:'snapshot_created_at' => :'String',
|
|
@@ -268,12 +263,6 @@ module DaytonaApiClient
|
|
|
268
263
|
self.organization_id = nil
|
|
269
264
|
end
|
|
270
265
|
|
|
271
|
-
if attributes.key?(:'name')
|
|
272
|
-
self.name = attributes[:'name']
|
|
273
|
-
else
|
|
274
|
-
self.name = nil
|
|
275
|
-
end
|
|
276
|
-
|
|
277
266
|
if attributes.key?(:'snapshot')
|
|
278
267
|
self.snapshot = attributes[:'snapshot']
|
|
279
268
|
end
|
|
@@ -358,10 +347,6 @@ module DaytonaApiClient
|
|
|
358
347
|
self.error_reason = attributes[:'error_reason']
|
|
359
348
|
end
|
|
360
349
|
|
|
361
|
-
if attributes.key?(:'recoverable')
|
|
362
|
-
self.recoverable = attributes[:'recoverable']
|
|
363
|
-
end
|
|
364
|
-
|
|
365
350
|
if attributes.key?(:'backup_state')
|
|
366
351
|
self.backup_state = attributes[:'backup_state']
|
|
367
352
|
end
|
|
@@ -382,6 +367,10 @@ module DaytonaApiClient
|
|
|
382
367
|
self.auto_delete_interval = attributes[:'auto_delete_interval']
|
|
383
368
|
end
|
|
384
369
|
|
|
370
|
+
if attributes.key?(:'runner_domain')
|
|
371
|
+
self.runner_domain = attributes[:'runner_domain']
|
|
372
|
+
end
|
|
373
|
+
|
|
385
374
|
if attributes.key?(:'volumes')
|
|
386
375
|
if (value = attributes[:'volumes']).is_a?(Array)
|
|
387
376
|
self.volumes = value
|
|
@@ -408,8 +397,10 @@ module DaytonaApiClient
|
|
|
408
397
|
self.daemon_version = attributes[:'daemon_version']
|
|
409
398
|
end
|
|
410
399
|
|
|
411
|
-
if attributes.key?(:'
|
|
412
|
-
self.
|
|
400
|
+
if attributes.key?(:'name')
|
|
401
|
+
self.name = attributes[:'name']
|
|
402
|
+
else
|
|
403
|
+
self.name = ''
|
|
413
404
|
end
|
|
414
405
|
|
|
415
406
|
if attributes.key?(:'image')
|
|
@@ -442,10 +433,6 @@ module DaytonaApiClient
|
|
|
442
433
|
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
|
443
434
|
end
|
|
444
435
|
|
|
445
|
-
if @name.nil?
|
|
446
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
447
|
-
end
|
|
448
|
-
|
|
449
436
|
if @user.nil?
|
|
450
437
|
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
|
451
438
|
end
|
|
@@ -486,6 +473,10 @@ module DaytonaApiClient
|
|
|
486
473
|
invalid_properties.push('invalid value for "disk", disk cannot be nil.')
|
|
487
474
|
end
|
|
488
475
|
|
|
476
|
+
if @name.nil?
|
|
477
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
478
|
+
end
|
|
479
|
+
|
|
489
480
|
invalid_properties
|
|
490
481
|
end
|
|
491
482
|
|
|
@@ -495,7 +486,6 @@ module DaytonaApiClient
|
|
|
495
486
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
496
487
|
return false if @id.nil?
|
|
497
488
|
return false if @organization_id.nil?
|
|
498
|
-
return false if @name.nil?
|
|
499
489
|
return false if @user.nil?
|
|
500
490
|
return false if @env.nil?
|
|
501
491
|
return false if @labels.nil?
|
|
@@ -510,6 +500,7 @@ module DaytonaApiClient
|
|
|
510
500
|
return false unless backup_state_validator.valid?(@backup_state)
|
|
511
501
|
_class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large"])
|
|
512
502
|
return false unless _class_validator.valid?(@_class)
|
|
503
|
+
return false if @name.nil?
|
|
513
504
|
snapshot_state_validator = EnumAttributeValidator.new('String', ["None", "Pending", "InProgress", "Completed", "Error"])
|
|
514
505
|
return false unless snapshot_state_validator.valid?(@snapshot_state)
|
|
515
506
|
true
|
|
@@ -535,16 +526,6 @@ module DaytonaApiClient
|
|
|
535
526
|
@organization_id = organization_id
|
|
536
527
|
end
|
|
537
528
|
|
|
538
|
-
# Custom attribute writer method with validation
|
|
539
|
-
# @param [Object] name Value to be assigned
|
|
540
|
-
def name=(name)
|
|
541
|
-
if name.nil?
|
|
542
|
-
fail ArgumentError, 'name cannot be nil'
|
|
543
|
-
end
|
|
544
|
-
|
|
545
|
-
@name = name
|
|
546
|
-
end
|
|
547
|
-
|
|
548
529
|
# Custom attribute writer method with validation
|
|
549
530
|
# @param [Object] user Value to be assigned
|
|
550
531
|
def user=(user)
|
|
@@ -665,6 +646,16 @@ module DaytonaApiClient
|
|
|
665
646
|
@_class = _class
|
|
666
647
|
end
|
|
667
648
|
|
|
649
|
+
# Custom attribute writer method with validation
|
|
650
|
+
# @param [Object] name Value to be assigned
|
|
651
|
+
def name=(name)
|
|
652
|
+
if name.nil?
|
|
653
|
+
fail ArgumentError, 'name cannot be nil'
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
@name = name
|
|
657
|
+
end
|
|
658
|
+
|
|
668
659
|
# Custom attribute writer method checking allowed values (enum).
|
|
669
660
|
# @param [Object] snapshot_state Object to be assigned
|
|
670
661
|
def snapshot_state=(snapshot_state)
|
|
@@ -682,7 +673,6 @@ module DaytonaApiClient
|
|
|
682
673
|
self.class == o.class &&
|
|
683
674
|
id == o.id &&
|
|
684
675
|
organization_id == o.organization_id &&
|
|
685
|
-
name == o.name &&
|
|
686
676
|
snapshot == o.snapshot &&
|
|
687
677
|
user == o.user &&
|
|
688
678
|
env == o.env &&
|
|
@@ -698,19 +688,19 @@ module DaytonaApiClient
|
|
|
698
688
|
state == o.state &&
|
|
699
689
|
desired_state == o.desired_state &&
|
|
700
690
|
error_reason == o.error_reason &&
|
|
701
|
-
recoverable == o.recoverable &&
|
|
702
691
|
backup_state == o.backup_state &&
|
|
703
692
|
backup_created_at == o.backup_created_at &&
|
|
704
693
|
auto_stop_interval == o.auto_stop_interval &&
|
|
705
694
|
auto_archive_interval == o.auto_archive_interval &&
|
|
706
695
|
auto_delete_interval == o.auto_delete_interval &&
|
|
696
|
+
runner_domain == o.runner_domain &&
|
|
707
697
|
volumes == o.volumes &&
|
|
708
698
|
build_info == o.build_info &&
|
|
709
699
|
created_at == o.created_at &&
|
|
710
700
|
updated_at == o.updated_at &&
|
|
711
701
|
_class == o._class &&
|
|
712
702
|
daemon_version == o.daemon_version &&
|
|
713
|
-
|
|
703
|
+
name == o.name &&
|
|
714
704
|
image == o.image &&
|
|
715
705
|
snapshot_state == o.snapshot_state &&
|
|
716
706
|
snapshot_created_at == o.snapshot_created_at &&
|
|
@@ -726,7 +716,7 @@ module DaytonaApiClient
|
|
|
726
716
|
# Calculates hash code according to all attributes.
|
|
727
717
|
# @return [Integer] Hash code
|
|
728
718
|
def hash
|
|
729
|
-
[id, organization_id,
|
|
719
|
+
[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, name, image, snapshot_state, snapshot_created_at, info].hash
|
|
730
720
|
end
|
|
731
721
|
|
|
732
722
|
# Builds the object from hash
|
data/lib/daytona_api_client.rb
CHANGED
|
@@ -18,7 +18,6 @@ require 'daytona_api_client/configuration'
|
|
|
18
18
|
|
|
19
19
|
# Models
|
|
20
20
|
require 'daytona_api_client/models/account_provider'
|
|
21
|
-
require 'daytona_api_client/models/admin_create_runner'
|
|
22
21
|
require 'daytona_api_client/models/announcement'
|
|
23
22
|
require 'daytona_api_client/models/api_key_list'
|
|
24
23
|
require 'daytona_api_client/models/api_key_response'
|
|
@@ -33,6 +32,7 @@ require 'daytona_api_client/models/computer_use_start_response'
|
|
|
33
32
|
require 'daytona_api_client/models/computer_use_status_response'
|
|
34
33
|
require 'daytona_api_client/models/computer_use_stop_response'
|
|
35
34
|
require 'daytona_api_client/models/create_api_key'
|
|
35
|
+
require 'daytona_api_client/models/create_audit_log'
|
|
36
36
|
require 'daytona_api_client/models/create_build_info'
|
|
37
37
|
require 'daytona_api_client/models/create_docker_registry'
|
|
38
38
|
require 'daytona_api_client/models/create_linked_account'
|
|
@@ -40,10 +40,7 @@ require 'daytona_api_client/models/create_organization'
|
|
|
40
40
|
require 'daytona_api_client/models/create_organization_invitation'
|
|
41
41
|
require 'daytona_api_client/models/create_organization_quota'
|
|
42
42
|
require 'daytona_api_client/models/create_organization_role'
|
|
43
|
-
require 'daytona_api_client/models/create_region'
|
|
44
|
-
require 'daytona_api_client/models/create_region_response'
|
|
45
43
|
require 'daytona_api_client/models/create_runner'
|
|
46
|
-
require 'daytona_api_client/models/create_runner_response'
|
|
47
44
|
require 'daytona_api_client/models/create_sandbox'
|
|
48
45
|
require 'daytona_api_client/models/create_session_request'
|
|
49
46
|
require 'daytona_api_client/models/create_snapshot'
|
|
@@ -71,9 +68,6 @@ require 'daytona_api_client/models/git_status'
|
|
|
71
68
|
require 'daytona_api_client/models/health_controller_check200_response'
|
|
72
69
|
require 'daytona_api_client/models/health_controller_check200_response_info_value'
|
|
73
70
|
require 'daytona_api_client/models/health_controller_check503_response'
|
|
74
|
-
require 'daytona_api_client/models/job'
|
|
75
|
-
require 'daytona_api_client/models/job_status'
|
|
76
|
-
require 'daytona_api_client/models/job_type'
|
|
77
71
|
require 'daytona_api_client/models/keyboard_hotkey_request'
|
|
78
72
|
require 'daytona_api_client/models/keyboard_press_request'
|
|
79
73
|
require 'daytona_api_client/models/keyboard_type_request'
|
|
@@ -102,10 +96,8 @@ require 'daytona_api_client/models/organization_suspension'
|
|
|
102
96
|
require 'daytona_api_client/models/organization_usage_overview'
|
|
103
97
|
require 'daytona_api_client/models/organization_user'
|
|
104
98
|
require 'daytona_api_client/models/paginated_audit_logs'
|
|
105
|
-
require 'daytona_api_client/models/paginated_jobs'
|
|
106
99
|
require 'daytona_api_client/models/paginated_sandboxes'
|
|
107
100
|
require 'daytona_api_client/models/paginated_snapshots'
|
|
108
|
-
require 'daytona_api_client/models/poll_jobs_response'
|
|
109
101
|
require 'daytona_api_client/models/port_preview_url'
|
|
110
102
|
require 'daytona_api_client/models/position'
|
|
111
103
|
require 'daytona_api_client/models/posthog_config'
|
|
@@ -120,21 +112,12 @@ require 'daytona_api_client/models/pty_list_response'
|
|
|
120
112
|
require 'daytona_api_client/models/pty_resize_request'
|
|
121
113
|
require 'daytona_api_client/models/pty_session_info'
|
|
122
114
|
require 'daytona_api_client/models/range'
|
|
123
|
-
require 'daytona_api_client/models/rate_limit_config'
|
|
124
|
-
require 'daytona_api_client/models/rate_limit_entry'
|
|
125
|
-
require 'daytona_api_client/models/regenerate_api_key_response'
|
|
126
115
|
require 'daytona_api_client/models/region'
|
|
127
|
-
require 'daytona_api_client/models/region_quota'
|
|
128
116
|
require 'daytona_api_client/models/region_screenshot_response'
|
|
129
|
-
require 'daytona_api_client/models/region_type'
|
|
130
|
-
require 'daytona_api_client/models/region_usage_overview'
|
|
131
117
|
require 'daytona_api_client/models/registry_push_access_dto'
|
|
132
118
|
require 'daytona_api_client/models/replace_request'
|
|
133
119
|
require 'daytona_api_client/models/replace_result'
|
|
134
120
|
require 'daytona_api_client/models/runner'
|
|
135
|
-
require 'daytona_api_client/models/runner_full'
|
|
136
|
-
require 'daytona_api_client/models/runner_health_metrics'
|
|
137
|
-
require 'daytona_api_client/models/runner_healthcheck'
|
|
138
121
|
require 'daytona_api_client/models/runner_snapshot_dto'
|
|
139
122
|
require 'daytona_api_client/models/runner_state'
|
|
140
123
|
require 'daytona_api_client/models/sandbox'
|
|
@@ -151,25 +134,17 @@ require 'daytona_api_client/models/session'
|
|
|
151
134
|
require 'daytona_api_client/models/session_execute_request'
|
|
152
135
|
require 'daytona_api_client/models/session_execute_response'
|
|
153
136
|
require 'daytona_api_client/models/set_snapshot_general_status_dto'
|
|
154
|
-
require 'daytona_api_client/models/signed_port_preview_url'
|
|
155
137
|
require 'daytona_api_client/models/snapshot_dto'
|
|
156
|
-
require 'daytona_api_client/models/snapshot_manager_credentials'
|
|
157
138
|
require 'daytona_api_client/models/snapshot_state'
|
|
158
139
|
require 'daytona_api_client/models/ssh_access_dto'
|
|
159
140
|
require 'daytona_api_client/models/ssh_access_validation_dto'
|
|
160
141
|
require 'daytona_api_client/models/storage_access_dto'
|
|
161
|
-
require 'daytona_api_client/models/toolbox_proxy_url'
|
|
162
142
|
require 'daytona_api_client/models/update_docker_registry'
|
|
163
|
-
require 'daytona_api_client/models/update_job_status'
|
|
164
|
-
require 'daytona_api_client/models/update_organization_default_region'
|
|
165
143
|
require 'daytona_api_client/models/update_organization_invitation'
|
|
166
144
|
require 'daytona_api_client/models/update_organization_member_access'
|
|
167
145
|
require 'daytona_api_client/models/update_organization_quota'
|
|
168
|
-
require 'daytona_api_client/models/update_organization_region_quota'
|
|
169
146
|
require 'daytona_api_client/models/update_organization_role'
|
|
170
|
-
require 'daytona_api_client/models/update_region'
|
|
171
147
|
require 'daytona_api_client/models/update_sandbox_state_dto'
|
|
172
|
-
require 'daytona_api_client/models/url'
|
|
173
148
|
require 'daytona_api_client/models/user'
|
|
174
149
|
require 'daytona_api_client/models/user_home_dir_response'
|
|
175
150
|
require 'daytona_api_client/models/user_public_key'
|
|
@@ -181,20 +156,16 @@ require 'daytona_api_client/models/webhook_initialization_status'
|
|
|
181
156
|
require 'daytona_api_client/models/windows_response'
|
|
182
157
|
require 'daytona_api_client/models/work_dir_response'
|
|
183
158
|
require 'daytona_api_client/models/workspace'
|
|
184
|
-
require 'daytona_api_client/models/workspace_port_preview_url'
|
|
185
159
|
|
|
186
160
|
# APIs
|
|
187
|
-
require 'daytona_api_client/api/admin_api'
|
|
188
161
|
require 'daytona_api_client/api/api_keys_api'
|
|
189
162
|
require 'daytona_api_client/api/audit_api'
|
|
190
163
|
require 'daytona_api_client/api/config_api'
|
|
191
164
|
require 'daytona_api_client/api/docker_registry_api'
|
|
192
165
|
require 'daytona_api_client/api/health_api'
|
|
193
|
-
require 'daytona_api_client/api/jobs_api'
|
|
194
166
|
require 'daytona_api_client/api/object_storage_api'
|
|
195
167
|
require 'daytona_api_client/api/organizations_api'
|
|
196
168
|
require 'daytona_api_client/api/preview_api'
|
|
197
|
-
require 'daytona_api_client/api/regions_api'
|
|
198
169
|
require 'daytona_api_client/api/runners_api'
|
|
199
170
|
require 'daytona_api_client/api/sandbox_api'
|
|
200
171
|
require 'daytona_api_client/api/snapshots_api'
|
data/project.json
CHANGED
|
@@ -8,58 +8,30 @@
|
|
|
8
8
|
"build": {
|
|
9
9
|
"executor": "nx:run-commands",
|
|
10
10
|
"options": {
|
|
11
|
-
"
|
|
12
|
-
"commands": ["rm -f *.gem", "bundle install", "gem build daytona_api_client.gemspec"],
|
|
13
|
-
"parallel": false
|
|
14
|
-
},
|
|
15
|
-
"dependsOn": ["set-version"]
|
|
16
|
-
},
|
|
17
|
-
"set-version": {
|
|
18
|
-
"executor": "nx:run-commands",
|
|
19
|
-
"options": {
|
|
20
|
-
"cwd": "{projectRoot}",
|
|
21
|
-
"command": "if [ -n \"$RUBYGEMS_PKG_VERSION\" ]; then sed -i \"s/VERSION = '[^']*'/VERSION = '$RUBYGEMS_PKG_VERSION'/\" lib/daytona_api_client/version.rb && echo \"Changed version to $RUBYGEMS_PKG_VERSION\"; else echo \"Using version from version.rb\"; fi"
|
|
11
|
+
"command": "cd {projectRoot} && bundle install"
|
|
22
12
|
}
|
|
23
13
|
},
|
|
24
14
|
"lint": {
|
|
25
15
|
"executor": "nx:run-commands",
|
|
26
16
|
"options": {
|
|
27
|
-
"
|
|
28
|
-
"command": "bundle exec rubocop"
|
|
17
|
+
"command": "cd {projectRoot} && bundle exec rubocop"
|
|
29
18
|
}
|
|
30
19
|
},
|
|
31
20
|
"generate:api-client": {
|
|
32
21
|
"executor": "nx:run-commands",
|
|
33
22
|
"options": {
|
|
34
|
-
"
|
|
35
|
-
"rm -rf libs/api-client-ruby/lib",
|
|
36
|
-
"yarn run openapi-generator-cli generate -i dist/apps/api/openapi.json -g ruby --additional-properties=gemAuthor=daytonaio,gemAuthorEmail=support@daytona.io,gemDescription=\\\"Daytona API Client\\\",gemHomepage=\\\"https://github.com/daytonaio/daytona\\\",gemVersion=$DEFAULT_GEM_VERSION,gemName=daytona_api_client -o libs/api-client-ruby",
|
|
37
|
-
"bash libs/api-client-ruby/fix-gemspec.sh",
|
|
38
|
-
"cd libs/api-client-ruby && bundle install",
|
|
39
|
-
"cd libs/api-client-ruby && bundle exec rubocop -a --fail-level=E"
|
|
40
|
-
],
|
|
41
|
-
"parallel": false
|
|
23
|
+
"command": "yarn run openapi-generator-cli generate -i dist/apps/api/openapi.json -g ruby --additional-properties=gemAuthor=daytonaio,gemAuthorEmail=support@daytona.io,gemDescription=\\\"Daytona API Client\\\",gemHomepage=\\\"https://github.com/daytonaio/daytona\\\",gemName=daytona_api_client -o libs/api-client-ruby"
|
|
42
24
|
}
|
|
43
25
|
},
|
|
44
26
|
"format": {
|
|
45
27
|
"executor": "nx:run-commands",
|
|
46
28
|
"options": {
|
|
47
|
-
"cwd": "{projectRoot}",
|
|
48
|
-
"commands": ["bundle exec rubocop -a --fail-level=E", "prettier --write \"**/*.yml\""],
|
|
49
|
-
"parallel": false
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"publish": {
|
|
53
|
-
"executor": "nx:run-commands",
|
|
54
|
-
"options": {
|
|
55
|
-
"cwd": "{projectRoot}",
|
|
56
29
|
"commands": [
|
|
57
|
-
"
|
|
58
|
-
"
|
|
30
|
+
"cd {projectRoot} && bundle exec rubocop -a --fail-level=E",
|
|
31
|
+
"cd {projectRoot} && prettier --write \"**/*.yml\""
|
|
59
32
|
],
|
|
60
33
|
"parallel": false
|
|
61
|
-
}
|
|
62
|
-
"dependsOn": ["build"]
|
|
34
|
+
}
|
|
63
35
|
}
|
|
64
36
|
}
|
|
65
37
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: daytona_api_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- daytonaio
|
|
@@ -56,27 +56,19 @@ executables: []
|
|
|
56
56
|
extensions: []
|
|
57
57
|
extra_rdoc_files: []
|
|
58
58
|
files:
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
- ".openapi-generator/FILES"
|
|
62
|
-
- ".openapi-generator/VERSION"
|
|
63
|
-
- ".rspec"
|
|
64
|
-
- ".rubocop.yml"
|
|
59
|
+
- Gemfile
|
|
60
|
+
- Gemfile.lock
|
|
65
61
|
- Rakefile
|
|
66
62
|
- daytona_api_client.gemspec
|
|
67
|
-
- fix-gemspec.sh
|
|
68
63
|
- lib/daytona_api_client.rb
|
|
69
|
-
- lib/daytona_api_client/api/admin_api.rb
|
|
70
64
|
- lib/daytona_api_client/api/api_keys_api.rb
|
|
71
65
|
- lib/daytona_api_client/api/audit_api.rb
|
|
72
66
|
- lib/daytona_api_client/api/config_api.rb
|
|
73
67
|
- lib/daytona_api_client/api/docker_registry_api.rb
|
|
74
68
|
- lib/daytona_api_client/api/health_api.rb
|
|
75
|
-
- lib/daytona_api_client/api/jobs_api.rb
|
|
76
69
|
- lib/daytona_api_client/api/object_storage_api.rb
|
|
77
70
|
- lib/daytona_api_client/api/organizations_api.rb
|
|
78
71
|
- lib/daytona_api_client/api/preview_api.rb
|
|
79
|
-
- lib/daytona_api_client/api/regions_api.rb
|
|
80
72
|
- lib/daytona_api_client/api/runners_api.rb
|
|
81
73
|
- lib/daytona_api_client/api/sandbox_api.rb
|
|
82
74
|
- lib/daytona_api_client/api/snapshots_api.rb
|
|
@@ -89,7 +81,6 @@ files:
|
|
|
89
81
|
- lib/daytona_api_client/api_error.rb
|
|
90
82
|
- lib/daytona_api_client/configuration.rb
|
|
91
83
|
- lib/daytona_api_client/models/account_provider.rb
|
|
92
|
-
- lib/daytona_api_client/models/admin_create_runner.rb
|
|
93
84
|
- lib/daytona_api_client/models/announcement.rb
|
|
94
85
|
- lib/daytona_api_client/models/api_key_list.rb
|
|
95
86
|
- lib/daytona_api_client/models/api_key_response.rb
|
|
@@ -104,6 +95,7 @@ files:
|
|
|
104
95
|
- lib/daytona_api_client/models/computer_use_status_response.rb
|
|
105
96
|
- lib/daytona_api_client/models/computer_use_stop_response.rb
|
|
106
97
|
- lib/daytona_api_client/models/create_api_key.rb
|
|
98
|
+
- lib/daytona_api_client/models/create_audit_log.rb
|
|
107
99
|
- lib/daytona_api_client/models/create_build_info.rb
|
|
108
100
|
- lib/daytona_api_client/models/create_docker_registry.rb
|
|
109
101
|
- lib/daytona_api_client/models/create_linked_account.rb
|
|
@@ -111,10 +103,7 @@ files:
|
|
|
111
103
|
- lib/daytona_api_client/models/create_organization_invitation.rb
|
|
112
104
|
- lib/daytona_api_client/models/create_organization_quota.rb
|
|
113
105
|
- lib/daytona_api_client/models/create_organization_role.rb
|
|
114
|
-
- lib/daytona_api_client/models/create_region.rb
|
|
115
|
-
- lib/daytona_api_client/models/create_region_response.rb
|
|
116
106
|
- lib/daytona_api_client/models/create_runner.rb
|
|
117
|
-
- lib/daytona_api_client/models/create_runner_response.rb
|
|
118
107
|
- lib/daytona_api_client/models/create_sandbox.rb
|
|
119
108
|
- lib/daytona_api_client/models/create_session_request.rb
|
|
120
109
|
- lib/daytona_api_client/models/create_snapshot.rb
|
|
@@ -142,9 +131,6 @@ files:
|
|
|
142
131
|
- lib/daytona_api_client/models/health_controller_check200_response.rb
|
|
143
132
|
- lib/daytona_api_client/models/health_controller_check200_response_info_value.rb
|
|
144
133
|
- lib/daytona_api_client/models/health_controller_check503_response.rb
|
|
145
|
-
- lib/daytona_api_client/models/job.rb
|
|
146
|
-
- lib/daytona_api_client/models/job_status.rb
|
|
147
|
-
- lib/daytona_api_client/models/job_type.rb
|
|
148
134
|
- lib/daytona_api_client/models/keyboard_hotkey_request.rb
|
|
149
135
|
- lib/daytona_api_client/models/keyboard_press_request.rb
|
|
150
136
|
- lib/daytona_api_client/models/keyboard_type_request.rb
|
|
@@ -173,10 +159,9 @@ files:
|
|
|
173
159
|
- lib/daytona_api_client/models/organization_usage_overview.rb
|
|
174
160
|
- lib/daytona_api_client/models/organization_user.rb
|
|
175
161
|
- lib/daytona_api_client/models/paginated_audit_logs.rb
|
|
176
|
-
- lib/daytona_api_client/models/paginated_jobs.rb
|
|
177
162
|
- lib/daytona_api_client/models/paginated_sandboxes.rb
|
|
178
163
|
- lib/daytona_api_client/models/paginated_snapshots.rb
|
|
179
|
-
- lib/daytona_api_client/models/
|
|
164
|
+
- lib/daytona_api_client/models/paginated_snapshots_dto.rb
|
|
180
165
|
- lib/daytona_api_client/models/port_preview_url.rb
|
|
181
166
|
- lib/daytona_api_client/models/position.rb
|
|
182
167
|
- lib/daytona_api_client/models/posthog_config.rb
|
|
@@ -191,21 +176,12 @@ files:
|
|
|
191
176
|
- lib/daytona_api_client/models/pty_resize_request.rb
|
|
192
177
|
- lib/daytona_api_client/models/pty_session_info.rb
|
|
193
178
|
- lib/daytona_api_client/models/range.rb
|
|
194
|
-
- lib/daytona_api_client/models/rate_limit_config.rb
|
|
195
|
-
- lib/daytona_api_client/models/rate_limit_entry.rb
|
|
196
|
-
- lib/daytona_api_client/models/regenerate_api_key_response.rb
|
|
197
179
|
- lib/daytona_api_client/models/region.rb
|
|
198
|
-
- lib/daytona_api_client/models/region_quota.rb
|
|
199
180
|
- lib/daytona_api_client/models/region_screenshot_response.rb
|
|
200
|
-
- lib/daytona_api_client/models/region_type.rb
|
|
201
|
-
- lib/daytona_api_client/models/region_usage_overview.rb
|
|
202
181
|
- lib/daytona_api_client/models/registry_push_access_dto.rb
|
|
203
182
|
- lib/daytona_api_client/models/replace_request.rb
|
|
204
183
|
- lib/daytona_api_client/models/replace_result.rb
|
|
205
184
|
- lib/daytona_api_client/models/runner.rb
|
|
206
|
-
- lib/daytona_api_client/models/runner_full.rb
|
|
207
|
-
- lib/daytona_api_client/models/runner_health_metrics.rb
|
|
208
|
-
- lib/daytona_api_client/models/runner_healthcheck.rb
|
|
209
185
|
- lib/daytona_api_client/models/runner_snapshot_dto.rb
|
|
210
186
|
- lib/daytona_api_client/models/runner_state.rb
|
|
211
187
|
- lib/daytona_api_client/models/sandbox.rb
|
|
@@ -222,25 +198,17 @@ files:
|
|
|
222
198
|
- lib/daytona_api_client/models/session_execute_request.rb
|
|
223
199
|
- lib/daytona_api_client/models/session_execute_response.rb
|
|
224
200
|
- lib/daytona_api_client/models/set_snapshot_general_status_dto.rb
|
|
225
|
-
- lib/daytona_api_client/models/signed_port_preview_url.rb
|
|
226
201
|
- lib/daytona_api_client/models/snapshot_dto.rb
|
|
227
|
-
- lib/daytona_api_client/models/snapshot_manager_credentials.rb
|
|
228
202
|
- lib/daytona_api_client/models/snapshot_state.rb
|
|
229
203
|
- lib/daytona_api_client/models/ssh_access_dto.rb
|
|
230
204
|
- lib/daytona_api_client/models/ssh_access_validation_dto.rb
|
|
231
205
|
- lib/daytona_api_client/models/storage_access_dto.rb
|
|
232
|
-
- lib/daytona_api_client/models/toolbox_proxy_url.rb
|
|
233
206
|
- lib/daytona_api_client/models/update_docker_registry.rb
|
|
234
|
-
- lib/daytona_api_client/models/update_job_status.rb
|
|
235
|
-
- lib/daytona_api_client/models/update_organization_default_region.rb
|
|
236
207
|
- lib/daytona_api_client/models/update_organization_invitation.rb
|
|
237
208
|
- lib/daytona_api_client/models/update_organization_member_access.rb
|
|
238
209
|
- lib/daytona_api_client/models/update_organization_quota.rb
|
|
239
|
-
- lib/daytona_api_client/models/update_organization_region_quota.rb
|
|
240
210
|
- lib/daytona_api_client/models/update_organization_role.rb
|
|
241
|
-
- lib/daytona_api_client/models/update_region.rb
|
|
242
211
|
- lib/daytona_api_client/models/update_sandbox_state_dto.rb
|
|
243
|
-
- lib/daytona_api_client/models/url.rb
|
|
244
212
|
- lib/daytona_api_client/models/user.rb
|
|
245
213
|
- lib/daytona_api_client/models/user_home_dir_response.rb
|
|
246
214
|
- lib/daytona_api_client/models/user_public_key.rb
|
|
@@ -252,7 +220,6 @@ files:
|
|
|
252
220
|
- lib/daytona_api_client/models/windows_response.rb
|
|
253
221
|
- lib/daytona_api_client/models/work_dir_response.rb
|
|
254
222
|
- lib/daytona_api_client/models/workspace.rb
|
|
255
|
-
- lib/daytona_api_client/models/workspace_port_preview_url.rb
|
|
256
223
|
- lib/daytona_api_client/version.rb
|
|
257
224
|
- project.json
|
|
258
225
|
homepage: https://github.com/daytonaio/daytona
|
data/.gitignore
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# Generated by: https://openapi-generator.tech
|
|
2
|
-
#
|
|
3
|
-
|
|
4
|
-
*.gem
|
|
5
|
-
*.rbc
|
|
6
|
-
/.config
|
|
7
|
-
/coverage/
|
|
8
|
-
/InstalledFiles
|
|
9
|
-
/pkg/
|
|
10
|
-
/spec/reports/
|
|
11
|
-
/spec/examples.txt
|
|
12
|
-
/test/tmp/
|
|
13
|
-
/test/version_tmp/
|
|
14
|
-
/tmp/
|
|
15
|
-
|
|
16
|
-
## Specific to RubyMotion:
|
|
17
|
-
.dat*
|
|
18
|
-
.repl_history
|
|
19
|
-
build/
|
|
20
|
-
|
|
21
|
-
## Documentation cache and generated files:
|
|
22
|
-
/.yardoc/
|
|
23
|
-
/_yardoc/
|
|
24
|
-
/doc/
|
|
25
|
-
/rdoc/
|
|
26
|
-
|
|
27
|
-
## Environment normalization:
|
|
28
|
-
/.bundle/
|
|
29
|
-
/vendor/bundle
|
|
30
|
-
/lib/bundler/man/
|
|
31
|
-
|
|
32
|
-
# for a library or gem, you might want to ignore these files since the code is
|
|
33
|
-
# intended to run in multiple environments; otherwise, check them in:
|
|
34
|
-
# Gemfile.lock
|
|
35
|
-
# .ruby-version
|
|
36
|
-
# .ruby-gemset
|
|
37
|
-
|
|
38
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
|
39
|
-
.rvmrc
|