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
|
@@ -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
|
|
@@ -50,15 +50,6 @@ module DaytonaApiClient
|
|
|
50
50
|
# Build information for the snapshot
|
|
51
51
|
attr_accessor :build_info
|
|
52
52
|
|
|
53
|
-
# IDs of regions where the snapshot is available
|
|
54
|
-
attr_accessor :region_ids
|
|
55
|
-
|
|
56
|
-
# The initial runner ID of the snapshot
|
|
57
|
-
attr_accessor :initial_runner_id
|
|
58
|
-
|
|
59
|
-
# The snapshot reference
|
|
60
|
-
attr_accessor :ref
|
|
61
|
-
|
|
62
53
|
class EnumAttributeValidator
|
|
63
54
|
attr_reader :datatype
|
|
64
55
|
attr_reader :allowable_values
|
|
@@ -100,10 +91,7 @@ module DaytonaApiClient
|
|
|
100
91
|
:'created_at' => :'createdAt',
|
|
101
92
|
:'updated_at' => :'updatedAt',
|
|
102
93
|
:'last_used_at' => :'lastUsedAt',
|
|
103
|
-
:'build_info' => :'buildInfo'
|
|
104
|
-
:'region_ids' => :'regionIds',
|
|
105
|
-
:'initial_runner_id' => :'initialRunnerId',
|
|
106
|
-
:'ref' => :'ref'
|
|
94
|
+
:'build_info' => :'buildInfo'
|
|
107
95
|
}
|
|
108
96
|
end
|
|
109
97
|
|
|
@@ -136,10 +124,7 @@ module DaytonaApiClient
|
|
|
136
124
|
:'created_at' => :'Time',
|
|
137
125
|
:'updated_at' => :'Time',
|
|
138
126
|
:'last_used_at' => :'Time',
|
|
139
|
-
:'build_info' => :'BuildInfo'
|
|
140
|
-
:'region_ids' => :'Array<String>',
|
|
141
|
-
:'initial_runner_id' => :'String',
|
|
142
|
-
:'ref' => :'String'
|
|
127
|
+
:'build_info' => :'BuildInfo'
|
|
143
128
|
}
|
|
144
129
|
end
|
|
145
130
|
|
|
@@ -266,20 +251,6 @@ module DaytonaApiClient
|
|
|
266
251
|
if attributes.key?(:'build_info')
|
|
267
252
|
self.build_info = attributes[:'build_info']
|
|
268
253
|
end
|
|
269
|
-
|
|
270
|
-
if attributes.key?(:'region_ids')
|
|
271
|
-
if (value = attributes[:'region_ids']).is_a?(Array)
|
|
272
|
-
self.region_ids = value
|
|
273
|
-
end
|
|
274
|
-
end
|
|
275
|
-
|
|
276
|
-
if attributes.key?(:'initial_runner_id')
|
|
277
|
-
self.initial_runner_id = attributes[:'initial_runner_id']
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
if attributes.key?(:'ref')
|
|
281
|
-
self.ref = attributes[:'ref']
|
|
282
|
-
end
|
|
283
254
|
end
|
|
284
255
|
|
|
285
256
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -468,10 +439,7 @@ module DaytonaApiClient
|
|
|
468
439
|
created_at == o.created_at &&
|
|
469
440
|
updated_at == o.updated_at &&
|
|
470
441
|
last_used_at == o.last_used_at &&
|
|
471
|
-
build_info == o.build_info
|
|
472
|
-
region_ids == o.region_ids &&
|
|
473
|
-
initial_runner_id == o.initial_runner_id &&
|
|
474
|
-
ref == o.ref
|
|
442
|
+
build_info == o.build_info
|
|
475
443
|
end
|
|
476
444
|
|
|
477
445
|
# @see the `==` method
|
|
@@ -483,7 +451,7 @@ module DaytonaApiClient
|
|
|
483
451
|
# Calculates hash code according to all attributes.
|
|
484
452
|
# @return [Integer] Hash code
|
|
485
453
|
def hash
|
|
486
|
-
[id, organization_id, general, name, image_name, state, size, entrypoint, cpu, gpu, mem, disk, error_reason, created_at, updated_at, last_used_at, build_info
|
|
454
|
+
[id, organization_id, general, name, image_name, state, size, entrypoint, cpu, gpu, mem, disk, error_reason, created_at, updated_at, last_used_at, build_info].hash
|
|
487
455
|
end
|
|
488
456
|
|
|
489
457
|
# 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
|
|
@@ -33,9 +33,6 @@ module DaytonaApiClient
|
|
|
33
33
|
# When the SSH access was last updated
|
|
34
34
|
attr_accessor :updated_at
|
|
35
35
|
|
|
36
|
-
# SSH command to connect to the sandbox
|
|
37
|
-
attr_accessor :ssh_command
|
|
38
|
-
|
|
39
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
37
|
def self.attribute_map
|
|
41
38
|
{
|
|
@@ -44,8 +41,7 @@ module DaytonaApiClient
|
|
|
44
41
|
:'token' => :'token',
|
|
45
42
|
:'expires_at' => :'expiresAt',
|
|
46
43
|
:'created_at' => :'createdAt',
|
|
47
|
-
:'updated_at' => :'updatedAt'
|
|
48
|
-
:'ssh_command' => :'sshCommand'
|
|
44
|
+
:'updated_at' => :'updatedAt'
|
|
49
45
|
}
|
|
50
46
|
end
|
|
51
47
|
|
|
@@ -67,8 +63,7 @@ module DaytonaApiClient
|
|
|
67
63
|
:'token' => :'String',
|
|
68
64
|
:'expires_at' => :'Time',
|
|
69
65
|
:'created_at' => :'Time',
|
|
70
|
-
:'updated_at' => :'Time'
|
|
71
|
-
:'ssh_command' => :'String'
|
|
66
|
+
:'updated_at' => :'Time'
|
|
72
67
|
}
|
|
73
68
|
end
|
|
74
69
|
|
|
@@ -129,12 +124,6 @@ module DaytonaApiClient
|
|
|
129
124
|
else
|
|
130
125
|
self.updated_at = nil
|
|
131
126
|
end
|
|
132
|
-
|
|
133
|
-
if attributes.key?(:'ssh_command')
|
|
134
|
-
self.ssh_command = attributes[:'ssh_command']
|
|
135
|
-
else
|
|
136
|
-
self.ssh_command = nil
|
|
137
|
-
end
|
|
138
127
|
end
|
|
139
128
|
|
|
140
129
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -166,10 +155,6 @@ module DaytonaApiClient
|
|
|
166
155
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
167
156
|
end
|
|
168
157
|
|
|
169
|
-
if @ssh_command.nil?
|
|
170
|
-
invalid_properties.push('invalid value for "ssh_command", ssh_command cannot be nil.')
|
|
171
|
-
end
|
|
172
|
-
|
|
173
158
|
invalid_properties
|
|
174
159
|
end
|
|
175
160
|
|
|
@@ -183,7 +168,6 @@ module DaytonaApiClient
|
|
|
183
168
|
return false if @expires_at.nil?
|
|
184
169
|
return false if @created_at.nil?
|
|
185
170
|
return false if @updated_at.nil?
|
|
186
|
-
return false if @ssh_command.nil?
|
|
187
171
|
true
|
|
188
172
|
end
|
|
189
173
|
|
|
@@ -247,16 +231,6 @@ module DaytonaApiClient
|
|
|
247
231
|
@updated_at = updated_at
|
|
248
232
|
end
|
|
249
233
|
|
|
250
|
-
# Custom attribute writer method with validation
|
|
251
|
-
# @param [Object] ssh_command Value to be assigned
|
|
252
|
-
def ssh_command=(ssh_command)
|
|
253
|
-
if ssh_command.nil?
|
|
254
|
-
fail ArgumentError, 'ssh_command cannot be nil'
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
@ssh_command = ssh_command
|
|
258
|
-
end
|
|
259
|
-
|
|
260
234
|
# Checks equality by comparing each attribute.
|
|
261
235
|
# @param [Object] Object to be compared
|
|
262
236
|
def ==(o)
|
|
@@ -267,8 +241,7 @@ module DaytonaApiClient
|
|
|
267
241
|
token == o.token &&
|
|
268
242
|
expires_at == o.expires_at &&
|
|
269
243
|
created_at == o.created_at &&
|
|
270
|
-
updated_at == o.updated_at
|
|
271
|
-
ssh_command == o.ssh_command
|
|
244
|
+
updated_at == o.updated_at
|
|
272
245
|
end
|
|
273
246
|
|
|
274
247
|
# @see the `==` method
|
|
@@ -280,7 +253,7 @@ module DaytonaApiClient
|
|
|
280
253
|
# Calculates hash code according to all attributes.
|
|
281
254
|
# @return [Integer] Hash code
|
|
282
255
|
def hash
|
|
283
|
-
[id, sandbox_id, token, expires_at, created_at, updated_at
|
|
256
|
+
[id, sandbox_id, token, expires_at, created_at, updated_at].hash
|
|
284
257
|
end
|
|
285
258
|
|
|
286
259
|
# Builds the object from hash
|
|
@@ -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,12 +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
|
-
# Whether the sandbox is recoverable
|
|
25
|
-
attr_accessor :recoverable
|
|
26
|
-
|
|
27
21
|
class EnumAttributeValidator
|
|
28
22
|
attr_reader :datatype
|
|
29
23
|
attr_reader :allowable_values
|
|
@@ -49,9 +43,7 @@ module DaytonaApiClient
|
|
|
49
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
44
|
def self.attribute_map
|
|
51
45
|
{
|
|
52
|
-
:'state' => :'state'
|
|
53
|
-
:'error_reason' => :'errorReason',
|
|
54
|
-
:'recoverable' => :'recoverable'
|
|
46
|
+
:'state' => :'state'
|
|
55
47
|
}
|
|
56
48
|
end
|
|
57
49
|
|
|
@@ -68,9 +60,7 @@ module DaytonaApiClient
|
|
|
68
60
|
# Attribute type mapping.
|
|
69
61
|
def self.openapi_types
|
|
70
62
|
{
|
|
71
|
-
:'state' => :'String'
|
|
72
|
-
:'error_reason' => :'String',
|
|
73
|
-
:'recoverable' => :'Boolean'
|
|
63
|
+
:'state' => :'String'
|
|
74
64
|
}
|
|
75
65
|
end
|
|
76
66
|
|
|
@@ -101,14 +91,6 @@ module DaytonaApiClient
|
|
|
101
91
|
else
|
|
102
92
|
self.state = nil
|
|
103
93
|
end
|
|
104
|
-
|
|
105
|
-
if attributes.key?(:'error_reason')
|
|
106
|
-
self.error_reason = attributes[:'error_reason']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if attributes.key?(:'recoverable')
|
|
110
|
-
self.recoverable = attributes[:'recoverable']
|
|
111
|
-
end
|
|
112
94
|
end
|
|
113
95
|
|
|
114
96
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -148,9 +130,7 @@ module DaytonaApiClient
|
|
|
148
130
|
def ==(o)
|
|
149
131
|
return true if self.equal?(o)
|
|
150
132
|
self.class == o.class &&
|
|
151
|
-
state == o.state
|
|
152
|
-
error_reason == o.error_reason &&
|
|
153
|
-
recoverable == o.recoverable
|
|
133
|
+
state == o.state
|
|
154
134
|
end
|
|
155
135
|
|
|
156
136
|
# @see the `==` method
|
|
@@ -162,7 +142,7 @@ module DaytonaApiClient
|
|
|
162
142
|
# Calculates hash code according to all attributes.
|
|
163
143
|
# @return [Integer] Hash code
|
|
164
144
|
def hash
|
|
165
|
-
[state
|
|
145
|
+
[state].hash
|
|
166
146
|
end
|
|
167
147
|
|
|
168
148
|
# Builds the object from hash
|