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
|
@@ -21,9 +21,6 @@ module DaytonaApiClient
|
|
|
21
21
|
# The organization ID of the sandbox
|
|
22
22
|
attr_accessor :organization_id
|
|
23
23
|
|
|
24
|
-
# The name of the sandbox
|
|
25
|
-
attr_accessor :name
|
|
26
|
-
|
|
27
24
|
# The snapshot used for the sandbox
|
|
28
25
|
attr_accessor :snapshot
|
|
29
26
|
|
|
@@ -69,9 +66,6 @@ module DaytonaApiClient
|
|
|
69
66
|
# The error reason of the sandbox
|
|
70
67
|
attr_accessor :error_reason
|
|
71
68
|
|
|
72
|
-
# Whether the sandbox error is recoverable.
|
|
73
|
-
attr_accessor :recoverable
|
|
74
|
-
|
|
75
69
|
# The state of the backup
|
|
76
70
|
attr_accessor :backup_state
|
|
77
71
|
|
|
@@ -87,6 +81,9 @@ module DaytonaApiClient
|
|
|
87
81
|
# Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
|
|
88
82
|
attr_accessor :auto_delete_interval
|
|
89
83
|
|
|
84
|
+
# The domain name of the runner
|
|
85
|
+
attr_accessor :runner_domain
|
|
86
|
+
|
|
90
87
|
# Array of volumes attached to the sandbox
|
|
91
88
|
attr_accessor :volumes
|
|
92
89
|
|
|
@@ -132,7 +129,6 @@ module DaytonaApiClient
|
|
|
132
129
|
{
|
|
133
130
|
:'id' => :'id',
|
|
134
131
|
:'organization_id' => :'organizationId',
|
|
135
|
-
:'name' => :'name',
|
|
136
132
|
:'snapshot' => :'snapshot',
|
|
137
133
|
:'user' => :'user',
|
|
138
134
|
:'env' => :'env',
|
|
@@ -148,12 +144,12 @@ module DaytonaApiClient
|
|
|
148
144
|
:'state' => :'state',
|
|
149
145
|
:'desired_state' => :'desiredState',
|
|
150
146
|
:'error_reason' => :'errorReason',
|
|
151
|
-
:'recoverable' => :'recoverable',
|
|
152
147
|
:'backup_state' => :'backupState',
|
|
153
148
|
:'backup_created_at' => :'backupCreatedAt',
|
|
154
149
|
:'auto_stop_interval' => :'autoStopInterval',
|
|
155
150
|
:'auto_archive_interval' => :'autoArchiveInterval',
|
|
156
151
|
:'auto_delete_interval' => :'autoDeleteInterval',
|
|
152
|
+
:'runner_domain' => :'runnerDomain',
|
|
157
153
|
:'volumes' => :'volumes',
|
|
158
154
|
:'build_info' => :'buildInfo',
|
|
159
155
|
:'created_at' => :'createdAt',
|
|
@@ -178,7 +174,6 @@ module DaytonaApiClient
|
|
|
178
174
|
{
|
|
179
175
|
:'id' => :'String',
|
|
180
176
|
:'organization_id' => :'String',
|
|
181
|
-
:'name' => :'String',
|
|
182
177
|
:'snapshot' => :'String',
|
|
183
178
|
:'user' => :'String',
|
|
184
179
|
:'env' => :'Hash<String, String>',
|
|
@@ -194,12 +189,12 @@ module DaytonaApiClient
|
|
|
194
189
|
:'state' => :'SandboxState',
|
|
195
190
|
:'desired_state' => :'SandboxDesiredState',
|
|
196
191
|
:'error_reason' => :'String',
|
|
197
|
-
:'recoverable' => :'Boolean',
|
|
198
192
|
:'backup_state' => :'String',
|
|
199
193
|
:'backup_created_at' => :'String',
|
|
200
194
|
:'auto_stop_interval' => :'Float',
|
|
201
195
|
:'auto_archive_interval' => :'Float',
|
|
202
196
|
:'auto_delete_interval' => :'Float',
|
|
197
|
+
:'runner_domain' => :'String',
|
|
203
198
|
:'volumes' => :'Array<SandboxVolume>',
|
|
204
199
|
:'build_info' => :'BuildInfo',
|
|
205
200
|
:'created_at' => :'String',
|
|
@@ -243,12 +238,6 @@ module DaytonaApiClient
|
|
|
243
238
|
self.organization_id = nil
|
|
244
239
|
end
|
|
245
240
|
|
|
246
|
-
if attributes.key?(:'name')
|
|
247
|
-
self.name = attributes[:'name']
|
|
248
|
-
else
|
|
249
|
-
self.name = nil
|
|
250
|
-
end
|
|
251
|
-
|
|
252
241
|
if attributes.key?(:'snapshot')
|
|
253
242
|
self.snapshot = attributes[:'snapshot']
|
|
254
243
|
end
|
|
@@ -333,10 +322,6 @@ module DaytonaApiClient
|
|
|
333
322
|
self.error_reason = attributes[:'error_reason']
|
|
334
323
|
end
|
|
335
324
|
|
|
336
|
-
if attributes.key?(:'recoverable')
|
|
337
|
-
self.recoverable = attributes[:'recoverable']
|
|
338
|
-
end
|
|
339
|
-
|
|
340
325
|
if attributes.key?(:'backup_state')
|
|
341
326
|
self.backup_state = attributes[:'backup_state']
|
|
342
327
|
end
|
|
@@ -357,6 +342,10 @@ module DaytonaApiClient
|
|
|
357
342
|
self.auto_delete_interval = attributes[:'auto_delete_interval']
|
|
358
343
|
end
|
|
359
344
|
|
|
345
|
+
if attributes.key?(:'runner_domain')
|
|
346
|
+
self.runner_domain = attributes[:'runner_domain']
|
|
347
|
+
end
|
|
348
|
+
|
|
360
349
|
if attributes.key?(:'volumes')
|
|
361
350
|
if (value = attributes[:'volumes']).is_a?(Array)
|
|
362
351
|
self.volumes = value
|
|
@@ -397,10 +386,6 @@ module DaytonaApiClient
|
|
|
397
386
|
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
|
398
387
|
end
|
|
399
388
|
|
|
400
|
-
if @name.nil?
|
|
401
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
402
|
-
end
|
|
403
|
-
|
|
404
389
|
if @user.nil?
|
|
405
390
|
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
|
406
391
|
end
|
|
@@ -450,7 +435,6 @@ module DaytonaApiClient
|
|
|
450
435
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
451
436
|
return false if @id.nil?
|
|
452
437
|
return false if @organization_id.nil?
|
|
453
|
-
return false if @name.nil?
|
|
454
438
|
return false if @user.nil?
|
|
455
439
|
return false if @env.nil?
|
|
456
440
|
return false if @labels.nil?
|
|
@@ -488,16 +472,6 @@ module DaytonaApiClient
|
|
|
488
472
|
@organization_id = organization_id
|
|
489
473
|
end
|
|
490
474
|
|
|
491
|
-
# Custom attribute writer method with validation
|
|
492
|
-
# @param [Object] name Value to be assigned
|
|
493
|
-
def name=(name)
|
|
494
|
-
if name.nil?
|
|
495
|
-
fail ArgumentError, 'name cannot be nil'
|
|
496
|
-
end
|
|
497
|
-
|
|
498
|
-
@name = name
|
|
499
|
-
end
|
|
500
|
-
|
|
501
475
|
# Custom attribute writer method with validation
|
|
502
476
|
# @param [Object] user Value to be assigned
|
|
503
477
|
def user=(user)
|
|
@@ -625,7 +599,6 @@ module DaytonaApiClient
|
|
|
625
599
|
self.class == o.class &&
|
|
626
600
|
id == o.id &&
|
|
627
601
|
organization_id == o.organization_id &&
|
|
628
|
-
name == o.name &&
|
|
629
602
|
snapshot == o.snapshot &&
|
|
630
603
|
user == o.user &&
|
|
631
604
|
env == o.env &&
|
|
@@ -641,12 +614,12 @@ module DaytonaApiClient
|
|
|
641
614
|
state == o.state &&
|
|
642
615
|
desired_state == o.desired_state &&
|
|
643
616
|
error_reason == o.error_reason &&
|
|
644
|
-
recoverable == o.recoverable &&
|
|
645
617
|
backup_state == o.backup_state &&
|
|
646
618
|
backup_created_at == o.backup_created_at &&
|
|
647
619
|
auto_stop_interval == o.auto_stop_interval &&
|
|
648
620
|
auto_archive_interval == o.auto_archive_interval &&
|
|
649
621
|
auto_delete_interval == o.auto_delete_interval &&
|
|
622
|
+
runner_domain == o.runner_domain &&
|
|
650
623
|
volumes == o.volumes &&
|
|
651
624
|
build_info == o.build_info &&
|
|
652
625
|
created_at == o.created_at &&
|
|
@@ -664,7 +637,7 @@ module DaytonaApiClient
|
|
|
664
637
|
# Calculates hash code according to all attributes.
|
|
665
638
|
# @return [Integer] Hash code
|
|
666
639
|
def hash
|
|
667
|
-
[id, organization_id,
|
|
640
|
+
[id, organization_id, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, runner_domain, volumes, build_info, created_at, updated_at, _class, daemon_version].hash
|
|
668
641
|
end
|
|
669
642
|
|
|
670
643
|
# Builds the object from hash
|
|
@@ -21,15 +21,11 @@ module DaytonaApiClient
|
|
|
21
21
|
# The mount path for the volume
|
|
22
22
|
attr_accessor :mount_path
|
|
23
23
|
|
|
24
|
-
# Optional subpath within the volume to mount. When specified, only this S3 prefix will be accessible. When omitted, the entire volume is mounted.
|
|
25
|
-
attr_accessor :subpath
|
|
26
|
-
|
|
27
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
25
|
def self.attribute_map
|
|
29
26
|
{
|
|
30
27
|
:'volume_id' => :'volumeId',
|
|
31
|
-
:'mount_path' => :'mountPath'
|
|
32
|
-
:'subpath' => :'subpath'
|
|
28
|
+
:'mount_path' => :'mountPath'
|
|
33
29
|
}
|
|
34
30
|
end
|
|
35
31
|
|
|
@@ -47,8 +43,7 @@ module DaytonaApiClient
|
|
|
47
43
|
def self.openapi_types
|
|
48
44
|
{
|
|
49
45
|
:'volume_id' => :'String',
|
|
50
|
-
:'mount_path' => :'String'
|
|
51
|
-
:'subpath' => :'String'
|
|
46
|
+
:'mount_path' => :'String'
|
|
52
47
|
}
|
|
53
48
|
end
|
|
54
49
|
|
|
@@ -85,10 +80,6 @@ module DaytonaApiClient
|
|
|
85
80
|
else
|
|
86
81
|
self.mount_path = nil
|
|
87
82
|
end
|
|
88
|
-
|
|
89
|
-
if attributes.key?(:'subpath')
|
|
90
|
-
self.subpath = attributes[:'subpath']
|
|
91
|
-
end
|
|
92
83
|
end
|
|
93
84
|
|
|
94
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -142,8 +133,7 @@ module DaytonaApiClient
|
|
|
142
133
|
return true if self.equal?(o)
|
|
143
134
|
self.class == o.class &&
|
|
144
135
|
volume_id == o.volume_id &&
|
|
145
|
-
mount_path == o.mount_path
|
|
146
|
-
subpath == o.subpath
|
|
136
|
+
mount_path == o.mount_path
|
|
147
137
|
end
|
|
148
138
|
|
|
149
139
|
# @see the `==` method
|
|
@@ -155,7 +145,7 @@ module DaytonaApiClient
|
|
|
155
145
|
# Calculates hash code according to all attributes.
|
|
156
146
|
# @return [Integer] Hash code
|
|
157
147
|
def hash
|
|
158
|
-
[volume_id, mount_path
|
|
148
|
+
[volume_id, mount_path].hash
|
|
159
149
|
end
|
|
160
150
|
|
|
161
151
|
# Builds the object from hash
|
|
@@ -15,9 +15,12 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class SnapshotState
|
|
18
|
+
BUILD_PENDING = "build_pending".freeze
|
|
18
19
|
BUILDING = "building".freeze
|
|
19
20
|
PENDING = "pending".freeze
|
|
20
21
|
PULLING = "pulling".freeze
|
|
22
|
+
PENDING_VALIDATION = "pending_validation".freeze
|
|
23
|
+
VALIDATING = "validating".freeze
|
|
21
24
|
ACTIVE = "active".freeze
|
|
22
25
|
INACTIVE = "inactive".freeze
|
|
23
26
|
ERROR = "error".freeze
|
|
@@ -25,7 +28,7 @@ module DaytonaApiClient
|
|
|
25
28
|
REMOVING = "removing".freeze
|
|
26
29
|
|
|
27
30
|
def self.all_vars
|
|
28
|
-
@all_vars ||= [BUILDING, PENDING, PULLING, ACTIVE, INACTIVE, ERROR, BUILD_FAILED, REMOVING].freeze
|
|
31
|
+
@all_vars ||= [BUILD_PENDING, BUILDING, PENDING, PULLING, PENDING_VALIDATION, VALIDATING, ACTIVE, INACTIVE, ERROR, BUILD_FAILED, REMOVING].freeze
|
|
29
32
|
end
|
|
30
33
|
|
|
31
34
|
# Builds the enum from string
|
|
@@ -21,11 +21,19 @@ module DaytonaApiClient
|
|
|
21
21
|
# ID of the sandbox this SSH access is for
|
|
22
22
|
attr_accessor :sandbox_id
|
|
23
23
|
|
|
24
|
+
# ID of the runner hosting the sandbox
|
|
25
|
+
attr_accessor :runner_id
|
|
26
|
+
|
|
27
|
+
# Domain of the runner hosting the sandbox
|
|
28
|
+
attr_accessor :runner_domain
|
|
29
|
+
|
|
24
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
31
|
def self.attribute_map
|
|
26
32
|
{
|
|
27
33
|
:'valid' => :'valid',
|
|
28
|
-
:'sandbox_id' => :'sandboxId'
|
|
34
|
+
:'sandbox_id' => :'sandboxId',
|
|
35
|
+
:'runner_id' => :'runnerId',
|
|
36
|
+
:'runner_domain' => :'runnerDomain'
|
|
29
37
|
}
|
|
30
38
|
end
|
|
31
39
|
|
|
@@ -43,7 +51,9 @@ module DaytonaApiClient
|
|
|
43
51
|
def self.openapi_types
|
|
44
52
|
{
|
|
45
53
|
:'valid' => :'Boolean',
|
|
46
|
-
:'sandbox_id' => :'String'
|
|
54
|
+
:'sandbox_id' => :'String',
|
|
55
|
+
:'runner_id' => :'String',
|
|
56
|
+
:'runner_domain' => :'String'
|
|
47
57
|
}
|
|
48
58
|
end
|
|
49
59
|
|
|
@@ -80,6 +90,14 @@ module DaytonaApiClient
|
|
|
80
90
|
else
|
|
81
91
|
self.sandbox_id = nil
|
|
82
92
|
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'runner_id')
|
|
95
|
+
self.runner_id = attributes[:'runner_id']
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'runner_domain')
|
|
99
|
+
self.runner_domain = attributes[:'runner_domain']
|
|
100
|
+
end
|
|
83
101
|
end
|
|
84
102
|
|
|
85
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -133,7 +151,9 @@ module DaytonaApiClient
|
|
|
133
151
|
return true if self.equal?(o)
|
|
134
152
|
self.class == o.class &&
|
|
135
153
|
valid == o.valid &&
|
|
136
|
-
sandbox_id == o.sandbox_id
|
|
154
|
+
sandbox_id == o.sandbox_id &&
|
|
155
|
+
runner_id == o.runner_id &&
|
|
156
|
+
runner_domain == o.runner_domain
|
|
137
157
|
end
|
|
138
158
|
|
|
139
159
|
# @see the `==` method
|
|
@@ -145,7 +165,7 @@ module DaytonaApiClient
|
|
|
145
165
|
# Calculates hash code according to all attributes.
|
|
146
166
|
# @return [Integer] Hash code
|
|
147
167
|
def hash
|
|
148
|
-
[valid, sandbox_id].hash
|
|
168
|
+
[valid, sandbox_id, runner_id, runner_domain].hash
|
|
149
169
|
end
|
|
150
170
|
|
|
151
171
|
# Builds the object from hash
|
|
@@ -15,6 +15,12 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class UpdateOrganizationQuota
|
|
18
|
+
attr_accessor :total_cpu_quota
|
|
19
|
+
|
|
20
|
+
attr_accessor :total_memory_quota
|
|
21
|
+
|
|
22
|
+
attr_accessor :total_disk_quota
|
|
23
|
+
|
|
18
24
|
attr_accessor :max_cpu_per_sandbox
|
|
19
25
|
|
|
20
26
|
attr_accessor :max_memory_per_sandbox
|
|
@@ -27,24 +33,18 @@ module DaytonaApiClient
|
|
|
27
33
|
|
|
28
34
|
attr_accessor :volume_quota
|
|
29
35
|
|
|
30
|
-
attr_accessor :authenticated_rate_limit
|
|
31
|
-
|
|
32
|
-
attr_accessor :sandbox_create_rate_limit
|
|
33
|
-
|
|
34
|
-
attr_accessor :sandbox_lifecycle_rate_limit
|
|
35
|
-
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
+
:'total_cpu_quota' => :'totalCpuQuota',
|
|
40
|
+
:'total_memory_quota' => :'totalMemoryQuota',
|
|
41
|
+
:'total_disk_quota' => :'totalDiskQuota',
|
|
39
42
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
40
43
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
41
44
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
42
45
|
:'snapshot_quota' => :'snapshotQuota',
|
|
43
46
|
:'max_snapshot_size' => :'maxSnapshotSize',
|
|
44
|
-
:'volume_quota' => :'volumeQuota'
|
|
45
|
-
:'authenticated_rate_limit' => :'authenticatedRateLimit',
|
|
46
|
-
:'sandbox_create_rate_limit' => :'sandboxCreateRateLimit',
|
|
47
|
-
:'sandbox_lifecycle_rate_limit' => :'sandboxLifecycleRateLimit'
|
|
47
|
+
:'volume_quota' => :'volumeQuota'
|
|
48
48
|
}
|
|
49
49
|
end
|
|
50
50
|
|
|
@@ -61,30 +61,30 @@ module DaytonaApiClient
|
|
|
61
61
|
# Attribute type mapping.
|
|
62
62
|
def self.openapi_types
|
|
63
63
|
{
|
|
64
|
+
:'total_cpu_quota' => :'Float',
|
|
65
|
+
:'total_memory_quota' => :'Float',
|
|
66
|
+
:'total_disk_quota' => :'Float',
|
|
64
67
|
:'max_cpu_per_sandbox' => :'Float',
|
|
65
68
|
:'max_memory_per_sandbox' => :'Float',
|
|
66
69
|
:'max_disk_per_sandbox' => :'Float',
|
|
67
70
|
:'snapshot_quota' => :'Float',
|
|
68
71
|
:'max_snapshot_size' => :'Float',
|
|
69
|
-
:'volume_quota' => :'Float'
|
|
70
|
-
:'authenticated_rate_limit' => :'Float',
|
|
71
|
-
:'sandbox_create_rate_limit' => :'Float',
|
|
72
|
-
:'sandbox_lifecycle_rate_limit' => :'Float'
|
|
72
|
+
:'volume_quota' => :'Float'
|
|
73
73
|
}
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
# List of attributes with nullable: true
|
|
77
77
|
def self.openapi_nullable
|
|
78
78
|
Set.new([
|
|
79
|
+
:'total_cpu_quota',
|
|
80
|
+
:'total_memory_quota',
|
|
81
|
+
:'total_disk_quota',
|
|
79
82
|
:'max_cpu_per_sandbox',
|
|
80
83
|
:'max_memory_per_sandbox',
|
|
81
84
|
:'max_disk_per_sandbox',
|
|
82
85
|
:'snapshot_quota',
|
|
83
86
|
:'max_snapshot_size',
|
|
84
|
-
:'volume_quota'
|
|
85
|
-
:'authenticated_rate_limit',
|
|
86
|
-
:'sandbox_create_rate_limit',
|
|
87
|
-
:'sandbox_lifecycle_rate_limit'
|
|
87
|
+
:'volume_quota'
|
|
88
88
|
])
|
|
89
89
|
end
|
|
90
90
|
|
|
@@ -104,6 +104,24 @@ module DaytonaApiClient
|
|
|
104
104
|
h[k.to_sym] = v
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
if attributes.key?(:'total_cpu_quota')
|
|
108
|
+
self.total_cpu_quota = attributes[:'total_cpu_quota']
|
|
109
|
+
else
|
|
110
|
+
self.total_cpu_quota = nil
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'total_memory_quota')
|
|
114
|
+
self.total_memory_quota = attributes[:'total_memory_quota']
|
|
115
|
+
else
|
|
116
|
+
self.total_memory_quota = nil
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'total_disk_quota')
|
|
120
|
+
self.total_disk_quota = attributes[:'total_disk_quota']
|
|
121
|
+
else
|
|
122
|
+
self.total_disk_quota = nil
|
|
123
|
+
end
|
|
124
|
+
|
|
107
125
|
if attributes.key?(:'max_cpu_per_sandbox')
|
|
108
126
|
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
109
127
|
else
|
|
@@ -139,24 +157,6 @@ module DaytonaApiClient
|
|
|
139
157
|
else
|
|
140
158
|
self.volume_quota = nil
|
|
141
159
|
end
|
|
142
|
-
|
|
143
|
-
if attributes.key?(:'authenticated_rate_limit')
|
|
144
|
-
self.authenticated_rate_limit = attributes[:'authenticated_rate_limit']
|
|
145
|
-
else
|
|
146
|
-
self.authenticated_rate_limit = nil
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
if attributes.key?(:'sandbox_create_rate_limit')
|
|
150
|
-
self.sandbox_create_rate_limit = attributes[:'sandbox_create_rate_limit']
|
|
151
|
-
else
|
|
152
|
-
self.sandbox_create_rate_limit = nil
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
if attributes.key?(:'sandbox_lifecycle_rate_limit')
|
|
156
|
-
self.sandbox_lifecycle_rate_limit = attributes[:'sandbox_lifecycle_rate_limit']
|
|
157
|
-
else
|
|
158
|
-
self.sandbox_lifecycle_rate_limit = nil
|
|
159
|
-
end
|
|
160
160
|
end
|
|
161
161
|
|
|
162
162
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -179,15 +179,15 @@ module DaytonaApiClient
|
|
|
179
179
|
def ==(o)
|
|
180
180
|
return true if self.equal?(o)
|
|
181
181
|
self.class == o.class &&
|
|
182
|
+
total_cpu_quota == o.total_cpu_quota &&
|
|
183
|
+
total_memory_quota == o.total_memory_quota &&
|
|
184
|
+
total_disk_quota == o.total_disk_quota &&
|
|
182
185
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
183
186
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
184
187
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
185
188
|
snapshot_quota == o.snapshot_quota &&
|
|
186
189
|
max_snapshot_size == o.max_snapshot_size &&
|
|
187
|
-
volume_quota == o.volume_quota
|
|
188
|
-
authenticated_rate_limit == o.authenticated_rate_limit &&
|
|
189
|
-
sandbox_create_rate_limit == o.sandbox_create_rate_limit &&
|
|
190
|
-
sandbox_lifecycle_rate_limit == o.sandbox_lifecycle_rate_limit
|
|
190
|
+
volume_quota == o.volume_quota
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
# @see the `==` method
|
|
@@ -199,7 +199,7 @@ module DaytonaApiClient
|
|
|
199
199
|
# Calculates hash code according to all attributes.
|
|
200
200
|
# @return [Integer] Hash code
|
|
201
201
|
def hash
|
|
202
|
-
[max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_quota, max_snapshot_size, volume_quota
|
|
202
|
+
[total_cpu_quota, total_memory_quota, total_disk_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_quota, max_snapshot_size, volume_quota].hash
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# Builds the object from hash
|
|
@@ -18,9 +18,6 @@ module DaytonaApiClient
|
|
|
18
18
|
# The new state for the sandbox
|
|
19
19
|
attr_accessor :state
|
|
20
20
|
|
|
21
|
-
# Optional error message when reporting an error state
|
|
22
|
-
attr_accessor :error_reason
|
|
23
|
-
|
|
24
21
|
class EnumAttributeValidator
|
|
25
22
|
attr_reader :datatype
|
|
26
23
|
attr_reader :allowable_values
|
|
@@ -46,8 +43,7 @@ module DaytonaApiClient
|
|
|
46
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
44
|
def self.attribute_map
|
|
48
45
|
{
|
|
49
|
-
:'state' => :'state'
|
|
50
|
-
:'error_reason' => :'errorReason'
|
|
46
|
+
:'state' => :'state'
|
|
51
47
|
}
|
|
52
48
|
end
|
|
53
49
|
|
|
@@ -64,8 +60,7 @@ module DaytonaApiClient
|
|
|
64
60
|
# Attribute type mapping.
|
|
65
61
|
def self.openapi_types
|
|
66
62
|
{
|
|
67
|
-
:'state' => :'String'
|
|
68
|
-
:'error_reason' => :'String'
|
|
63
|
+
:'state' => :'String'
|
|
69
64
|
}
|
|
70
65
|
end
|
|
71
66
|
|
|
@@ -96,10 +91,6 @@ module DaytonaApiClient
|
|
|
96
91
|
else
|
|
97
92
|
self.state = nil
|
|
98
93
|
end
|
|
99
|
-
|
|
100
|
-
if attributes.key?(:'error_reason')
|
|
101
|
-
self.error_reason = attributes[:'error_reason']
|
|
102
|
-
end
|
|
103
94
|
end
|
|
104
95
|
|
|
105
96
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -139,8 +130,7 @@ module DaytonaApiClient
|
|
|
139
130
|
def ==(o)
|
|
140
131
|
return true if self.equal?(o)
|
|
141
132
|
self.class == o.class &&
|
|
142
|
-
state == o.state
|
|
143
|
-
error_reason == o.error_reason
|
|
133
|
+
state == o.state
|
|
144
134
|
end
|
|
145
135
|
|
|
146
136
|
# @see the `==` method
|
|
@@ -152,7 +142,7 @@ module DaytonaApiClient
|
|
|
152
142
|
# Calculates hash code according to all attributes.
|
|
153
143
|
# @return [Integer] Hash code
|
|
154
144
|
def hash
|
|
155
|
-
[state
|
|
145
|
+
[state].hash
|
|
156
146
|
end
|
|
157
147
|
|
|
158
148
|
# Builds the object from hash
|