daytona_api_client 0.176.0 → 0.178.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/lib/daytona_api_client/models/admin_create_runner.rb +13 -1
- data/lib/daytona_api_client/models/create_runner.rb +16 -4
- data/lib/daytona_api_client/models/runner.rb +30 -1
- data/lib/daytona_api_client/models/runner_full.rb +30 -1
- data/lib/daytona_api_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d453968886787547d181289bf36b4b8c2543ba8e5e2495e51eeb553b076b1d50
|
|
4
|
+
data.tar.gz: 17108779d0da978929325c32661647cbc557cf373397d473a88cf19960ad44fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d78064a878d71cba6dbf83a1b42d46bd5727e45de230ff0eba80da5eb20b8621f2013e9d5affb604ef43074aa891004c48383ec2305a3aa8652dbae2b43f5937
|
|
7
|
+
data.tar.gz: 7c06bcc123fd910ff10a035a09fc98cd55c9b6987b60bdaa5fe3cfc7e66a9d0c3e2399a6a55a38bb11cc834ed993e07b8effd97ce9f350d46bf25a310d823214
|
|
@@ -19,6 +19,9 @@ module DaytonaApiClient
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :name
|
|
21
21
|
|
|
22
|
+
# Tags to associate with the runner
|
|
23
|
+
attr_accessor :tags
|
|
24
|
+
|
|
22
25
|
attr_accessor :api_key
|
|
23
26
|
|
|
24
27
|
# The api version of the runner to create
|
|
@@ -47,6 +50,7 @@ module DaytonaApiClient
|
|
|
47
50
|
{
|
|
48
51
|
:'region_id' => :'regionId',
|
|
49
52
|
:'name' => :'name',
|
|
53
|
+
:'tags' => :'tags',
|
|
50
54
|
:'api_key' => :'apiKey',
|
|
51
55
|
:'api_version' => :'apiVersion',
|
|
52
56
|
:'domain' => :'domain',
|
|
@@ -73,6 +77,7 @@ module DaytonaApiClient
|
|
|
73
77
|
{
|
|
74
78
|
:'region_id' => :'String',
|
|
75
79
|
:'name' => :'String',
|
|
80
|
+
:'tags' => :'Array<String>',
|
|
76
81
|
:'api_key' => :'String',
|
|
77
82
|
:'api_version' => :'String',
|
|
78
83
|
:'domain' => :'String',
|
|
@@ -118,6 +123,12 @@ module DaytonaApiClient
|
|
|
118
123
|
self.name = nil
|
|
119
124
|
end
|
|
120
125
|
|
|
126
|
+
if attributes.key?(:'tags')
|
|
127
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
128
|
+
self.tags = value
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
121
132
|
if attributes.key?(:'api_key')
|
|
122
133
|
self.api_key = attributes[:'api_key']
|
|
123
134
|
else
|
|
@@ -248,6 +259,7 @@ module DaytonaApiClient
|
|
|
248
259
|
self.class == o.class &&
|
|
249
260
|
region_id == o.region_id &&
|
|
250
261
|
name == o.name &&
|
|
262
|
+
tags == o.tags &&
|
|
251
263
|
api_key == o.api_key &&
|
|
252
264
|
api_version == o.api_version &&
|
|
253
265
|
domain == o.domain &&
|
|
@@ -267,7 +279,7 @@ module DaytonaApiClient
|
|
|
267
279
|
# Calculates hash code according to all attributes.
|
|
268
280
|
# @return [Integer] Hash code
|
|
269
281
|
def hash
|
|
270
|
-
[region_id, name, api_key, api_version, domain, api_url, proxy_url, cpu, memory_gi_b, disk_gi_b].hash
|
|
282
|
+
[region_id, name, tags, api_key, api_version, domain, api_url, proxy_url, cpu, memory_gi_b, disk_gi_b].hash
|
|
271
283
|
end
|
|
272
284
|
|
|
273
285
|
# Builds the object from hash
|
|
@@ -19,11 +19,15 @@ module DaytonaApiClient
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :name
|
|
21
21
|
|
|
22
|
+
# Tags to associate with the runner
|
|
23
|
+
attr_accessor :tags
|
|
24
|
+
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
26
|
def self.attribute_map
|
|
24
27
|
{
|
|
25
28
|
:'region_id' => :'regionId',
|
|
26
|
-
:'name' => :'name'
|
|
29
|
+
:'name' => :'name',
|
|
30
|
+
:'tags' => :'tags'
|
|
27
31
|
}
|
|
28
32
|
end
|
|
29
33
|
|
|
@@ -41,7 +45,8 @@ module DaytonaApiClient
|
|
|
41
45
|
def self.openapi_types
|
|
42
46
|
{
|
|
43
47
|
:'region_id' => :'String',
|
|
44
|
-
:'name' => :'String'
|
|
48
|
+
:'name' => :'String',
|
|
49
|
+
:'tags' => :'Array<String>'
|
|
45
50
|
}
|
|
46
51
|
end
|
|
47
52
|
|
|
@@ -78,6 +83,12 @@ module DaytonaApiClient
|
|
|
78
83
|
else
|
|
79
84
|
self.name = nil
|
|
80
85
|
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'tags')
|
|
88
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
89
|
+
self.tags = value
|
|
90
|
+
end
|
|
91
|
+
end
|
|
81
92
|
end
|
|
82
93
|
|
|
83
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -131,7 +142,8 @@ module DaytonaApiClient
|
|
|
131
142
|
return true if self.equal?(o)
|
|
132
143
|
self.class == o.class &&
|
|
133
144
|
region_id == o.region_id &&
|
|
134
|
-
name == o.name
|
|
145
|
+
name == o.name &&
|
|
146
|
+
tags == o.tags
|
|
135
147
|
end
|
|
136
148
|
|
|
137
149
|
# @see the `==` method
|
|
@@ -143,7 +155,7 @@ module DaytonaApiClient
|
|
|
143
155
|
# Calculates hash code according to all attributes.
|
|
144
156
|
# @return [Integer] Hash code
|
|
145
157
|
def hash
|
|
146
|
-
[region_id, name].hash
|
|
158
|
+
[region_id, name, tags].hash
|
|
147
159
|
end
|
|
148
160
|
|
|
149
161
|
# Builds the object from hash
|
|
@@ -87,6 +87,9 @@ module DaytonaApiClient
|
|
|
87
87
|
# Whether the runner is unschedulable
|
|
88
88
|
attr_accessor :unschedulable
|
|
89
89
|
|
|
90
|
+
# Tags associated with the runner
|
|
91
|
+
attr_accessor :tags
|
|
92
|
+
|
|
90
93
|
# The creation timestamp of the runner
|
|
91
94
|
attr_accessor :created_at
|
|
92
95
|
|
|
@@ -154,6 +157,7 @@ module DaytonaApiClient
|
|
|
154
157
|
:'state' => :'state',
|
|
155
158
|
:'last_checked' => :'lastChecked',
|
|
156
159
|
:'unschedulable' => :'unschedulable',
|
|
160
|
+
:'tags' => :'tags',
|
|
157
161
|
:'created_at' => :'createdAt',
|
|
158
162
|
:'updated_at' => :'updatedAt',
|
|
159
163
|
:'version' => :'version',
|
|
@@ -200,6 +204,7 @@ module DaytonaApiClient
|
|
|
200
204
|
:'state' => :'RunnerState',
|
|
201
205
|
:'last_checked' => :'String',
|
|
202
206
|
:'unschedulable' => :'Boolean',
|
|
207
|
+
:'tags' => :'Array<String>',
|
|
203
208
|
:'created_at' => :'String',
|
|
204
209
|
:'updated_at' => :'String',
|
|
205
210
|
:'version' => :'String',
|
|
@@ -345,6 +350,14 @@ module DaytonaApiClient
|
|
|
345
350
|
self.unschedulable = nil
|
|
346
351
|
end
|
|
347
352
|
|
|
353
|
+
if attributes.key?(:'tags')
|
|
354
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
355
|
+
self.tags = value
|
|
356
|
+
end
|
|
357
|
+
else
|
|
358
|
+
self.tags = nil
|
|
359
|
+
end
|
|
360
|
+
|
|
348
361
|
if attributes.key?(:'created_at')
|
|
349
362
|
self.created_at = attributes[:'created_at']
|
|
350
363
|
else
|
|
@@ -421,6 +434,10 @@ module DaytonaApiClient
|
|
|
421
434
|
invalid_properties.push('invalid value for "unschedulable", unschedulable cannot be nil.')
|
|
422
435
|
end
|
|
423
436
|
|
|
437
|
+
if @tags.nil?
|
|
438
|
+
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
|
439
|
+
end
|
|
440
|
+
|
|
424
441
|
if @created_at.nil?
|
|
425
442
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
426
443
|
end
|
|
@@ -457,6 +474,7 @@ module DaytonaApiClient
|
|
|
457
474
|
return false if @name.nil?
|
|
458
475
|
return false if @state.nil?
|
|
459
476
|
return false if @unschedulable.nil?
|
|
477
|
+
return false if @tags.nil?
|
|
460
478
|
return false if @created_at.nil?
|
|
461
479
|
return false if @updated_at.nil?
|
|
462
480
|
return false if @version.nil?
|
|
@@ -555,6 +573,16 @@ module DaytonaApiClient
|
|
|
555
573
|
@unschedulable = unschedulable
|
|
556
574
|
end
|
|
557
575
|
|
|
576
|
+
# Custom attribute writer method with validation
|
|
577
|
+
# @param [Object] tags Value to be assigned
|
|
578
|
+
def tags=(tags)
|
|
579
|
+
if tags.nil?
|
|
580
|
+
fail ArgumentError, 'tags cannot be nil'
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
@tags = tags
|
|
584
|
+
end
|
|
585
|
+
|
|
558
586
|
# Custom attribute writer method with validation
|
|
559
587
|
# @param [Object] created_at Value to be assigned
|
|
560
588
|
def created_at=(created_at)
|
|
@@ -634,6 +662,7 @@ module DaytonaApiClient
|
|
|
634
662
|
state == o.state &&
|
|
635
663
|
last_checked == o.last_checked &&
|
|
636
664
|
unschedulable == o.unschedulable &&
|
|
665
|
+
tags == o.tags &&
|
|
637
666
|
created_at == o.created_at &&
|
|
638
667
|
updated_at == o.updated_at &&
|
|
639
668
|
version == o.version &&
|
|
@@ -651,7 +680,7 @@ module DaytonaApiClient
|
|
|
651
680
|
# Calculates hash code according to all attributes.
|
|
652
681
|
# @return [Integer] Hash code
|
|
653
682
|
def hash
|
|
654
|
-
[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, created_at, updated_at, version, api_version, runner_class, app_version].hash
|
|
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
|
|
655
684
|
end
|
|
656
685
|
|
|
657
686
|
# Builds the object from hash
|
|
@@ -87,6 +87,9 @@ module DaytonaApiClient
|
|
|
87
87
|
# Whether the runner is unschedulable
|
|
88
88
|
attr_accessor :unschedulable
|
|
89
89
|
|
|
90
|
+
# Tags associated with the runner
|
|
91
|
+
attr_accessor :tags
|
|
92
|
+
|
|
90
93
|
# The creation timestamp of the runner
|
|
91
94
|
attr_accessor :created_at
|
|
92
95
|
|
|
@@ -160,6 +163,7 @@ module DaytonaApiClient
|
|
|
160
163
|
:'state' => :'state',
|
|
161
164
|
:'last_checked' => :'lastChecked',
|
|
162
165
|
:'unschedulable' => :'unschedulable',
|
|
166
|
+
:'tags' => :'tags',
|
|
163
167
|
:'created_at' => :'createdAt',
|
|
164
168
|
:'updated_at' => :'updatedAt',
|
|
165
169
|
:'version' => :'version',
|
|
@@ -208,6 +212,7 @@ module DaytonaApiClient
|
|
|
208
212
|
:'state' => :'RunnerState',
|
|
209
213
|
:'last_checked' => :'String',
|
|
210
214
|
:'unschedulable' => :'Boolean',
|
|
215
|
+
:'tags' => :'Array<String>',
|
|
211
216
|
:'created_at' => :'String',
|
|
212
217
|
:'updated_at' => :'String',
|
|
213
218
|
:'version' => :'String',
|
|
@@ -355,6 +360,14 @@ module DaytonaApiClient
|
|
|
355
360
|
self.unschedulable = nil
|
|
356
361
|
end
|
|
357
362
|
|
|
363
|
+
if attributes.key?(:'tags')
|
|
364
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
365
|
+
self.tags = value
|
|
366
|
+
end
|
|
367
|
+
else
|
|
368
|
+
self.tags = nil
|
|
369
|
+
end
|
|
370
|
+
|
|
358
371
|
if attributes.key?(:'created_at')
|
|
359
372
|
self.created_at = attributes[:'created_at']
|
|
360
373
|
else
|
|
@@ -441,6 +454,10 @@ module DaytonaApiClient
|
|
|
441
454
|
invalid_properties.push('invalid value for "unschedulable", unschedulable cannot be nil.')
|
|
442
455
|
end
|
|
443
456
|
|
|
457
|
+
if @tags.nil?
|
|
458
|
+
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
|
459
|
+
end
|
|
460
|
+
|
|
444
461
|
if @created_at.nil?
|
|
445
462
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
446
463
|
end
|
|
@@ -481,6 +498,7 @@ module DaytonaApiClient
|
|
|
481
498
|
return false if @name.nil?
|
|
482
499
|
return false if @state.nil?
|
|
483
500
|
return false if @unschedulable.nil?
|
|
501
|
+
return false if @tags.nil?
|
|
484
502
|
return false if @created_at.nil?
|
|
485
503
|
return false if @updated_at.nil?
|
|
486
504
|
return false if @version.nil?
|
|
@@ -580,6 +598,16 @@ module DaytonaApiClient
|
|
|
580
598
|
@unschedulable = unschedulable
|
|
581
599
|
end
|
|
582
600
|
|
|
601
|
+
# Custom attribute writer method with validation
|
|
602
|
+
# @param [Object] tags Value to be assigned
|
|
603
|
+
def tags=(tags)
|
|
604
|
+
if tags.nil?
|
|
605
|
+
fail ArgumentError, 'tags cannot be nil'
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
@tags = tags
|
|
609
|
+
end
|
|
610
|
+
|
|
583
611
|
# Custom attribute writer method with validation
|
|
584
612
|
# @param [Object] created_at Value to be assigned
|
|
585
613
|
def created_at=(created_at)
|
|
@@ -669,6 +697,7 @@ module DaytonaApiClient
|
|
|
669
697
|
state == o.state &&
|
|
670
698
|
last_checked == o.last_checked &&
|
|
671
699
|
unschedulable == o.unschedulable &&
|
|
700
|
+
tags == o.tags &&
|
|
672
701
|
created_at == o.created_at &&
|
|
673
702
|
updated_at == o.updated_at &&
|
|
674
703
|
version == o.version &&
|
|
@@ -688,7 +717,7 @@ module DaytonaApiClient
|
|
|
688
717
|
# Calculates hash code according to all attributes.
|
|
689
718
|
# @return [Integer] Hash code
|
|
690
719
|
def hash
|
|
691
|
-
[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, created_at, updated_at, version, api_version, runner_class, app_version, api_key, region_type].hash
|
|
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
|
|
692
721
|
end
|
|
693
722
|
|
|
694
723
|
# Builds the object from hash
|