daytona_api_client 0.126.0.pre.alpha.5 → 1.0.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/Gemfile.lock +3 -3
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +66 -18
- data/lib/daytona_api_client/api/organizations_api.rb +12 -219
- data/lib/daytona_api_client/api/preview_api.rb +5 -7
- data/lib/daytona_api_client/api/runners_api.rb +0 -55
- data/lib/daytona_api_client/api/sandbox_api.rb +222 -309
- data/lib/daytona_api_client/api/toolbox_api.rb +711 -711
- data/lib/daytona_api_client/api/workspace_api.rb +3 -3
- data/lib/daytona_api_client/models/create_organization.rb +4 -31
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
- data/lib/daytona_api_client/models/create_user.rb +1 -10
- data/lib/daytona_api_client/models/daytona_configuration.rb +4 -41
- data/lib/daytona_api_client/models/organization.rb +85 -53
- data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -18
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -14
- data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
- data/lib/daytona_api_client/models/region.rb +4 -96
- data/lib/daytona_api_client/models/sandbox.rb +11 -38
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -41
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -14
- data/lib/daytona_api_client/models/workspace.rb +38 -38
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +1 -8
- data/project.json +7 -29
- metadata +1 -16
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -171
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -33
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/regions_api.rb +0 -83
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -249
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -229
- data/lib/daytona_api_client/models/region_quota.rb +0 -339
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -236
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -245
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
|
@@ -353,7 +353,7 @@ module DaytonaApiClient
|
|
|
353
353
|
# @param port [Float] Port number to get preview URL for
|
|
354
354
|
# @param [Hash] opts the optional parameters
|
|
355
355
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
356
|
-
# @return [
|
|
356
|
+
# @return [PortPreviewUrl]
|
|
357
357
|
def get_port_preview_url_workspace_deprecated(workspace_id, port, opts = {})
|
|
358
358
|
data, _status_code, _headers = get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts)
|
|
359
359
|
data
|
|
@@ -364,7 +364,7 @@ module DaytonaApiClient
|
|
|
364
364
|
# @param port [Float] Port number to get preview URL for
|
|
365
365
|
# @param [Hash] opts the optional parameters
|
|
366
366
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
367
|
-
# @return [Array<(
|
|
367
|
+
# @return [Array<(PortPreviewUrl, Integer, Hash)>] PortPreviewUrl data, response status code and response headers
|
|
368
368
|
def get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts = {})
|
|
369
369
|
if @api_client.config.debugging
|
|
370
370
|
@api_client.config.logger.debug 'Calling API: WorkspaceApi.get_port_preview_url_workspace_deprecated ...'
|
|
@@ -396,7 +396,7 @@ module DaytonaApiClient
|
|
|
396
396
|
post_body = opts[:debug_body]
|
|
397
397
|
|
|
398
398
|
# return_type
|
|
399
|
-
return_type = opts[:debug_return_type] || '
|
|
399
|
+
return_type = opts[:debug_return_type] || 'PortPreviewUrl'
|
|
400
400
|
|
|
401
401
|
# auth_names
|
|
402
402
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
@@ -18,14 +18,10 @@ module DaytonaApiClient
|
|
|
18
18
|
# The name of organization
|
|
19
19
|
attr_accessor :name
|
|
20
20
|
|
|
21
|
-
# The ID of the default region for the organization
|
|
22
|
-
attr_accessor :default_region_id
|
|
23
|
-
|
|
24
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
22
|
def self.attribute_map
|
|
26
23
|
{
|
|
27
|
-
:'name' => :'name'
|
|
28
|
-
:'default_region_id' => :'defaultRegionId'
|
|
24
|
+
:'name' => :'name'
|
|
29
25
|
}
|
|
30
26
|
end
|
|
31
27
|
|
|
@@ -42,8 +38,7 @@ module DaytonaApiClient
|
|
|
42
38
|
# Attribute type mapping.
|
|
43
39
|
def self.openapi_types
|
|
44
40
|
{
|
|
45
|
-
:'name' => :'String'
|
|
46
|
-
:'default_region_id' => :'String'
|
|
41
|
+
:'name' => :'String'
|
|
47
42
|
}
|
|
48
43
|
end
|
|
49
44
|
|
|
@@ -74,12 +69,6 @@ module DaytonaApiClient
|
|
|
74
69
|
else
|
|
75
70
|
self.name = nil
|
|
76
71
|
end
|
|
77
|
-
|
|
78
|
-
if attributes.key?(:'default_region_id')
|
|
79
|
-
self.default_region_id = attributes[:'default_region_id']
|
|
80
|
-
else
|
|
81
|
-
self.default_region_id = nil
|
|
82
|
-
end
|
|
83
72
|
end
|
|
84
73
|
|
|
85
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -91,10 +80,6 @@ module DaytonaApiClient
|
|
|
91
80
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
92
81
|
end
|
|
93
82
|
|
|
94
|
-
if @default_region_id.nil?
|
|
95
|
-
invalid_properties.push('invalid value for "default_region_id", default_region_id cannot be nil.')
|
|
96
|
-
end
|
|
97
|
-
|
|
98
83
|
invalid_properties
|
|
99
84
|
end
|
|
100
85
|
|
|
@@ -103,7 +88,6 @@ module DaytonaApiClient
|
|
|
103
88
|
def valid?
|
|
104
89
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
90
|
return false if @name.nil?
|
|
106
|
-
return false if @default_region_id.nil?
|
|
107
91
|
true
|
|
108
92
|
end
|
|
109
93
|
|
|
@@ -117,23 +101,12 @@ module DaytonaApiClient
|
|
|
117
101
|
@name = name
|
|
118
102
|
end
|
|
119
103
|
|
|
120
|
-
# Custom attribute writer method with validation
|
|
121
|
-
# @param [Object] default_region_id Value to be assigned
|
|
122
|
-
def default_region_id=(default_region_id)
|
|
123
|
-
if default_region_id.nil?
|
|
124
|
-
fail ArgumentError, 'default_region_id cannot be nil'
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
@default_region_id = default_region_id
|
|
128
|
-
end
|
|
129
|
-
|
|
130
104
|
# Checks equality by comparing each attribute.
|
|
131
105
|
# @param [Object] Object to be compared
|
|
132
106
|
def ==(o)
|
|
133
107
|
return true if self.equal?(o)
|
|
134
108
|
self.class == o.class &&
|
|
135
|
-
name == o.name
|
|
136
|
-
default_region_id == o.default_region_id
|
|
109
|
+
name == o.name
|
|
137
110
|
end
|
|
138
111
|
|
|
139
112
|
# @see the `==` method
|
|
@@ -145,7 +118,7 @@ module DaytonaApiClient
|
|
|
145
118
|
# Calculates hash code according to all attributes.
|
|
146
119
|
# @return [Integer] Hash code
|
|
147
120
|
def hash
|
|
148
|
-
[name
|
|
121
|
+
[name].hash
|
|
149
122
|
end
|
|
150
123
|
|
|
151
124
|
# Builds the object from hash
|
|
@@ -15,9 +15,6 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class CreateSandbox
|
|
18
|
-
# The name of the sandbox. If not provided, the sandbox ID will be used as the name
|
|
19
|
-
attr_accessor :name
|
|
20
|
-
|
|
21
18
|
# The ID or name of the snapshot used for the sandbox
|
|
22
19
|
attr_accessor :snapshot
|
|
23
20
|
|
|
@@ -97,7 +94,6 @@ module DaytonaApiClient
|
|
|
97
94
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
98
95
|
def self.attribute_map
|
|
99
96
|
{
|
|
100
|
-
:'name' => :'name',
|
|
101
97
|
:'snapshot' => :'snapshot',
|
|
102
98
|
:'user' => :'user',
|
|
103
99
|
:'env' => :'env',
|
|
@@ -132,7 +128,6 @@ module DaytonaApiClient
|
|
|
132
128
|
# Attribute type mapping.
|
|
133
129
|
def self.openapi_types
|
|
134
130
|
{
|
|
135
|
-
:'name' => :'String',
|
|
136
131
|
:'snapshot' => :'String',
|
|
137
132
|
:'user' => :'String',
|
|
138
133
|
:'env' => :'Hash<String, String>',
|
|
@@ -176,10 +171,6 @@ module DaytonaApiClient
|
|
|
176
171
|
h[k.to_sym] = v
|
|
177
172
|
}
|
|
178
173
|
|
|
179
|
-
if attributes.key?(:'name')
|
|
180
|
-
self.name = attributes[:'name']
|
|
181
|
-
end
|
|
182
|
-
|
|
183
174
|
if attributes.key?(:'snapshot')
|
|
184
175
|
self.snapshot = attributes[:'snapshot']
|
|
185
176
|
end
|
|
@@ -291,7 +282,6 @@ module DaytonaApiClient
|
|
|
291
282
|
def ==(o)
|
|
292
283
|
return true if self.equal?(o)
|
|
293
284
|
self.class == o.class &&
|
|
294
|
-
name == o.name &&
|
|
295
285
|
snapshot == o.snapshot &&
|
|
296
286
|
user == o.user &&
|
|
297
287
|
env == o.env &&
|
|
@@ -321,7 +311,7 @@ module DaytonaApiClient
|
|
|
321
311
|
# Calculates hash code according to all attributes.
|
|
322
312
|
# @return [Integer] Hash code
|
|
323
313
|
def hash
|
|
324
|
-
[
|
|
314
|
+
[snapshot, user, env, labels, public, network_block_all, network_allow_list, _class, target, cpu, gpu, memory, disk, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info].hash
|
|
325
315
|
end
|
|
326
316
|
|
|
327
317
|
# Builds the object from hash
|
|
@@ -23,8 +23,6 @@ module DaytonaApiClient
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :personal_organization_quota
|
|
25
25
|
|
|
26
|
-
attr_accessor :personal_organization_default_region_id
|
|
27
|
-
|
|
28
26
|
attr_accessor :role
|
|
29
27
|
|
|
30
28
|
attr_accessor :email_verified
|
|
@@ -58,7 +56,6 @@ module DaytonaApiClient
|
|
|
58
56
|
:'name' => :'name',
|
|
59
57
|
:'email' => :'email',
|
|
60
58
|
:'personal_organization_quota' => :'personalOrganizationQuota',
|
|
61
|
-
:'personal_organization_default_region_id' => :'personalOrganizationDefaultRegionId',
|
|
62
59
|
:'role' => :'role',
|
|
63
60
|
:'email_verified' => :'emailVerified'
|
|
64
61
|
}
|
|
@@ -81,7 +78,6 @@ module DaytonaApiClient
|
|
|
81
78
|
:'name' => :'String',
|
|
82
79
|
:'email' => :'String',
|
|
83
80
|
:'personal_organization_quota' => :'CreateOrganizationQuota',
|
|
84
|
-
:'personal_organization_default_region_id' => :'String',
|
|
85
81
|
:'role' => :'String',
|
|
86
82
|
:'email_verified' => :'Boolean'
|
|
87
83
|
}
|
|
@@ -129,10 +125,6 @@ module DaytonaApiClient
|
|
|
129
125
|
self.personal_organization_quota = attributes[:'personal_organization_quota']
|
|
130
126
|
end
|
|
131
127
|
|
|
132
|
-
if attributes.key?(:'personal_organization_default_region_id')
|
|
133
|
-
self.personal_organization_default_region_id = attributes[:'personal_organization_default_region_id']
|
|
134
|
-
end
|
|
135
|
-
|
|
136
128
|
if attributes.key?(:'role')
|
|
137
129
|
self.role = attributes[:'role']
|
|
138
130
|
end
|
|
@@ -208,7 +200,6 @@ module DaytonaApiClient
|
|
|
208
200
|
name == o.name &&
|
|
209
201
|
email == o.email &&
|
|
210
202
|
personal_organization_quota == o.personal_organization_quota &&
|
|
211
|
-
personal_organization_default_region_id == o.personal_organization_default_region_id &&
|
|
212
203
|
role == o.role &&
|
|
213
204
|
email_verified == o.email_verified
|
|
214
205
|
end
|
|
@@ -222,7 +213,7 @@ module DaytonaApiClient
|
|
|
222
213
|
# Calculates hash code according to all attributes.
|
|
223
214
|
# @return [Integer] Hash code
|
|
224
215
|
def hash
|
|
225
|
-
[id, name, email, personal_organization_quota,
|
|
216
|
+
[id, name, email, personal_organization_quota, role, email_verified].hash
|
|
226
217
|
end
|
|
227
218
|
|
|
228
219
|
# Builds the object from hash
|
|
@@ -36,9 +36,6 @@ module DaytonaApiClient
|
|
|
36
36
|
# Proxy template URL
|
|
37
37
|
attr_accessor :proxy_template_url
|
|
38
38
|
|
|
39
|
-
# Toolbox template URL
|
|
40
|
-
attr_accessor :proxy_toolbox_url
|
|
41
|
-
|
|
42
39
|
# Default snapshot for sandboxes
|
|
43
40
|
attr_accessor :default_snapshot
|
|
44
41
|
|
|
@@ -63,9 +60,6 @@ module DaytonaApiClient
|
|
|
63
60
|
# Base64 encoded SSH Gateway public key
|
|
64
61
|
attr_accessor :ssh_gateway_public_key
|
|
65
62
|
|
|
66
|
-
# Rate limit configuration
|
|
67
|
-
attr_accessor :rate_limit
|
|
68
|
-
|
|
69
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
70
64
|
def self.attribute_map
|
|
71
65
|
{
|
|
@@ -76,7 +70,6 @@ module DaytonaApiClient
|
|
|
76
70
|
:'announcements' => :'announcements',
|
|
77
71
|
:'pylon_app_id' => :'pylonAppId',
|
|
78
72
|
:'proxy_template_url' => :'proxyTemplateUrl',
|
|
79
|
-
:'proxy_toolbox_url' => :'proxyToolboxUrl',
|
|
80
73
|
:'default_snapshot' => :'defaultSnapshot',
|
|
81
74
|
:'dashboard_url' => :'dashboardUrl',
|
|
82
75
|
:'max_auto_archive_interval' => :'maxAutoArchiveInterval',
|
|
@@ -84,8 +77,7 @@ module DaytonaApiClient
|
|
|
84
77
|
:'environment' => :'environment',
|
|
85
78
|
:'billing_api_url' => :'billingApiUrl',
|
|
86
79
|
:'ssh_gateway_command' => :'sshGatewayCommand',
|
|
87
|
-
:'ssh_gateway_public_key' => :'sshGatewayPublicKey'
|
|
88
|
-
:'rate_limit' => :'rateLimit'
|
|
80
|
+
:'ssh_gateway_public_key' => :'sshGatewayPublicKey'
|
|
89
81
|
}
|
|
90
82
|
end
|
|
91
83
|
|
|
@@ -109,7 +101,6 @@ module DaytonaApiClient
|
|
|
109
101
|
:'announcements' => :'Hash<String, Announcement>',
|
|
110
102
|
:'pylon_app_id' => :'String',
|
|
111
103
|
:'proxy_template_url' => :'String',
|
|
112
|
-
:'proxy_toolbox_url' => :'String',
|
|
113
104
|
:'default_snapshot' => :'String',
|
|
114
105
|
:'dashboard_url' => :'String',
|
|
115
106
|
:'max_auto_archive_interval' => :'Float',
|
|
@@ -117,8 +108,7 @@ module DaytonaApiClient
|
|
|
117
108
|
:'environment' => :'String',
|
|
118
109
|
:'billing_api_url' => :'String',
|
|
119
110
|
:'ssh_gateway_command' => :'String',
|
|
120
|
-
:'ssh_gateway_public_key' => :'String'
|
|
121
|
-
:'rate_limit' => :'RateLimitConfig'
|
|
111
|
+
:'ssh_gateway_public_key' => :'String'
|
|
122
112
|
}
|
|
123
113
|
end
|
|
124
114
|
|
|
@@ -184,12 +174,6 @@ module DaytonaApiClient
|
|
|
184
174
|
self.proxy_template_url = nil
|
|
185
175
|
end
|
|
186
176
|
|
|
187
|
-
if attributes.key?(:'proxy_toolbox_url')
|
|
188
|
-
self.proxy_toolbox_url = attributes[:'proxy_toolbox_url']
|
|
189
|
-
else
|
|
190
|
-
self.proxy_toolbox_url = nil
|
|
191
|
-
end
|
|
192
|
-
|
|
193
177
|
if attributes.key?(:'default_snapshot')
|
|
194
178
|
self.default_snapshot = attributes[:'default_snapshot']
|
|
195
179
|
else
|
|
@@ -231,10 +215,6 @@ module DaytonaApiClient
|
|
|
231
215
|
if attributes.key?(:'ssh_gateway_public_key')
|
|
232
216
|
self.ssh_gateway_public_key = attributes[:'ssh_gateway_public_key']
|
|
233
217
|
end
|
|
234
|
-
|
|
235
|
-
if attributes.key?(:'rate_limit')
|
|
236
|
-
self.rate_limit = attributes[:'rate_limit']
|
|
237
|
-
end
|
|
238
218
|
end
|
|
239
219
|
|
|
240
220
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -262,10 +242,6 @@ module DaytonaApiClient
|
|
|
262
242
|
invalid_properties.push('invalid value for "proxy_template_url", proxy_template_url cannot be nil.')
|
|
263
243
|
end
|
|
264
244
|
|
|
265
|
-
if @proxy_toolbox_url.nil?
|
|
266
|
-
invalid_properties.push('invalid value for "proxy_toolbox_url", proxy_toolbox_url cannot be nil.')
|
|
267
|
-
end
|
|
268
|
-
|
|
269
245
|
if @default_snapshot.nil?
|
|
270
246
|
invalid_properties.push('invalid value for "default_snapshot", default_snapshot cannot be nil.')
|
|
271
247
|
end
|
|
@@ -298,7 +274,6 @@ module DaytonaApiClient
|
|
|
298
274
|
return false if @linked_accounts_enabled.nil?
|
|
299
275
|
return false if @announcements.nil?
|
|
300
276
|
return false if @proxy_template_url.nil?
|
|
301
|
-
return false if @proxy_toolbox_url.nil?
|
|
302
277
|
return false if @default_snapshot.nil?
|
|
303
278
|
return false if @dashboard_url.nil?
|
|
304
279
|
return false if @max_auto_archive_interval.nil?
|
|
@@ -357,16 +332,6 @@ module DaytonaApiClient
|
|
|
357
332
|
@proxy_template_url = proxy_template_url
|
|
358
333
|
end
|
|
359
334
|
|
|
360
|
-
# Custom attribute writer method with validation
|
|
361
|
-
# @param [Object] proxy_toolbox_url Value to be assigned
|
|
362
|
-
def proxy_toolbox_url=(proxy_toolbox_url)
|
|
363
|
-
if proxy_toolbox_url.nil?
|
|
364
|
-
fail ArgumentError, 'proxy_toolbox_url cannot be nil'
|
|
365
|
-
end
|
|
366
|
-
|
|
367
|
-
@proxy_toolbox_url = proxy_toolbox_url
|
|
368
|
-
end
|
|
369
|
-
|
|
370
335
|
# Custom attribute writer method with validation
|
|
371
336
|
# @param [Object] default_snapshot Value to be assigned
|
|
372
337
|
def default_snapshot=(default_snapshot)
|
|
@@ -429,7 +394,6 @@ module DaytonaApiClient
|
|
|
429
394
|
announcements == o.announcements &&
|
|
430
395
|
pylon_app_id == o.pylon_app_id &&
|
|
431
396
|
proxy_template_url == o.proxy_template_url &&
|
|
432
|
-
proxy_toolbox_url == o.proxy_toolbox_url &&
|
|
433
397
|
default_snapshot == o.default_snapshot &&
|
|
434
398
|
dashboard_url == o.dashboard_url &&
|
|
435
399
|
max_auto_archive_interval == o.max_auto_archive_interval &&
|
|
@@ -437,8 +401,7 @@ module DaytonaApiClient
|
|
|
437
401
|
environment == o.environment &&
|
|
438
402
|
billing_api_url == o.billing_api_url &&
|
|
439
403
|
ssh_gateway_command == o.ssh_gateway_command &&
|
|
440
|
-
ssh_gateway_public_key == o.ssh_gateway_public_key
|
|
441
|
-
rate_limit == o.rate_limit
|
|
404
|
+
ssh_gateway_public_key == o.ssh_gateway_public_key
|
|
442
405
|
end
|
|
443
406
|
|
|
444
407
|
# @see the `==` method
|
|
@@ -450,7 +413,7 @@ module DaytonaApiClient
|
|
|
450
413
|
# Calculates hash code according to all attributes.
|
|
451
414
|
# @return [Integer] Hash code
|
|
452
415
|
def hash
|
|
453
|
-
[version, posthog, oidc, linked_accounts_enabled, announcements, pylon_app_id, proxy_template_url,
|
|
416
|
+
[version, posthog, oidc, linked_accounts_enabled, announcements, pylon_app_id, proxy_template_url, default_snapshot, dashboard_url, max_auto_archive_interval, maintanance_mode, environment, billing_api_url, ssh_gateway_command, ssh_gateway_public_key].hash
|
|
454
417
|
end
|
|
455
418
|
|
|
456
419
|
# Builds the object from hash
|
|
@@ -48,6 +48,15 @@ module DaytonaApiClient
|
|
|
48
48
|
# Suspension cleanup grace period hours
|
|
49
49
|
attr_accessor :suspension_cleanup_grace_period_hours
|
|
50
50
|
|
|
51
|
+
# Total CPU quota
|
|
52
|
+
attr_accessor :total_cpu_quota
|
|
53
|
+
|
|
54
|
+
# Total memory quota
|
|
55
|
+
attr_accessor :total_memory_quota
|
|
56
|
+
|
|
57
|
+
# Total disk quota
|
|
58
|
+
attr_accessor :total_disk_quota
|
|
59
|
+
|
|
51
60
|
# Max CPU per sandbox
|
|
52
61
|
attr_accessor :max_cpu_per_sandbox
|
|
53
62
|
|
|
@@ -60,18 +69,6 @@ module DaytonaApiClient
|
|
|
60
69
|
# Sandbox default network block all
|
|
61
70
|
attr_accessor :sandbox_limited_network_egress
|
|
62
71
|
|
|
63
|
-
# Default region ID
|
|
64
|
-
attr_accessor :default_region_id
|
|
65
|
-
|
|
66
|
-
# Authenticated rate limit per minute
|
|
67
|
-
attr_accessor :authenticated_rate_limit
|
|
68
|
-
|
|
69
|
-
# Sandbox create rate limit per minute
|
|
70
|
-
attr_accessor :sandbox_create_rate_limit
|
|
71
|
-
|
|
72
|
-
# Sandbox lifecycle rate limit per minute
|
|
73
|
-
attr_accessor :sandbox_lifecycle_rate_limit
|
|
74
|
-
|
|
75
72
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
76
73
|
def self.attribute_map
|
|
77
74
|
{
|
|
@@ -86,14 +83,13 @@ module DaytonaApiClient
|
|
|
86
83
|
:'suspension_reason' => :'suspensionReason',
|
|
87
84
|
:'suspended_until' => :'suspendedUntil',
|
|
88
85
|
:'suspension_cleanup_grace_period_hours' => :'suspensionCleanupGracePeriodHours',
|
|
86
|
+
:'total_cpu_quota' => :'totalCpuQuota',
|
|
87
|
+
:'total_memory_quota' => :'totalMemoryQuota',
|
|
88
|
+
:'total_disk_quota' => :'totalDiskQuota',
|
|
89
89
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
90
90
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
91
91
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
92
|
-
:'sandbox_limited_network_egress' => :'sandboxLimitedNetworkEgress'
|
|
93
|
-
:'default_region_id' => :'defaultRegionId',
|
|
94
|
-
:'authenticated_rate_limit' => :'authenticatedRateLimit',
|
|
95
|
-
:'sandbox_create_rate_limit' => :'sandboxCreateRateLimit',
|
|
96
|
-
:'sandbox_lifecycle_rate_limit' => :'sandboxLifecycleRateLimit'
|
|
92
|
+
:'sandbox_limited_network_egress' => :'sandboxLimitedNetworkEgress'
|
|
97
93
|
}
|
|
98
94
|
end
|
|
99
95
|
|
|
@@ -121,23 +117,19 @@ module DaytonaApiClient
|
|
|
121
117
|
:'suspension_reason' => :'String',
|
|
122
118
|
:'suspended_until' => :'Time',
|
|
123
119
|
:'suspension_cleanup_grace_period_hours' => :'Float',
|
|
120
|
+
:'total_cpu_quota' => :'Float',
|
|
121
|
+
:'total_memory_quota' => :'Float',
|
|
122
|
+
:'total_disk_quota' => :'Float',
|
|
124
123
|
:'max_cpu_per_sandbox' => :'Float',
|
|
125
124
|
:'max_memory_per_sandbox' => :'Float',
|
|
126
125
|
:'max_disk_per_sandbox' => :'Float',
|
|
127
|
-
:'sandbox_limited_network_egress' => :'Boolean'
|
|
128
|
-
:'default_region_id' => :'String',
|
|
129
|
-
:'authenticated_rate_limit' => :'Float',
|
|
130
|
-
:'sandbox_create_rate_limit' => :'Float',
|
|
131
|
-
:'sandbox_lifecycle_rate_limit' => :'Float'
|
|
126
|
+
:'sandbox_limited_network_egress' => :'Boolean'
|
|
132
127
|
}
|
|
133
128
|
end
|
|
134
129
|
|
|
135
130
|
# List of attributes with nullable: true
|
|
136
131
|
def self.openapi_nullable
|
|
137
132
|
Set.new([
|
|
138
|
-
:'authenticated_rate_limit',
|
|
139
|
-
:'sandbox_create_rate_limit',
|
|
140
|
-
:'sandbox_lifecycle_rate_limit'
|
|
141
133
|
])
|
|
142
134
|
end
|
|
143
135
|
|
|
@@ -223,6 +215,24 @@ module DaytonaApiClient
|
|
|
223
215
|
self.suspension_cleanup_grace_period_hours = nil
|
|
224
216
|
end
|
|
225
217
|
|
|
218
|
+
if attributes.key?(:'total_cpu_quota')
|
|
219
|
+
self.total_cpu_quota = attributes[:'total_cpu_quota']
|
|
220
|
+
else
|
|
221
|
+
self.total_cpu_quota = nil
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'total_memory_quota')
|
|
225
|
+
self.total_memory_quota = attributes[:'total_memory_quota']
|
|
226
|
+
else
|
|
227
|
+
self.total_memory_quota = nil
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'total_disk_quota')
|
|
231
|
+
self.total_disk_quota = attributes[:'total_disk_quota']
|
|
232
|
+
else
|
|
233
|
+
self.total_disk_quota = nil
|
|
234
|
+
end
|
|
235
|
+
|
|
226
236
|
if attributes.key?(:'max_cpu_per_sandbox')
|
|
227
237
|
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
228
238
|
else
|
|
@@ -246,28 +256,6 @@ module DaytonaApiClient
|
|
|
246
256
|
else
|
|
247
257
|
self.sandbox_limited_network_egress = nil
|
|
248
258
|
end
|
|
249
|
-
|
|
250
|
-
if attributes.key?(:'default_region_id')
|
|
251
|
-
self.default_region_id = attributes[:'default_region_id']
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
if attributes.key?(:'authenticated_rate_limit')
|
|
255
|
-
self.authenticated_rate_limit = attributes[:'authenticated_rate_limit']
|
|
256
|
-
else
|
|
257
|
-
self.authenticated_rate_limit = nil
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
if attributes.key?(:'sandbox_create_rate_limit')
|
|
261
|
-
self.sandbox_create_rate_limit = attributes[:'sandbox_create_rate_limit']
|
|
262
|
-
else
|
|
263
|
-
self.sandbox_create_rate_limit = nil
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
if attributes.key?(:'sandbox_lifecycle_rate_limit')
|
|
267
|
-
self.sandbox_lifecycle_rate_limit = attributes[:'sandbox_lifecycle_rate_limit']
|
|
268
|
-
else
|
|
269
|
-
self.sandbox_lifecycle_rate_limit = nil
|
|
270
|
-
end
|
|
271
259
|
end
|
|
272
260
|
|
|
273
261
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -319,6 +307,18 @@ module DaytonaApiClient
|
|
|
319
307
|
invalid_properties.push('invalid value for "suspension_cleanup_grace_period_hours", suspension_cleanup_grace_period_hours cannot be nil.')
|
|
320
308
|
end
|
|
321
309
|
|
|
310
|
+
if @total_cpu_quota.nil?
|
|
311
|
+
invalid_properties.push('invalid value for "total_cpu_quota", total_cpu_quota cannot be nil.')
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
if @total_memory_quota.nil?
|
|
315
|
+
invalid_properties.push('invalid value for "total_memory_quota", total_memory_quota cannot be nil.')
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
if @total_disk_quota.nil?
|
|
319
|
+
invalid_properties.push('invalid value for "total_disk_quota", total_disk_quota cannot be nil.')
|
|
320
|
+
end
|
|
321
|
+
|
|
322
322
|
if @max_cpu_per_sandbox.nil?
|
|
323
323
|
invalid_properties.push('invalid value for "max_cpu_per_sandbox", max_cpu_per_sandbox cannot be nil.')
|
|
324
324
|
end
|
|
@@ -353,6 +353,9 @@ module DaytonaApiClient
|
|
|
353
353
|
return false if @suspension_reason.nil?
|
|
354
354
|
return false if @suspended_until.nil?
|
|
355
355
|
return false if @suspension_cleanup_grace_period_hours.nil?
|
|
356
|
+
return false if @total_cpu_quota.nil?
|
|
357
|
+
return false if @total_memory_quota.nil?
|
|
358
|
+
return false if @total_disk_quota.nil?
|
|
356
359
|
return false if @max_cpu_per_sandbox.nil?
|
|
357
360
|
return false if @max_memory_per_sandbox.nil?
|
|
358
361
|
return false if @max_disk_per_sandbox.nil?
|
|
@@ -470,6 +473,36 @@ module DaytonaApiClient
|
|
|
470
473
|
@suspension_cleanup_grace_period_hours = suspension_cleanup_grace_period_hours
|
|
471
474
|
end
|
|
472
475
|
|
|
476
|
+
# Custom attribute writer method with validation
|
|
477
|
+
# @param [Object] total_cpu_quota Value to be assigned
|
|
478
|
+
def total_cpu_quota=(total_cpu_quota)
|
|
479
|
+
if total_cpu_quota.nil?
|
|
480
|
+
fail ArgumentError, 'total_cpu_quota cannot be nil'
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
@total_cpu_quota = total_cpu_quota
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
# Custom attribute writer method with validation
|
|
487
|
+
# @param [Object] total_memory_quota Value to be assigned
|
|
488
|
+
def total_memory_quota=(total_memory_quota)
|
|
489
|
+
if total_memory_quota.nil?
|
|
490
|
+
fail ArgumentError, 'total_memory_quota cannot be nil'
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
@total_memory_quota = total_memory_quota
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
# Custom attribute writer method with validation
|
|
497
|
+
# @param [Object] total_disk_quota Value to be assigned
|
|
498
|
+
def total_disk_quota=(total_disk_quota)
|
|
499
|
+
if total_disk_quota.nil?
|
|
500
|
+
fail ArgumentError, 'total_disk_quota cannot be nil'
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
@total_disk_quota = total_disk_quota
|
|
504
|
+
end
|
|
505
|
+
|
|
473
506
|
# Custom attribute writer method with validation
|
|
474
507
|
# @param [Object] max_cpu_per_sandbox Value to be assigned
|
|
475
508
|
def max_cpu_per_sandbox=(max_cpu_per_sandbox)
|
|
@@ -526,14 +559,13 @@ module DaytonaApiClient
|
|
|
526
559
|
suspension_reason == o.suspension_reason &&
|
|
527
560
|
suspended_until == o.suspended_until &&
|
|
528
561
|
suspension_cleanup_grace_period_hours == o.suspension_cleanup_grace_period_hours &&
|
|
562
|
+
total_cpu_quota == o.total_cpu_quota &&
|
|
563
|
+
total_memory_quota == o.total_memory_quota &&
|
|
564
|
+
total_disk_quota == o.total_disk_quota &&
|
|
529
565
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
530
566
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
531
567
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
532
|
-
sandbox_limited_network_egress == o.sandbox_limited_network_egress
|
|
533
|
-
default_region_id == o.default_region_id &&
|
|
534
|
-
authenticated_rate_limit == o.authenticated_rate_limit &&
|
|
535
|
-
sandbox_create_rate_limit == o.sandbox_create_rate_limit &&
|
|
536
|
-
sandbox_lifecycle_rate_limit == o.sandbox_lifecycle_rate_limit
|
|
568
|
+
sandbox_limited_network_egress == o.sandbox_limited_network_egress
|
|
537
569
|
end
|
|
538
570
|
|
|
539
571
|
# @see the `==` method
|
|
@@ -545,7 +577,7 @@ module DaytonaApiClient
|
|
|
545
577
|
# Calculates hash code according to all attributes.
|
|
546
578
|
# @return [Integer] Hash code
|
|
547
579
|
def hash
|
|
548
|
-
[id, name, created_by, personal, created_at, updated_at, suspended, suspended_at, suspension_reason, suspended_until, suspension_cleanup_grace_period_hours,
|
|
580
|
+
[id, name, created_by, personal, created_at, updated_at, suspended, suspended_at, suspension_reason, suspended_until, suspension_cleanup_grace_period_hours, total_cpu_quota, total_memory_quota, total_disk_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, sandbox_limited_network_egress].hash
|
|
549
581
|
end
|
|
550
582
|
|
|
551
583
|
# Builds the object from hash
|