daytona_api_client 0.134.0.alpha.1 → 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/organizations_api.rb +29 -754
- data/lib/daytona_api_client/api/preview_api.rb +5 -74
- data/lib/daytona_api_client/api/runners_api.rb +20 -343
- data/lib/daytona_api_client/api/sandbox_api.rb +194 -558
- 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 -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/{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_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 -41
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -24
- 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 -30
- data/project.json +6 -34
- metadata +5 -38
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -194
- 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 -325
- 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 -49
- 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/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/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,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
|
|
@@ -15,7 +15,17 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class OrganizationUsageOverview
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :total_cpu_quota
|
|
19
|
+
|
|
20
|
+
attr_accessor :total_memory_quota
|
|
21
|
+
|
|
22
|
+
attr_accessor :total_disk_quota
|
|
23
|
+
|
|
24
|
+
attr_accessor :current_cpu_usage
|
|
25
|
+
|
|
26
|
+
attr_accessor :current_memory_usage
|
|
27
|
+
|
|
28
|
+
attr_accessor :current_disk_usage
|
|
19
29
|
|
|
20
30
|
attr_accessor :total_snapshot_quota
|
|
21
31
|
|
|
@@ -28,7 +38,12 @@ module DaytonaApiClient
|
|
|
28
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
39
|
def self.attribute_map
|
|
30
40
|
{
|
|
31
|
-
:'
|
|
41
|
+
:'total_cpu_quota' => :'totalCpuQuota',
|
|
42
|
+
:'total_memory_quota' => :'totalMemoryQuota',
|
|
43
|
+
:'total_disk_quota' => :'totalDiskQuota',
|
|
44
|
+
:'current_cpu_usage' => :'currentCpuUsage',
|
|
45
|
+
:'current_memory_usage' => :'currentMemoryUsage',
|
|
46
|
+
:'current_disk_usage' => :'currentDiskUsage',
|
|
32
47
|
:'total_snapshot_quota' => :'totalSnapshotQuota',
|
|
33
48
|
:'current_snapshot_usage' => :'currentSnapshotUsage',
|
|
34
49
|
:'total_volume_quota' => :'totalVolumeQuota',
|
|
@@ -49,7 +64,12 @@ module DaytonaApiClient
|
|
|
49
64
|
# Attribute type mapping.
|
|
50
65
|
def self.openapi_types
|
|
51
66
|
{
|
|
52
|
-
:'
|
|
67
|
+
:'total_cpu_quota' => :'Float',
|
|
68
|
+
:'total_memory_quota' => :'Float',
|
|
69
|
+
:'total_disk_quota' => :'Float',
|
|
70
|
+
:'current_cpu_usage' => :'Float',
|
|
71
|
+
:'current_memory_usage' => :'Float',
|
|
72
|
+
:'current_disk_usage' => :'Float',
|
|
53
73
|
:'total_snapshot_quota' => :'Float',
|
|
54
74
|
:'current_snapshot_usage' => :'Float',
|
|
55
75
|
:'total_volume_quota' => :'Float',
|
|
@@ -79,12 +99,40 @@ module DaytonaApiClient
|
|
|
79
99
|
h[k.to_sym] = v
|
|
80
100
|
}
|
|
81
101
|
|
|
82
|
-
if attributes.key?(:'
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
102
|
+
if attributes.key?(:'total_cpu_quota')
|
|
103
|
+
self.total_cpu_quota = attributes[:'total_cpu_quota']
|
|
104
|
+
else
|
|
105
|
+
self.total_cpu_quota = nil
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'total_memory_quota')
|
|
109
|
+
self.total_memory_quota = attributes[:'total_memory_quota']
|
|
110
|
+
else
|
|
111
|
+
self.total_memory_quota = nil
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'total_disk_quota')
|
|
115
|
+
self.total_disk_quota = attributes[:'total_disk_quota']
|
|
116
|
+
else
|
|
117
|
+
self.total_disk_quota = nil
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'current_cpu_usage')
|
|
121
|
+
self.current_cpu_usage = attributes[:'current_cpu_usage']
|
|
122
|
+
else
|
|
123
|
+
self.current_cpu_usage = nil
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'current_memory_usage')
|
|
127
|
+
self.current_memory_usage = attributes[:'current_memory_usage']
|
|
128
|
+
else
|
|
129
|
+
self.current_memory_usage = nil
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'current_disk_usage')
|
|
133
|
+
self.current_disk_usage = attributes[:'current_disk_usage']
|
|
86
134
|
else
|
|
87
|
-
self.
|
|
135
|
+
self.current_disk_usage = nil
|
|
88
136
|
end
|
|
89
137
|
|
|
90
138
|
if attributes.key?(:'total_snapshot_quota')
|
|
@@ -117,8 +165,28 @@ module DaytonaApiClient
|
|
|
117
165
|
def list_invalid_properties
|
|
118
166
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
119
167
|
invalid_properties = Array.new
|
|
120
|
-
if @
|
|
121
|
-
invalid_properties.push('invalid value for "
|
|
168
|
+
if @total_cpu_quota.nil?
|
|
169
|
+
invalid_properties.push('invalid value for "total_cpu_quota", total_cpu_quota cannot be nil.')
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if @total_memory_quota.nil?
|
|
173
|
+
invalid_properties.push('invalid value for "total_memory_quota", total_memory_quota cannot be nil.')
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if @total_disk_quota.nil?
|
|
177
|
+
invalid_properties.push('invalid value for "total_disk_quota", total_disk_quota cannot be nil.')
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if @current_cpu_usage.nil?
|
|
181
|
+
invalid_properties.push('invalid value for "current_cpu_usage", current_cpu_usage cannot be nil.')
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if @current_memory_usage.nil?
|
|
185
|
+
invalid_properties.push('invalid value for "current_memory_usage", current_memory_usage cannot be nil.')
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if @current_disk_usage.nil?
|
|
189
|
+
invalid_properties.push('invalid value for "current_disk_usage", current_disk_usage cannot be nil.')
|
|
122
190
|
end
|
|
123
191
|
|
|
124
192
|
if @total_snapshot_quota.nil?
|
|
@@ -144,7 +212,12 @@ module DaytonaApiClient
|
|
|
144
212
|
# @return true if the model is valid
|
|
145
213
|
def valid?
|
|
146
214
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
147
|
-
return false if @
|
|
215
|
+
return false if @total_cpu_quota.nil?
|
|
216
|
+
return false if @total_memory_quota.nil?
|
|
217
|
+
return false if @total_disk_quota.nil?
|
|
218
|
+
return false if @current_cpu_usage.nil?
|
|
219
|
+
return false if @current_memory_usage.nil?
|
|
220
|
+
return false if @current_disk_usage.nil?
|
|
148
221
|
return false if @total_snapshot_quota.nil?
|
|
149
222
|
return false if @current_snapshot_usage.nil?
|
|
150
223
|
return false if @total_volume_quota.nil?
|
|
@@ -153,13 +226,63 @@ module DaytonaApiClient
|
|
|
153
226
|
end
|
|
154
227
|
|
|
155
228
|
# Custom attribute writer method with validation
|
|
156
|
-
# @param [Object]
|
|
157
|
-
def
|
|
158
|
-
if
|
|
159
|
-
fail ArgumentError, '
|
|
229
|
+
# @param [Object] total_cpu_quota Value to be assigned
|
|
230
|
+
def total_cpu_quota=(total_cpu_quota)
|
|
231
|
+
if total_cpu_quota.nil?
|
|
232
|
+
fail ArgumentError, 'total_cpu_quota cannot be nil'
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
@total_cpu_quota = total_cpu_quota
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Custom attribute writer method with validation
|
|
239
|
+
# @param [Object] total_memory_quota Value to be assigned
|
|
240
|
+
def total_memory_quota=(total_memory_quota)
|
|
241
|
+
if total_memory_quota.nil?
|
|
242
|
+
fail ArgumentError, 'total_memory_quota cannot be nil'
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
@total_memory_quota = total_memory_quota
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# Custom attribute writer method with validation
|
|
249
|
+
# @param [Object] total_disk_quota Value to be assigned
|
|
250
|
+
def total_disk_quota=(total_disk_quota)
|
|
251
|
+
if total_disk_quota.nil?
|
|
252
|
+
fail ArgumentError, 'total_disk_quota cannot be nil'
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
@total_disk_quota = total_disk_quota
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Custom attribute writer method with validation
|
|
259
|
+
# @param [Object] current_cpu_usage Value to be assigned
|
|
260
|
+
def current_cpu_usage=(current_cpu_usage)
|
|
261
|
+
if current_cpu_usage.nil?
|
|
262
|
+
fail ArgumentError, 'current_cpu_usage cannot be nil'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
@current_cpu_usage = current_cpu_usage
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Custom attribute writer method with validation
|
|
269
|
+
# @param [Object] current_memory_usage Value to be assigned
|
|
270
|
+
def current_memory_usage=(current_memory_usage)
|
|
271
|
+
if current_memory_usage.nil?
|
|
272
|
+
fail ArgumentError, 'current_memory_usage cannot be nil'
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
@current_memory_usage = current_memory_usage
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Custom attribute writer method with validation
|
|
279
|
+
# @param [Object] current_disk_usage Value to be assigned
|
|
280
|
+
def current_disk_usage=(current_disk_usage)
|
|
281
|
+
if current_disk_usage.nil?
|
|
282
|
+
fail ArgumentError, 'current_disk_usage cannot be nil'
|
|
160
283
|
end
|
|
161
284
|
|
|
162
|
-
@
|
|
285
|
+
@current_disk_usage = current_disk_usage
|
|
163
286
|
end
|
|
164
287
|
|
|
165
288
|
# Custom attribute writer method with validation
|
|
@@ -207,7 +330,12 @@ module DaytonaApiClient
|
|
|
207
330
|
def ==(o)
|
|
208
331
|
return true if self.equal?(o)
|
|
209
332
|
self.class == o.class &&
|
|
210
|
-
|
|
333
|
+
total_cpu_quota == o.total_cpu_quota &&
|
|
334
|
+
total_memory_quota == o.total_memory_quota &&
|
|
335
|
+
total_disk_quota == o.total_disk_quota &&
|
|
336
|
+
current_cpu_usage == o.current_cpu_usage &&
|
|
337
|
+
current_memory_usage == o.current_memory_usage &&
|
|
338
|
+
current_disk_usage == o.current_disk_usage &&
|
|
211
339
|
total_snapshot_quota == o.total_snapshot_quota &&
|
|
212
340
|
current_snapshot_usage == o.current_snapshot_usage &&
|
|
213
341
|
total_volume_quota == o.total_volume_quota &&
|
|
@@ -223,7 +351,7 @@ module DaytonaApiClient
|
|
|
223
351
|
# Calculates hash code according to all attributes.
|
|
224
352
|
# @return [Integer] Hash code
|
|
225
353
|
def hash
|
|
226
|
-
[
|
|
354
|
+
[total_cpu_quota, total_memory_quota, total_disk_quota, current_cpu_usage, current_memory_usage, current_disk_usage, total_snapshot_quota, current_snapshot_usage, total_volume_quota, current_volume_usage].hash
|
|
227
355
|
end
|
|
228
356
|
|
|
229
357
|
# Builds the object from hash
|
|
@@ -23,17 +23,13 @@ module DaytonaApiClient
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :total_pages
|
|
25
25
|
|
|
26
|
-
# Token for next page in cursor-based pagination
|
|
27
|
-
attr_accessor :next_token
|
|
28
|
-
|
|
29
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
27
|
def self.attribute_map
|
|
31
28
|
{
|
|
32
29
|
:'items' => :'items',
|
|
33
30
|
:'total' => :'total',
|
|
34
31
|
:'page' => :'page',
|
|
35
|
-
:'total_pages' => :'totalPages'
|
|
36
|
-
:'next_token' => :'nextToken'
|
|
32
|
+
:'total_pages' => :'totalPages'
|
|
37
33
|
}
|
|
38
34
|
end
|
|
39
35
|
|
|
@@ -53,8 +49,7 @@ module DaytonaApiClient
|
|
|
53
49
|
:'items' => :'Array<AuditLog>',
|
|
54
50
|
:'total' => :'Float',
|
|
55
51
|
:'page' => :'Float',
|
|
56
|
-
:'total_pages' => :'Float'
|
|
57
|
-
:'next_token' => :'String'
|
|
52
|
+
:'total_pages' => :'Float'
|
|
58
53
|
}
|
|
59
54
|
end
|
|
60
55
|
|
|
@@ -105,10 +100,6 @@ module DaytonaApiClient
|
|
|
105
100
|
else
|
|
106
101
|
self.total_pages = nil
|
|
107
102
|
end
|
|
108
|
-
|
|
109
|
-
if attributes.key?(:'next_token')
|
|
110
|
-
self.next_token = attributes[:'next_token']
|
|
111
|
-
end
|
|
112
103
|
end
|
|
113
104
|
|
|
114
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -194,8 +185,7 @@ module DaytonaApiClient
|
|
|
194
185
|
items == o.items &&
|
|
195
186
|
total == o.total &&
|
|
196
187
|
page == o.page &&
|
|
197
|
-
total_pages == o.total_pages
|
|
198
|
-
next_token == o.next_token
|
|
188
|
+
total_pages == o.total_pages
|
|
199
189
|
end
|
|
200
190
|
|
|
201
191
|
# @see the `==` method
|
|
@@ -207,7 +197,7 @@ module DaytonaApiClient
|
|
|
207
197
|
# Calculates hash code according to all attributes.
|
|
208
198
|
# @return [Integer] Hash code
|
|
209
199
|
def hash
|
|
210
|
-
[items, total, page, total_pages
|
|
200
|
+
[items, total, page, total_pages].hash
|
|
211
201
|
end
|
|
212
202
|
|
|
213
203
|
# Builds the object from hash
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
17
|
+
class PaginatedSnapshotsDto
|
|
18
18
|
attr_accessor :items
|
|
19
19
|
|
|
20
20
|
attr_accessor :total
|
|
@@ -46,7 +46,7 @@ module DaytonaApiClient
|
|
|
46
46
|
# Attribute type mapping.
|
|
47
47
|
def self.openapi_types
|
|
48
48
|
{
|
|
49
|
-
:'items' => :'Array<
|
|
49
|
+
:'items' => :'Array<SnapshotDto>',
|
|
50
50
|
:'total' => :'Float',
|
|
51
51
|
:'page' => :'Float',
|
|
52
52
|
:'total_pages' => :'Float'
|
|
@@ -63,14 +63,14 @@ module DaytonaApiClient
|
|
|
63
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
64
|
def initialize(attributes = {})
|
|
65
65
|
if (!attributes.is_a?(Hash))
|
|
66
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::PaginatedSnapshotsDto` initialize method"
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
70
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
72
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::PaginatedSnapshotsDto`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
74
|
end
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|