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.
@@ -14,18 +14,18 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module DaytonaApiClient
17
- class WorkspacePortPreviewUrl < ApiModelBase
18
- # Preview url
19
- attr_accessor :url
17
+ class ListSandboxesResponse < ApiModelBase
18
+ # List of results for the current page
19
+ attr_accessor :items
20
20
 
21
- # Access token
22
- attr_accessor :token
21
+ # Cursor for the next page of results
22
+ attr_accessor :next_cursor
23
23
 
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
27
- :'url' => :'url',
28
- :'token' => :'token'
27
+ :'items' => :'items',
28
+ :'next_cursor' => :'nextCursor'
29
29
  }
30
30
  end
31
31
 
@@ -42,14 +42,15 @@ module DaytonaApiClient
42
42
  # Attribute type mapping.
43
43
  def self.openapi_types
44
44
  {
45
- :'url' => :'String',
46
- :'token' => :'String'
45
+ :'items' => :'Array<SandboxListItem>',
46
+ :'next_cursor' => :'String'
47
47
  }
48
48
  end
49
49
 
50
50
  # List of attributes with nullable: true
51
51
  def self.openapi_nullable
52
52
  Set.new([
53
+ :'next_cursor'
53
54
  ])
54
55
  end
55
56
 
@@ -57,28 +58,30 @@ module DaytonaApiClient
57
58
  # @param [Hash] attributes Model attributes in the form of hash
58
59
  def initialize(attributes = {})
59
60
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::WorkspacePortPreviewUrl` initialize method"
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::ListSandboxesResponse` initialize method"
61
62
  end
62
63
 
63
64
  # check to see if the attribute exists and convert string to symbol for hash key
64
65
  acceptable_attribute_map = self.class.acceptable_attribute_map
65
66
  attributes = attributes.each_with_object({}) { |(k, v), h|
66
67
  if (!acceptable_attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::WorkspacePortPreviewUrl`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::ListSandboxesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
69
  end
69
70
  h[k.to_sym] = v
70
71
  }
71
72
 
72
- if attributes.key?(:'url')
73
- self.url = attributes[:'url']
73
+ if attributes.key?(:'items')
74
+ if (value = attributes[:'items']).is_a?(Array)
75
+ self.items = value
76
+ end
74
77
  else
75
- self.url = nil
78
+ self.items = nil
76
79
  end
77
80
 
78
- if attributes.key?(:'token')
79
- self.token = attributes[:'token']
81
+ if attributes.key?(:'next_cursor')
82
+ self.next_cursor = attributes[:'next_cursor']
80
83
  else
81
- self.token = nil
84
+ self.next_cursor = nil
82
85
  end
83
86
  end
84
87
 
@@ -87,12 +90,8 @@ module DaytonaApiClient
87
90
  def list_invalid_properties
88
91
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
89
92
  invalid_properties = Array.new
90
- if @url.nil?
91
- invalid_properties.push('invalid value for "url", url cannot be nil.')
92
- end
93
-
94
- if @token.nil?
95
- invalid_properties.push('invalid value for "token", token cannot be nil.')
93
+ if @items.nil?
94
+ invalid_properties.push('invalid value for "items", items cannot be nil.')
96
95
  end
97
96
 
98
97
  invalid_properties
@@ -102,29 +101,18 @@ module DaytonaApiClient
102
101
  # @return true if the model is valid
103
102
  def valid?
104
103
  warn '[DEPRECATED] the `valid?` method is obsolete'
105
- return false if @url.nil?
106
- return false if @token.nil?
104
+ return false if @items.nil?
107
105
  true
108
106
  end
109
107
 
110
108
  # Custom attribute writer method with validation
111
- # @param [Object] url Value to be assigned
112
- def url=(url)
113
- if url.nil?
114
- fail ArgumentError, 'url cannot be nil'
115
- end
116
-
117
- @url = url
118
- end
119
-
120
- # Custom attribute writer method with validation
121
- # @param [Object] token Value to be assigned
122
- def token=(token)
123
- if token.nil?
124
- fail ArgumentError, 'token cannot be nil'
109
+ # @param [Object] items Value to be assigned
110
+ def items=(items)
111
+ if items.nil?
112
+ fail ArgumentError, 'items cannot be nil'
125
113
  end
126
114
 
127
- @token = token
115
+ @items = items
128
116
  end
129
117
 
130
118
  # Checks equality by comparing each attribute.
@@ -132,8 +120,8 @@ module DaytonaApiClient
132
120
  def ==(o)
133
121
  return true if self.equal?(o)
134
122
  self.class == o.class &&
135
- url == o.url &&
136
- token == o.token
123
+ items == o.items &&
124
+ next_cursor == o.next_cursor
137
125
  end
138
126
 
139
127
  # @see the `==` method
@@ -145,7 +133,7 @@ module DaytonaApiClient
145
133
  # Calculates hash code according to all attributes.
146
134
  # @return [Integer] Hash code
147
135
  def hash
148
- [url, token].hash
136
+ [items, next_cursor].hash
149
137
  end
150
138
 
151
139
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module DaytonaApiClient
17
- class PaginatedSandboxes < ApiModelBase
17
+ class PaginatedSandboxesDeprecated < ApiModelBase
18
18
  attr_accessor :items
19
19
 
20
20
  attr_accessor :total
@@ -63,14 +63,14 @@ module DaytonaApiClient
63
63
  # @param [Hash] attributes Model attributes in the form of hash
64
64
  def initialize(attributes = {})
65
65
  if (!attributes.is_a?(Hash))
66
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::PaginatedSandboxes` initialize method"
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::PaginatedSandboxesDeprecated` initialize method"
67
67
  end
68
68
 
69
69
  # check to see if the attribute exists and convert string to symbol for hash key
70
70
  acceptable_attribute_map = self.class.acceptable_attribute_map
71
71
  attributes = attributes.each_with_object({}) { |(k, v), h|
72
72
  if (!acceptable_attribute_map.key?(k.to_sym))
73
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::PaginatedSandboxes`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::PaginatedSandboxesDeprecated`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
74
  end
75
75
  h[k.to_sym] = v
76
76
  }
@@ -25,6 +25,8 @@ module DaytonaApiClient
25
25
 
26
26
  attr_accessor :total_disk_quota
27
27
 
28
+ attr_accessor :total_gpu_quota
29
+
28
30
  attr_accessor :max_cpu_per_sandbox
29
31
 
30
32
  attr_accessor :max_memory_per_sandbox
@@ -33,6 +35,12 @@ module DaytonaApiClient
33
35
 
34
36
  attr_accessor :max_disk_per_non_ephemeral_sandbox
35
37
 
38
+ attr_accessor :max_cpu_per_gpu_sandbox
39
+
40
+ attr_accessor :max_memory_per_gpu_sandbox
41
+
42
+ attr_accessor :max_disk_per_gpu_sandbox
43
+
36
44
  # Attribute mapping from ruby-style variable name to JSON key.
37
45
  def self.attribute_map
38
46
  {
@@ -41,10 +49,14 @@ module DaytonaApiClient
41
49
  :'total_cpu_quota' => :'totalCpuQuota',
42
50
  :'total_memory_quota' => :'totalMemoryQuota',
43
51
  :'total_disk_quota' => :'totalDiskQuota',
52
+ :'total_gpu_quota' => :'totalGpuQuota',
44
53
  :'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
45
54
  :'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
46
55
  :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
47
- :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox'
56
+ :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox',
57
+ :'max_cpu_per_gpu_sandbox' => :'maxCpuPerGpuSandbox',
58
+ :'max_memory_per_gpu_sandbox' => :'maxMemoryPerGpuSandbox',
59
+ :'max_disk_per_gpu_sandbox' => :'maxDiskPerGpuSandbox'
48
60
  }
49
61
  end
50
62
 
@@ -66,10 +78,14 @@ module DaytonaApiClient
66
78
  :'total_cpu_quota' => :'Float',
67
79
  :'total_memory_quota' => :'Float',
68
80
  :'total_disk_quota' => :'Float',
81
+ :'total_gpu_quota' => :'Float',
69
82
  :'max_cpu_per_sandbox' => :'Float',
70
83
  :'max_memory_per_sandbox' => :'Float',
71
84
  :'max_disk_per_sandbox' => :'Float',
72
- :'max_disk_per_non_ephemeral_sandbox' => :'Float'
85
+ :'max_disk_per_non_ephemeral_sandbox' => :'Float',
86
+ :'max_cpu_per_gpu_sandbox' => :'Float',
87
+ :'max_memory_per_gpu_sandbox' => :'Float',
88
+ :'max_disk_per_gpu_sandbox' => :'Float'
73
89
  }
74
90
  end
75
91
 
@@ -79,7 +95,10 @@ module DaytonaApiClient
79
95
  :'max_cpu_per_sandbox',
80
96
  :'max_memory_per_sandbox',
81
97
  :'max_disk_per_sandbox',
82
- :'max_disk_per_non_ephemeral_sandbox'
98
+ :'max_disk_per_non_ephemeral_sandbox',
99
+ :'max_cpu_per_gpu_sandbox',
100
+ :'max_memory_per_gpu_sandbox',
101
+ :'max_disk_per_gpu_sandbox'
83
102
  ])
84
103
  end
85
104
 
@@ -129,6 +148,12 @@ module DaytonaApiClient
129
148
  self.total_disk_quota = nil
130
149
  end
131
150
 
151
+ if attributes.key?(:'total_gpu_quota')
152
+ self.total_gpu_quota = attributes[:'total_gpu_quota']
153
+ else
154
+ self.total_gpu_quota = nil
155
+ end
156
+
132
157
  if attributes.key?(:'max_cpu_per_sandbox')
133
158
  self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
134
159
  else
@@ -152,6 +177,24 @@ module DaytonaApiClient
152
177
  else
153
178
  self.max_disk_per_non_ephemeral_sandbox = nil
154
179
  end
180
+
181
+ if attributes.key?(:'max_cpu_per_gpu_sandbox')
182
+ self.max_cpu_per_gpu_sandbox = attributes[:'max_cpu_per_gpu_sandbox']
183
+ else
184
+ self.max_cpu_per_gpu_sandbox = nil
185
+ end
186
+
187
+ if attributes.key?(:'max_memory_per_gpu_sandbox')
188
+ self.max_memory_per_gpu_sandbox = attributes[:'max_memory_per_gpu_sandbox']
189
+ else
190
+ self.max_memory_per_gpu_sandbox = nil
191
+ end
192
+
193
+ if attributes.key?(:'max_disk_per_gpu_sandbox')
194
+ self.max_disk_per_gpu_sandbox = attributes[:'max_disk_per_gpu_sandbox']
195
+ else
196
+ self.max_disk_per_gpu_sandbox = nil
197
+ end
155
198
  end
156
199
 
157
200
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -179,6 +222,10 @@ module DaytonaApiClient
179
222
  invalid_properties.push('invalid value for "total_disk_quota", total_disk_quota cannot be nil.')
180
223
  end
181
224
 
225
+ if @total_gpu_quota.nil?
226
+ invalid_properties.push('invalid value for "total_gpu_quota", total_gpu_quota cannot be nil.')
227
+ end
228
+
182
229
  invalid_properties
183
230
  end
184
231
 
@@ -191,6 +238,7 @@ module DaytonaApiClient
191
238
  return false if @total_cpu_quota.nil?
192
239
  return false if @total_memory_quota.nil?
193
240
  return false if @total_disk_quota.nil?
241
+ return false if @total_gpu_quota.nil?
194
242
  true
195
243
  end
196
244
 
@@ -244,6 +292,16 @@ module DaytonaApiClient
244
292
  @total_disk_quota = total_disk_quota
245
293
  end
246
294
 
295
+ # Custom attribute writer method with validation
296
+ # @param [Object] total_gpu_quota Value to be assigned
297
+ def total_gpu_quota=(total_gpu_quota)
298
+ if total_gpu_quota.nil?
299
+ fail ArgumentError, 'total_gpu_quota cannot be nil'
300
+ end
301
+
302
+ @total_gpu_quota = total_gpu_quota
303
+ end
304
+
247
305
  # Checks equality by comparing each attribute.
248
306
  # @param [Object] Object to be compared
249
307
  def ==(o)
@@ -254,10 +312,14 @@ module DaytonaApiClient
254
312
  total_cpu_quota == o.total_cpu_quota &&
255
313
  total_memory_quota == o.total_memory_quota &&
256
314
  total_disk_quota == o.total_disk_quota &&
315
+ total_gpu_quota == o.total_gpu_quota &&
257
316
  max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
258
317
  max_memory_per_sandbox == o.max_memory_per_sandbox &&
259
318
  max_disk_per_sandbox == o.max_disk_per_sandbox &&
260
- max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox
319
+ max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox &&
320
+ max_cpu_per_gpu_sandbox == o.max_cpu_per_gpu_sandbox &&
321
+ max_memory_per_gpu_sandbox == o.max_memory_per_gpu_sandbox &&
322
+ max_disk_per_gpu_sandbox == o.max_disk_per_gpu_sandbox
261
323
  end
262
324
 
263
325
  # @see the `==` method
@@ -269,7 +331,7 @@ module DaytonaApiClient
269
331
  # Calculates hash code according to all attributes.
270
332
  # @return [Integer] Hash code
271
333
  def hash
272
- [organization_id, region_id, total_cpu_quota, total_memory_quota, total_disk_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox].hash
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
273
335
  end
274
336
 
275
337
  # Builds the object from hash
@@ -29,6 +29,10 @@ module DaytonaApiClient
29
29
 
30
30
  attr_accessor :current_disk_usage
31
31
 
32
+ attr_accessor :total_gpu_quota
33
+
34
+ attr_accessor :current_gpu_usage
35
+
32
36
  attr_accessor :max_cpu_per_sandbox
33
37
 
34
38
  attr_accessor :max_memory_per_sandbox
@@ -37,6 +41,12 @@ module DaytonaApiClient
37
41
 
38
42
  attr_accessor :max_disk_per_non_ephemeral_sandbox
39
43
 
44
+ attr_accessor :max_cpu_per_gpu_sandbox
45
+
46
+ attr_accessor :max_memory_per_gpu_sandbox
47
+
48
+ attr_accessor :max_disk_per_gpu_sandbox
49
+
40
50
  # Attribute mapping from ruby-style variable name to JSON key.
41
51
  def self.attribute_map
42
52
  {
@@ -47,10 +57,15 @@ module DaytonaApiClient
47
57
  :'current_memory_usage' => :'currentMemoryUsage',
48
58
  :'total_disk_quota' => :'totalDiskQuota',
49
59
  :'current_disk_usage' => :'currentDiskUsage',
60
+ :'total_gpu_quota' => :'totalGpuQuota',
61
+ :'current_gpu_usage' => :'currentGpuUsage',
50
62
  :'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
51
63
  :'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
52
64
  :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
53
- :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox'
65
+ :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox',
66
+ :'max_cpu_per_gpu_sandbox' => :'maxCpuPerGpuSandbox',
67
+ :'max_memory_per_gpu_sandbox' => :'maxMemoryPerGpuSandbox',
68
+ :'max_disk_per_gpu_sandbox' => :'maxDiskPerGpuSandbox'
54
69
  }
55
70
  end
56
71
 
@@ -74,10 +89,15 @@ module DaytonaApiClient
74
89
  :'current_memory_usage' => :'Float',
75
90
  :'total_disk_quota' => :'Float',
76
91
  :'current_disk_usage' => :'Float',
92
+ :'total_gpu_quota' => :'Float',
93
+ :'current_gpu_usage' => :'Float',
77
94
  :'max_cpu_per_sandbox' => :'Float',
78
95
  :'max_memory_per_sandbox' => :'Float',
79
96
  :'max_disk_per_sandbox' => :'Float',
80
- :'max_disk_per_non_ephemeral_sandbox' => :'Float'
97
+ :'max_disk_per_non_ephemeral_sandbox' => :'Float',
98
+ :'max_cpu_per_gpu_sandbox' => :'Float',
99
+ :'max_memory_per_gpu_sandbox' => :'Float',
100
+ :'max_disk_per_gpu_sandbox' => :'Float'
81
101
  }
82
102
  end
83
103
 
@@ -87,7 +107,10 @@ module DaytonaApiClient
87
107
  :'max_cpu_per_sandbox',
88
108
  :'max_memory_per_sandbox',
89
109
  :'max_disk_per_sandbox',
90
- :'max_disk_per_non_ephemeral_sandbox'
110
+ :'max_disk_per_non_ephemeral_sandbox',
111
+ :'max_cpu_per_gpu_sandbox',
112
+ :'max_memory_per_gpu_sandbox',
113
+ :'max_disk_per_gpu_sandbox'
91
114
  ])
92
115
  end
93
116
 
@@ -149,6 +172,18 @@ module DaytonaApiClient
149
172
  self.current_disk_usage = nil
150
173
  end
151
174
 
175
+ if attributes.key?(:'total_gpu_quota')
176
+ self.total_gpu_quota = attributes[:'total_gpu_quota']
177
+ else
178
+ self.total_gpu_quota = nil
179
+ end
180
+
181
+ if attributes.key?(:'current_gpu_usage')
182
+ self.current_gpu_usage = attributes[:'current_gpu_usage']
183
+ else
184
+ self.current_gpu_usage = nil
185
+ end
186
+
152
187
  if attributes.key?(:'max_cpu_per_sandbox')
153
188
  self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
154
189
  else
@@ -172,6 +207,24 @@ module DaytonaApiClient
172
207
  else
173
208
  self.max_disk_per_non_ephemeral_sandbox = nil
174
209
  end
210
+
211
+ if attributes.key?(:'max_cpu_per_gpu_sandbox')
212
+ self.max_cpu_per_gpu_sandbox = attributes[:'max_cpu_per_gpu_sandbox']
213
+ else
214
+ self.max_cpu_per_gpu_sandbox = nil
215
+ end
216
+
217
+ if attributes.key?(:'max_memory_per_gpu_sandbox')
218
+ self.max_memory_per_gpu_sandbox = attributes[:'max_memory_per_gpu_sandbox']
219
+ else
220
+ self.max_memory_per_gpu_sandbox = nil
221
+ end
222
+
223
+ if attributes.key?(:'max_disk_per_gpu_sandbox')
224
+ self.max_disk_per_gpu_sandbox = attributes[:'max_disk_per_gpu_sandbox']
225
+ else
226
+ self.max_disk_per_gpu_sandbox = nil
227
+ end
175
228
  end
176
229
 
177
230
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -207,6 +260,14 @@ module DaytonaApiClient
207
260
  invalid_properties.push('invalid value for "current_disk_usage", current_disk_usage cannot be nil.')
208
261
  end
209
262
 
263
+ if @total_gpu_quota.nil?
264
+ invalid_properties.push('invalid value for "total_gpu_quota", total_gpu_quota cannot be nil.')
265
+ end
266
+
267
+ if @current_gpu_usage.nil?
268
+ invalid_properties.push('invalid value for "current_gpu_usage", current_gpu_usage cannot be nil.')
269
+ end
270
+
210
271
  invalid_properties
211
272
  end
212
273
 
@@ -221,6 +282,8 @@ module DaytonaApiClient
221
282
  return false if @current_memory_usage.nil?
222
283
  return false if @total_disk_quota.nil?
223
284
  return false if @current_disk_usage.nil?
285
+ return false if @total_gpu_quota.nil?
286
+ return false if @current_gpu_usage.nil?
224
287
  true
225
288
  end
226
289
 
@@ -294,6 +357,26 @@ module DaytonaApiClient
294
357
  @current_disk_usage = current_disk_usage
295
358
  end
296
359
 
360
+ # Custom attribute writer method with validation
361
+ # @param [Object] total_gpu_quota Value to be assigned
362
+ def total_gpu_quota=(total_gpu_quota)
363
+ if total_gpu_quota.nil?
364
+ fail ArgumentError, 'total_gpu_quota cannot be nil'
365
+ end
366
+
367
+ @total_gpu_quota = total_gpu_quota
368
+ end
369
+
370
+ # Custom attribute writer method with validation
371
+ # @param [Object] current_gpu_usage Value to be assigned
372
+ def current_gpu_usage=(current_gpu_usage)
373
+ if current_gpu_usage.nil?
374
+ fail ArgumentError, 'current_gpu_usage cannot be nil'
375
+ end
376
+
377
+ @current_gpu_usage = current_gpu_usage
378
+ end
379
+
297
380
  # Checks equality by comparing each attribute.
298
381
  # @param [Object] Object to be compared
299
382
  def ==(o)
@@ -306,10 +389,15 @@ module DaytonaApiClient
306
389
  current_memory_usage == o.current_memory_usage &&
307
390
  total_disk_quota == o.total_disk_quota &&
308
391
  current_disk_usage == o.current_disk_usage &&
392
+ total_gpu_quota == o.total_gpu_quota &&
393
+ current_gpu_usage == o.current_gpu_usage &&
309
394
  max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
310
395
  max_memory_per_sandbox == o.max_memory_per_sandbox &&
311
396
  max_disk_per_sandbox == o.max_disk_per_sandbox &&
312
- max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox
397
+ max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox &&
398
+ max_cpu_per_gpu_sandbox == o.max_cpu_per_gpu_sandbox &&
399
+ max_memory_per_gpu_sandbox == o.max_memory_per_gpu_sandbox &&
400
+ max_disk_per_gpu_sandbox == o.max_disk_per_gpu_sandbox
313
401
  end
314
402
 
315
403
  # @see the `==` method
@@ -321,7 +409,7 @@ module DaytonaApiClient
321
409
  # Calculates hash code according to all attributes.
322
410
  # @return [Integer] Hash code
323
411
  def hash
324
- [region_id, total_cpu_quota, current_cpu_usage, total_memory_quota, current_memory_usage, total_disk_quota, current_disk_usage, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox].hash
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
325
413
  end
326
414
 
327
415
  # 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