daytona_api_client 0.176.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 +4 -4
- 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/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/update_organization_region_quota.rb +47 -5
- data/lib/daytona_api_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2769fbf2efcd99a852b8f0e139238c075bc3fb710aa12205e5256bed3ff4fa3a
|
|
4
|
+
data.tar.gz: aa45e1c35c8f8837e0bc659d2b3cdf47804db83fbddd3e191aed058f6ec1547b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
@@ -19,6 +19,9 @@ module DaytonaApiClient
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :name
|
|
21
21
|
|
|
22
|
+
# Tags to associate with the runner
|
|
23
|
+
attr_accessor :tags
|
|
24
|
+
|
|
22
25
|
attr_accessor :api_key
|
|
23
26
|
|
|
24
27
|
# The api version of the runner to create
|
|
@@ -47,6 +50,7 @@ module DaytonaApiClient
|
|
|
47
50
|
{
|
|
48
51
|
:'region_id' => :'regionId',
|
|
49
52
|
:'name' => :'name',
|
|
53
|
+
:'tags' => :'tags',
|
|
50
54
|
:'api_key' => :'apiKey',
|
|
51
55
|
:'api_version' => :'apiVersion',
|
|
52
56
|
:'domain' => :'domain',
|
|
@@ -73,6 +77,7 @@ module DaytonaApiClient
|
|
|
73
77
|
{
|
|
74
78
|
:'region_id' => :'String',
|
|
75
79
|
:'name' => :'String',
|
|
80
|
+
:'tags' => :'Array<String>',
|
|
76
81
|
:'api_key' => :'String',
|
|
77
82
|
:'api_version' => :'String',
|
|
78
83
|
:'domain' => :'String',
|
|
@@ -118,6 +123,12 @@ module DaytonaApiClient
|
|
|
118
123
|
self.name = nil
|
|
119
124
|
end
|
|
120
125
|
|
|
126
|
+
if attributes.key?(:'tags')
|
|
127
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
128
|
+
self.tags = value
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
121
132
|
if attributes.key?(:'api_key')
|
|
122
133
|
self.api_key = attributes[:'api_key']
|
|
123
134
|
else
|
|
@@ -248,6 +259,7 @@ module DaytonaApiClient
|
|
|
248
259
|
self.class == o.class &&
|
|
249
260
|
region_id == o.region_id &&
|
|
250
261
|
name == o.name &&
|
|
262
|
+
tags == o.tags &&
|
|
251
263
|
api_key == o.api_key &&
|
|
252
264
|
api_version == o.api_version &&
|
|
253
265
|
domain == o.domain &&
|
|
@@ -267,7 +279,7 @@ module DaytonaApiClient
|
|
|
267
279
|
# Calculates hash code according to all attributes.
|
|
268
280
|
# @return [Integer] Hash code
|
|
269
281
|
def hash
|
|
270
|
-
[region_id, name, api_key, api_version, domain, api_url, proxy_url, cpu, memory_gi_b, disk_gi_b].hash
|
|
282
|
+
[region_id, name, tags, api_key, api_version, domain, api_url, proxy_url, cpu, memory_gi_b, disk_gi_b].hash
|
|
271
283
|
end
|
|
272
284
|
|
|
273
285
|
# Builds the object from hash
|
|
@@ -19,11 +19,15 @@ module DaytonaApiClient
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :name
|
|
21
21
|
|
|
22
|
+
# Tags to associate with the runner
|
|
23
|
+
attr_accessor :tags
|
|
24
|
+
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
26
|
def self.attribute_map
|
|
24
27
|
{
|
|
25
28
|
:'region_id' => :'regionId',
|
|
26
|
-
:'name' => :'name'
|
|
29
|
+
:'name' => :'name',
|
|
30
|
+
:'tags' => :'tags'
|
|
27
31
|
}
|
|
28
32
|
end
|
|
29
33
|
|
|
@@ -41,7 +45,8 @@ module DaytonaApiClient
|
|
|
41
45
|
def self.openapi_types
|
|
42
46
|
{
|
|
43
47
|
:'region_id' => :'String',
|
|
44
|
-
:'name' => :'String'
|
|
48
|
+
:'name' => :'String',
|
|
49
|
+
:'tags' => :'Array<String>'
|
|
45
50
|
}
|
|
46
51
|
end
|
|
47
52
|
|
|
@@ -78,6 +83,12 @@ module DaytonaApiClient
|
|
|
78
83
|
else
|
|
79
84
|
self.name = nil
|
|
80
85
|
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'tags')
|
|
88
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
89
|
+
self.tags = value
|
|
90
|
+
end
|
|
91
|
+
end
|
|
81
92
|
end
|
|
82
93
|
|
|
83
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -131,7 +142,8 @@ module DaytonaApiClient
|
|
|
131
142
|
return true if self.equal?(o)
|
|
132
143
|
self.class == o.class &&
|
|
133
144
|
region_id == o.region_id &&
|
|
134
|
-
name == o.name
|
|
145
|
+
name == o.name &&
|
|
146
|
+
tags == o.tags
|
|
135
147
|
end
|
|
136
148
|
|
|
137
149
|
# @see the `==` method
|
|
@@ -143,7 +155,7 @@ module DaytonaApiClient
|
|
|
143
155
|
# Calculates hash code according to all attributes.
|
|
144
156
|
# @return [Integer] Hash code
|
|
145
157
|
def hash
|
|
146
|
-
[region_id, name].hash
|
|
158
|
+
[region_id, name, tags].hash
|
|
147
159
|
end
|
|
148
160
|
|
|
149
161
|
# Builds the object from hash
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|