daytona_api_client 0.144.0 → 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 +9 -0
- data/Gemfile.lock +101 -0
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +66 -18
- data/lib/daytona_api_client/api/docker_registry_api.rb +0 -3
- data/lib/daytona_api_client/api/health_api.rb +1 -52
- data/lib/daytona_api_client/api/organizations_api.rb +121 -973
- data/lib/daytona_api_client/api/preview_api.rb +5 -74
- data/lib/daytona_api_client/api/runners_api.rb +20 -407
- data/lib/daytona_api_client/api/sandbox_api.rb +189 -961
- data/lib/daytona_api_client/api/snapshots_api.rb +0 -66
- 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/build_info.rb +4 -31
- data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -166
- data/lib/daytona_api_client/models/create_organization.rb +4 -31
- data/lib/daytona_api_client/models/create_runner.rb +315 -31
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
- data/lib/daytona_api_client/models/create_snapshot.rb +4 -14
- 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 -119
- data/lib/daytona_api_client/models/organization_suspension.rb +5 -7
- 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/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -4
- data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
- data/lib/daytona_api_client/models/region.rb +4 -178
- data/lib/daytona_api_client/models/runner.rb +117 -79
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -0
- data/lib/daytona_api_client/models/sandbox.rb +14 -51
- data/lib/daytona_api_client/models/sandbox_state.rb +1 -2
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
- data/lib/daytona_api_client/models/snapshot_dto.rb +4 -36
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -31
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -77
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +6 -26
- data/lib/daytona_api_client/models/workspace.rb +35 -45
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +1 -40
- data/project.json +8 -56
- metadata +7 -53
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -204
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -31
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/admin_api.rb +0 -386
- data/lib/daytona_api_client/api/jobs_api.rb +0 -299
- data/lib/daytona_api_client/api/regions_api.rb +0 -77
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -385
- data/lib/daytona_api_client/models/create_region.rb +0 -269
- data/lib/daytona_api_client/models/create_region_response.rb +0 -280
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -263
- data/lib/daytona_api_client/models/job_status.rb +0 -42
- data/lib/daytona_api_client/models/job_type.rb +0 -50
- data/lib/daytona_api_client/models/log_entry.rb +0 -405
- data/lib/daytona_api_client/models/metric_data_point.rb +0 -263
- data/lib/daytona_api_client/models/metric_series.rb +0 -265
- data/lib/daytona_api_client/models/metrics_response.rb +0 -238
- data/lib/daytona_api_client/models/otel_config.rb +0 -249
- data/lib/daytona_api_client/models/paginated_logs.rb +0 -319
- data/lib/daytona_api_client/models/paginated_traces.rb +0 -319
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -238
- 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/regenerate_api_key_response.rb +0 -236
- data/lib/daytona_api_client/models/region_quota.rb +0 -339
- data/lib/daytona_api_client/models/region_type.rb +0 -41
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
- data/lib/daytona_api_client/models/resize_sandbox.rb +0 -296
- data/lib/daytona_api_client/models/runner_full.rb +0 -779
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -533
- data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -276
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -317
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -263
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -236
- data/lib/daytona_api_client/models/trace_span.rb +0 -403
- data/lib/daytona_api_client/models/trace_summary.rb +0 -381
- data/lib/daytona_api_client/models/update_job_status.rb +0 -278
- 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/update_region.rb +0 -242
- data/lib/daytona_api_client/models/url.rb +0 -236
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
|
@@ -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,30 +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
|
-
# Experimental configuration
|
|
76
|
-
attr_accessor :experimental_config
|
|
77
|
-
|
|
78
|
-
# Authenticated rate limit TTL in seconds
|
|
79
|
-
attr_accessor :authenticated_rate_limit_ttl_seconds
|
|
80
|
-
|
|
81
|
-
# Sandbox create rate limit TTL in seconds
|
|
82
|
-
attr_accessor :sandbox_create_rate_limit_ttl_seconds
|
|
83
|
-
|
|
84
|
-
# Sandbox lifecycle rate limit TTL in seconds
|
|
85
|
-
attr_accessor :sandbox_lifecycle_rate_limit_ttl_seconds
|
|
86
|
-
|
|
87
72
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
88
73
|
def self.attribute_map
|
|
89
74
|
{
|
|
@@ -98,18 +83,13 @@ module DaytonaApiClient
|
|
|
98
83
|
:'suspension_reason' => :'suspensionReason',
|
|
99
84
|
:'suspended_until' => :'suspendedUntil',
|
|
100
85
|
:'suspension_cleanup_grace_period_hours' => :'suspensionCleanupGracePeriodHours',
|
|
86
|
+
:'total_cpu_quota' => :'totalCpuQuota',
|
|
87
|
+
:'total_memory_quota' => :'totalMemoryQuota',
|
|
88
|
+
:'total_disk_quota' => :'totalDiskQuota',
|
|
101
89
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
102
90
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
103
91
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
104
|
-
:'sandbox_limited_network_egress' => :'sandboxLimitedNetworkEgress'
|
|
105
|
-
:'default_region_id' => :'defaultRegionId',
|
|
106
|
-
:'authenticated_rate_limit' => :'authenticatedRateLimit',
|
|
107
|
-
:'sandbox_create_rate_limit' => :'sandboxCreateRateLimit',
|
|
108
|
-
:'sandbox_lifecycle_rate_limit' => :'sandboxLifecycleRateLimit',
|
|
109
|
-
:'experimental_config' => :'experimentalConfig',
|
|
110
|
-
:'authenticated_rate_limit_ttl_seconds' => :'authenticatedRateLimitTtlSeconds',
|
|
111
|
-
:'sandbox_create_rate_limit_ttl_seconds' => :'sandboxCreateRateLimitTtlSeconds',
|
|
112
|
-
:'sandbox_lifecycle_rate_limit_ttl_seconds' => :'sandboxLifecycleRateLimitTtlSeconds'
|
|
92
|
+
:'sandbox_limited_network_egress' => :'sandboxLimitedNetworkEgress'
|
|
113
93
|
}
|
|
114
94
|
end
|
|
115
95
|
|
|
@@ -137,30 +117,19 @@ module DaytonaApiClient
|
|
|
137
117
|
:'suspension_reason' => :'String',
|
|
138
118
|
:'suspended_until' => :'Time',
|
|
139
119
|
:'suspension_cleanup_grace_period_hours' => :'Float',
|
|
120
|
+
:'total_cpu_quota' => :'Float',
|
|
121
|
+
:'total_memory_quota' => :'Float',
|
|
122
|
+
:'total_disk_quota' => :'Float',
|
|
140
123
|
:'max_cpu_per_sandbox' => :'Float',
|
|
141
124
|
:'max_memory_per_sandbox' => :'Float',
|
|
142
125
|
:'max_disk_per_sandbox' => :'Float',
|
|
143
|
-
:'sandbox_limited_network_egress' => :'Boolean'
|
|
144
|
-
:'default_region_id' => :'String',
|
|
145
|
-
:'authenticated_rate_limit' => :'Float',
|
|
146
|
-
:'sandbox_create_rate_limit' => :'Float',
|
|
147
|
-
:'sandbox_lifecycle_rate_limit' => :'Float',
|
|
148
|
-
:'experimental_config' => :'Object',
|
|
149
|
-
:'authenticated_rate_limit_ttl_seconds' => :'Float',
|
|
150
|
-
:'sandbox_create_rate_limit_ttl_seconds' => :'Float',
|
|
151
|
-
:'sandbox_lifecycle_rate_limit_ttl_seconds' => :'Float'
|
|
126
|
+
:'sandbox_limited_network_egress' => :'Boolean'
|
|
152
127
|
}
|
|
153
128
|
end
|
|
154
129
|
|
|
155
130
|
# List of attributes with nullable: true
|
|
156
131
|
def self.openapi_nullable
|
|
157
132
|
Set.new([
|
|
158
|
-
:'authenticated_rate_limit',
|
|
159
|
-
:'sandbox_create_rate_limit',
|
|
160
|
-
:'sandbox_lifecycle_rate_limit',
|
|
161
|
-
:'authenticated_rate_limit_ttl_seconds',
|
|
162
|
-
:'sandbox_create_rate_limit_ttl_seconds',
|
|
163
|
-
:'sandbox_lifecycle_rate_limit_ttl_seconds'
|
|
164
133
|
])
|
|
165
134
|
end
|
|
166
135
|
|
|
@@ -246,6 +215,24 @@ module DaytonaApiClient
|
|
|
246
215
|
self.suspension_cleanup_grace_period_hours = nil
|
|
247
216
|
end
|
|
248
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
|
+
|
|
249
236
|
if attributes.key?(:'max_cpu_per_sandbox')
|
|
250
237
|
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
251
238
|
else
|
|
@@ -269,52 +256,6 @@ module DaytonaApiClient
|
|
|
269
256
|
else
|
|
270
257
|
self.sandbox_limited_network_egress = nil
|
|
271
258
|
end
|
|
272
|
-
|
|
273
|
-
if attributes.key?(:'default_region_id')
|
|
274
|
-
self.default_region_id = attributes[:'default_region_id']
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
if attributes.key?(:'authenticated_rate_limit')
|
|
278
|
-
self.authenticated_rate_limit = attributes[:'authenticated_rate_limit']
|
|
279
|
-
else
|
|
280
|
-
self.authenticated_rate_limit = nil
|
|
281
|
-
end
|
|
282
|
-
|
|
283
|
-
if attributes.key?(:'sandbox_create_rate_limit')
|
|
284
|
-
self.sandbox_create_rate_limit = attributes[:'sandbox_create_rate_limit']
|
|
285
|
-
else
|
|
286
|
-
self.sandbox_create_rate_limit = nil
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
if attributes.key?(:'sandbox_lifecycle_rate_limit')
|
|
290
|
-
self.sandbox_lifecycle_rate_limit = attributes[:'sandbox_lifecycle_rate_limit']
|
|
291
|
-
else
|
|
292
|
-
self.sandbox_lifecycle_rate_limit = nil
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
if attributes.key?(:'experimental_config')
|
|
296
|
-
self.experimental_config = attributes[:'experimental_config']
|
|
297
|
-
else
|
|
298
|
-
self.experimental_config = nil
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
if attributes.key?(:'authenticated_rate_limit_ttl_seconds')
|
|
302
|
-
self.authenticated_rate_limit_ttl_seconds = attributes[:'authenticated_rate_limit_ttl_seconds']
|
|
303
|
-
else
|
|
304
|
-
self.authenticated_rate_limit_ttl_seconds = nil
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
if attributes.key?(:'sandbox_create_rate_limit_ttl_seconds')
|
|
308
|
-
self.sandbox_create_rate_limit_ttl_seconds = attributes[:'sandbox_create_rate_limit_ttl_seconds']
|
|
309
|
-
else
|
|
310
|
-
self.sandbox_create_rate_limit_ttl_seconds = nil
|
|
311
|
-
end
|
|
312
|
-
|
|
313
|
-
if attributes.key?(:'sandbox_lifecycle_rate_limit_ttl_seconds')
|
|
314
|
-
self.sandbox_lifecycle_rate_limit_ttl_seconds = attributes[:'sandbox_lifecycle_rate_limit_ttl_seconds']
|
|
315
|
-
else
|
|
316
|
-
self.sandbox_lifecycle_rate_limit_ttl_seconds = nil
|
|
317
|
-
end
|
|
318
259
|
end
|
|
319
260
|
|
|
320
261
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -366,6 +307,18 @@ module DaytonaApiClient
|
|
|
366
307
|
invalid_properties.push('invalid value for "suspension_cleanup_grace_period_hours", suspension_cleanup_grace_period_hours cannot be nil.')
|
|
367
308
|
end
|
|
368
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
|
+
|
|
369
322
|
if @max_cpu_per_sandbox.nil?
|
|
370
323
|
invalid_properties.push('invalid value for "max_cpu_per_sandbox", max_cpu_per_sandbox cannot be nil.')
|
|
371
324
|
end
|
|
@@ -382,10 +335,6 @@ module DaytonaApiClient
|
|
|
382
335
|
invalid_properties.push('invalid value for "sandbox_limited_network_egress", sandbox_limited_network_egress cannot be nil.')
|
|
383
336
|
end
|
|
384
337
|
|
|
385
|
-
if @experimental_config.nil?
|
|
386
|
-
invalid_properties.push('invalid value for "experimental_config", experimental_config cannot be nil.')
|
|
387
|
-
end
|
|
388
|
-
|
|
389
338
|
invalid_properties
|
|
390
339
|
end
|
|
391
340
|
|
|
@@ -404,11 +353,13 @@ module DaytonaApiClient
|
|
|
404
353
|
return false if @suspension_reason.nil?
|
|
405
354
|
return false if @suspended_until.nil?
|
|
406
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?
|
|
407
359
|
return false if @max_cpu_per_sandbox.nil?
|
|
408
360
|
return false if @max_memory_per_sandbox.nil?
|
|
409
361
|
return false if @max_disk_per_sandbox.nil?
|
|
410
362
|
return false if @sandbox_limited_network_egress.nil?
|
|
411
|
-
return false if @experimental_config.nil?
|
|
412
363
|
true
|
|
413
364
|
end
|
|
414
365
|
|
|
@@ -522,6 +473,36 @@ module DaytonaApiClient
|
|
|
522
473
|
@suspension_cleanup_grace_period_hours = suspension_cleanup_grace_period_hours
|
|
523
474
|
end
|
|
524
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
|
+
|
|
525
506
|
# Custom attribute writer method with validation
|
|
526
507
|
# @param [Object] max_cpu_per_sandbox Value to be assigned
|
|
527
508
|
def max_cpu_per_sandbox=(max_cpu_per_sandbox)
|
|
@@ -562,16 +543,6 @@ module DaytonaApiClient
|
|
|
562
543
|
@sandbox_limited_network_egress = sandbox_limited_network_egress
|
|
563
544
|
end
|
|
564
545
|
|
|
565
|
-
# Custom attribute writer method with validation
|
|
566
|
-
# @param [Object] experimental_config Value to be assigned
|
|
567
|
-
def experimental_config=(experimental_config)
|
|
568
|
-
if experimental_config.nil?
|
|
569
|
-
fail ArgumentError, 'experimental_config cannot be nil'
|
|
570
|
-
end
|
|
571
|
-
|
|
572
|
-
@experimental_config = experimental_config
|
|
573
|
-
end
|
|
574
|
-
|
|
575
546
|
# Checks equality by comparing each attribute.
|
|
576
547
|
# @param [Object] Object to be compared
|
|
577
548
|
def ==(o)
|
|
@@ -588,18 +559,13 @@ module DaytonaApiClient
|
|
|
588
559
|
suspension_reason == o.suspension_reason &&
|
|
589
560
|
suspended_until == o.suspended_until &&
|
|
590
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 &&
|
|
591
565
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
592
566
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
593
567
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
594
|
-
sandbox_limited_network_egress == o.sandbox_limited_network_egress
|
|
595
|
-
default_region_id == o.default_region_id &&
|
|
596
|
-
authenticated_rate_limit == o.authenticated_rate_limit &&
|
|
597
|
-
sandbox_create_rate_limit == o.sandbox_create_rate_limit &&
|
|
598
|
-
sandbox_lifecycle_rate_limit == o.sandbox_lifecycle_rate_limit &&
|
|
599
|
-
experimental_config == o.experimental_config &&
|
|
600
|
-
authenticated_rate_limit_ttl_seconds == o.authenticated_rate_limit_ttl_seconds &&
|
|
601
|
-
sandbox_create_rate_limit_ttl_seconds == o.sandbox_create_rate_limit_ttl_seconds &&
|
|
602
|
-
sandbox_lifecycle_rate_limit_ttl_seconds == o.sandbox_lifecycle_rate_limit_ttl_seconds
|
|
568
|
+
sandbox_limited_network_egress == o.sandbox_limited_network_egress
|
|
603
569
|
end
|
|
604
570
|
|
|
605
571
|
# @see the `==` method
|
|
@@ -611,7 +577,7 @@ module DaytonaApiClient
|
|
|
611
577
|
# Calculates hash code according to all attributes.
|
|
612
578
|
# @return [Integer] Hash code
|
|
613
579
|
def hash
|
|
614
|
-
[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
|
|
615
581
|
end
|
|
616
582
|
|
|
617
583
|
# Builds the object from hash
|
|
@@ -88,6 +88,8 @@ module DaytonaApiClient
|
|
|
88
88
|
|
|
89
89
|
if attributes.key?(:'suspension_cleanup_grace_period_hours')
|
|
90
90
|
self.suspension_cleanup_grace_period_hours = attributes[:'suspension_cleanup_grace_period_hours']
|
|
91
|
+
else
|
|
92
|
+
self.suspension_cleanup_grace_period_hours = nil
|
|
91
93
|
end
|
|
92
94
|
end
|
|
93
95
|
|
|
@@ -104,8 +106,8 @@ module DaytonaApiClient
|
|
|
104
106
|
invalid_properties.push('invalid value for "_until", _until cannot be nil.')
|
|
105
107
|
end
|
|
106
108
|
|
|
107
|
-
if
|
|
108
|
-
invalid_properties.push('invalid value for "suspension_cleanup_grace_period_hours",
|
|
109
|
+
if @suspension_cleanup_grace_period_hours.nil?
|
|
110
|
+
invalid_properties.push('invalid value for "suspension_cleanup_grace_period_hours", suspension_cleanup_grace_period_hours cannot be nil.')
|
|
109
111
|
end
|
|
110
112
|
|
|
111
113
|
invalid_properties
|
|
@@ -117,7 +119,7 @@ module DaytonaApiClient
|
|
|
117
119
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
120
|
return false if @reason.nil?
|
|
119
121
|
return false if @_until.nil?
|
|
120
|
-
return false if
|
|
122
|
+
return false if @suspension_cleanup_grace_period_hours.nil?
|
|
121
123
|
true
|
|
122
124
|
end
|
|
123
125
|
|
|
@@ -148,10 +150,6 @@ module DaytonaApiClient
|
|
|
148
150
|
fail ArgumentError, 'suspension_cleanup_grace_period_hours cannot be nil'
|
|
149
151
|
end
|
|
150
152
|
|
|
151
|
-
if suspension_cleanup_grace_period_hours < 0
|
|
152
|
-
fail ArgumentError, 'invalid value for "suspension_cleanup_grace_period_hours", must be greater than or equal to 0.'
|
|
153
|
-
end
|
|
154
|
-
|
|
155
153
|
@suspension_cleanup_grace_period_hours = suspension_cleanup_grace_period_hours
|
|
156
154
|
end
|
|
157
155
|
|