daytona_api_client 0.184.0.alpha.1 → 0.184.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/.openapi-generator/FILES +2 -0
- data/lib/daytona_api_client/api/admin_api.rb +298 -0
- data/lib/daytona_api_client/api/sandbox_api.rb +3 -0
- data/lib/daytona_api_client/models/create_organization_region_quota.rb +372 -0
- data/lib/daytona_api_client/models/create_sandbox.rb +25 -47
- data/lib/daytona_api_client/models/create_snapshot.rb +48 -4
- data/lib/daytona_api_client/models/gpu_type.rb +41 -0
- data/lib/daytona_api_client/models/region_quota.rb +60 -1
- data/lib/daytona_api_client/models/region_usage_overview.rb +60 -1
- data/lib/daytona_api_client/models/runner.rb +8 -25
- data/lib/daytona_api_client/models/runner_full.rb +8 -25
- data/lib/daytona_api_client/models/sandbox.rb +35 -15
- data/lib/daytona_api_client/models/sandbox_class.rb +5 -4
- data/lib/daytona_api_client/models/sandbox_list_item.rb +13 -3
- data/lib/daytona_api_client/models/snapshot_dto.rb +36 -4
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +44 -1
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +2 -0
- metadata +3 -1
|
@@ -60,6 +60,9 @@ module DaytonaApiClient
|
|
|
60
60
|
# The GPU quota for the sandbox
|
|
61
61
|
attr_accessor :gpu
|
|
62
62
|
|
|
63
|
+
# The GPU type assigned to the sandbox
|
|
64
|
+
attr_accessor :gpu_type
|
|
65
|
+
|
|
63
66
|
# The memory quota for the sandbox
|
|
64
67
|
attr_accessor :memory
|
|
65
68
|
|
|
@@ -136,6 +139,7 @@ module DaytonaApiClient
|
|
|
136
139
|
:'public' => :'public',
|
|
137
140
|
:'cpu' => :'cpu',
|
|
138
141
|
:'gpu' => :'gpu',
|
|
142
|
+
:'gpu_type' => :'gpuType',
|
|
139
143
|
:'memory' => :'memory',
|
|
140
144
|
:'disk' => :'disk',
|
|
141
145
|
:'labels' => :'labels',
|
|
@@ -179,6 +183,7 @@ module DaytonaApiClient
|
|
|
179
183
|
:'public' => :'Boolean',
|
|
180
184
|
:'cpu' => :'Float',
|
|
181
185
|
:'gpu' => :'Float',
|
|
186
|
+
:'gpu_type' => :'GpuType',
|
|
182
187
|
:'memory' => :'Float',
|
|
183
188
|
:'disk' => :'Float',
|
|
184
189
|
:'labels' => :'Hash<String, String>',
|
|
@@ -292,6 +297,10 @@ module DaytonaApiClient
|
|
|
292
297
|
self.gpu = nil
|
|
293
298
|
end
|
|
294
299
|
|
|
300
|
+
if attributes.key?(:'gpu_type')
|
|
301
|
+
self.gpu_type = attributes[:'gpu_type']
|
|
302
|
+
end
|
|
303
|
+
|
|
295
304
|
if attributes.key?(:'memory')
|
|
296
305
|
self.memory = attributes[:'memory']
|
|
297
306
|
else
|
|
@@ -415,7 +424,7 @@ module DaytonaApiClient
|
|
|
415
424
|
return false if @organization_id.nil?
|
|
416
425
|
return false if @name.nil?
|
|
417
426
|
return false if @target.nil?
|
|
418
|
-
sandbox_class_validator = EnumAttributeValidator.new('String', ["
|
|
427
|
+
sandbox_class_validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "windows", "unknown_default_open_api"])
|
|
419
428
|
return false unless sandbox_class_validator.valid?(@sandbox_class)
|
|
420
429
|
return false if @user.nil?
|
|
421
430
|
return false if @public.nil?
|
|
@@ -473,7 +482,7 @@ module DaytonaApiClient
|
|
|
473
482
|
# Custom attribute writer method checking allowed values (enum).
|
|
474
483
|
# @param [Object] sandbox_class Object to be assigned
|
|
475
484
|
def sandbox_class=(sandbox_class)
|
|
476
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
485
|
+
validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "windows", "unknown_default_open_api"])
|
|
477
486
|
unless validator.valid?(sandbox_class)
|
|
478
487
|
fail ArgumentError, "invalid value for \"sandbox_class\", must be one of #{validator.allowable_values}."
|
|
479
488
|
end
|
|
@@ -590,6 +599,7 @@ module DaytonaApiClient
|
|
|
590
599
|
public == o.public &&
|
|
591
600
|
cpu == o.cpu &&
|
|
592
601
|
gpu == o.gpu &&
|
|
602
|
+
gpu_type == o.gpu_type &&
|
|
593
603
|
memory == o.memory &&
|
|
594
604
|
disk == o.disk &&
|
|
595
605
|
labels == o.labels &&
|
|
@@ -613,7 +623,7 @@ module DaytonaApiClient
|
|
|
613
623
|
# Calculates hash code according to all attributes.
|
|
614
624
|
# @return [Integer] Hash code
|
|
615
625
|
def hash
|
|
616
|
-
[id, organization_id, name, target, runner_id, sandbox_class, state, desired_state, snapshot, user, error_reason, recoverable, public, cpu, gpu, memory, disk, labels, backup_state, auto_stop_interval, auto_archive_interval, auto_delete_interval, created_at, updated_at, last_activity_at, daemon_version, toolbox_proxy_url].hash
|
|
626
|
+
[id, organization_id, name, target, runner_id, sandbox_class, state, desired_state, snapshot, user, error_reason, recoverable, public, cpu, gpu, gpu_type, memory, disk, labels, backup_state, auto_stop_interval, auto_archive_interval, auto_delete_interval, created_at, updated_at, last_activity_at, daemon_version, toolbox_proxy_url].hash
|
|
617
627
|
end
|
|
618
628
|
|
|
619
629
|
# Builds the object from hash
|
|
@@ -35,6 +35,9 @@ module DaytonaApiClient
|
|
|
35
35
|
|
|
36
36
|
attr_accessor :gpu
|
|
37
37
|
|
|
38
|
+
# The GPU type assigned to the snapshot
|
|
39
|
+
attr_accessor :gpu_type
|
|
40
|
+
|
|
38
41
|
attr_accessor :mem
|
|
39
42
|
|
|
40
43
|
attr_accessor :disk
|
|
@@ -59,6 +62,9 @@ module DaytonaApiClient
|
|
|
59
62
|
# The snapshot reference
|
|
60
63
|
attr_accessor :ref
|
|
61
64
|
|
|
65
|
+
# The sandbox class of the snapshot
|
|
66
|
+
attr_accessor :sandbox_class
|
|
67
|
+
|
|
62
68
|
class EnumAttributeValidator
|
|
63
69
|
attr_reader :datatype
|
|
64
70
|
attr_reader :allowable_values
|
|
@@ -94,6 +100,7 @@ module DaytonaApiClient
|
|
|
94
100
|
:'entrypoint' => :'entrypoint',
|
|
95
101
|
:'cpu' => :'cpu',
|
|
96
102
|
:'gpu' => :'gpu',
|
|
103
|
+
:'gpu_type' => :'gpuType',
|
|
97
104
|
:'mem' => :'mem',
|
|
98
105
|
:'disk' => :'disk',
|
|
99
106
|
:'error_reason' => :'errorReason',
|
|
@@ -103,7 +110,8 @@ module DaytonaApiClient
|
|
|
103
110
|
:'build_info' => :'buildInfo',
|
|
104
111
|
:'region_ids' => :'regionIds',
|
|
105
112
|
:'initial_runner_id' => :'initialRunnerId',
|
|
106
|
-
:'ref' => :'ref'
|
|
113
|
+
:'ref' => :'ref',
|
|
114
|
+
:'sandbox_class' => :'sandboxClass'
|
|
107
115
|
}
|
|
108
116
|
end
|
|
109
117
|
|
|
@@ -130,6 +138,7 @@ module DaytonaApiClient
|
|
|
130
138
|
:'entrypoint' => :'Array<String>',
|
|
131
139
|
:'cpu' => :'Float',
|
|
132
140
|
:'gpu' => :'Float',
|
|
141
|
+
:'gpu_type' => :'GpuType',
|
|
133
142
|
:'mem' => :'Float',
|
|
134
143
|
:'disk' => :'Float',
|
|
135
144
|
:'error_reason' => :'String',
|
|
@@ -139,7 +148,8 @@ module DaytonaApiClient
|
|
|
139
148
|
:'build_info' => :'BuildInfo',
|
|
140
149
|
:'region_ids' => :'Array<String>',
|
|
141
150
|
:'initial_runner_id' => :'String',
|
|
142
|
-
:'ref' => :'String'
|
|
151
|
+
:'ref' => :'String',
|
|
152
|
+
:'sandbox_class' => :'String'
|
|
143
153
|
}
|
|
144
154
|
end
|
|
145
155
|
|
|
@@ -227,6 +237,10 @@ module DaytonaApiClient
|
|
|
227
237
|
self.gpu = nil
|
|
228
238
|
end
|
|
229
239
|
|
|
240
|
+
if attributes.key?(:'gpu_type')
|
|
241
|
+
self.gpu_type = attributes[:'gpu_type']
|
|
242
|
+
end
|
|
243
|
+
|
|
230
244
|
if attributes.key?(:'mem')
|
|
231
245
|
self.mem = attributes[:'mem']
|
|
232
246
|
else
|
|
@@ -280,6 +294,10 @@ module DaytonaApiClient
|
|
|
280
294
|
if attributes.key?(:'ref')
|
|
281
295
|
self.ref = attributes[:'ref']
|
|
282
296
|
end
|
|
297
|
+
|
|
298
|
+
if attributes.key?(:'sandbox_class')
|
|
299
|
+
self.sandbox_class = attributes[:'sandbox_class']
|
|
300
|
+
end
|
|
283
301
|
end
|
|
284
302
|
|
|
285
303
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -344,6 +362,8 @@ module DaytonaApiClient
|
|
|
344
362
|
return false if @disk.nil?
|
|
345
363
|
return false if @created_at.nil?
|
|
346
364
|
return false if @updated_at.nil?
|
|
365
|
+
sandbox_class_validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "windows", "unknown_default_open_api"])
|
|
366
|
+
return false unless sandbox_class_validator.valid?(@sandbox_class)
|
|
347
367
|
true
|
|
348
368
|
end
|
|
349
369
|
|
|
@@ -447,6 +467,16 @@ module DaytonaApiClient
|
|
|
447
467
|
@updated_at = updated_at
|
|
448
468
|
end
|
|
449
469
|
|
|
470
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
471
|
+
# @param [Object] sandbox_class Object to be assigned
|
|
472
|
+
def sandbox_class=(sandbox_class)
|
|
473
|
+
validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "windows", "unknown_default_open_api"])
|
|
474
|
+
unless validator.valid?(sandbox_class)
|
|
475
|
+
fail ArgumentError, "invalid value for \"sandbox_class\", must be one of #{validator.allowable_values}."
|
|
476
|
+
end
|
|
477
|
+
@sandbox_class = sandbox_class
|
|
478
|
+
end
|
|
479
|
+
|
|
450
480
|
# Checks equality by comparing each attribute.
|
|
451
481
|
# @param [Object] Object to be compared
|
|
452
482
|
def ==(o)
|
|
@@ -462,6 +492,7 @@ module DaytonaApiClient
|
|
|
462
492
|
entrypoint == o.entrypoint &&
|
|
463
493
|
cpu == o.cpu &&
|
|
464
494
|
gpu == o.gpu &&
|
|
495
|
+
gpu_type == o.gpu_type &&
|
|
465
496
|
mem == o.mem &&
|
|
466
497
|
disk == o.disk &&
|
|
467
498
|
error_reason == o.error_reason &&
|
|
@@ -471,7 +502,8 @@ module DaytonaApiClient
|
|
|
471
502
|
build_info == o.build_info &&
|
|
472
503
|
region_ids == o.region_ids &&
|
|
473
504
|
initial_runner_id == o.initial_runner_id &&
|
|
474
|
-
ref == o.ref
|
|
505
|
+
ref == o.ref &&
|
|
506
|
+
sandbox_class == o.sandbox_class
|
|
475
507
|
end
|
|
476
508
|
|
|
477
509
|
# @see the `==` method
|
|
@@ -483,7 +515,7 @@ module DaytonaApiClient
|
|
|
483
515
|
# Calculates hash code according to all attributes.
|
|
484
516
|
# @return [Integer] Hash code
|
|
485
517
|
def hash
|
|
486
|
-
[id, organization_id, general, name, image_name, state, size, entrypoint, cpu, gpu, mem, disk, error_reason, created_at, updated_at, last_used_at, build_info, region_ids, initial_runner_id, ref].hash
|
|
518
|
+
[id, organization_id, general, name, image_name, state, size, entrypoint, cpu, gpu, gpu_type, mem, disk, error_reason, created_at, updated_at, last_used_at, build_info, region_ids, initial_runner_id, ref, sandbox_class].hash
|
|
487
519
|
end
|
|
488
520
|
|
|
489
521
|
# Builds the object from hash
|
|
@@ -15,6 +15,8 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class UpdateOrganizationRegionQuota < ApiModelBase
|
|
18
|
+
attr_accessor :sandbox_class
|
|
19
|
+
|
|
18
20
|
attr_accessor :total_cpu_quota
|
|
19
21
|
|
|
20
22
|
attr_accessor :total_memory_quota
|
|
@@ -23,6 +25,8 @@ module DaytonaApiClient
|
|
|
23
25
|
|
|
24
26
|
attr_accessor :total_gpu_quota
|
|
25
27
|
|
|
28
|
+
attr_accessor :allowed_gpu_types
|
|
29
|
+
|
|
26
30
|
attr_accessor :max_cpu_per_sandbox
|
|
27
31
|
|
|
28
32
|
attr_accessor :max_memory_per_sandbox
|
|
@@ -37,13 +41,37 @@ module DaytonaApiClient
|
|
|
37
41
|
|
|
38
42
|
attr_accessor :max_disk_per_gpu_sandbox
|
|
39
43
|
|
|
44
|
+
class EnumAttributeValidator
|
|
45
|
+
attr_reader :datatype
|
|
46
|
+
attr_reader :allowable_values
|
|
47
|
+
|
|
48
|
+
def initialize(datatype, allowable_values)
|
|
49
|
+
@allowable_values = allowable_values.map do |value|
|
|
50
|
+
case datatype.to_s
|
|
51
|
+
when /Integer/i
|
|
52
|
+
value.to_i
|
|
53
|
+
when /Float/i
|
|
54
|
+
value.to_f
|
|
55
|
+
else
|
|
56
|
+
value
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def valid?(value)
|
|
62
|
+
!value || allowable_values.include?(value)
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
40
66
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
67
|
def self.attribute_map
|
|
42
68
|
{
|
|
69
|
+
:'sandbox_class' => :'sandboxClass',
|
|
43
70
|
:'total_cpu_quota' => :'totalCpuQuota',
|
|
44
71
|
:'total_memory_quota' => :'totalMemoryQuota',
|
|
45
72
|
:'total_disk_quota' => :'totalDiskQuota',
|
|
46
73
|
:'total_gpu_quota' => :'totalGpuQuota',
|
|
74
|
+
:'allowed_gpu_types' => :'allowedGpuTypes',
|
|
47
75
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
48
76
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
49
77
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
@@ -67,10 +95,12 @@ module DaytonaApiClient
|
|
|
67
95
|
# Attribute type mapping.
|
|
68
96
|
def self.openapi_types
|
|
69
97
|
{
|
|
98
|
+
:'sandbox_class' => :'SandboxClass',
|
|
70
99
|
:'total_cpu_quota' => :'Float',
|
|
71
100
|
:'total_memory_quota' => :'Float',
|
|
72
101
|
:'total_disk_quota' => :'Float',
|
|
73
102
|
:'total_gpu_quota' => :'Float',
|
|
103
|
+
:'allowed_gpu_types' => :'Array<GpuType>',
|
|
74
104
|
:'max_cpu_per_sandbox' => :'Float',
|
|
75
105
|
:'max_memory_per_sandbox' => :'Float',
|
|
76
106
|
:'max_disk_per_sandbox' => :'Float',
|
|
@@ -88,6 +118,7 @@ module DaytonaApiClient
|
|
|
88
118
|
:'total_memory_quota',
|
|
89
119
|
:'total_disk_quota',
|
|
90
120
|
:'total_gpu_quota',
|
|
121
|
+
:'allowed_gpu_types',
|
|
91
122
|
:'max_cpu_per_sandbox',
|
|
92
123
|
:'max_memory_per_sandbox',
|
|
93
124
|
:'max_disk_per_sandbox',
|
|
@@ -114,6 +145,10 @@ module DaytonaApiClient
|
|
|
114
145
|
h[k.to_sym] = v
|
|
115
146
|
}
|
|
116
147
|
|
|
148
|
+
if attributes.key?(:'sandbox_class')
|
|
149
|
+
self.sandbox_class = attributes[:'sandbox_class']
|
|
150
|
+
end
|
|
151
|
+
|
|
117
152
|
if attributes.key?(:'total_cpu_quota')
|
|
118
153
|
self.total_cpu_quota = attributes[:'total_cpu_quota']
|
|
119
154
|
else
|
|
@@ -138,6 +173,12 @@ module DaytonaApiClient
|
|
|
138
173
|
self.total_gpu_quota = nil
|
|
139
174
|
end
|
|
140
175
|
|
|
176
|
+
if attributes.key?(:'allowed_gpu_types')
|
|
177
|
+
if (value = attributes[:'allowed_gpu_types']).is_a?(Array)
|
|
178
|
+
self.allowed_gpu_types = value
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
141
182
|
if attributes.key?(:'max_cpu_per_sandbox')
|
|
142
183
|
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
143
184
|
end
|
|
@@ -187,10 +228,12 @@ module DaytonaApiClient
|
|
|
187
228
|
def ==(o)
|
|
188
229
|
return true if self.equal?(o)
|
|
189
230
|
self.class == o.class &&
|
|
231
|
+
sandbox_class == o.sandbox_class &&
|
|
190
232
|
total_cpu_quota == o.total_cpu_quota &&
|
|
191
233
|
total_memory_quota == o.total_memory_quota &&
|
|
192
234
|
total_disk_quota == o.total_disk_quota &&
|
|
193
235
|
total_gpu_quota == o.total_gpu_quota &&
|
|
236
|
+
allowed_gpu_types == o.allowed_gpu_types &&
|
|
194
237
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
195
238
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
196
239
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
@@ -209,7 +252,7 @@ module DaytonaApiClient
|
|
|
209
252
|
# Calculates hash code according to all attributes.
|
|
210
253
|
# @return [Integer] Hash code
|
|
211
254
|
def hash
|
|
212
|
-
[total_cpu_quota, total_memory_quota, total_disk_quota, total_gpu_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox, max_cpu_per_gpu_sandbox, max_memory_per_gpu_sandbox, max_disk_per_gpu_sandbox].hash
|
|
255
|
+
[sandbox_class, total_cpu_quota, total_memory_quota, total_disk_quota, total_gpu_quota, allowed_gpu_types, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox, max_cpu_per_gpu_sandbox, max_memory_per_gpu_sandbox, max_disk_per_gpu_sandbox].hash
|
|
213
256
|
end
|
|
214
257
|
|
|
215
258
|
# Builds the object from hash
|
data/lib/daytona_api_client.rb
CHANGED
|
@@ -41,6 +41,7 @@ require 'daytona_api_client/models/create_linked_account'
|
|
|
41
41
|
require 'daytona_api_client/models/create_organization'
|
|
42
42
|
require 'daytona_api_client/models/create_organization_invitation'
|
|
43
43
|
require 'daytona_api_client/models/create_organization_quota'
|
|
44
|
+
require 'daytona_api_client/models/create_organization_region_quota'
|
|
44
45
|
require 'daytona_api_client/models/create_organization_role'
|
|
45
46
|
require 'daytona_api_client/models/create_region'
|
|
46
47
|
require 'daytona_api_client/models/create_region_response'
|
|
@@ -71,6 +72,7 @@ require 'daytona_api_client/models/git_commit_response'
|
|
|
71
72
|
require 'daytona_api_client/models/git_delete_branch_request'
|
|
72
73
|
require 'daytona_api_client/models/git_repo_request'
|
|
73
74
|
require 'daytona_api_client/models/git_status'
|
|
75
|
+
require 'daytona_api_client/models/gpu_type'
|
|
74
76
|
require 'daytona_api_client/models/health_controller_check200_response'
|
|
75
77
|
require 'daytona_api_client/models/health_controller_check200_response_info_value'
|
|
76
78
|
require 'daytona_api_client/models/health_controller_check503_response'
|
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.184.0
|
|
4
|
+
version: 0.184.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- daytonaio
|
|
@@ -111,6 +111,7 @@ files:
|
|
|
111
111
|
- lib/daytona_api_client/models/create_organization.rb
|
|
112
112
|
- lib/daytona_api_client/models/create_organization_invitation.rb
|
|
113
113
|
- lib/daytona_api_client/models/create_organization_quota.rb
|
|
114
|
+
- lib/daytona_api_client/models/create_organization_region_quota.rb
|
|
114
115
|
- lib/daytona_api_client/models/create_organization_role.rb
|
|
115
116
|
- lib/daytona_api_client/models/create_region.rb
|
|
116
117
|
- lib/daytona_api_client/models/create_region_response.rb
|
|
@@ -141,6 +142,7 @@ files:
|
|
|
141
142
|
- lib/daytona_api_client/models/git_delete_branch_request.rb
|
|
142
143
|
- lib/daytona_api_client/models/git_repo_request.rb
|
|
143
144
|
- lib/daytona_api_client/models/git_status.rb
|
|
145
|
+
- lib/daytona_api_client/models/gpu_type.rb
|
|
144
146
|
- lib/daytona_api_client/models/health_controller_check200_response.rb
|
|
145
147
|
- lib/daytona_api_client/models/health_controller_check200_response_info_value.rb
|
|
146
148
|
- lib/daytona_api_client/models/health_controller_check503_response.rb
|