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.
@@ -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