daytona_api_client 0.189.0 → 0.190.0.alpha.3
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/lib/daytona_api_client/models/create_organization_quota.rb +14 -4
- data/lib/daytona_api_client/models/create_sandbox.rb +11 -1
- data/lib/daytona_api_client/models/daytona_configuration.rb +11 -1
- data/lib/daytona_api_client/models/rate_limit_config.rb +14 -4
- data/lib/daytona_api_client/models/runner.rb +14 -4
- data/lib/daytona_api_client/models/runner_full.rb +11 -1
- data/lib/daytona_api_client/models/sandbox.rb +11 -1
- data/lib/daytona_api_client/models/update_organization_quota.rb +18 -5
- data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +14 -4
- data/lib/daytona_api_client/version.rb +1 -1
- data/project.json +3 -9
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c7e67d7e4cbf803ec09a0234f747d96500ee857de26b15b8ea9ced6b649bc35
|
|
4
|
+
data.tar.gz: ba68c43e57a5ad5f84b288ed0dd9c423dfcebada2c9098120fd0b50f94aa3e75
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0740ef97a5e861707060a0a419b6d2470f37fc458992b7d646449b23c4b2a5656a24d1f46538b46c4f90a54809bf7091e862a8f5791229c68abc8622f078c61d
|
|
7
|
+
data.tar.gz: 35f48f34605317845cdcd3834be975afb93bb8628af8a9e3394b99ef652d3392ffaa0507b187044da9059991da9809ef8cc918af1a3be6722a75de0f871eef24
|
|
@@ -33,6 +33,9 @@ module DaytonaApiClient
|
|
|
33
33
|
|
|
34
34
|
attr_accessor :volume_quota
|
|
35
35
|
|
|
36
|
+
# Maximum number of snapshots an organization can process (building or pulling) concurrently. Excess are queued. <= 0 means unlimited.
|
|
37
|
+
attr_accessor :max_concurrent_snapshot_processing
|
|
38
|
+
|
|
36
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
40
|
def self.attribute_map
|
|
38
41
|
{
|
|
@@ -44,7 +47,8 @@ module DaytonaApiClient
|
|
|
44
47
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
45
48
|
:'snapshot_quota' => :'snapshotQuota',
|
|
46
49
|
:'max_snapshot_size' => :'maxSnapshotSize',
|
|
47
|
-
:'volume_quota' => :'volumeQuota'
|
|
50
|
+
:'volume_quota' => :'volumeQuota',
|
|
51
|
+
:'max_concurrent_snapshot_processing' => :'maxConcurrentSnapshotProcessing'
|
|
48
52
|
}
|
|
49
53
|
end
|
|
50
54
|
|
|
@@ -69,7 +73,8 @@ module DaytonaApiClient
|
|
|
69
73
|
:'max_disk_per_sandbox' => :'Float',
|
|
70
74
|
:'snapshot_quota' => :'Float',
|
|
71
75
|
:'max_snapshot_size' => :'Float',
|
|
72
|
-
:'volume_quota' => :'Float'
|
|
76
|
+
:'volume_quota' => :'Float',
|
|
77
|
+
:'max_concurrent_snapshot_processing' => :'Float'
|
|
73
78
|
}
|
|
74
79
|
end
|
|
75
80
|
|
|
@@ -130,6 +135,10 @@ module DaytonaApiClient
|
|
|
130
135
|
if attributes.key?(:'volume_quota')
|
|
131
136
|
self.volume_quota = attributes[:'volume_quota']
|
|
132
137
|
end
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'max_concurrent_snapshot_processing')
|
|
140
|
+
self.max_concurrent_snapshot_processing = attributes[:'max_concurrent_snapshot_processing']
|
|
141
|
+
end
|
|
133
142
|
end
|
|
134
143
|
|
|
135
144
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -160,7 +169,8 @@ module DaytonaApiClient
|
|
|
160
169
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
161
170
|
snapshot_quota == o.snapshot_quota &&
|
|
162
171
|
max_snapshot_size == o.max_snapshot_size &&
|
|
163
|
-
volume_quota == o.volume_quota
|
|
172
|
+
volume_quota == o.volume_quota &&
|
|
173
|
+
max_concurrent_snapshot_processing == o.max_concurrent_snapshot_processing
|
|
164
174
|
end
|
|
165
175
|
|
|
166
176
|
# @see the `==` method
|
|
@@ -172,7 +182,7 @@ module DaytonaApiClient
|
|
|
172
182
|
# Calculates hash code according to all attributes.
|
|
173
183
|
# @return [Integer] Hash code
|
|
174
184
|
def hash
|
|
175
|
-
[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
|
|
185
|
+
[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, max_concurrent_snapshot_processing].hash
|
|
176
186
|
end
|
|
177
187
|
|
|
178
188
|
# Builds the object from hash
|
|
@@ -39,6 +39,9 @@ module DaytonaApiClient
|
|
|
39
39
|
# Comma-separated list of allowed CIDR network addresses for the sandbox
|
|
40
40
|
attr_accessor :network_allow_list
|
|
41
41
|
|
|
42
|
+
# Comma-separated list of allowed domains for the sandbox
|
|
43
|
+
attr_accessor :domain_allow_list
|
|
44
|
+
|
|
42
45
|
# The target (region) where the sandbox will be created
|
|
43
46
|
attr_accessor :target
|
|
44
47
|
|
|
@@ -86,6 +89,7 @@ module DaytonaApiClient
|
|
|
86
89
|
:'public' => :'public',
|
|
87
90
|
:'network_block_all' => :'networkBlockAll',
|
|
88
91
|
:'network_allow_list' => :'networkAllowList',
|
|
92
|
+
:'domain_allow_list' => :'domainAllowList',
|
|
89
93
|
:'target' => :'target',
|
|
90
94
|
:'cpu' => :'cpu',
|
|
91
95
|
:'gpu' => :'gpu',
|
|
@@ -122,6 +126,7 @@ module DaytonaApiClient
|
|
|
122
126
|
:'public' => :'Boolean',
|
|
123
127
|
:'network_block_all' => :'Boolean',
|
|
124
128
|
:'network_allow_list' => :'String',
|
|
129
|
+
:'domain_allow_list' => :'String',
|
|
125
130
|
:'target' => :'String',
|
|
126
131
|
:'cpu' => :'Integer',
|
|
127
132
|
:'gpu' => :'Integer',
|
|
@@ -195,6 +200,10 @@ module DaytonaApiClient
|
|
|
195
200
|
self.network_allow_list = attributes[:'network_allow_list']
|
|
196
201
|
end
|
|
197
202
|
|
|
203
|
+
if attributes.key?(:'domain_allow_list')
|
|
204
|
+
self.domain_allow_list = attributes[:'domain_allow_list']
|
|
205
|
+
end
|
|
206
|
+
|
|
198
207
|
if attributes.key?(:'target')
|
|
199
208
|
self.target = attributes[:'target']
|
|
200
209
|
end
|
|
@@ -276,6 +285,7 @@ module DaytonaApiClient
|
|
|
276
285
|
public == o.public &&
|
|
277
286
|
network_block_all == o.network_block_all &&
|
|
278
287
|
network_allow_list == o.network_allow_list &&
|
|
288
|
+
domain_allow_list == o.domain_allow_list &&
|
|
279
289
|
target == o.target &&
|
|
280
290
|
cpu == o.cpu &&
|
|
281
291
|
gpu == o.gpu &&
|
|
@@ -299,7 +309,7 @@ module DaytonaApiClient
|
|
|
299
309
|
# Calculates hash code according to all attributes.
|
|
300
310
|
# @return [Integer] Hash code
|
|
301
311
|
def hash
|
|
302
|
-
[name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, gpu_type, memory, disk, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, linked_sandbox].hash
|
|
312
|
+
[name, snapshot, user, env, labels, public, network_block_all, network_allow_list, domain_allow_list, target, cpu, gpu, gpu_type, memory, disk, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, linked_sandbox].hash
|
|
303
313
|
end
|
|
304
314
|
|
|
305
315
|
# Builds the object from hash
|
|
@@ -60,6 +60,9 @@ module DaytonaApiClient
|
|
|
60
60
|
# Analytics API URL
|
|
61
61
|
attr_accessor :analytics_api_url
|
|
62
62
|
|
|
63
|
+
# Stripe publishable key for client-side Stripe.js
|
|
64
|
+
attr_accessor :stripe_publishable_key
|
|
65
|
+
|
|
63
66
|
# SSH Gateway command
|
|
64
67
|
attr_accessor :ssh_gateway_command
|
|
65
68
|
|
|
@@ -87,6 +90,7 @@ module DaytonaApiClient
|
|
|
87
90
|
:'environment' => :'environment',
|
|
88
91
|
:'billing_api_url' => :'billingApiUrl',
|
|
89
92
|
:'analytics_api_url' => :'analyticsApiUrl',
|
|
93
|
+
:'stripe_publishable_key' => :'stripePublishableKey',
|
|
90
94
|
:'ssh_gateway_command' => :'sshGatewayCommand',
|
|
91
95
|
:'ssh_gateway_public_key' => :'sshGatewayPublicKey',
|
|
92
96
|
:'rate_limit' => :'rateLimit'
|
|
@@ -121,6 +125,7 @@ module DaytonaApiClient
|
|
|
121
125
|
:'environment' => :'String',
|
|
122
126
|
:'billing_api_url' => :'String',
|
|
123
127
|
:'analytics_api_url' => :'String',
|
|
128
|
+
:'stripe_publishable_key' => :'String',
|
|
124
129
|
:'ssh_gateway_command' => :'String',
|
|
125
130
|
:'ssh_gateway_public_key' => :'String',
|
|
126
131
|
:'rate_limit' => :'RateLimitConfig'
|
|
@@ -233,6 +238,10 @@ module DaytonaApiClient
|
|
|
233
238
|
self.analytics_api_url = attributes[:'analytics_api_url']
|
|
234
239
|
end
|
|
235
240
|
|
|
241
|
+
if attributes.key?(:'stripe_publishable_key')
|
|
242
|
+
self.stripe_publishable_key = attributes[:'stripe_publishable_key']
|
|
243
|
+
end
|
|
244
|
+
|
|
236
245
|
if attributes.key?(:'ssh_gateway_command')
|
|
237
246
|
self.ssh_gateway_command = attributes[:'ssh_gateway_command']
|
|
238
247
|
end
|
|
@@ -446,6 +455,7 @@ module DaytonaApiClient
|
|
|
446
455
|
environment == o.environment &&
|
|
447
456
|
billing_api_url == o.billing_api_url &&
|
|
448
457
|
analytics_api_url == o.analytics_api_url &&
|
|
458
|
+
stripe_publishable_key == o.stripe_publishable_key &&
|
|
449
459
|
ssh_gateway_command == o.ssh_gateway_command &&
|
|
450
460
|
ssh_gateway_public_key == o.ssh_gateway_public_key &&
|
|
451
461
|
rate_limit == o.rate_limit
|
|
@@ -460,7 +470,7 @@ module DaytonaApiClient
|
|
|
460
470
|
# Calculates hash code according to all attributes.
|
|
461
471
|
# @return [Integer] Hash code
|
|
462
472
|
def hash
|
|
463
|
-
[version, posthog, oidc, linked_accounts_enabled, announcements, pylon_app_id, proxy_template_url, proxy_toolbox_url, default_snapshot, dashboard_url, max_auto_archive_interval, maintanance_mode, environment, billing_api_url, analytics_api_url, ssh_gateway_command, ssh_gateway_public_key, rate_limit].hash
|
|
473
|
+
[version, posthog, oidc, linked_accounts_enabled, announcements, pylon_app_id, proxy_template_url, proxy_toolbox_url, default_snapshot, dashboard_url, max_auto_archive_interval, maintanance_mode, environment, billing_api_url, analytics_api_url, stripe_publishable_key, ssh_gateway_command, ssh_gateway_public_key, rate_limit].hash
|
|
464
474
|
end
|
|
465
475
|
|
|
466
476
|
# Builds the object from hash
|
|
@@ -27,13 +27,17 @@ module DaytonaApiClient
|
|
|
27
27
|
# Sandbox lifecycle rate limit
|
|
28
28
|
attr_accessor :sandbox_lifecycle
|
|
29
29
|
|
|
30
|
+
# Sandbox list rate limit
|
|
31
|
+
attr_accessor :sandbox_list
|
|
32
|
+
|
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
34
|
def self.attribute_map
|
|
32
35
|
{
|
|
33
36
|
:'failed_auth' => :'failedAuth',
|
|
34
37
|
:'authenticated' => :'authenticated',
|
|
35
38
|
:'sandbox_create' => :'sandboxCreate',
|
|
36
|
-
:'sandbox_lifecycle' => :'sandboxLifecycle'
|
|
39
|
+
:'sandbox_lifecycle' => :'sandboxLifecycle',
|
|
40
|
+
:'sandbox_list' => :'sandboxList'
|
|
37
41
|
}
|
|
38
42
|
end
|
|
39
43
|
|
|
@@ -53,7 +57,8 @@ module DaytonaApiClient
|
|
|
53
57
|
:'failed_auth' => :'RateLimitEntry',
|
|
54
58
|
:'authenticated' => :'RateLimitEntry',
|
|
55
59
|
:'sandbox_create' => :'RateLimitEntry',
|
|
56
|
-
:'sandbox_lifecycle' => :'RateLimitEntry'
|
|
60
|
+
:'sandbox_lifecycle' => :'RateLimitEntry',
|
|
61
|
+
:'sandbox_list' => :'RateLimitEntry'
|
|
57
62
|
}
|
|
58
63
|
end
|
|
59
64
|
|
|
@@ -94,6 +99,10 @@ module DaytonaApiClient
|
|
|
94
99
|
if attributes.key?(:'sandbox_lifecycle')
|
|
95
100
|
self.sandbox_lifecycle = attributes[:'sandbox_lifecycle']
|
|
96
101
|
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'sandbox_list')
|
|
104
|
+
self.sandbox_list = attributes[:'sandbox_list']
|
|
105
|
+
end
|
|
97
106
|
end
|
|
98
107
|
|
|
99
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -119,7 +128,8 @@ module DaytonaApiClient
|
|
|
119
128
|
failed_auth == o.failed_auth &&
|
|
120
129
|
authenticated == o.authenticated &&
|
|
121
130
|
sandbox_create == o.sandbox_create &&
|
|
122
|
-
sandbox_lifecycle == o.sandbox_lifecycle
|
|
131
|
+
sandbox_lifecycle == o.sandbox_lifecycle &&
|
|
132
|
+
sandbox_list == o.sandbox_list
|
|
123
133
|
end
|
|
124
134
|
|
|
125
135
|
# @see the `==` method
|
|
@@ -131,7 +141,7 @@ module DaytonaApiClient
|
|
|
131
141
|
# Calculates hash code according to all attributes.
|
|
132
142
|
# @return [Integer] Hash code
|
|
133
143
|
def hash
|
|
134
|
-
[failed_auth, authenticated, sandbox_create, sandbox_lifecycle].hash
|
|
144
|
+
[failed_auth, authenticated, sandbox_create, sandbox_lifecycle, sandbox_list].hash
|
|
135
145
|
end
|
|
136
146
|
|
|
137
147
|
# Builds the object from hash
|
|
@@ -108,6 +108,9 @@ module DaytonaApiClient
|
|
|
108
108
|
# The app version of the runner
|
|
109
109
|
attr_accessor :app_version
|
|
110
110
|
|
|
111
|
+
# Deprecated runner class property
|
|
112
|
+
attr_accessor :_class
|
|
113
|
+
|
|
111
114
|
class EnumAttributeValidator
|
|
112
115
|
attr_reader :datatype
|
|
113
116
|
attr_reader :allowable_values
|
|
@@ -163,7 +166,8 @@ module DaytonaApiClient
|
|
|
163
166
|
:'version' => :'version',
|
|
164
167
|
:'api_version' => :'apiVersion',
|
|
165
168
|
:'runner_class' => :'runnerClass',
|
|
166
|
-
:'app_version' => :'appVersion'
|
|
169
|
+
:'app_version' => :'appVersion',
|
|
170
|
+
:'_class' => :'class'
|
|
167
171
|
}
|
|
168
172
|
end
|
|
169
173
|
|
|
@@ -210,7 +214,8 @@ module DaytonaApiClient
|
|
|
210
214
|
:'version' => :'String',
|
|
211
215
|
:'api_version' => :'String',
|
|
212
216
|
:'runner_class' => :'RunnerClass',
|
|
213
|
-
:'app_version' => :'String'
|
|
217
|
+
:'app_version' => :'String',
|
|
218
|
+
:'_class' => :'String'
|
|
214
219
|
}
|
|
215
220
|
end
|
|
216
221
|
|
|
@@ -389,6 +394,10 @@ module DaytonaApiClient
|
|
|
389
394
|
if attributes.key?(:'app_version')
|
|
390
395
|
self.app_version = attributes[:'app_version']
|
|
391
396
|
end
|
|
397
|
+
|
|
398
|
+
if attributes.key?(:'_class')
|
|
399
|
+
self._class = attributes[:'_class']
|
|
400
|
+
end
|
|
392
401
|
end
|
|
393
402
|
|
|
394
403
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -651,7 +660,8 @@ module DaytonaApiClient
|
|
|
651
660
|
version == o.version &&
|
|
652
661
|
api_version == o.api_version &&
|
|
653
662
|
runner_class == o.runner_class &&
|
|
654
|
-
app_version == o.app_version
|
|
663
|
+
app_version == o.app_version &&
|
|
664
|
+
_class == o._class
|
|
655
665
|
end
|
|
656
666
|
|
|
657
667
|
# @see the `==` method
|
|
@@ -663,7 +673,7 @@ module DaytonaApiClient
|
|
|
663
673
|
# Calculates hash code according to all attributes.
|
|
664
674
|
# @return [Integer] Hash code
|
|
665
675
|
def hash
|
|
666
|
-
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version].hash
|
|
676
|
+
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version, _class].hash
|
|
667
677
|
end
|
|
668
678
|
|
|
669
679
|
# Builds the object from hash
|
|
@@ -108,6 +108,9 @@ module DaytonaApiClient
|
|
|
108
108
|
# The app version of the runner
|
|
109
109
|
attr_accessor :app_version
|
|
110
110
|
|
|
111
|
+
# Deprecated runner class property
|
|
112
|
+
attr_accessor :_class
|
|
113
|
+
|
|
111
114
|
# The API key for the runner
|
|
112
115
|
attr_accessor :api_key
|
|
113
116
|
|
|
@@ -170,6 +173,7 @@ module DaytonaApiClient
|
|
|
170
173
|
:'api_version' => :'apiVersion',
|
|
171
174
|
:'runner_class' => :'runnerClass',
|
|
172
175
|
:'app_version' => :'appVersion',
|
|
176
|
+
:'_class' => :'class',
|
|
173
177
|
:'api_key' => :'apiKey',
|
|
174
178
|
:'region_type' => :'regionType'
|
|
175
179
|
}
|
|
@@ -219,6 +223,7 @@ module DaytonaApiClient
|
|
|
219
223
|
:'api_version' => :'String',
|
|
220
224
|
:'runner_class' => :'RunnerClass',
|
|
221
225
|
:'app_version' => :'String',
|
|
226
|
+
:'_class' => :'String',
|
|
222
227
|
:'api_key' => :'String',
|
|
223
228
|
:'region_type' => :'RegionType'
|
|
224
229
|
}
|
|
@@ -400,6 +405,10 @@ module DaytonaApiClient
|
|
|
400
405
|
self.app_version = attributes[:'app_version']
|
|
401
406
|
end
|
|
402
407
|
|
|
408
|
+
if attributes.key?(:'_class')
|
|
409
|
+
self._class = attributes[:'_class']
|
|
410
|
+
end
|
|
411
|
+
|
|
403
412
|
if attributes.key?(:'api_key')
|
|
404
413
|
self.api_key = attributes[:'api_key']
|
|
405
414
|
else
|
|
@@ -687,6 +696,7 @@ module DaytonaApiClient
|
|
|
687
696
|
api_version == o.api_version &&
|
|
688
697
|
runner_class == o.runner_class &&
|
|
689
698
|
app_version == o.app_version &&
|
|
699
|
+
_class == o._class &&
|
|
690
700
|
api_key == o.api_key &&
|
|
691
701
|
region_type == o.region_type
|
|
692
702
|
end
|
|
@@ -700,7 +710,7 @@ module DaytonaApiClient
|
|
|
700
710
|
# Calculates hash code according to all attributes.
|
|
701
711
|
# @return [Integer] Hash code
|
|
702
712
|
def hash
|
|
703
|
-
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version, api_key, region_type].hash
|
|
713
|
+
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version, _class, api_key, region_type].hash
|
|
704
714
|
end
|
|
705
715
|
|
|
706
716
|
# Builds the object from hash
|
|
@@ -45,6 +45,9 @@ module DaytonaApiClient
|
|
|
45
45
|
# Comma-separated list of allowed CIDR network addresses for the sandbox
|
|
46
46
|
attr_accessor :network_allow_list
|
|
47
47
|
|
|
48
|
+
# Comma-separated list of allowed domains for the sandbox
|
|
49
|
+
attr_accessor :domain_allow_list
|
|
50
|
+
|
|
48
51
|
# The target environment for the sandbox
|
|
49
52
|
attr_accessor :target
|
|
50
53
|
|
|
@@ -155,6 +158,7 @@ module DaytonaApiClient
|
|
|
155
158
|
:'public' => :'public',
|
|
156
159
|
:'network_block_all' => :'networkBlockAll',
|
|
157
160
|
:'network_allow_list' => :'networkAllowList',
|
|
161
|
+
:'domain_allow_list' => :'domainAllowList',
|
|
158
162
|
:'target' => :'target',
|
|
159
163
|
:'cpu' => :'cpu',
|
|
160
164
|
:'gpu' => :'gpu',
|
|
@@ -206,6 +210,7 @@ module DaytonaApiClient
|
|
|
206
210
|
:'public' => :'Boolean',
|
|
207
211
|
:'network_block_all' => :'Boolean',
|
|
208
212
|
:'network_allow_list' => :'String',
|
|
213
|
+
:'domain_allow_list' => :'String',
|
|
209
214
|
:'target' => :'String',
|
|
210
215
|
:'cpu' => :'Float',
|
|
211
216
|
:'gpu' => :'Float',
|
|
@@ -316,6 +321,10 @@ module DaytonaApiClient
|
|
|
316
321
|
self.network_allow_list = attributes[:'network_allow_list']
|
|
317
322
|
end
|
|
318
323
|
|
|
324
|
+
if attributes.key?(:'domain_allow_list')
|
|
325
|
+
self.domain_allow_list = attributes[:'domain_allow_list']
|
|
326
|
+
end
|
|
327
|
+
|
|
319
328
|
if attributes.key?(:'target')
|
|
320
329
|
self.target = attributes[:'target']
|
|
321
330
|
else
|
|
@@ -695,6 +704,7 @@ module DaytonaApiClient
|
|
|
695
704
|
public == o.public &&
|
|
696
705
|
network_block_all == o.network_block_all &&
|
|
697
706
|
network_allow_list == o.network_allow_list &&
|
|
707
|
+
domain_allow_list == o.domain_allow_list &&
|
|
698
708
|
target == o.target &&
|
|
699
709
|
cpu == o.cpu &&
|
|
700
710
|
gpu == o.gpu &&
|
|
@@ -731,7 +741,7 @@ module DaytonaApiClient
|
|
|
731
741
|
# Calculates hash code according to all attributes.
|
|
732
742
|
# @return [Integer] Hash code
|
|
733
743
|
def hash
|
|
734
|
-
[id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, gpu_type, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, last_activity_at, sandbox_class, daemon_version, runner_id, linked_sandbox_id, toolbox_proxy_url].hash
|
|
744
|
+
[id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, domain_allow_list, target, cpu, gpu, gpu_type, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, last_activity_at, sandbox_class, daemon_version, runner_id, linked_sandbox_id, toolbox_proxy_url].hash
|
|
735
745
|
end
|
|
736
746
|
|
|
737
747
|
# Builds the object from hash
|
|
@@ -42,6 +42,9 @@ module DaytonaApiClient
|
|
|
42
42
|
# Time in minutes before an unused snapshot is deactivated
|
|
43
43
|
attr_accessor :snapshot_deactivation_timeout_minutes
|
|
44
44
|
|
|
45
|
+
# Maximum number of snapshots an organization can process (building or pulling) concurrently. Excess are queued. <= 0 means unlimited.
|
|
46
|
+
attr_accessor :max_concurrent_snapshot_processing
|
|
47
|
+
|
|
45
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
49
|
def self.attribute_map
|
|
47
50
|
{
|
|
@@ -57,7 +60,8 @@ module DaytonaApiClient
|
|
|
57
60
|
:'authenticated_rate_limit_ttl_seconds' => :'authenticatedRateLimitTtlSeconds',
|
|
58
61
|
:'sandbox_create_rate_limit_ttl_seconds' => :'sandboxCreateRateLimitTtlSeconds',
|
|
59
62
|
:'sandbox_lifecycle_rate_limit_ttl_seconds' => :'sandboxLifecycleRateLimitTtlSeconds',
|
|
60
|
-
:'snapshot_deactivation_timeout_minutes' => :'snapshotDeactivationTimeoutMinutes'
|
|
63
|
+
:'snapshot_deactivation_timeout_minutes' => :'snapshotDeactivationTimeoutMinutes',
|
|
64
|
+
:'max_concurrent_snapshot_processing' => :'maxConcurrentSnapshotProcessing'
|
|
61
65
|
}
|
|
62
66
|
end
|
|
63
67
|
|
|
@@ -86,7 +90,8 @@ module DaytonaApiClient
|
|
|
86
90
|
:'authenticated_rate_limit_ttl_seconds' => :'Float',
|
|
87
91
|
:'sandbox_create_rate_limit_ttl_seconds' => :'Float',
|
|
88
92
|
:'sandbox_lifecycle_rate_limit_ttl_seconds' => :'Float',
|
|
89
|
-
:'snapshot_deactivation_timeout_minutes' => :'Float'
|
|
93
|
+
:'snapshot_deactivation_timeout_minutes' => :'Float',
|
|
94
|
+
:'max_concurrent_snapshot_processing' => :'Float'
|
|
90
95
|
}
|
|
91
96
|
end
|
|
92
97
|
|
|
@@ -105,7 +110,8 @@ module DaytonaApiClient
|
|
|
105
110
|
:'authenticated_rate_limit_ttl_seconds',
|
|
106
111
|
:'sandbox_create_rate_limit_ttl_seconds',
|
|
107
112
|
:'sandbox_lifecycle_rate_limit_ttl_seconds',
|
|
108
|
-
:'snapshot_deactivation_timeout_minutes'
|
|
113
|
+
:'snapshot_deactivation_timeout_minutes',
|
|
114
|
+
:'max_concurrent_snapshot_processing'
|
|
109
115
|
])
|
|
110
116
|
end
|
|
111
117
|
|
|
@@ -202,6 +208,12 @@ module DaytonaApiClient
|
|
|
202
208
|
else
|
|
203
209
|
self.snapshot_deactivation_timeout_minutes = nil
|
|
204
210
|
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'max_concurrent_snapshot_processing')
|
|
213
|
+
self.max_concurrent_snapshot_processing = attributes[:'max_concurrent_snapshot_processing']
|
|
214
|
+
else
|
|
215
|
+
self.max_concurrent_snapshot_processing = nil
|
|
216
|
+
end
|
|
205
217
|
end
|
|
206
218
|
|
|
207
219
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -236,7 +248,8 @@ module DaytonaApiClient
|
|
|
236
248
|
authenticated_rate_limit_ttl_seconds == o.authenticated_rate_limit_ttl_seconds &&
|
|
237
249
|
sandbox_create_rate_limit_ttl_seconds == o.sandbox_create_rate_limit_ttl_seconds &&
|
|
238
250
|
sandbox_lifecycle_rate_limit_ttl_seconds == o.sandbox_lifecycle_rate_limit_ttl_seconds &&
|
|
239
|
-
snapshot_deactivation_timeout_minutes == o.snapshot_deactivation_timeout_minutes
|
|
251
|
+
snapshot_deactivation_timeout_minutes == o.snapshot_deactivation_timeout_minutes &&
|
|
252
|
+
max_concurrent_snapshot_processing == o.max_concurrent_snapshot_processing
|
|
240
253
|
end
|
|
241
254
|
|
|
242
255
|
# @see the `==` method
|
|
@@ -248,7 +261,7 @@ module DaytonaApiClient
|
|
|
248
261
|
# Calculates hash code according to all attributes.
|
|
249
262
|
# @return [Integer] Hash code
|
|
250
263
|
def hash
|
|
251
|
-
[max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_quota, max_snapshot_size, volume_quota, authenticated_rate_limit, sandbox_create_rate_limit, sandbox_lifecycle_rate_limit, authenticated_rate_limit_ttl_seconds, sandbox_create_rate_limit_ttl_seconds, sandbox_lifecycle_rate_limit_ttl_seconds, snapshot_deactivation_timeout_minutes].hash
|
|
264
|
+
[max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_quota, max_snapshot_size, volume_quota, authenticated_rate_limit, sandbox_create_rate_limit, sandbox_lifecycle_rate_limit, authenticated_rate_limit_ttl_seconds, sandbox_create_rate_limit_ttl_seconds, sandbox_lifecycle_rate_limit_ttl_seconds, snapshot_deactivation_timeout_minutes, max_concurrent_snapshot_processing].hash
|
|
252
265
|
end
|
|
253
266
|
|
|
254
267
|
# Builds the object from hash
|
|
@@ -21,11 +21,15 @@ module DaytonaApiClient
|
|
|
21
21
|
# Comma-separated list of allowed CIDR network addresses for the sandbox
|
|
22
22
|
attr_accessor :network_allow_list
|
|
23
23
|
|
|
24
|
+
# Comma-separated list of allowed domains for the sandbox
|
|
25
|
+
attr_accessor :domain_allow_list
|
|
26
|
+
|
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
28
|
def self.attribute_map
|
|
26
29
|
{
|
|
27
30
|
:'network_block_all' => :'networkBlockAll',
|
|
28
|
-
:'network_allow_list' => :'networkAllowList'
|
|
31
|
+
:'network_allow_list' => :'networkAllowList',
|
|
32
|
+
:'domain_allow_list' => :'domainAllowList'
|
|
29
33
|
}
|
|
30
34
|
end
|
|
31
35
|
|
|
@@ -43,7 +47,8 @@ module DaytonaApiClient
|
|
|
43
47
|
def self.openapi_types
|
|
44
48
|
{
|
|
45
49
|
:'network_block_all' => :'Boolean',
|
|
46
|
-
:'network_allow_list' => :'String'
|
|
50
|
+
:'network_allow_list' => :'String',
|
|
51
|
+
:'domain_allow_list' => :'String'
|
|
47
52
|
}
|
|
48
53
|
end
|
|
49
54
|
|
|
@@ -76,6 +81,10 @@ module DaytonaApiClient
|
|
|
76
81
|
if attributes.key?(:'network_allow_list')
|
|
77
82
|
self.network_allow_list = attributes[:'network_allow_list']
|
|
78
83
|
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'domain_allow_list')
|
|
86
|
+
self.domain_allow_list = attributes[:'domain_allow_list']
|
|
87
|
+
end
|
|
79
88
|
end
|
|
80
89
|
|
|
81
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -99,7 +108,8 @@ module DaytonaApiClient
|
|
|
99
108
|
return true if self.equal?(o)
|
|
100
109
|
self.class == o.class &&
|
|
101
110
|
network_block_all == o.network_block_all &&
|
|
102
|
-
network_allow_list == o.network_allow_list
|
|
111
|
+
network_allow_list == o.network_allow_list &&
|
|
112
|
+
domain_allow_list == o.domain_allow_list
|
|
103
113
|
end
|
|
104
114
|
|
|
105
115
|
# @see the `==` method
|
|
@@ -111,7 +121,7 @@ module DaytonaApiClient
|
|
|
111
121
|
# Calculates hash code according to all attributes.
|
|
112
122
|
# @return [Integer] Hash code
|
|
113
123
|
def hash
|
|
114
|
-
[network_block_all, network_allow_list].hash
|
|
124
|
+
[network_block_all, network_allow_list, domain_allow_list].hash
|
|
115
125
|
end
|
|
116
126
|
|
|
117
127
|
# Builds the object from hash
|
data/project.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"executor": "nx:run-commands",
|
|
10
10
|
"options": {
|
|
11
11
|
"cwd": "{projectRoot}",
|
|
12
|
-
"commands": ["rm -f *.gem", "bundle install", "gem build daytona_api_client.gemspec"],
|
|
12
|
+
"commands": ["rm -f *.gem", "BUNDLE_GEMFILE=Gemfile bundle install", "gem build daytona_api_client.gemspec"],
|
|
13
13
|
"parallel": false
|
|
14
14
|
},
|
|
15
15
|
"dependsOn": ["set-version"],
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"options": {
|
|
33
33
|
"commands": [
|
|
34
34
|
"rm -rf libs/api-client-ruby/lib",
|
|
35
|
-
"yarn run openapi-generator-cli generate -i
|
|
35
|
+
"yarn run openapi-generator-cli generate -i openapi-specs/api.json -g ruby -t hack/ruby-client/openapi-templates --additional-properties=gemAuthor=daytonaio,gemAuthorEmail=support@daytona.io,gemDescription=\\\"Daytona API Client\\\",gemHomepage=\\\"https://github.com/daytonaio/daytona\\\",gemVersion=$DEFAULT_GEM_VERSION,gemName=daytona_api_client,enumUnknownDefaultCase=true -o libs/api-client-ruby",
|
|
36
36
|
"bash libs/api-client-ruby/fix-gemspec.sh",
|
|
37
37
|
"sed -i 's|OpenAPI-Generator/#{VERSION}/ruby|api-client-ruby/#{VERSION}|' libs/api-client-ruby/lib/daytona_api_client/api_client.rb",
|
|
38
|
-
"cd libs/api-client-ruby && bundle install"
|
|
38
|
+
"cd libs/api-client-ruby && BUNDLE_GEMFILE=Gemfile bundle install"
|
|
39
39
|
],
|
|
40
40
|
"parallel": false
|
|
41
41
|
},
|
|
@@ -44,12 +44,6 @@
|
|
|
44
44
|
"apiClient",
|
|
45
45
|
"{workspaceRoot}/hack/ruby-client/openapi-templates/**/*",
|
|
46
46
|
{ "env": "DEFAULT_GEM_VERSION" }
|
|
47
|
-
],
|
|
48
|
-
"dependsOn": [
|
|
49
|
-
{
|
|
50
|
-
"target": "openapi",
|
|
51
|
-
"projects": "api"
|
|
52
|
-
}
|
|
53
47
|
]
|
|
54
48
|
},
|
|
55
49
|
"publish": {
|