daytona_api_client 0.176.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/admin_create_runner.rb +13 -1
- data/lib/daytona_api_client/models/create_runner.rb +16 -4
- 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/runner.rb +30 -1
- data/lib/daytona_api_client/models/runner_full.rb +30 -1
- 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
|
@@ -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
|