daytona_api_client 0.178.0 → 0.180.0.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +5 -6
- data/lib/daytona_api_client/api/sandbox_api.rb +124 -30
- data/lib/daytona_api_client/api/webhooks_api.rb +64 -0
- data/lib/daytona_api_client/models/{workspace_port_preview_url.rb → list_sandboxes_response.rb} +31 -43
- data/lib/daytona_api_client/models/{paginated_sandboxes.rb → paginated_sandboxes_deprecated.rb} +3 -3
- data/lib/daytona_api_client/models/region_quota.rb +67 -5
- data/lib/daytona_api_client/models/region_usage_overview.rb +93 -5
- data/lib/daytona_api_client/models/{workspace.rb → sandbox_list_item.rb} +123 -273
- data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +41 -0
- data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +45 -0
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +47 -5
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +5 -6
- metadata +6 -7
- data/lib/daytona_api_client/api/workspace_api.rb +0 -955
- data/lib/daytona_api_client/models/create_workspace.rb +0 -340
- data/lib/daytona_api_client/models/sandbox_info.rb +0 -202
|
@@ -25,6 +25,8 @@ module DaytonaApiClient
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :total_disk_quota
|
|
27
27
|
|
|
28
|
+
attr_accessor :total_gpu_quota
|
|
29
|
+
|
|
28
30
|
attr_accessor :max_cpu_per_sandbox
|
|
29
31
|
|
|
30
32
|
attr_accessor :max_memory_per_sandbox
|
|
@@ -33,6 +35,12 @@ module DaytonaApiClient
|
|
|
33
35
|
|
|
34
36
|
attr_accessor :max_disk_per_non_ephemeral_sandbox
|
|
35
37
|
|
|
38
|
+
attr_accessor :max_cpu_per_gpu_sandbox
|
|
39
|
+
|
|
40
|
+
attr_accessor :max_memory_per_gpu_sandbox
|
|
41
|
+
|
|
42
|
+
attr_accessor :max_disk_per_gpu_sandbox
|
|
43
|
+
|
|
36
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
45
|
def self.attribute_map
|
|
38
46
|
{
|
|
@@ -41,10 +49,14 @@ module DaytonaApiClient
|
|
|
41
49
|
:'total_cpu_quota' => :'totalCpuQuota',
|
|
42
50
|
:'total_memory_quota' => :'totalMemoryQuota',
|
|
43
51
|
:'total_disk_quota' => :'totalDiskQuota',
|
|
52
|
+
:'total_gpu_quota' => :'totalGpuQuota',
|
|
44
53
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
45
54
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
46
55
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
47
|
-
:'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox'
|
|
56
|
+
:'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox',
|
|
57
|
+
:'max_cpu_per_gpu_sandbox' => :'maxCpuPerGpuSandbox',
|
|
58
|
+
:'max_memory_per_gpu_sandbox' => :'maxMemoryPerGpuSandbox',
|
|
59
|
+
:'max_disk_per_gpu_sandbox' => :'maxDiskPerGpuSandbox'
|
|
48
60
|
}
|
|
49
61
|
end
|
|
50
62
|
|
|
@@ -66,10 +78,14 @@ module DaytonaApiClient
|
|
|
66
78
|
:'total_cpu_quota' => :'Float',
|
|
67
79
|
:'total_memory_quota' => :'Float',
|
|
68
80
|
:'total_disk_quota' => :'Float',
|
|
81
|
+
:'total_gpu_quota' => :'Float',
|
|
69
82
|
:'max_cpu_per_sandbox' => :'Float',
|
|
70
83
|
:'max_memory_per_sandbox' => :'Float',
|
|
71
84
|
:'max_disk_per_sandbox' => :'Float',
|
|
72
|
-
:'max_disk_per_non_ephemeral_sandbox' => :'Float'
|
|
85
|
+
:'max_disk_per_non_ephemeral_sandbox' => :'Float',
|
|
86
|
+
:'max_cpu_per_gpu_sandbox' => :'Float',
|
|
87
|
+
:'max_memory_per_gpu_sandbox' => :'Float',
|
|
88
|
+
:'max_disk_per_gpu_sandbox' => :'Float'
|
|
73
89
|
}
|
|
74
90
|
end
|
|
75
91
|
|
|
@@ -79,7 +95,10 @@ module DaytonaApiClient
|
|
|
79
95
|
:'max_cpu_per_sandbox',
|
|
80
96
|
:'max_memory_per_sandbox',
|
|
81
97
|
:'max_disk_per_sandbox',
|
|
82
|
-
:'max_disk_per_non_ephemeral_sandbox'
|
|
98
|
+
:'max_disk_per_non_ephemeral_sandbox',
|
|
99
|
+
:'max_cpu_per_gpu_sandbox',
|
|
100
|
+
:'max_memory_per_gpu_sandbox',
|
|
101
|
+
:'max_disk_per_gpu_sandbox'
|
|
83
102
|
])
|
|
84
103
|
end
|
|
85
104
|
|
|
@@ -129,6 +148,12 @@ module DaytonaApiClient
|
|
|
129
148
|
self.total_disk_quota = nil
|
|
130
149
|
end
|
|
131
150
|
|
|
151
|
+
if attributes.key?(:'total_gpu_quota')
|
|
152
|
+
self.total_gpu_quota = attributes[:'total_gpu_quota']
|
|
153
|
+
else
|
|
154
|
+
self.total_gpu_quota = nil
|
|
155
|
+
end
|
|
156
|
+
|
|
132
157
|
if attributes.key?(:'max_cpu_per_sandbox')
|
|
133
158
|
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
134
159
|
else
|
|
@@ -152,6 +177,24 @@ module DaytonaApiClient
|
|
|
152
177
|
else
|
|
153
178
|
self.max_disk_per_non_ephemeral_sandbox = nil
|
|
154
179
|
end
|
|
180
|
+
|
|
181
|
+
if attributes.key?(:'max_cpu_per_gpu_sandbox')
|
|
182
|
+
self.max_cpu_per_gpu_sandbox = attributes[:'max_cpu_per_gpu_sandbox']
|
|
183
|
+
else
|
|
184
|
+
self.max_cpu_per_gpu_sandbox = nil
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if attributes.key?(:'max_memory_per_gpu_sandbox')
|
|
188
|
+
self.max_memory_per_gpu_sandbox = attributes[:'max_memory_per_gpu_sandbox']
|
|
189
|
+
else
|
|
190
|
+
self.max_memory_per_gpu_sandbox = nil
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if attributes.key?(:'max_disk_per_gpu_sandbox')
|
|
194
|
+
self.max_disk_per_gpu_sandbox = attributes[:'max_disk_per_gpu_sandbox']
|
|
195
|
+
else
|
|
196
|
+
self.max_disk_per_gpu_sandbox = nil
|
|
197
|
+
end
|
|
155
198
|
end
|
|
156
199
|
|
|
157
200
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -179,6 +222,10 @@ module DaytonaApiClient
|
|
|
179
222
|
invalid_properties.push('invalid value for "total_disk_quota", total_disk_quota cannot be nil.')
|
|
180
223
|
end
|
|
181
224
|
|
|
225
|
+
if @total_gpu_quota.nil?
|
|
226
|
+
invalid_properties.push('invalid value for "total_gpu_quota", total_gpu_quota cannot be nil.')
|
|
227
|
+
end
|
|
228
|
+
|
|
182
229
|
invalid_properties
|
|
183
230
|
end
|
|
184
231
|
|
|
@@ -191,6 +238,7 @@ module DaytonaApiClient
|
|
|
191
238
|
return false if @total_cpu_quota.nil?
|
|
192
239
|
return false if @total_memory_quota.nil?
|
|
193
240
|
return false if @total_disk_quota.nil?
|
|
241
|
+
return false if @total_gpu_quota.nil?
|
|
194
242
|
true
|
|
195
243
|
end
|
|
196
244
|
|
|
@@ -244,6 +292,16 @@ module DaytonaApiClient
|
|
|
244
292
|
@total_disk_quota = total_disk_quota
|
|
245
293
|
end
|
|
246
294
|
|
|
295
|
+
# Custom attribute writer method with validation
|
|
296
|
+
# @param [Object] total_gpu_quota Value to be assigned
|
|
297
|
+
def total_gpu_quota=(total_gpu_quota)
|
|
298
|
+
if total_gpu_quota.nil?
|
|
299
|
+
fail ArgumentError, 'total_gpu_quota cannot be nil'
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
@total_gpu_quota = total_gpu_quota
|
|
303
|
+
end
|
|
304
|
+
|
|
247
305
|
# Checks equality by comparing each attribute.
|
|
248
306
|
# @param [Object] Object to be compared
|
|
249
307
|
def ==(o)
|
|
@@ -254,10 +312,14 @@ module DaytonaApiClient
|
|
|
254
312
|
total_cpu_quota == o.total_cpu_quota &&
|
|
255
313
|
total_memory_quota == o.total_memory_quota &&
|
|
256
314
|
total_disk_quota == o.total_disk_quota &&
|
|
315
|
+
total_gpu_quota == o.total_gpu_quota &&
|
|
257
316
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
258
317
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
259
318
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
260
|
-
max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox
|
|
319
|
+
max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox &&
|
|
320
|
+
max_cpu_per_gpu_sandbox == o.max_cpu_per_gpu_sandbox &&
|
|
321
|
+
max_memory_per_gpu_sandbox == o.max_memory_per_gpu_sandbox &&
|
|
322
|
+
max_disk_per_gpu_sandbox == o.max_disk_per_gpu_sandbox
|
|
261
323
|
end
|
|
262
324
|
|
|
263
325
|
# @see the `==` method
|
|
@@ -269,7 +331,7 @@ module DaytonaApiClient
|
|
|
269
331
|
# Calculates hash code according to all attributes.
|
|
270
332
|
# @return [Integer] Hash code
|
|
271
333
|
def hash
|
|
272
|
-
[organization_id, region_id, total_cpu_quota, total_memory_quota, total_disk_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox].hash
|
|
334
|
+
[organization_id, region_id, 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
|
|
273
335
|
end
|
|
274
336
|
|
|
275
337
|
# Builds the object from hash
|
|
@@ -29,6 +29,10 @@ module DaytonaApiClient
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :current_disk_usage
|
|
31
31
|
|
|
32
|
+
attr_accessor :total_gpu_quota
|
|
33
|
+
|
|
34
|
+
attr_accessor :current_gpu_usage
|
|
35
|
+
|
|
32
36
|
attr_accessor :max_cpu_per_sandbox
|
|
33
37
|
|
|
34
38
|
attr_accessor :max_memory_per_sandbox
|
|
@@ -37,6 +41,12 @@ module DaytonaApiClient
|
|
|
37
41
|
|
|
38
42
|
attr_accessor :max_disk_per_non_ephemeral_sandbox
|
|
39
43
|
|
|
44
|
+
attr_accessor :max_cpu_per_gpu_sandbox
|
|
45
|
+
|
|
46
|
+
attr_accessor :max_memory_per_gpu_sandbox
|
|
47
|
+
|
|
48
|
+
attr_accessor :max_disk_per_gpu_sandbox
|
|
49
|
+
|
|
40
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
51
|
def self.attribute_map
|
|
42
52
|
{
|
|
@@ -47,10 +57,15 @@ module DaytonaApiClient
|
|
|
47
57
|
:'current_memory_usage' => :'currentMemoryUsage',
|
|
48
58
|
:'total_disk_quota' => :'totalDiskQuota',
|
|
49
59
|
:'current_disk_usage' => :'currentDiskUsage',
|
|
60
|
+
:'total_gpu_quota' => :'totalGpuQuota',
|
|
61
|
+
:'current_gpu_usage' => :'currentGpuUsage',
|
|
50
62
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
51
63
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
52
64
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
53
|
-
:'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox'
|
|
65
|
+
:'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox',
|
|
66
|
+
:'max_cpu_per_gpu_sandbox' => :'maxCpuPerGpuSandbox',
|
|
67
|
+
:'max_memory_per_gpu_sandbox' => :'maxMemoryPerGpuSandbox',
|
|
68
|
+
:'max_disk_per_gpu_sandbox' => :'maxDiskPerGpuSandbox'
|
|
54
69
|
}
|
|
55
70
|
end
|
|
56
71
|
|
|
@@ -74,10 +89,15 @@ module DaytonaApiClient
|
|
|
74
89
|
:'current_memory_usage' => :'Float',
|
|
75
90
|
:'total_disk_quota' => :'Float',
|
|
76
91
|
:'current_disk_usage' => :'Float',
|
|
92
|
+
:'total_gpu_quota' => :'Float',
|
|
93
|
+
:'current_gpu_usage' => :'Float',
|
|
77
94
|
:'max_cpu_per_sandbox' => :'Float',
|
|
78
95
|
:'max_memory_per_sandbox' => :'Float',
|
|
79
96
|
:'max_disk_per_sandbox' => :'Float',
|
|
80
|
-
:'max_disk_per_non_ephemeral_sandbox' => :'Float'
|
|
97
|
+
:'max_disk_per_non_ephemeral_sandbox' => :'Float',
|
|
98
|
+
:'max_cpu_per_gpu_sandbox' => :'Float',
|
|
99
|
+
:'max_memory_per_gpu_sandbox' => :'Float',
|
|
100
|
+
:'max_disk_per_gpu_sandbox' => :'Float'
|
|
81
101
|
}
|
|
82
102
|
end
|
|
83
103
|
|
|
@@ -87,7 +107,10 @@ module DaytonaApiClient
|
|
|
87
107
|
:'max_cpu_per_sandbox',
|
|
88
108
|
:'max_memory_per_sandbox',
|
|
89
109
|
:'max_disk_per_sandbox',
|
|
90
|
-
:'max_disk_per_non_ephemeral_sandbox'
|
|
110
|
+
:'max_disk_per_non_ephemeral_sandbox',
|
|
111
|
+
:'max_cpu_per_gpu_sandbox',
|
|
112
|
+
:'max_memory_per_gpu_sandbox',
|
|
113
|
+
:'max_disk_per_gpu_sandbox'
|
|
91
114
|
])
|
|
92
115
|
end
|
|
93
116
|
|
|
@@ -149,6 +172,18 @@ module DaytonaApiClient
|
|
|
149
172
|
self.current_disk_usage = nil
|
|
150
173
|
end
|
|
151
174
|
|
|
175
|
+
if attributes.key?(:'total_gpu_quota')
|
|
176
|
+
self.total_gpu_quota = attributes[:'total_gpu_quota']
|
|
177
|
+
else
|
|
178
|
+
self.total_gpu_quota = nil
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
if attributes.key?(:'current_gpu_usage')
|
|
182
|
+
self.current_gpu_usage = attributes[:'current_gpu_usage']
|
|
183
|
+
else
|
|
184
|
+
self.current_gpu_usage = nil
|
|
185
|
+
end
|
|
186
|
+
|
|
152
187
|
if attributes.key?(:'max_cpu_per_sandbox')
|
|
153
188
|
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
154
189
|
else
|
|
@@ -172,6 +207,24 @@ module DaytonaApiClient
|
|
|
172
207
|
else
|
|
173
208
|
self.max_disk_per_non_ephemeral_sandbox = nil
|
|
174
209
|
end
|
|
210
|
+
|
|
211
|
+
if attributes.key?(:'max_cpu_per_gpu_sandbox')
|
|
212
|
+
self.max_cpu_per_gpu_sandbox = attributes[:'max_cpu_per_gpu_sandbox']
|
|
213
|
+
else
|
|
214
|
+
self.max_cpu_per_gpu_sandbox = nil
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.key?(:'max_memory_per_gpu_sandbox')
|
|
218
|
+
self.max_memory_per_gpu_sandbox = attributes[:'max_memory_per_gpu_sandbox']
|
|
219
|
+
else
|
|
220
|
+
self.max_memory_per_gpu_sandbox = nil
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'max_disk_per_gpu_sandbox')
|
|
224
|
+
self.max_disk_per_gpu_sandbox = attributes[:'max_disk_per_gpu_sandbox']
|
|
225
|
+
else
|
|
226
|
+
self.max_disk_per_gpu_sandbox = nil
|
|
227
|
+
end
|
|
175
228
|
end
|
|
176
229
|
|
|
177
230
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -207,6 +260,14 @@ module DaytonaApiClient
|
|
|
207
260
|
invalid_properties.push('invalid value for "current_disk_usage", current_disk_usage cannot be nil.')
|
|
208
261
|
end
|
|
209
262
|
|
|
263
|
+
if @total_gpu_quota.nil?
|
|
264
|
+
invalid_properties.push('invalid value for "total_gpu_quota", total_gpu_quota cannot be nil.')
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if @current_gpu_usage.nil?
|
|
268
|
+
invalid_properties.push('invalid value for "current_gpu_usage", current_gpu_usage cannot be nil.')
|
|
269
|
+
end
|
|
270
|
+
|
|
210
271
|
invalid_properties
|
|
211
272
|
end
|
|
212
273
|
|
|
@@ -221,6 +282,8 @@ module DaytonaApiClient
|
|
|
221
282
|
return false if @current_memory_usage.nil?
|
|
222
283
|
return false if @total_disk_quota.nil?
|
|
223
284
|
return false if @current_disk_usage.nil?
|
|
285
|
+
return false if @total_gpu_quota.nil?
|
|
286
|
+
return false if @current_gpu_usage.nil?
|
|
224
287
|
true
|
|
225
288
|
end
|
|
226
289
|
|
|
@@ -294,6 +357,26 @@ module DaytonaApiClient
|
|
|
294
357
|
@current_disk_usage = current_disk_usage
|
|
295
358
|
end
|
|
296
359
|
|
|
360
|
+
# Custom attribute writer method with validation
|
|
361
|
+
# @param [Object] total_gpu_quota Value to be assigned
|
|
362
|
+
def total_gpu_quota=(total_gpu_quota)
|
|
363
|
+
if total_gpu_quota.nil?
|
|
364
|
+
fail ArgumentError, 'total_gpu_quota cannot be nil'
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
@total_gpu_quota = total_gpu_quota
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# Custom attribute writer method with validation
|
|
371
|
+
# @param [Object] current_gpu_usage Value to be assigned
|
|
372
|
+
def current_gpu_usage=(current_gpu_usage)
|
|
373
|
+
if current_gpu_usage.nil?
|
|
374
|
+
fail ArgumentError, 'current_gpu_usage cannot be nil'
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
@current_gpu_usage = current_gpu_usage
|
|
378
|
+
end
|
|
379
|
+
|
|
297
380
|
# Checks equality by comparing each attribute.
|
|
298
381
|
# @param [Object] Object to be compared
|
|
299
382
|
def ==(o)
|
|
@@ -306,10 +389,15 @@ module DaytonaApiClient
|
|
|
306
389
|
current_memory_usage == o.current_memory_usage &&
|
|
307
390
|
total_disk_quota == o.total_disk_quota &&
|
|
308
391
|
current_disk_usage == o.current_disk_usage &&
|
|
392
|
+
total_gpu_quota == o.total_gpu_quota &&
|
|
393
|
+
current_gpu_usage == o.current_gpu_usage &&
|
|
309
394
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
310
395
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
311
396
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
312
|
-
max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox
|
|
397
|
+
max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox &&
|
|
398
|
+
max_cpu_per_gpu_sandbox == o.max_cpu_per_gpu_sandbox &&
|
|
399
|
+
max_memory_per_gpu_sandbox == o.max_memory_per_gpu_sandbox &&
|
|
400
|
+
max_disk_per_gpu_sandbox == o.max_disk_per_gpu_sandbox
|
|
313
401
|
end
|
|
314
402
|
|
|
315
403
|
# @see the `==` method
|
|
@@ -321,7 +409,7 @@ module DaytonaApiClient
|
|
|
321
409
|
# Calculates hash code according to all attributes.
|
|
322
410
|
# @return [Integer] Hash code
|
|
323
411
|
def hash
|
|
324
|
-
[region_id, total_cpu_quota, current_cpu_usage, total_memory_quota, current_memory_usage, total_disk_quota, current_disk_usage, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox].hash
|
|
412
|
+
[region_id, 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
|
|
325
413
|
end
|
|
326
414
|
|
|
327
415
|
# Builds the object from hash
|