daytona_api_client 0.183.0 → 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 +1 -0
- data/lib/daytona_api_client/models/create_organization_region_quota.rb +13 -1
- data/lib/daytona_api_client/models/create_sandbox.rb +13 -1
- data/lib/daytona_api_client/models/create_snapshot.rb +13 -1
- data/lib/daytona_api_client/models/gpu_type.rb +41 -0
- data/lib/daytona_api_client/models/region_quota.rb +12 -1
- data/lib/daytona_api_client/models/region_usage_overview.rb +12 -1
- data/lib/daytona_api_client/models/sandbox.rb +13 -3
- data/lib/daytona_api_client/models/sandbox_class.rb +2 -1
- data/lib/daytona_api_client/models/sandbox_list_item.rb +13 -3
- data/lib/daytona_api_client/models/snapshot_dto.rb +13 -3
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +13 -1
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b0e89d6d0c45f0eb9cbb0b4070219fac558f165a1bbd5853a26c2603523b90e8
|
|
4
|
+
data.tar.gz: aeec8505e13997efc1e452f08414ec4ca9d07965f4cae05ef3e110597117e9c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: def6a3f3f3c7ed9e18f6522ec8e08521d42621986143fec2fb92f0e019ae0a9b9275be6a18726b4ccea7591b56449b8002e9e2475662d48c8b689c8e4b317a9d
|
|
7
|
+
data.tar.gz: c8ca70a0095a410808bd031ad0327c993848a9e44d8453dc9c350e481f39c6f57fadbea0f97b631ed6a9b03735ea129ba8bc2df80ebae3ac133114556446d6d6
|
data/.openapi-generator/FILES
CHANGED
|
@@ -80,6 +80,7 @@ lib/daytona_api_client/models/git_commit_response.rb
|
|
|
80
80
|
lib/daytona_api_client/models/git_delete_branch_request.rb
|
|
81
81
|
lib/daytona_api_client/models/git_repo_request.rb
|
|
82
82
|
lib/daytona_api_client/models/git_status.rb
|
|
83
|
+
lib/daytona_api_client/models/gpu_type.rb
|
|
83
84
|
lib/daytona_api_client/models/health_controller_check200_response.rb
|
|
84
85
|
lib/daytona_api_client/models/health_controller_check200_response_info_value.rb
|
|
85
86
|
lib/daytona_api_client/models/health_controller_check503_response.rb
|
|
@@ -25,6 +25,8 @@ module DaytonaApiClient
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :total_gpu_quota
|
|
27
27
|
|
|
28
|
+
attr_accessor :allowed_gpu_types
|
|
29
|
+
|
|
28
30
|
attr_accessor :max_cpu_per_sandbox
|
|
29
31
|
|
|
30
32
|
attr_accessor :max_memory_per_sandbox
|
|
@@ -69,6 +71,7 @@ module DaytonaApiClient
|
|
|
69
71
|
:'total_memory_quota' => :'totalMemoryQuota',
|
|
70
72
|
:'total_disk_quota' => :'totalDiskQuota',
|
|
71
73
|
:'total_gpu_quota' => :'totalGpuQuota',
|
|
74
|
+
:'allowed_gpu_types' => :'allowedGpuTypes',
|
|
72
75
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
73
76
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
74
77
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
@@ -97,6 +100,7 @@ module DaytonaApiClient
|
|
|
97
100
|
:'total_memory_quota' => :'Float',
|
|
98
101
|
:'total_disk_quota' => :'Float',
|
|
99
102
|
:'total_gpu_quota' => :'Float',
|
|
103
|
+
:'allowed_gpu_types' => :'Array<GpuType>',
|
|
100
104
|
:'max_cpu_per_sandbox' => :'Float',
|
|
101
105
|
:'max_memory_per_sandbox' => :'Float',
|
|
102
106
|
:'max_disk_per_sandbox' => :'Float',
|
|
@@ -110,6 +114,7 @@ module DaytonaApiClient
|
|
|
110
114
|
# List of attributes with nullable: true
|
|
111
115
|
def self.openapi_nullable
|
|
112
116
|
Set.new([
|
|
117
|
+
:'allowed_gpu_types',
|
|
113
118
|
:'max_cpu_per_sandbox',
|
|
114
119
|
:'max_memory_per_sandbox',
|
|
115
120
|
:'max_disk_per_sandbox',
|
|
@@ -166,6 +171,12 @@ module DaytonaApiClient
|
|
|
166
171
|
self.total_gpu_quota = nil
|
|
167
172
|
end
|
|
168
173
|
|
|
174
|
+
if attributes.key?(:'allowed_gpu_types')
|
|
175
|
+
if (value = attributes[:'allowed_gpu_types']).is_a?(Array)
|
|
176
|
+
self.allowed_gpu_types = value
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
169
180
|
if attributes.key?(:'max_cpu_per_sandbox')
|
|
170
181
|
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
171
182
|
end
|
|
@@ -295,6 +306,7 @@ module DaytonaApiClient
|
|
|
295
306
|
total_memory_quota == o.total_memory_quota &&
|
|
296
307
|
total_disk_quota == o.total_disk_quota &&
|
|
297
308
|
total_gpu_quota == o.total_gpu_quota &&
|
|
309
|
+
allowed_gpu_types == o.allowed_gpu_types &&
|
|
298
310
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
299
311
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
300
312
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
@@ -313,7 +325,7 @@ module DaytonaApiClient
|
|
|
313
325
|
# Calculates hash code according to all attributes.
|
|
314
326
|
# @return [Integer] Hash code
|
|
315
327
|
def hash
|
|
316
|
-
[sandbox_class, 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
|
|
328
|
+
[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
|
|
317
329
|
end
|
|
318
330
|
|
|
319
331
|
# Builds the object from hash
|
|
@@ -48,6 +48,9 @@ module DaytonaApiClient
|
|
|
48
48
|
# GPU units allocated to the sandbox
|
|
49
49
|
attr_accessor :gpu
|
|
50
50
|
|
|
51
|
+
# Preferred GPU type for the sandbox. Accepts a single value or an ordered preference list — the scheduler tries each in order and pins the sandbox to the first that has capacity.
|
|
52
|
+
attr_accessor :gpu_type
|
|
53
|
+
|
|
51
54
|
# Memory allocated to the sandbox in GB
|
|
52
55
|
attr_accessor :memory
|
|
53
56
|
|
|
@@ -86,6 +89,7 @@ module DaytonaApiClient
|
|
|
86
89
|
:'target' => :'target',
|
|
87
90
|
:'cpu' => :'cpu',
|
|
88
91
|
:'gpu' => :'gpu',
|
|
92
|
+
:'gpu_type' => :'gpuType',
|
|
89
93
|
:'memory' => :'memory',
|
|
90
94
|
:'disk' => :'disk',
|
|
91
95
|
:'auto_stop_interval' => :'autoStopInterval',
|
|
@@ -121,6 +125,7 @@ module DaytonaApiClient
|
|
|
121
125
|
:'target' => :'String',
|
|
122
126
|
:'cpu' => :'Integer',
|
|
123
127
|
:'gpu' => :'Integer',
|
|
128
|
+
:'gpu_type' => :'Array<GpuType>',
|
|
124
129
|
:'memory' => :'Integer',
|
|
125
130
|
:'disk' => :'Integer',
|
|
126
131
|
:'auto_stop_interval' => :'Integer',
|
|
@@ -202,6 +207,12 @@ module DaytonaApiClient
|
|
|
202
207
|
self.gpu = attributes[:'gpu']
|
|
203
208
|
end
|
|
204
209
|
|
|
210
|
+
if attributes.key?(:'gpu_type')
|
|
211
|
+
if (value = attributes[:'gpu_type']).is_a?(Array)
|
|
212
|
+
self.gpu_type = value
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
|
|
205
216
|
if attributes.key?(:'memory')
|
|
206
217
|
self.memory = attributes[:'memory']
|
|
207
218
|
end
|
|
@@ -268,6 +279,7 @@ module DaytonaApiClient
|
|
|
268
279
|
target == o.target &&
|
|
269
280
|
cpu == o.cpu &&
|
|
270
281
|
gpu == o.gpu &&
|
|
282
|
+
gpu_type == o.gpu_type &&
|
|
271
283
|
memory == o.memory &&
|
|
272
284
|
disk == o.disk &&
|
|
273
285
|
auto_stop_interval == o.auto_stop_interval &&
|
|
@@ -287,7 +299,7 @@ module DaytonaApiClient
|
|
|
287
299
|
# Calculates hash code according to all attributes.
|
|
288
300
|
# @return [Integer] Hash code
|
|
289
301
|
def hash
|
|
290
|
-
[name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, linked_sandbox].hash
|
|
302
|
+
[name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, gpu_type, memory, disk, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, linked_sandbox].hash
|
|
291
303
|
end
|
|
292
304
|
|
|
293
305
|
# Builds the object from hash
|
|
@@ -30,6 +30,9 @@ module DaytonaApiClient
|
|
|
30
30
|
# GPU units allocated to the resulting sandbox
|
|
31
31
|
attr_accessor :gpu
|
|
32
32
|
|
|
33
|
+
# Preferred GPU type for the resulting sandbox.
|
|
34
|
+
attr_accessor :gpu_type
|
|
35
|
+
|
|
33
36
|
# Memory allocated to the resulting sandbox in GB
|
|
34
37
|
attr_accessor :memory
|
|
35
38
|
|
|
@@ -75,6 +78,7 @@ module DaytonaApiClient
|
|
|
75
78
|
:'entrypoint' => :'entrypoint',
|
|
76
79
|
:'cpu' => :'cpu',
|
|
77
80
|
:'gpu' => :'gpu',
|
|
81
|
+
:'gpu_type' => :'gpuType',
|
|
78
82
|
:'memory' => :'memory',
|
|
79
83
|
:'disk' => :'disk',
|
|
80
84
|
:'build_info' => :'buildInfo',
|
|
@@ -101,6 +105,7 @@ module DaytonaApiClient
|
|
|
101
105
|
:'entrypoint' => :'Array<String>',
|
|
102
106
|
:'cpu' => :'Integer',
|
|
103
107
|
:'gpu' => :'Integer',
|
|
108
|
+
:'gpu_type' => :'Array<GpuType>',
|
|
104
109
|
:'memory' => :'Integer',
|
|
105
110
|
:'disk' => :'Integer',
|
|
106
111
|
:'build_info' => :'CreateBuildInfo',
|
|
@@ -155,6 +160,12 @@ module DaytonaApiClient
|
|
|
155
160
|
self.gpu = attributes[:'gpu']
|
|
156
161
|
end
|
|
157
162
|
|
|
163
|
+
if attributes.key?(:'gpu_type')
|
|
164
|
+
if (value = attributes[:'gpu_type']).is_a?(Array)
|
|
165
|
+
self.gpu_type = value
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
158
169
|
if attributes.key?(:'memory')
|
|
159
170
|
self.memory = attributes[:'memory']
|
|
160
171
|
end
|
|
@@ -216,6 +227,7 @@ module DaytonaApiClient
|
|
|
216
227
|
entrypoint == o.entrypoint &&
|
|
217
228
|
cpu == o.cpu &&
|
|
218
229
|
gpu == o.gpu &&
|
|
230
|
+
gpu_type == o.gpu_type &&
|
|
219
231
|
memory == o.memory &&
|
|
220
232
|
disk == o.disk &&
|
|
221
233
|
build_info == o.build_info &&
|
|
@@ -232,7 +244,7 @@ module DaytonaApiClient
|
|
|
232
244
|
# Calculates hash code according to all attributes.
|
|
233
245
|
# @return [Integer] Hash code
|
|
234
246
|
def hash
|
|
235
|
-
[name, image_name, entrypoint, cpu, gpu, memory, disk, build_info, region_id, sandbox_class].hash
|
|
247
|
+
[name, image_name, entrypoint, cpu, gpu, gpu_type, memory, disk, build_info, region_id, sandbox_class].hash
|
|
236
248
|
end
|
|
237
249
|
|
|
238
250
|
# Builds the object from hash
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Daytona
|
|
3
|
+
|
|
4
|
+
#Daytona AI platform API Docs
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@daytona.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module DaytonaApiClient
|
|
17
|
+
class GpuType
|
|
18
|
+
H100 = "H100".freeze
|
|
19
|
+
RTX_PRO_6000 = "RTX-PRO-6000".freeze
|
|
20
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
21
|
+
|
|
22
|
+
def self.all_vars
|
|
23
|
+
@all_vars ||= [H100, RTX_PRO_6000, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Builds the enum from string
|
|
27
|
+
# @param [String] The enum value in the form of the string
|
|
28
|
+
# @return [String] The enum value
|
|
29
|
+
def self.build_from_hash(value)
|
|
30
|
+
new.build_from_hash(value)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Builds the enum from string
|
|
34
|
+
# @param [String] The enum value in the form of the string
|
|
35
|
+
# @return [String] The enum value
|
|
36
|
+
def build_from_hash(value)
|
|
37
|
+
return value if GpuType.all_vars.include?(value)
|
|
38
|
+
UNKNOWN_DEFAULT_OPEN_API
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -29,6 +29,8 @@ module DaytonaApiClient
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :total_gpu_quota
|
|
31
31
|
|
|
32
|
+
attr_accessor :allowed_gpu_types
|
|
33
|
+
|
|
32
34
|
attr_accessor :max_cpu_per_sandbox
|
|
33
35
|
|
|
34
36
|
attr_accessor :max_memory_per_sandbox
|
|
@@ -75,6 +77,7 @@ module DaytonaApiClient
|
|
|
75
77
|
:'total_memory_quota' => :'totalMemoryQuota',
|
|
76
78
|
:'total_disk_quota' => :'totalDiskQuota',
|
|
77
79
|
:'total_gpu_quota' => :'totalGpuQuota',
|
|
80
|
+
:'allowed_gpu_types' => :'allowedGpuTypes',
|
|
78
81
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
79
82
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
80
83
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
@@ -105,6 +108,7 @@ module DaytonaApiClient
|
|
|
105
108
|
:'total_memory_quota' => :'Float',
|
|
106
109
|
:'total_disk_quota' => :'Float',
|
|
107
110
|
:'total_gpu_quota' => :'Float',
|
|
111
|
+
:'allowed_gpu_types' => :'Array<GpuType>',
|
|
108
112
|
:'max_cpu_per_sandbox' => :'Float',
|
|
109
113
|
:'max_memory_per_sandbox' => :'Float',
|
|
110
114
|
:'max_disk_per_sandbox' => :'Float',
|
|
@@ -186,6 +190,12 @@ module DaytonaApiClient
|
|
|
186
190
|
self.total_gpu_quota = nil
|
|
187
191
|
end
|
|
188
192
|
|
|
193
|
+
if attributes.key?(:'allowed_gpu_types')
|
|
194
|
+
if (value = attributes[:'allowed_gpu_types']).is_a?(Array)
|
|
195
|
+
self.allowed_gpu_types = value
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
189
199
|
if attributes.key?(:'max_cpu_per_sandbox')
|
|
190
200
|
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
191
201
|
else
|
|
@@ -361,6 +371,7 @@ module DaytonaApiClient
|
|
|
361
371
|
total_memory_quota == o.total_memory_quota &&
|
|
362
372
|
total_disk_quota == o.total_disk_quota &&
|
|
363
373
|
total_gpu_quota == o.total_gpu_quota &&
|
|
374
|
+
allowed_gpu_types == o.allowed_gpu_types &&
|
|
364
375
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
365
376
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
366
377
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
@@ -379,7 +390,7 @@ module DaytonaApiClient
|
|
|
379
390
|
# Calculates hash code according to all attributes.
|
|
380
391
|
# @return [Integer] Hash code
|
|
381
392
|
def hash
|
|
382
|
-
[organization_id, region_id, sandbox_class, 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
|
|
393
|
+
[organization_id, region_id, 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
|
|
383
394
|
end
|
|
384
395
|
|
|
385
396
|
# Builds the object from hash
|
|
@@ -35,6 +35,8 @@ module DaytonaApiClient
|
|
|
35
35
|
|
|
36
36
|
attr_accessor :current_gpu_usage
|
|
37
37
|
|
|
38
|
+
attr_accessor :allowed_gpu_types
|
|
39
|
+
|
|
38
40
|
attr_accessor :max_cpu_per_sandbox
|
|
39
41
|
|
|
40
42
|
attr_accessor :max_memory_per_sandbox
|
|
@@ -84,6 +86,7 @@ module DaytonaApiClient
|
|
|
84
86
|
:'current_disk_usage' => :'currentDiskUsage',
|
|
85
87
|
:'total_gpu_quota' => :'totalGpuQuota',
|
|
86
88
|
:'current_gpu_usage' => :'currentGpuUsage',
|
|
89
|
+
:'allowed_gpu_types' => :'allowedGpuTypes',
|
|
87
90
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
88
91
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
89
92
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
@@ -117,6 +120,7 @@ module DaytonaApiClient
|
|
|
117
120
|
:'current_disk_usage' => :'Float',
|
|
118
121
|
:'total_gpu_quota' => :'Float',
|
|
119
122
|
:'current_gpu_usage' => :'Float',
|
|
123
|
+
:'allowed_gpu_types' => :'Array<GpuType>',
|
|
120
124
|
:'max_cpu_per_sandbox' => :'Float',
|
|
121
125
|
:'max_memory_per_sandbox' => :'Float',
|
|
122
126
|
:'max_disk_per_sandbox' => :'Float',
|
|
@@ -216,6 +220,12 @@ module DaytonaApiClient
|
|
|
216
220
|
self.current_gpu_usage = nil
|
|
217
221
|
end
|
|
218
222
|
|
|
223
|
+
if attributes.key?(:'allowed_gpu_types')
|
|
224
|
+
if (value = attributes[:'allowed_gpu_types']).is_a?(Array)
|
|
225
|
+
self.allowed_gpu_types = value
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
219
229
|
if attributes.key?(:'max_cpu_per_sandbox')
|
|
220
230
|
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
221
231
|
else
|
|
@@ -439,6 +449,7 @@ module DaytonaApiClient
|
|
|
439
449
|
current_disk_usage == o.current_disk_usage &&
|
|
440
450
|
total_gpu_quota == o.total_gpu_quota &&
|
|
441
451
|
current_gpu_usage == o.current_gpu_usage &&
|
|
452
|
+
allowed_gpu_types == o.allowed_gpu_types &&
|
|
442
453
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
443
454
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
444
455
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
@@ -457,7 +468,7 @@ module DaytonaApiClient
|
|
|
457
468
|
# Calculates hash code according to all attributes.
|
|
458
469
|
# @return [Integer] Hash code
|
|
459
470
|
def hash
|
|
460
|
-
[region_id, sandbox_class, total_cpu_quota, current_cpu_usage, total_memory_quota, current_memory_usage, total_disk_quota, current_disk_usage, total_gpu_quota, current_gpu_usage, 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
|
|
471
|
+
[region_id, sandbox_class, total_cpu_quota, current_cpu_usage, total_memory_quota, current_memory_usage, total_disk_quota, current_disk_usage, total_gpu_quota, current_gpu_usage, 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
|
|
461
472
|
end
|
|
462
473
|
|
|
463
474
|
# Builds the object from hash
|
|
@@ -54,6 +54,9 @@ module DaytonaApiClient
|
|
|
54
54
|
# The GPU quota for the sandbox
|
|
55
55
|
attr_accessor :gpu
|
|
56
56
|
|
|
57
|
+
# The GPU type assigned to the sandbox
|
|
58
|
+
attr_accessor :gpu_type
|
|
59
|
+
|
|
57
60
|
# The memory quota for the sandbox
|
|
58
61
|
attr_accessor :memory
|
|
59
62
|
|
|
@@ -155,6 +158,7 @@ module DaytonaApiClient
|
|
|
155
158
|
:'target' => :'target',
|
|
156
159
|
:'cpu' => :'cpu',
|
|
157
160
|
:'gpu' => :'gpu',
|
|
161
|
+
:'gpu_type' => :'gpuType',
|
|
158
162
|
:'memory' => :'memory',
|
|
159
163
|
:'disk' => :'disk',
|
|
160
164
|
:'state' => :'state',
|
|
@@ -205,6 +209,7 @@ module DaytonaApiClient
|
|
|
205
209
|
:'target' => :'String',
|
|
206
210
|
:'cpu' => :'Float',
|
|
207
211
|
:'gpu' => :'Float',
|
|
212
|
+
:'gpu_type' => :'GpuType',
|
|
208
213
|
:'memory' => :'Float',
|
|
209
214
|
:'disk' => :'Float',
|
|
210
215
|
:'state' => :'SandboxState',
|
|
@@ -329,6 +334,10 @@ module DaytonaApiClient
|
|
|
329
334
|
self.gpu = nil
|
|
330
335
|
end
|
|
331
336
|
|
|
337
|
+
if attributes.key?(:'gpu_type')
|
|
338
|
+
self.gpu_type = attributes[:'gpu_type']
|
|
339
|
+
end
|
|
340
|
+
|
|
332
341
|
if attributes.key?(:'memory')
|
|
333
342
|
self.memory = attributes[:'memory']
|
|
334
343
|
else
|
|
@@ -505,7 +514,7 @@ module DaytonaApiClient
|
|
|
505
514
|
return false if @disk.nil?
|
|
506
515
|
backup_state_validator = EnumAttributeValidator.new('String', ["None", "Pending", "InProgress", "Completed", "Error", "unknown_default_open_api"])
|
|
507
516
|
return false unless backup_state_validator.valid?(@backup_state)
|
|
508
|
-
sandbox_class_validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "unknown_default_open_api"])
|
|
517
|
+
sandbox_class_validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "windows", "unknown_default_open_api"])
|
|
509
518
|
return false unless sandbox_class_validator.valid?(@sandbox_class)
|
|
510
519
|
return false if @toolbox_proxy_url.nil?
|
|
511
520
|
true
|
|
@@ -654,7 +663,7 @@ module DaytonaApiClient
|
|
|
654
663
|
# Custom attribute writer method checking allowed values (enum).
|
|
655
664
|
# @param [Object] sandbox_class Object to be assigned
|
|
656
665
|
def sandbox_class=(sandbox_class)
|
|
657
|
-
validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "unknown_default_open_api"])
|
|
666
|
+
validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "windows", "unknown_default_open_api"])
|
|
658
667
|
unless validator.valid?(sandbox_class)
|
|
659
668
|
fail ArgumentError, "invalid value for \"sandbox_class\", must be one of #{validator.allowable_values}."
|
|
660
669
|
end
|
|
@@ -689,6 +698,7 @@ module DaytonaApiClient
|
|
|
689
698
|
target == o.target &&
|
|
690
699
|
cpu == o.cpu &&
|
|
691
700
|
gpu == o.gpu &&
|
|
701
|
+
gpu_type == o.gpu_type &&
|
|
692
702
|
memory == o.memory &&
|
|
693
703
|
disk == o.disk &&
|
|
694
704
|
state == o.state &&
|
|
@@ -721,7 +731,7 @@ module DaytonaApiClient
|
|
|
721
731
|
# Calculates hash code according to all attributes.
|
|
722
732
|
# @return [Integer] Hash code
|
|
723
733
|
def hash
|
|
724
|
-
[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, last_activity_at, sandbox_class, daemon_version, runner_id, linked_sandbox_id, toolbox_proxy_url].hash
|
|
734
|
+
[id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, gpu_type, 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, last_activity_at, sandbox_class, daemon_version, runner_id, linked_sandbox_id, toolbox_proxy_url].hash
|
|
725
735
|
end
|
|
726
736
|
|
|
727
737
|
# Builds the object from hash
|
|
@@ -18,10 +18,11 @@ module DaytonaApiClient
|
|
|
18
18
|
LINUX_VM = "linux-vm".freeze
|
|
19
19
|
CONTAINER = "container".freeze
|
|
20
20
|
ANDROID = "android".freeze
|
|
21
|
+
WINDOWS = "windows".freeze
|
|
21
22
|
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
22
23
|
|
|
23
24
|
def self.all_vars
|
|
24
|
-
@all_vars ||= [LINUX_VM, CONTAINER, ANDROID, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
25
|
+
@all_vars ||= [LINUX_VM, CONTAINER, ANDROID, WINDOWS, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
25
26
|
end
|
|
26
27
|
|
|
27
28
|
# Builds the enum from string
|
|
@@ -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', ["linux-vm", "container", "android", "unknown_default_open_api"])
|
|
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', ["linux-vm", "container", "android", "unknown_default_open_api"])
|
|
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
|
|
@@ -97,6 +100,7 @@ module DaytonaApiClient
|
|
|
97
100
|
:'entrypoint' => :'entrypoint',
|
|
98
101
|
:'cpu' => :'cpu',
|
|
99
102
|
:'gpu' => :'gpu',
|
|
103
|
+
:'gpu_type' => :'gpuType',
|
|
100
104
|
:'mem' => :'mem',
|
|
101
105
|
:'disk' => :'disk',
|
|
102
106
|
:'error_reason' => :'errorReason',
|
|
@@ -134,6 +138,7 @@ module DaytonaApiClient
|
|
|
134
138
|
:'entrypoint' => :'Array<String>',
|
|
135
139
|
:'cpu' => :'Float',
|
|
136
140
|
:'gpu' => :'Float',
|
|
141
|
+
:'gpu_type' => :'GpuType',
|
|
137
142
|
:'mem' => :'Float',
|
|
138
143
|
:'disk' => :'Float',
|
|
139
144
|
:'error_reason' => :'String',
|
|
@@ -232,6 +237,10 @@ module DaytonaApiClient
|
|
|
232
237
|
self.gpu = nil
|
|
233
238
|
end
|
|
234
239
|
|
|
240
|
+
if attributes.key?(:'gpu_type')
|
|
241
|
+
self.gpu_type = attributes[:'gpu_type']
|
|
242
|
+
end
|
|
243
|
+
|
|
235
244
|
if attributes.key?(:'mem')
|
|
236
245
|
self.mem = attributes[:'mem']
|
|
237
246
|
else
|
|
@@ -353,7 +362,7 @@ module DaytonaApiClient
|
|
|
353
362
|
return false if @disk.nil?
|
|
354
363
|
return false if @created_at.nil?
|
|
355
364
|
return false if @updated_at.nil?
|
|
356
|
-
sandbox_class_validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "unknown_default_open_api"])
|
|
365
|
+
sandbox_class_validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "windows", "unknown_default_open_api"])
|
|
357
366
|
return false unless sandbox_class_validator.valid?(@sandbox_class)
|
|
358
367
|
true
|
|
359
368
|
end
|
|
@@ -461,7 +470,7 @@ module DaytonaApiClient
|
|
|
461
470
|
# Custom attribute writer method checking allowed values (enum).
|
|
462
471
|
# @param [Object] sandbox_class Object to be assigned
|
|
463
472
|
def sandbox_class=(sandbox_class)
|
|
464
|
-
validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "unknown_default_open_api"])
|
|
473
|
+
validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "windows", "unknown_default_open_api"])
|
|
465
474
|
unless validator.valid?(sandbox_class)
|
|
466
475
|
fail ArgumentError, "invalid value for \"sandbox_class\", must be one of #{validator.allowable_values}."
|
|
467
476
|
end
|
|
@@ -483,6 +492,7 @@ module DaytonaApiClient
|
|
|
483
492
|
entrypoint == o.entrypoint &&
|
|
484
493
|
cpu == o.cpu &&
|
|
485
494
|
gpu == o.gpu &&
|
|
495
|
+
gpu_type == o.gpu_type &&
|
|
486
496
|
mem == o.mem &&
|
|
487
497
|
disk == o.disk &&
|
|
488
498
|
error_reason == o.error_reason &&
|
|
@@ -505,7 +515,7 @@ module DaytonaApiClient
|
|
|
505
515
|
# Calculates hash code according to all attributes.
|
|
506
516
|
# @return [Integer] Hash code
|
|
507
517
|
def hash
|
|
508
|
-
[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, sandbox_class].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
|
|
509
519
|
end
|
|
510
520
|
|
|
511
521
|
# Builds the object from hash
|
|
@@ -25,6 +25,8 @@ module DaytonaApiClient
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :total_gpu_quota
|
|
27
27
|
|
|
28
|
+
attr_accessor :allowed_gpu_types
|
|
29
|
+
|
|
28
30
|
attr_accessor :max_cpu_per_sandbox
|
|
29
31
|
|
|
30
32
|
attr_accessor :max_memory_per_sandbox
|
|
@@ -69,6 +71,7 @@ module DaytonaApiClient
|
|
|
69
71
|
:'total_memory_quota' => :'totalMemoryQuota',
|
|
70
72
|
:'total_disk_quota' => :'totalDiskQuota',
|
|
71
73
|
:'total_gpu_quota' => :'totalGpuQuota',
|
|
74
|
+
:'allowed_gpu_types' => :'allowedGpuTypes',
|
|
72
75
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
73
76
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
74
77
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
@@ -97,6 +100,7 @@ module DaytonaApiClient
|
|
|
97
100
|
:'total_memory_quota' => :'Float',
|
|
98
101
|
:'total_disk_quota' => :'Float',
|
|
99
102
|
:'total_gpu_quota' => :'Float',
|
|
103
|
+
:'allowed_gpu_types' => :'Array<GpuType>',
|
|
100
104
|
:'max_cpu_per_sandbox' => :'Float',
|
|
101
105
|
:'max_memory_per_sandbox' => :'Float',
|
|
102
106
|
:'max_disk_per_sandbox' => :'Float',
|
|
@@ -114,6 +118,7 @@ module DaytonaApiClient
|
|
|
114
118
|
:'total_memory_quota',
|
|
115
119
|
:'total_disk_quota',
|
|
116
120
|
:'total_gpu_quota',
|
|
121
|
+
:'allowed_gpu_types',
|
|
117
122
|
:'max_cpu_per_sandbox',
|
|
118
123
|
:'max_memory_per_sandbox',
|
|
119
124
|
:'max_disk_per_sandbox',
|
|
@@ -168,6 +173,12 @@ module DaytonaApiClient
|
|
|
168
173
|
self.total_gpu_quota = nil
|
|
169
174
|
end
|
|
170
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
|
+
|
|
171
182
|
if attributes.key?(:'max_cpu_per_sandbox')
|
|
172
183
|
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
173
184
|
end
|
|
@@ -222,6 +233,7 @@ module DaytonaApiClient
|
|
|
222
233
|
total_memory_quota == o.total_memory_quota &&
|
|
223
234
|
total_disk_quota == o.total_disk_quota &&
|
|
224
235
|
total_gpu_quota == o.total_gpu_quota &&
|
|
236
|
+
allowed_gpu_types == o.allowed_gpu_types &&
|
|
225
237
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
226
238
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
227
239
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
@@ -240,7 +252,7 @@ module DaytonaApiClient
|
|
|
240
252
|
# Calculates hash code according to all attributes.
|
|
241
253
|
# @return [Integer] Hash code
|
|
242
254
|
def hash
|
|
243
|
-
[sandbox_class, 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
|
|
244
256
|
end
|
|
245
257
|
|
|
246
258
|
# Builds the object from hash
|
data/lib/daytona_api_client.rb
CHANGED
|
@@ -72,6 +72,7 @@ require 'daytona_api_client/models/git_commit_response'
|
|
|
72
72
|
require 'daytona_api_client/models/git_delete_branch_request'
|
|
73
73
|
require 'daytona_api_client/models/git_repo_request'
|
|
74
74
|
require 'daytona_api_client/models/git_status'
|
|
75
|
+
require 'daytona_api_client/models/gpu_type'
|
|
75
76
|
require 'daytona_api_client/models/health_controller_check200_response'
|
|
76
77
|
require 'daytona_api_client/models/health_controller_check200_response_info_value'
|
|
77
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.
|
|
4
|
+
version: 0.184.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- daytonaio
|
|
@@ -142,6 +142,7 @@ files:
|
|
|
142
142
|
- lib/daytona_api_client/models/git_delete_branch_request.rb
|
|
143
143
|
- lib/daytona_api_client/models/git_repo_request.rb
|
|
144
144
|
- lib/daytona_api_client/models/git_status.rb
|
|
145
|
+
- lib/daytona_api_client/models/gpu_type.rb
|
|
145
146
|
- lib/daytona_api_client/models/health_controller_check200_response.rb
|
|
146
147
|
- lib/daytona_api_client/models/health_controller_check200_response_info_value.rb
|
|
147
148
|
- lib/daytona_api_client/models/health_controller_check503_response.rb
|