daytona_api_client 0.183.0 → 0.184.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 +0 -1
- data/lib/daytona_api_client/api/admin_api.rb +0 -298
- data/lib/daytona_api_client/api/sandbox_api.rb +0 -3
- data/lib/daytona_api_client/models/create_sandbox.rb +47 -13
- data/lib/daytona_api_client/models/create_snapshot.rb +4 -36
- data/lib/daytona_api_client/models/region_quota.rb +1 -49
- data/lib/daytona_api_client/models/region_usage_overview.rb +1 -49
- data/lib/daytona_api_client/models/runner.rb +25 -8
- data/lib/daytona_api_client/models/runner_full.rb +25 -8
- data/lib/daytona_api_client/models/sandbox.rb +15 -25
- data/lib/daytona_api_client/models/sandbox_class.rb +4 -4
- data/lib/daytona_api_client/models/sandbox_list_item.rb +2 -2
- data/lib/daytona_api_client/models/snapshot_dto.rb +4 -26
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +1 -32
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +0 -1
- metadata +1 -2
- data/lib/daytona_api_client/models/create_organization_region_quota.rb +0 -360
|
@@ -19,8 +19,6 @@ module DaytonaApiClient
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :region_id
|
|
21
21
|
|
|
22
|
-
attr_accessor :sandbox_class
|
|
23
|
-
|
|
24
22
|
attr_accessor :total_cpu_quota
|
|
25
23
|
|
|
26
24
|
attr_accessor :total_memory_quota
|
|
@@ -43,34 +41,11 @@ module DaytonaApiClient
|
|
|
43
41
|
|
|
44
42
|
attr_accessor :max_disk_per_gpu_sandbox
|
|
45
43
|
|
|
46
|
-
class EnumAttributeValidator
|
|
47
|
-
attr_reader :datatype
|
|
48
|
-
attr_reader :allowable_values
|
|
49
|
-
|
|
50
|
-
def initialize(datatype, allowable_values)
|
|
51
|
-
@allowable_values = allowable_values.map do |value|
|
|
52
|
-
case datatype.to_s
|
|
53
|
-
when /Integer/i
|
|
54
|
-
value.to_i
|
|
55
|
-
when /Float/i
|
|
56
|
-
value.to_f
|
|
57
|
-
else
|
|
58
|
-
value
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
def valid?(value)
|
|
64
|
-
!value || allowable_values.include?(value)
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
|
|
68
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
69
45
|
def self.attribute_map
|
|
70
46
|
{
|
|
71
47
|
:'organization_id' => :'organizationId',
|
|
72
48
|
:'region_id' => :'regionId',
|
|
73
|
-
:'sandbox_class' => :'sandboxClass',
|
|
74
49
|
:'total_cpu_quota' => :'totalCpuQuota',
|
|
75
50
|
:'total_memory_quota' => :'totalMemoryQuota',
|
|
76
51
|
:'total_disk_quota' => :'totalDiskQuota',
|
|
@@ -100,7 +75,6 @@ module DaytonaApiClient
|
|
|
100
75
|
{
|
|
101
76
|
:'organization_id' => :'String',
|
|
102
77
|
:'region_id' => :'String',
|
|
103
|
-
:'sandbox_class' => :'SandboxClass',
|
|
104
78
|
:'total_cpu_quota' => :'Float',
|
|
105
79
|
:'total_memory_quota' => :'Float',
|
|
106
80
|
:'total_disk_quota' => :'Float',
|
|
@@ -156,12 +130,6 @@ module DaytonaApiClient
|
|
|
156
130
|
self.region_id = nil
|
|
157
131
|
end
|
|
158
132
|
|
|
159
|
-
if attributes.key?(:'sandbox_class')
|
|
160
|
-
self.sandbox_class = attributes[:'sandbox_class']
|
|
161
|
-
else
|
|
162
|
-
self.sandbox_class = nil
|
|
163
|
-
end
|
|
164
|
-
|
|
165
133
|
if attributes.key?(:'total_cpu_quota')
|
|
166
134
|
self.total_cpu_quota = attributes[:'total_cpu_quota']
|
|
167
135
|
else
|
|
@@ -242,10 +210,6 @@ module DaytonaApiClient
|
|
|
242
210
|
invalid_properties.push('invalid value for "region_id", region_id cannot be nil.')
|
|
243
211
|
end
|
|
244
212
|
|
|
245
|
-
if @sandbox_class.nil?
|
|
246
|
-
invalid_properties.push('invalid value for "sandbox_class", sandbox_class cannot be nil.')
|
|
247
|
-
end
|
|
248
|
-
|
|
249
213
|
if @total_cpu_quota.nil?
|
|
250
214
|
invalid_properties.push('invalid value for "total_cpu_quota", total_cpu_quota cannot be nil.')
|
|
251
215
|
end
|
|
@@ -271,7 +235,6 @@ module DaytonaApiClient
|
|
|
271
235
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
272
236
|
return false if @organization_id.nil?
|
|
273
237
|
return false if @region_id.nil?
|
|
274
|
-
return false if @sandbox_class.nil?
|
|
275
238
|
return false if @total_cpu_quota.nil?
|
|
276
239
|
return false if @total_memory_quota.nil?
|
|
277
240
|
return false if @total_disk_quota.nil?
|
|
@@ -299,16 +262,6 @@ module DaytonaApiClient
|
|
|
299
262
|
@region_id = region_id
|
|
300
263
|
end
|
|
301
264
|
|
|
302
|
-
# Custom attribute writer method with validation
|
|
303
|
-
# @param [Object] sandbox_class Value to be assigned
|
|
304
|
-
def sandbox_class=(sandbox_class)
|
|
305
|
-
if sandbox_class.nil?
|
|
306
|
-
fail ArgumentError, 'sandbox_class cannot be nil'
|
|
307
|
-
end
|
|
308
|
-
|
|
309
|
-
@sandbox_class = sandbox_class
|
|
310
|
-
end
|
|
311
|
-
|
|
312
265
|
# Custom attribute writer method with validation
|
|
313
266
|
# @param [Object] total_cpu_quota Value to be assigned
|
|
314
267
|
def total_cpu_quota=(total_cpu_quota)
|
|
@@ -356,7 +309,6 @@ module DaytonaApiClient
|
|
|
356
309
|
self.class == o.class &&
|
|
357
310
|
organization_id == o.organization_id &&
|
|
358
311
|
region_id == o.region_id &&
|
|
359
|
-
sandbox_class == o.sandbox_class &&
|
|
360
312
|
total_cpu_quota == o.total_cpu_quota &&
|
|
361
313
|
total_memory_quota == o.total_memory_quota &&
|
|
362
314
|
total_disk_quota == o.total_disk_quota &&
|
|
@@ -379,7 +331,7 @@ module DaytonaApiClient
|
|
|
379
331
|
# Calculates hash code according to all attributes.
|
|
380
332
|
# @return [Integer] Hash code
|
|
381
333
|
def hash
|
|
382
|
-
[organization_id, region_id,
|
|
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
|
|
383
335
|
end
|
|
384
336
|
|
|
385
337
|
# Builds the object from hash
|
|
@@ -17,8 +17,6 @@ module DaytonaApiClient
|
|
|
17
17
|
class RegionUsageOverview < ApiModelBase
|
|
18
18
|
attr_accessor :region_id
|
|
19
19
|
|
|
20
|
-
attr_accessor :sandbox_class
|
|
21
|
-
|
|
22
20
|
attr_accessor :total_cpu_quota
|
|
23
21
|
|
|
24
22
|
attr_accessor :current_cpu_usage
|
|
@@ -49,33 +47,10 @@ module DaytonaApiClient
|
|
|
49
47
|
|
|
50
48
|
attr_accessor :max_disk_per_gpu_sandbox
|
|
51
49
|
|
|
52
|
-
class EnumAttributeValidator
|
|
53
|
-
attr_reader :datatype
|
|
54
|
-
attr_reader :allowable_values
|
|
55
|
-
|
|
56
|
-
def initialize(datatype, allowable_values)
|
|
57
|
-
@allowable_values = allowable_values.map do |value|
|
|
58
|
-
case datatype.to_s
|
|
59
|
-
when /Integer/i
|
|
60
|
-
value.to_i
|
|
61
|
-
when /Float/i
|
|
62
|
-
value.to_f
|
|
63
|
-
else
|
|
64
|
-
value
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
def valid?(value)
|
|
70
|
-
!value || allowable_values.include?(value)
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
|
|
74
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
75
51
|
def self.attribute_map
|
|
76
52
|
{
|
|
77
53
|
:'region_id' => :'regionId',
|
|
78
|
-
:'sandbox_class' => :'sandboxClass',
|
|
79
54
|
:'total_cpu_quota' => :'totalCpuQuota',
|
|
80
55
|
:'current_cpu_usage' => :'currentCpuUsage',
|
|
81
56
|
:'total_memory_quota' => :'totalMemoryQuota',
|
|
@@ -108,7 +83,6 @@ module DaytonaApiClient
|
|
|
108
83
|
def self.openapi_types
|
|
109
84
|
{
|
|
110
85
|
:'region_id' => :'String',
|
|
111
|
-
:'sandbox_class' => :'SandboxClass',
|
|
112
86
|
:'total_cpu_quota' => :'Float',
|
|
113
87
|
:'current_cpu_usage' => :'Float',
|
|
114
88
|
:'total_memory_quota' => :'Float',
|
|
@@ -162,12 +136,6 @@ module DaytonaApiClient
|
|
|
162
136
|
self.region_id = nil
|
|
163
137
|
end
|
|
164
138
|
|
|
165
|
-
if attributes.key?(:'sandbox_class')
|
|
166
|
-
self.sandbox_class = attributes[:'sandbox_class']
|
|
167
|
-
else
|
|
168
|
-
self.sandbox_class = nil
|
|
169
|
-
end
|
|
170
|
-
|
|
171
139
|
if attributes.key?(:'total_cpu_quota')
|
|
172
140
|
self.total_cpu_quota = attributes[:'total_cpu_quota']
|
|
173
141
|
else
|
|
@@ -268,10 +236,6 @@ module DaytonaApiClient
|
|
|
268
236
|
invalid_properties.push('invalid value for "region_id", region_id cannot be nil.')
|
|
269
237
|
end
|
|
270
238
|
|
|
271
|
-
if @sandbox_class.nil?
|
|
272
|
-
invalid_properties.push('invalid value for "sandbox_class", sandbox_class cannot be nil.')
|
|
273
|
-
end
|
|
274
|
-
|
|
275
239
|
if @total_cpu_quota.nil?
|
|
276
240
|
invalid_properties.push('invalid value for "total_cpu_quota", total_cpu_quota cannot be nil.')
|
|
277
241
|
end
|
|
@@ -312,7 +276,6 @@ module DaytonaApiClient
|
|
|
312
276
|
def valid?
|
|
313
277
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
314
278
|
return false if @region_id.nil?
|
|
315
|
-
return false if @sandbox_class.nil?
|
|
316
279
|
return false if @total_cpu_quota.nil?
|
|
317
280
|
return false if @current_cpu_usage.nil?
|
|
318
281
|
return false if @total_memory_quota.nil?
|
|
@@ -334,16 +297,6 @@ module DaytonaApiClient
|
|
|
334
297
|
@region_id = region_id
|
|
335
298
|
end
|
|
336
299
|
|
|
337
|
-
# Custom attribute writer method with validation
|
|
338
|
-
# @param [Object] sandbox_class Value to be assigned
|
|
339
|
-
def sandbox_class=(sandbox_class)
|
|
340
|
-
if sandbox_class.nil?
|
|
341
|
-
fail ArgumentError, 'sandbox_class cannot be nil'
|
|
342
|
-
end
|
|
343
|
-
|
|
344
|
-
@sandbox_class = sandbox_class
|
|
345
|
-
end
|
|
346
|
-
|
|
347
300
|
# Custom attribute writer method with validation
|
|
348
301
|
# @param [Object] total_cpu_quota Value to be assigned
|
|
349
302
|
def total_cpu_quota=(total_cpu_quota)
|
|
@@ -430,7 +383,6 @@ module DaytonaApiClient
|
|
|
430
383
|
return true if self.equal?(o)
|
|
431
384
|
self.class == o.class &&
|
|
432
385
|
region_id == o.region_id &&
|
|
433
|
-
sandbox_class == o.sandbox_class &&
|
|
434
386
|
total_cpu_quota == o.total_cpu_quota &&
|
|
435
387
|
current_cpu_usage == o.current_cpu_usage &&
|
|
436
388
|
total_memory_quota == o.total_memory_quota &&
|
|
@@ -457,7 +409,7 @@ module DaytonaApiClient
|
|
|
457
409
|
# Calculates hash code according to all attributes.
|
|
458
410
|
# @return [Integer] Hash code
|
|
459
411
|
def hash
|
|
460
|
-
[region_id,
|
|
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
|
|
461
413
|
end
|
|
462
414
|
|
|
463
415
|
# Builds the object from hash
|
|
@@ -42,8 +42,8 @@ module DaytonaApiClient
|
|
|
42
42
|
# The type of GPU
|
|
43
43
|
attr_accessor :gpu_type
|
|
44
44
|
|
|
45
|
-
# The
|
|
46
|
-
attr_accessor :
|
|
45
|
+
# The class of the runner
|
|
46
|
+
attr_accessor :_class
|
|
47
47
|
|
|
48
48
|
# Current CPU usage percentage
|
|
49
49
|
attr_accessor :current_cpu_usage_percentage
|
|
@@ -142,7 +142,7 @@ module DaytonaApiClient
|
|
|
142
142
|
:'disk' => :'disk',
|
|
143
143
|
:'gpu' => :'gpu',
|
|
144
144
|
:'gpu_type' => :'gpuType',
|
|
145
|
-
:'
|
|
145
|
+
:'_class' => :'class',
|
|
146
146
|
:'current_cpu_usage_percentage' => :'currentCpuUsagePercentage',
|
|
147
147
|
:'current_memory_usage_percentage' => :'currentMemoryUsagePercentage',
|
|
148
148
|
:'current_disk_usage_percentage' => :'currentDiskUsagePercentage',
|
|
@@ -189,7 +189,7 @@ module DaytonaApiClient
|
|
|
189
189
|
:'disk' => :'Float',
|
|
190
190
|
:'gpu' => :'Float',
|
|
191
191
|
:'gpu_type' => :'String',
|
|
192
|
-
:'
|
|
192
|
+
:'_class' => :'SandboxClass',
|
|
193
193
|
:'current_cpu_usage_percentage' => :'Float',
|
|
194
194
|
:'current_memory_usage_percentage' => :'Float',
|
|
195
195
|
:'current_disk_usage_percentage' => :'Float',
|
|
@@ -280,8 +280,10 @@ module DaytonaApiClient
|
|
|
280
280
|
self.gpu_type = attributes[:'gpu_type']
|
|
281
281
|
end
|
|
282
282
|
|
|
283
|
-
if attributes.key?(:'
|
|
284
|
-
self.
|
|
283
|
+
if attributes.key?(:'_class')
|
|
284
|
+
self._class = attributes[:'_class']
|
|
285
|
+
else
|
|
286
|
+
self._class = nil
|
|
285
287
|
end
|
|
286
288
|
|
|
287
289
|
if attributes.key?(:'current_cpu_usage_percentage')
|
|
@@ -412,6 +414,10 @@ module DaytonaApiClient
|
|
|
412
414
|
invalid_properties.push('invalid value for "disk", disk cannot be nil.')
|
|
413
415
|
end
|
|
414
416
|
|
|
417
|
+
if @_class.nil?
|
|
418
|
+
invalid_properties.push('invalid value for "_class", _class cannot be nil.')
|
|
419
|
+
end
|
|
420
|
+
|
|
415
421
|
if @region.nil?
|
|
416
422
|
invalid_properties.push('invalid value for "region", region cannot be nil.')
|
|
417
423
|
end
|
|
@@ -463,6 +469,7 @@ module DaytonaApiClient
|
|
|
463
469
|
return false if @cpu.nil?
|
|
464
470
|
return false if @memory.nil?
|
|
465
471
|
return false if @disk.nil?
|
|
472
|
+
return false if @_class.nil?
|
|
466
473
|
return false if @region.nil?
|
|
467
474
|
return false if @name.nil?
|
|
468
475
|
return false if @state.nil?
|
|
@@ -516,6 +523,16 @@ module DaytonaApiClient
|
|
|
516
523
|
@disk = disk
|
|
517
524
|
end
|
|
518
525
|
|
|
526
|
+
# Custom attribute writer method with validation
|
|
527
|
+
# @param [Object] _class Value to be assigned
|
|
528
|
+
def _class=(_class)
|
|
529
|
+
if _class.nil?
|
|
530
|
+
fail ArgumentError, '_class cannot be nil'
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
@_class = _class
|
|
534
|
+
end
|
|
535
|
+
|
|
519
536
|
# Custom attribute writer method with validation
|
|
520
537
|
# @param [Object] region Value to be assigned
|
|
521
538
|
def region=(region)
|
|
@@ -630,7 +647,7 @@ module DaytonaApiClient
|
|
|
630
647
|
disk == o.disk &&
|
|
631
648
|
gpu == o.gpu &&
|
|
632
649
|
gpu_type == o.gpu_type &&
|
|
633
|
-
|
|
650
|
+
_class == o._class &&
|
|
634
651
|
current_cpu_usage_percentage == o.current_cpu_usage_percentage &&
|
|
635
652
|
current_memory_usage_percentage == o.current_memory_usage_percentage &&
|
|
636
653
|
current_disk_usage_percentage == o.current_disk_usage_percentage &&
|
|
@@ -663,7 +680,7 @@ module DaytonaApiClient
|
|
|
663
680
|
# Calculates hash code according to all attributes.
|
|
664
681
|
# @return [Integer] Hash code
|
|
665
682
|
def hash
|
|
666
|
-
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type,
|
|
683
|
+
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, _class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version].hash
|
|
667
684
|
end
|
|
668
685
|
|
|
669
686
|
# Builds the object from hash
|
|
@@ -42,8 +42,8 @@ module DaytonaApiClient
|
|
|
42
42
|
# The type of GPU
|
|
43
43
|
attr_accessor :gpu_type
|
|
44
44
|
|
|
45
|
-
# The
|
|
46
|
-
attr_accessor :
|
|
45
|
+
# The class of the runner
|
|
46
|
+
attr_accessor :_class
|
|
47
47
|
|
|
48
48
|
# Current CPU usage percentage
|
|
49
49
|
attr_accessor :current_cpu_usage_percentage
|
|
@@ -148,7 +148,7 @@ module DaytonaApiClient
|
|
|
148
148
|
:'disk' => :'disk',
|
|
149
149
|
:'gpu' => :'gpu',
|
|
150
150
|
:'gpu_type' => :'gpuType',
|
|
151
|
-
:'
|
|
151
|
+
:'_class' => :'class',
|
|
152
152
|
:'current_cpu_usage_percentage' => :'currentCpuUsagePercentage',
|
|
153
153
|
:'current_memory_usage_percentage' => :'currentMemoryUsagePercentage',
|
|
154
154
|
:'current_disk_usage_percentage' => :'currentDiskUsagePercentage',
|
|
@@ -197,7 +197,7 @@ module DaytonaApiClient
|
|
|
197
197
|
:'disk' => :'Float',
|
|
198
198
|
:'gpu' => :'Float',
|
|
199
199
|
:'gpu_type' => :'String',
|
|
200
|
-
:'
|
|
200
|
+
:'_class' => :'SandboxClass',
|
|
201
201
|
:'current_cpu_usage_percentage' => :'Float',
|
|
202
202
|
:'current_memory_usage_percentage' => :'Float',
|
|
203
203
|
:'current_disk_usage_percentage' => :'Float',
|
|
@@ -290,8 +290,10 @@ module DaytonaApiClient
|
|
|
290
290
|
self.gpu_type = attributes[:'gpu_type']
|
|
291
291
|
end
|
|
292
292
|
|
|
293
|
-
if attributes.key?(:'
|
|
294
|
-
self.
|
|
293
|
+
if attributes.key?(:'_class')
|
|
294
|
+
self._class = attributes[:'_class']
|
|
295
|
+
else
|
|
296
|
+
self._class = nil
|
|
295
297
|
end
|
|
296
298
|
|
|
297
299
|
if attributes.key?(:'current_cpu_usage_percentage')
|
|
@@ -432,6 +434,10 @@ module DaytonaApiClient
|
|
|
432
434
|
invalid_properties.push('invalid value for "disk", disk cannot be nil.')
|
|
433
435
|
end
|
|
434
436
|
|
|
437
|
+
if @_class.nil?
|
|
438
|
+
invalid_properties.push('invalid value for "_class", _class cannot be nil.')
|
|
439
|
+
end
|
|
440
|
+
|
|
435
441
|
if @region.nil?
|
|
436
442
|
invalid_properties.push('invalid value for "region", region cannot be nil.')
|
|
437
443
|
end
|
|
@@ -487,6 +493,7 @@ module DaytonaApiClient
|
|
|
487
493
|
return false if @cpu.nil?
|
|
488
494
|
return false if @memory.nil?
|
|
489
495
|
return false if @disk.nil?
|
|
496
|
+
return false if @_class.nil?
|
|
490
497
|
return false if @region.nil?
|
|
491
498
|
return false if @name.nil?
|
|
492
499
|
return false if @state.nil?
|
|
@@ -541,6 +548,16 @@ module DaytonaApiClient
|
|
|
541
548
|
@disk = disk
|
|
542
549
|
end
|
|
543
550
|
|
|
551
|
+
# Custom attribute writer method with validation
|
|
552
|
+
# @param [Object] _class Value to be assigned
|
|
553
|
+
def _class=(_class)
|
|
554
|
+
if _class.nil?
|
|
555
|
+
fail ArgumentError, '_class cannot be nil'
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
@_class = _class
|
|
559
|
+
end
|
|
560
|
+
|
|
544
561
|
# Custom attribute writer method with validation
|
|
545
562
|
# @param [Object] region Value to be assigned
|
|
546
563
|
def region=(region)
|
|
@@ -665,7 +682,7 @@ module DaytonaApiClient
|
|
|
665
682
|
disk == o.disk &&
|
|
666
683
|
gpu == o.gpu &&
|
|
667
684
|
gpu_type == o.gpu_type &&
|
|
668
|
-
|
|
685
|
+
_class == o._class &&
|
|
669
686
|
current_cpu_usage_percentage == o.current_cpu_usage_percentage &&
|
|
670
687
|
current_memory_usage_percentage == o.current_memory_usage_percentage &&
|
|
671
688
|
current_disk_usage_percentage == o.current_disk_usage_percentage &&
|
|
@@ -700,7 +717,7 @@ module DaytonaApiClient
|
|
|
700
717
|
# Calculates hash code according to all attributes.
|
|
701
718
|
# @return [Integer] Hash code
|
|
702
719
|
def hash
|
|
703
|
-
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type,
|
|
720
|
+
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, _class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version, api_key, region_type].hash
|
|
704
721
|
end
|
|
705
722
|
|
|
706
723
|
# Builds the object from hash
|
|
@@ -103,7 +103,7 @@ module DaytonaApiClient
|
|
|
103
103
|
attr_accessor :last_activity_at
|
|
104
104
|
|
|
105
105
|
# The class of the sandbox
|
|
106
|
-
attr_accessor :
|
|
106
|
+
attr_accessor :_class
|
|
107
107
|
|
|
108
108
|
# The version of the daemon running in the sandbox
|
|
109
109
|
attr_accessor :daemon_version
|
|
@@ -111,9 +111,6 @@ module DaytonaApiClient
|
|
|
111
111
|
# The runner ID of the sandbox
|
|
112
112
|
attr_accessor :runner_id
|
|
113
113
|
|
|
114
|
-
# ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox.
|
|
115
|
-
attr_accessor :linked_sandbox_id
|
|
116
|
-
|
|
117
114
|
# The toolbox proxy URL for the sandbox
|
|
118
115
|
attr_accessor :toolbox_proxy_url
|
|
119
116
|
|
|
@@ -171,10 +168,9 @@ module DaytonaApiClient
|
|
|
171
168
|
:'created_at' => :'createdAt',
|
|
172
169
|
:'updated_at' => :'updatedAt',
|
|
173
170
|
:'last_activity_at' => :'lastActivityAt',
|
|
174
|
-
:'
|
|
171
|
+
:'_class' => :'class',
|
|
175
172
|
:'daemon_version' => :'daemonVersion',
|
|
176
173
|
:'runner_id' => :'runnerId',
|
|
177
|
-
:'linked_sandbox_id' => :'linkedSandboxId',
|
|
178
174
|
:'toolbox_proxy_url' => :'toolboxProxyUrl'
|
|
179
175
|
}
|
|
180
176
|
end
|
|
@@ -221,10 +217,9 @@ module DaytonaApiClient
|
|
|
221
217
|
:'created_at' => :'String',
|
|
222
218
|
:'updated_at' => :'String',
|
|
223
219
|
:'last_activity_at' => :'String',
|
|
224
|
-
:'
|
|
220
|
+
:'_class' => :'String',
|
|
225
221
|
:'daemon_version' => :'String',
|
|
226
222
|
:'runner_id' => :'String',
|
|
227
|
-
:'linked_sandbox_id' => :'String',
|
|
228
223
|
:'toolbox_proxy_url' => :'String'
|
|
229
224
|
}
|
|
230
225
|
end
|
|
@@ -399,8 +394,8 @@ module DaytonaApiClient
|
|
|
399
394
|
self.last_activity_at = attributes[:'last_activity_at']
|
|
400
395
|
end
|
|
401
396
|
|
|
402
|
-
if attributes.key?(:'
|
|
403
|
-
self.
|
|
397
|
+
if attributes.key?(:'_class')
|
|
398
|
+
self._class = attributes[:'_class']
|
|
404
399
|
end
|
|
405
400
|
|
|
406
401
|
if attributes.key?(:'daemon_version')
|
|
@@ -411,10 +406,6 @@ module DaytonaApiClient
|
|
|
411
406
|
self.runner_id = attributes[:'runner_id']
|
|
412
407
|
end
|
|
413
408
|
|
|
414
|
-
if attributes.key?(:'linked_sandbox_id')
|
|
415
|
-
self.linked_sandbox_id = attributes[:'linked_sandbox_id']
|
|
416
|
-
end
|
|
417
|
-
|
|
418
409
|
if attributes.key?(:'toolbox_proxy_url')
|
|
419
410
|
self.toolbox_proxy_url = attributes[:'toolbox_proxy_url']
|
|
420
411
|
else
|
|
@@ -505,8 +496,8 @@ module DaytonaApiClient
|
|
|
505
496
|
return false if @disk.nil?
|
|
506
497
|
backup_state_validator = EnumAttributeValidator.new('String', ["None", "Pending", "InProgress", "Completed", "Error", "unknown_default_open_api"])
|
|
507
498
|
return false unless backup_state_validator.valid?(@backup_state)
|
|
508
|
-
|
|
509
|
-
return false unless
|
|
499
|
+
_class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
|
|
500
|
+
return false unless _class_validator.valid?(@_class)
|
|
510
501
|
return false if @toolbox_proxy_url.nil?
|
|
511
502
|
true
|
|
512
503
|
end
|
|
@@ -652,13 +643,13 @@ module DaytonaApiClient
|
|
|
652
643
|
end
|
|
653
644
|
|
|
654
645
|
# Custom attribute writer method checking allowed values (enum).
|
|
655
|
-
# @param [Object]
|
|
656
|
-
def
|
|
657
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
658
|
-
unless validator.valid?(
|
|
659
|
-
fail ArgumentError, "invalid value for \"
|
|
646
|
+
# @param [Object] _class Object to be assigned
|
|
647
|
+
def _class=(_class)
|
|
648
|
+
validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
|
|
649
|
+
unless validator.valid?(_class)
|
|
650
|
+
fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
|
|
660
651
|
end
|
|
661
|
-
@
|
|
652
|
+
@_class = _class
|
|
662
653
|
end
|
|
663
654
|
|
|
664
655
|
# Custom attribute writer method with validation
|
|
@@ -705,10 +696,9 @@ module DaytonaApiClient
|
|
|
705
696
|
created_at == o.created_at &&
|
|
706
697
|
updated_at == o.updated_at &&
|
|
707
698
|
last_activity_at == o.last_activity_at &&
|
|
708
|
-
|
|
699
|
+
_class == o._class &&
|
|
709
700
|
daemon_version == o.daemon_version &&
|
|
710
701
|
runner_id == o.runner_id &&
|
|
711
|
-
linked_sandbox_id == o.linked_sandbox_id &&
|
|
712
702
|
toolbox_proxy_url == o.toolbox_proxy_url
|
|
713
703
|
end
|
|
714
704
|
|
|
@@ -721,7 +711,7 @@ module DaytonaApiClient
|
|
|
721
711
|
# Calculates hash code according to all attributes.
|
|
722
712
|
# @return [Integer] Hash code
|
|
723
713
|
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,
|
|
714
|
+
[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, _class, daemon_version, runner_id, toolbox_proxy_url].hash
|
|
725
715
|
end
|
|
726
716
|
|
|
727
717
|
# Builds the object from hash
|
|
@@ -15,13 +15,13 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class SandboxClass
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
SMALL = "small".freeze
|
|
19
|
+
MEDIUM = "medium".freeze
|
|
20
|
+
LARGE = "large".freeze
|
|
21
21
|
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
22
22
|
|
|
23
23
|
def self.all_vars
|
|
24
|
-
@all_vars ||= [
|
|
24
|
+
@all_vars ||= [SMALL, MEDIUM, LARGE, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
# Builds the enum from string
|
|
@@ -415,7 +415,7 @@ module DaytonaApiClient
|
|
|
415
415
|
return false if @organization_id.nil?
|
|
416
416
|
return false if @name.nil?
|
|
417
417
|
return false if @target.nil?
|
|
418
|
-
sandbox_class_validator = EnumAttributeValidator.new('String', ["
|
|
418
|
+
sandbox_class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
|
|
419
419
|
return false unless sandbox_class_validator.valid?(@sandbox_class)
|
|
420
420
|
return false if @user.nil?
|
|
421
421
|
return false if @public.nil?
|
|
@@ -473,7 +473,7 @@ module DaytonaApiClient
|
|
|
473
473
|
# Custom attribute writer method checking allowed values (enum).
|
|
474
474
|
# @param [Object] sandbox_class Object to be assigned
|
|
475
475
|
def sandbox_class=(sandbox_class)
|
|
476
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
476
|
+
validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
|
|
477
477
|
unless validator.valid?(sandbox_class)
|
|
478
478
|
fail ArgumentError, "invalid value for \"sandbox_class\", must be one of #{validator.allowable_values}."
|
|
479
479
|
end
|
|
@@ -59,9 +59,6 @@ module DaytonaApiClient
|
|
|
59
59
|
# The snapshot reference
|
|
60
60
|
attr_accessor :ref
|
|
61
61
|
|
|
62
|
-
# The sandbox class of the snapshot
|
|
63
|
-
attr_accessor :sandbox_class
|
|
64
|
-
|
|
65
62
|
class EnumAttributeValidator
|
|
66
63
|
attr_reader :datatype
|
|
67
64
|
attr_reader :allowable_values
|
|
@@ -106,8 +103,7 @@ module DaytonaApiClient
|
|
|
106
103
|
:'build_info' => :'buildInfo',
|
|
107
104
|
:'region_ids' => :'regionIds',
|
|
108
105
|
:'initial_runner_id' => :'initialRunnerId',
|
|
109
|
-
:'ref' => :'ref'
|
|
110
|
-
:'sandbox_class' => :'sandboxClass'
|
|
106
|
+
:'ref' => :'ref'
|
|
111
107
|
}
|
|
112
108
|
end
|
|
113
109
|
|
|
@@ -143,8 +139,7 @@ module DaytonaApiClient
|
|
|
143
139
|
:'build_info' => :'BuildInfo',
|
|
144
140
|
:'region_ids' => :'Array<String>',
|
|
145
141
|
:'initial_runner_id' => :'String',
|
|
146
|
-
:'ref' => :'String'
|
|
147
|
-
:'sandbox_class' => :'String'
|
|
142
|
+
:'ref' => :'String'
|
|
148
143
|
}
|
|
149
144
|
end
|
|
150
145
|
|
|
@@ -285,10 +280,6 @@ module DaytonaApiClient
|
|
|
285
280
|
if attributes.key?(:'ref')
|
|
286
281
|
self.ref = attributes[:'ref']
|
|
287
282
|
end
|
|
288
|
-
|
|
289
|
-
if attributes.key?(:'sandbox_class')
|
|
290
|
-
self.sandbox_class = attributes[:'sandbox_class']
|
|
291
|
-
end
|
|
292
283
|
end
|
|
293
284
|
|
|
294
285
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -353,8 +344,6 @@ module DaytonaApiClient
|
|
|
353
344
|
return false if @disk.nil?
|
|
354
345
|
return false if @created_at.nil?
|
|
355
346
|
return false if @updated_at.nil?
|
|
356
|
-
sandbox_class_validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "unknown_default_open_api"])
|
|
357
|
-
return false unless sandbox_class_validator.valid?(@sandbox_class)
|
|
358
347
|
true
|
|
359
348
|
end
|
|
360
349
|
|
|
@@ -458,16 +447,6 @@ module DaytonaApiClient
|
|
|
458
447
|
@updated_at = updated_at
|
|
459
448
|
end
|
|
460
449
|
|
|
461
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
462
|
-
# @param [Object] sandbox_class Object to be assigned
|
|
463
|
-
def sandbox_class=(sandbox_class)
|
|
464
|
-
validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "unknown_default_open_api"])
|
|
465
|
-
unless validator.valid?(sandbox_class)
|
|
466
|
-
fail ArgumentError, "invalid value for \"sandbox_class\", must be one of #{validator.allowable_values}."
|
|
467
|
-
end
|
|
468
|
-
@sandbox_class = sandbox_class
|
|
469
|
-
end
|
|
470
|
-
|
|
471
450
|
# Checks equality by comparing each attribute.
|
|
472
451
|
# @param [Object] Object to be compared
|
|
473
452
|
def ==(o)
|
|
@@ -492,8 +471,7 @@ module DaytonaApiClient
|
|
|
492
471
|
build_info == o.build_info &&
|
|
493
472
|
region_ids == o.region_ids &&
|
|
494
473
|
initial_runner_id == o.initial_runner_id &&
|
|
495
|
-
ref == o.ref
|
|
496
|
-
sandbox_class == o.sandbox_class
|
|
474
|
+
ref == o.ref
|
|
497
475
|
end
|
|
498
476
|
|
|
499
477
|
# @see the `==` method
|
|
@@ -505,7 +483,7 @@ module DaytonaApiClient
|
|
|
505
483
|
# Calculates hash code according to all attributes.
|
|
506
484
|
# @return [Integer] Hash code
|
|
507
485
|
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
|
|
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
|
|
509
487
|
end
|
|
510
488
|
|
|
511
489
|
# Builds the object from hash
|