daytona_api_client 0.180.0.alpha.1 → 0.181.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b0291744c96aa39595ecfb2d1d44804a8b5ead68bdd3a1c0bd5095472a3beff
4
- data.tar.gz: 173a6f49a2ba37611f899e49944e578b846ecb77a5a81e293010c73abbeb02ec
3
+ metadata.gz: d3d4b11ce7d5f38366bd0c126bf802d98d3f79ea0afa3dfb8ba4a982fb459a82
4
+ data.tar.gz: 8ecb222bbddac8e141f94cd4cd412b6b2f3f54d7a663b64a8a489b6e13b9d0ae
5
5
  SHA512:
6
- metadata.gz: 947019277c3d9d30f97d7d175c7259a628b345543f845f73d0ba31f649677ea519e3d841c99d216525d07ddac6b299076b3c3c03a003832404728bf7e372e33e
7
- data.tar.gz: f5a3c174bfa39fb3cb5979cef0a20fde4a7cb166309a67cd0af756c8f852979eddda01a0c7d3d6416d11ac206cdeb10dd53c15c2f51ac818dc813e2ed97580ec
6
+ metadata.gz: 70210cdfcc00819c5b0f70af73d0679bc454396a4bd907f7305d7cebebfcbdd89973cbc5d4ea0ad82f9767335879f971f15f823a6b3fbad4a12a7e7c79875de4
7
+ data.tar.gz: 04d5e589f7ad2b0a74eda6a55814a9574c079e1b0a46c1babbc5f5bcf74a7d9c81c21c0437c7c630140110aae0be163348b65c8fa14558f4f72edff2de8a018d
@@ -51,6 +51,12 @@ module DaytonaApiClient
51
51
  # Total disk space in GiB on the runner
52
52
  attr_accessor :disk_gi_b
53
53
 
54
+ # Total number of GPUs on the runner
55
+ attr_accessor :gpu
56
+
57
+ # GPU model name
58
+ attr_accessor :gpu_type
59
+
54
60
  # Attribute mapping from ruby-style variable name to JSON key.
55
61
  def self.attribute_map
56
62
  {
@@ -65,7 +71,9 @@ module DaytonaApiClient
65
71
  :'current_started_sandboxes' => :'currentStartedSandboxes',
66
72
  :'cpu' => :'cpu',
67
73
  :'memory_gi_b' => :'memoryGiB',
68
- :'disk_gi_b' => :'diskGiB'
74
+ :'disk_gi_b' => :'diskGiB',
75
+ :'gpu' => :'gpu',
76
+ :'gpu_type' => :'gpuType'
69
77
  }
70
78
  end
71
79
 
@@ -93,7 +101,9 @@ module DaytonaApiClient
93
101
  :'current_started_sandboxes' => :'Float',
94
102
  :'cpu' => :'Float',
95
103
  :'memory_gi_b' => :'Float',
96
- :'disk_gi_b' => :'Float'
104
+ :'disk_gi_b' => :'Float',
105
+ :'gpu' => :'Float',
106
+ :'gpu_type' => :'String'
97
107
  }
98
108
  end
99
109
 
@@ -190,6 +200,14 @@ module DaytonaApiClient
190
200
  else
191
201
  self.disk_gi_b = nil
192
202
  end
203
+
204
+ if attributes.key?(:'gpu')
205
+ self.gpu = attributes[:'gpu']
206
+ end
207
+
208
+ if attributes.key?(:'gpu_type')
209
+ self.gpu_type = attributes[:'gpu_type']
210
+ end
193
211
  end
194
212
 
195
213
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -403,7 +421,9 @@ module DaytonaApiClient
403
421
  current_started_sandboxes == o.current_started_sandboxes &&
404
422
  cpu == o.cpu &&
405
423
  memory_gi_b == o.memory_gi_b &&
406
- disk_gi_b == o.disk_gi_b
424
+ disk_gi_b == o.disk_gi_b &&
425
+ gpu == o.gpu &&
426
+ gpu_type == o.gpu_type
407
427
  end
408
428
 
409
429
  # @see the `==` method
@@ -415,7 +435,7 @@ module DaytonaApiClient
415
435
  # Calculates hash code according to all attributes.
416
436
  # @return [Integer] Hash code
417
437
  def hash
418
- [current_cpu_load_average, 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, cpu, memory_gi_b, disk_gi_b].hash
438
+ [current_cpu_load_average, 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, cpu, memory_gi_b, disk_gi_b, gpu, gpu_type].hash
419
439
  end
420
440
 
421
441
  # Builds the object from hash
@@ -31,7 +31,7 @@ module DaytonaApiClient
31
31
  attr_accessor :runner_id
32
32
 
33
33
  # The class of the sandbox
34
- attr_accessor :_class
34
+ attr_accessor :sandbox_class
35
35
 
36
36
  # The state of the sandbox
37
37
  attr_accessor :state
@@ -126,7 +126,7 @@ module DaytonaApiClient
126
126
  :'name' => :'name',
127
127
  :'target' => :'target',
128
128
  :'runner_id' => :'runnerId',
129
- :'_class' => :'class',
129
+ :'sandbox_class' => :'sandboxClass',
130
130
  :'state' => :'state',
131
131
  :'desired_state' => :'desiredState',
132
132
  :'snapshot' => :'snapshot',
@@ -169,7 +169,7 @@ module DaytonaApiClient
169
169
  :'name' => :'String',
170
170
  :'target' => :'String',
171
171
  :'runner_id' => :'String',
172
- :'_class' => :'String',
172
+ :'sandbox_class' => :'String',
173
173
  :'state' => :'SandboxState',
174
174
  :'desired_state' => :'SandboxDesiredState',
175
175
  :'snapshot' => :'String',
@@ -244,8 +244,8 @@ module DaytonaApiClient
244
244
  self.runner_id = attributes[:'runner_id']
245
245
  end
246
246
 
247
- if attributes.key?(:'_class')
248
- self._class = attributes[:'_class']
247
+ if attributes.key?(:'sandbox_class')
248
+ self.sandbox_class = attributes[:'sandbox_class']
249
249
  end
250
250
 
251
251
  if attributes.key?(:'state')
@@ -415,8 +415,8 @@ 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
- _class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
419
- return false unless _class_validator.valid?(@_class)
418
+ sandbox_class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
419
+ return false unless sandbox_class_validator.valid?(@sandbox_class)
420
420
  return false if @user.nil?
421
421
  return false if @public.nil?
422
422
  return false if @cpu.nil?
@@ -471,13 +471,13 @@ module DaytonaApiClient
471
471
  end
472
472
 
473
473
  # Custom attribute writer method checking allowed values (enum).
474
- # @param [Object] _class Object to be assigned
475
- def _class=(_class)
474
+ # @param [Object] sandbox_class Object to be assigned
475
+ def sandbox_class=(sandbox_class)
476
476
  validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
477
- unless validator.valid?(_class)
478
- fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
477
+ unless validator.valid?(sandbox_class)
478
+ fail ArgumentError, "invalid value for \"sandbox_class\", must be one of #{validator.allowable_values}."
479
479
  end
480
- @_class = _class
480
+ @sandbox_class = sandbox_class
481
481
  end
482
482
 
483
483
  # Custom attribute writer method with validation
@@ -580,7 +580,7 @@ module DaytonaApiClient
580
580
  name == o.name &&
581
581
  target == o.target &&
582
582
  runner_id == o.runner_id &&
583
- _class == o._class &&
583
+ sandbox_class == o.sandbox_class &&
584
584
  state == o.state &&
585
585
  desired_state == o.desired_state &&
586
586
  snapshot == o.snapshot &&
@@ -613,7 +613,7 @@ module DaytonaApiClient
613
613
  # Calculates hash code according to all attributes.
614
614
  # @return [Integer] Hash code
615
615
  def hash
616
- [id, organization_id, name, target, runner_id, _class, state, desired_state, snapshot, user, error_reason, recoverable, public, cpu, gpu, memory, disk, labels, backup_state, auto_stop_interval, auto_archive_interval, auto_delete_interval, created_at, updated_at, last_activity_at, daemon_version, toolbox_proxy_url].hash
616
+ [id, organization_id, name, target, runner_id, sandbox_class, state, desired_state, snapshot, user, error_reason, recoverable, public, cpu, gpu, memory, disk, labels, backup_state, auto_stop_interval, auto_archive_interval, auto_delete_interval, created_at, updated_at, last_activity_at, daemon_version, toolbox_proxy_url].hash
617
617
  end
618
618
 
619
619
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.21.0
11
11
  =end
12
12
 
13
13
  module DaytonaApiClient
14
- VERSION = '0.180.0.alpha.1'
14
+ VERSION = '0.181.0'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daytona_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.180.0.alpha.1
4
+ version: 0.181.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio