daytona_api_client 0.178.0 → 0.179.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: d453968886787547d181289bf36b4b8c2543ba8e5e2495e51eeb553b076b1d50
4
- data.tar.gz: 17108779d0da978929325c32661647cbc557cf373397d473a88cf19960ad44fd
3
+ metadata.gz: 2769fbf2efcd99a852b8f0e139238c075bc3fb710aa12205e5256bed3ff4fa3a
4
+ data.tar.gz: aa45e1c35c8f8837e0bc659d2b3cdf47804db83fbddd3e191aed058f6ec1547b
5
5
  SHA512:
6
- metadata.gz: d78064a878d71cba6dbf83a1b42d46bd5727e45de230ff0eba80da5eb20b8621f2013e9d5affb604ef43074aa891004c48383ec2305a3aa8652dbae2b43f5937
7
- data.tar.gz: 7c06bcc123fd910ff10a035a09fc98cd55c9b6987b60bdaa5fe3cfc7e66a9d0c3e2399a6a55a38bb11cc834ed993e07b8effd97ce9f350d46bf25a310d823214
6
+ metadata.gz: 29470751672c0111cfbf6e92220248f40065b5ce94646c08f7ad41ce979d2cba69cdfbd482c5e06e6d983bbbc9c52a870cb7e6c0c1663bc7f1d106729b0aff3c
7
+ data.tar.gz: 502883880a8fd7dd591337b6bd4bca8aaf0486f0b4ad232d2a7011d5bb91325072b8a80d3e3a677f7f7436dd15fe3064a31510f0fc06b365285ebeb5d209e304
@@ -147,6 +147,70 @@ module DaytonaApiClient
147
147
  return data, status_code, headers
148
148
  end
149
149
 
150
+ # Initialize webhooks for an organization
151
+ # @param organization_id [String] Organization ID
152
+ # @param [Hash] opts the optional parameters
153
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
154
+ # @return [WebhookInitializationStatus]
155
+ def webhook_controller_initialize_webhooks(organization_id, opts = {})
156
+ data, _status_code, _headers = webhook_controller_initialize_webhooks_with_http_info(organization_id, opts)
157
+ data
158
+ end
159
+
160
+ # Initialize webhooks for an organization
161
+ # @param organization_id [String] Organization ID
162
+ # @param [Hash] opts the optional parameters
163
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
164
+ # @return [Array<(WebhookInitializationStatus, Integer, Hash)>] WebhookInitializationStatus data, response status code and response headers
165
+ def webhook_controller_initialize_webhooks_with_http_info(organization_id, opts = {})
166
+ if @api_client.config.debugging
167
+ @api_client.config.logger.debug 'Calling API: WebhooksApi.webhook_controller_initialize_webhooks ...'
168
+ end
169
+ # verify the required parameter 'organization_id' is set
170
+ if @api_client.config.client_side_validation && organization_id.nil?
171
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling WebhooksApi.webhook_controller_initialize_webhooks"
172
+ end
173
+ # resource path
174
+ local_var_path = '/webhooks/organizations/{organizationId}/initialize'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
175
+
176
+ # query parameters
177
+ query_params = opts[:query_params] || {}
178
+
179
+ # header parameters
180
+ header_params = opts[:header_params] || {}
181
+ # HTTP header 'Accept' (if needed)
182
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
183
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
184
+
185
+ # form parameters
186
+ form_params = opts[:form_params] || {}
187
+
188
+ # http body (model)
189
+ post_body = opts[:debug_body]
190
+
191
+ # return_type
192
+ return_type = opts[:debug_return_type] || 'WebhookInitializationStatus'
193
+
194
+ # auth_names
195
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
196
+
197
+ new_options = opts.merge(
198
+ :operation => :"WebhooksApi.webhook_controller_initialize_webhooks",
199
+ :header_params => header_params,
200
+ :query_params => query_params,
201
+ :form_params => form_params,
202
+ :body => post_body,
203
+ :auth_names => auth_names,
204
+ :return_type => return_type
205
+ )
206
+
207
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
208
+ if @api_client.config.debugging
209
+ @api_client.config.logger.debug "API called: WebhooksApi#webhook_controller_initialize_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
+ end
211
+ return data, status_code, headers
212
+ end
213
+
150
214
  # Refresh cached endpoint presence flag for an organization
151
215
  # @param organization_id [String]
152
216
  # @param [Hash] opts the optional parameters
@@ -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
@@ -21,6 +21,8 @@ module DaytonaApiClient
21
21
 
22
22
  attr_accessor :total_disk_quota
23
23
 
24
+ attr_accessor :total_gpu_quota
25
+
24
26
  attr_accessor :max_cpu_per_sandbox
25
27
 
26
28
  attr_accessor :max_memory_per_sandbox
@@ -29,16 +31,26 @@ module DaytonaApiClient
29
31
 
30
32
  attr_accessor :max_disk_per_non_ephemeral_sandbox
31
33
 
34
+ attr_accessor :max_cpu_per_gpu_sandbox
35
+
36
+ attr_accessor :max_memory_per_gpu_sandbox
37
+
38
+ attr_accessor :max_disk_per_gpu_sandbox
39
+
32
40
  # Attribute mapping from ruby-style variable name to JSON key.
33
41
  def self.attribute_map
34
42
  {
35
43
  :'total_cpu_quota' => :'totalCpuQuota',
36
44
  :'total_memory_quota' => :'totalMemoryQuota',
37
45
  :'total_disk_quota' => :'totalDiskQuota',
46
+ :'total_gpu_quota' => :'totalGpuQuota',
38
47
  :'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
39
48
  :'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
40
49
  :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
41
- :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox'
50
+ :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox',
51
+ :'max_cpu_per_gpu_sandbox' => :'maxCpuPerGpuSandbox',
52
+ :'max_memory_per_gpu_sandbox' => :'maxMemoryPerGpuSandbox',
53
+ :'max_disk_per_gpu_sandbox' => :'maxDiskPerGpuSandbox'
42
54
  }
43
55
  end
44
56
 
@@ -58,10 +70,14 @@ module DaytonaApiClient
58
70
  :'total_cpu_quota' => :'Float',
59
71
  :'total_memory_quota' => :'Float',
60
72
  :'total_disk_quota' => :'Float',
73
+ :'total_gpu_quota' => :'Float',
61
74
  :'max_cpu_per_sandbox' => :'Float',
62
75
  :'max_memory_per_sandbox' => :'Float',
63
76
  :'max_disk_per_sandbox' => :'Float',
64
- :'max_disk_per_non_ephemeral_sandbox' => :'Float'
77
+ :'max_disk_per_non_ephemeral_sandbox' => :'Float',
78
+ :'max_cpu_per_gpu_sandbox' => :'Float',
79
+ :'max_memory_per_gpu_sandbox' => :'Float',
80
+ :'max_disk_per_gpu_sandbox' => :'Float'
65
81
  }
66
82
  end
67
83
 
@@ -71,10 +87,14 @@ module DaytonaApiClient
71
87
  :'total_cpu_quota',
72
88
  :'total_memory_quota',
73
89
  :'total_disk_quota',
90
+ :'total_gpu_quota',
74
91
  :'max_cpu_per_sandbox',
75
92
  :'max_memory_per_sandbox',
76
93
  :'max_disk_per_sandbox',
77
- :'max_disk_per_non_ephemeral_sandbox'
94
+ :'max_disk_per_non_ephemeral_sandbox',
95
+ :'max_cpu_per_gpu_sandbox',
96
+ :'max_memory_per_gpu_sandbox',
97
+ :'max_disk_per_gpu_sandbox'
78
98
  ])
79
99
  end
80
100
 
@@ -112,6 +132,12 @@ module DaytonaApiClient
112
132
  self.total_disk_quota = nil
113
133
  end
114
134
 
135
+ if attributes.key?(:'total_gpu_quota')
136
+ self.total_gpu_quota = attributes[:'total_gpu_quota']
137
+ else
138
+ self.total_gpu_quota = nil
139
+ end
140
+
115
141
  if attributes.key?(:'max_cpu_per_sandbox')
116
142
  self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
117
143
  end
@@ -127,6 +153,18 @@ module DaytonaApiClient
127
153
  if attributes.key?(:'max_disk_per_non_ephemeral_sandbox')
128
154
  self.max_disk_per_non_ephemeral_sandbox = attributes[:'max_disk_per_non_ephemeral_sandbox']
129
155
  end
156
+
157
+ if attributes.key?(:'max_cpu_per_gpu_sandbox')
158
+ self.max_cpu_per_gpu_sandbox = attributes[:'max_cpu_per_gpu_sandbox']
159
+ end
160
+
161
+ if attributes.key?(:'max_memory_per_gpu_sandbox')
162
+ self.max_memory_per_gpu_sandbox = attributes[:'max_memory_per_gpu_sandbox']
163
+ end
164
+
165
+ if attributes.key?(:'max_disk_per_gpu_sandbox')
166
+ self.max_disk_per_gpu_sandbox = attributes[:'max_disk_per_gpu_sandbox']
167
+ end
130
168
  end
131
169
 
132
170
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -152,10 +190,14 @@ module DaytonaApiClient
152
190
  total_cpu_quota == o.total_cpu_quota &&
153
191
  total_memory_quota == o.total_memory_quota &&
154
192
  total_disk_quota == o.total_disk_quota &&
193
+ total_gpu_quota == o.total_gpu_quota &&
155
194
  max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
156
195
  max_memory_per_sandbox == o.max_memory_per_sandbox &&
157
196
  max_disk_per_sandbox == o.max_disk_per_sandbox &&
158
- max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox
197
+ max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox &&
198
+ max_cpu_per_gpu_sandbox == o.max_cpu_per_gpu_sandbox &&
199
+ max_memory_per_gpu_sandbox == o.max_memory_per_gpu_sandbox &&
200
+ max_disk_per_gpu_sandbox == o.max_disk_per_gpu_sandbox
159
201
  end
160
202
 
161
203
  # @see the `==` method
@@ -167,7 +209,7 @@ module DaytonaApiClient
167
209
  # Calculates hash code according to all attributes.
168
210
  # @return [Integer] Hash code
169
211
  def hash
170
- [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
212
+ [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
171
213
  end
172
214
 
173
215
  # 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.178.0'
14
+ VERSION = '0.179.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.178.0
4
+ version: 0.179.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio