daytona_api_client 0.204.0 → 0.205.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/lib/daytona_api_client/api/sandbox_api.rb +2 -0
- data/lib/daytona_api_client/models/create_region.rb +16 -5
- data/lib/daytona_api_client/models/create_sandbox.rb +23 -1
- data/lib/daytona_api_client/models/daytona_configuration.rb +1 -1
- data/lib/daytona_api_client/models/region.rb +16 -5
- data/lib/daytona_api_client/models/sandbox.rb +33 -1
- data/lib/daytona_api_client/models/sandbox_list_item.rb +23 -1
- data/lib/daytona_api_client/models/update_region.rb +16 -5
- data/lib/daytona_api_client/models/user.rb +11 -1
- data/lib/daytona_api_client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fead3ec21da8a4906a61ba4cc901a0ea6d3d0f5e992893b85d3ce6fb63feb8f0
|
|
4
|
+
data.tar.gz: 2aa75d38934c3e7cbe32da4f559c8579febb0c53167929c2740b9a081f9c2cc3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a46c087d4845ee4b1eff90249bf1cb469e61a85ea8c1cbd8a10a75ae540836b8dce7532bbe96edcd1525b6126d9f75bd2dc86a03020b55b00206e2c2c6b36e0
|
|
7
|
+
data.tar.gz: 6defa04b0e5bebce355b4931ee25990ae5a0c3ea0fa7fee4dbd7e5f7a7bfb0618883d9d36b5f503572d85e61d265ac969ac83fb59add0b7d17cd7345c2c594dc
|
|
@@ -903,6 +903,7 @@ module DaytonaApiClient
|
|
|
903
903
|
end
|
|
904
904
|
|
|
905
905
|
# Get sandbox details
|
|
906
|
+
# Sandboxes destroyed by spot preemption remain retrievable for 24 hours so `spotEvictedAt` can be read.
|
|
906
907
|
# @param sandbox_id_or_name [String] ID or name of the sandbox
|
|
907
908
|
# @param [Hash] opts the optional parameters
|
|
908
909
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
@@ -914,6 +915,7 @@ module DaytonaApiClient
|
|
|
914
915
|
end
|
|
915
916
|
|
|
916
917
|
# Get sandbox details
|
|
918
|
+
# Sandboxes destroyed by spot preemption remain retrievable for 24 hours so `spotEvictedAt` can be read.
|
|
917
919
|
# @param sandbox_id_or_name [String] ID or name of the sandbox
|
|
918
920
|
# @param [Hash] opts the optional parameters
|
|
919
921
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
@@ -27,13 +27,17 @@ module DaytonaApiClient
|
|
|
27
27
|
# Snapshot Manager URL for the region
|
|
28
28
|
attr_accessor :snapshot_manager_url
|
|
29
29
|
|
|
30
|
+
# OTel collector endpoint for sandboxes created in this region. When set, sandbox OTel data is sent to this endpoint instead of the Daytona-hosted collector and will not be available in the Daytona analytics API or dashboard.
|
|
31
|
+
attr_accessor :otel_endpoint
|
|
32
|
+
|
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
34
|
def self.attribute_map
|
|
32
35
|
{
|
|
33
36
|
:'name' => :'name',
|
|
34
37
|
:'proxy_url' => :'proxyUrl',
|
|
35
38
|
:'ssh_gateway_url' => :'sshGatewayUrl',
|
|
36
|
-
:'snapshot_manager_url' => :'snapshotManagerUrl'
|
|
39
|
+
:'snapshot_manager_url' => :'snapshotManagerUrl',
|
|
40
|
+
:'otel_endpoint' => :'otelEndpoint'
|
|
37
41
|
}
|
|
38
42
|
end
|
|
39
43
|
|
|
@@ -53,7 +57,8 @@ module DaytonaApiClient
|
|
|
53
57
|
:'name' => :'String',
|
|
54
58
|
:'proxy_url' => :'String',
|
|
55
59
|
:'ssh_gateway_url' => :'String',
|
|
56
|
-
:'snapshot_manager_url' => :'String'
|
|
60
|
+
:'snapshot_manager_url' => :'String',
|
|
61
|
+
:'otel_endpoint' => :'String'
|
|
57
62
|
}
|
|
58
63
|
end
|
|
59
64
|
|
|
@@ -62,7 +67,8 @@ module DaytonaApiClient
|
|
|
62
67
|
Set.new([
|
|
63
68
|
:'proxy_url',
|
|
64
69
|
:'ssh_gateway_url',
|
|
65
|
-
:'snapshot_manager_url'
|
|
70
|
+
:'snapshot_manager_url',
|
|
71
|
+
:'otel_endpoint'
|
|
66
72
|
])
|
|
67
73
|
end
|
|
68
74
|
|
|
@@ -99,6 +105,10 @@ module DaytonaApiClient
|
|
|
99
105
|
if attributes.key?(:'snapshot_manager_url')
|
|
100
106
|
self.snapshot_manager_url = attributes[:'snapshot_manager_url']
|
|
101
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'otel_endpoint')
|
|
110
|
+
self.otel_endpoint = attributes[:'otel_endpoint']
|
|
111
|
+
end
|
|
102
112
|
end
|
|
103
113
|
|
|
104
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -139,7 +149,8 @@ module DaytonaApiClient
|
|
|
139
149
|
name == o.name &&
|
|
140
150
|
proxy_url == o.proxy_url &&
|
|
141
151
|
ssh_gateway_url == o.ssh_gateway_url &&
|
|
142
|
-
snapshot_manager_url == o.snapshot_manager_url
|
|
152
|
+
snapshot_manager_url == o.snapshot_manager_url &&
|
|
153
|
+
otel_endpoint == o.otel_endpoint
|
|
143
154
|
end
|
|
144
155
|
|
|
145
156
|
# @see the `==` method
|
|
@@ -151,7 +162,7 @@ module DaytonaApiClient
|
|
|
151
162
|
# Calculates hash code according to all attributes.
|
|
152
163
|
# @return [Integer] Hash code
|
|
153
164
|
def hash
|
|
154
|
-
[name, proxy_url, ssh_gateway_url, snapshot_manager_url].hash
|
|
165
|
+
[name, proxy_url, ssh_gateway_url, snapshot_manager_url, otel_endpoint].hash
|
|
155
166
|
end
|
|
156
167
|
|
|
157
168
|
# Builds the object from hash
|
|
@@ -45,6 +45,9 @@ module DaytonaApiClient
|
|
|
45
45
|
# Outbound proxy URL to route the sandbox HTTP(S) traffic through (http or https; credentials may be included in the URL). On its own this is convenience routing, not a security boundary: it is applied by injecting the standard HTTP(S)_PROXY environment variables at creation, so a process that clears those variables egresses directly. Combine with domainAllowList to have web-port (80/443) egress transparently redirected through the proxy chain at the network layer, which cannot be bypassed from inside the sandbox.
|
|
46
46
|
attr_accessor :outbound_proxy_url
|
|
47
47
|
|
|
48
|
+
# OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector (the Daytona-hosted collector or the region-configured endpoint) and will not be available in the Daytona analytics API or dashboard.
|
|
49
|
+
attr_accessor :otel_endpoint_override
|
|
50
|
+
|
|
48
51
|
# The target (region) where the sandbox will be created
|
|
49
52
|
attr_accessor :target
|
|
50
53
|
|
|
@@ -57,6 +60,9 @@ module DaytonaApiClient
|
|
|
57
60
|
# Preferred GPU type for the sandbox. Accepts a single value or an ordered preference list — the scheduler tries each in order and pins the sandbox to the first that has capacity.
|
|
58
61
|
attr_accessor :gpu_type
|
|
59
62
|
|
|
63
|
+
# GPU-only. When true, the sandbox may be instantly terminated without notice to free GPU capacity for an on-demand (non-spot) GPU sandbox. Ignored / rejected when the sandbox requests no GPUs.
|
|
64
|
+
attr_accessor :spot
|
|
65
|
+
|
|
60
66
|
# Memory allocated to the sandbox in GB
|
|
61
67
|
attr_accessor :memory
|
|
62
68
|
|
|
@@ -103,10 +109,12 @@ module DaytonaApiClient
|
|
|
103
109
|
:'network_allow_list' => :'networkAllowList',
|
|
104
110
|
:'domain_allow_list' => :'domainAllowList',
|
|
105
111
|
:'outbound_proxy_url' => :'outboundProxyUrl',
|
|
112
|
+
:'otel_endpoint_override' => :'otelEndpointOverride',
|
|
106
113
|
:'target' => :'target',
|
|
107
114
|
:'cpu' => :'cpu',
|
|
108
115
|
:'gpu' => :'gpu',
|
|
109
116
|
:'gpu_type' => :'gpuType',
|
|
117
|
+
:'spot' => :'spot',
|
|
110
118
|
:'memory' => :'memory',
|
|
111
119
|
:'disk' => :'disk',
|
|
112
120
|
:'auto_stop_interval' => :'autoStopInterval',
|
|
@@ -144,10 +152,12 @@ module DaytonaApiClient
|
|
|
144
152
|
:'network_allow_list' => :'String',
|
|
145
153
|
:'domain_allow_list' => :'String',
|
|
146
154
|
:'outbound_proxy_url' => :'String',
|
|
155
|
+
:'otel_endpoint_override' => :'String',
|
|
147
156
|
:'target' => :'String',
|
|
148
157
|
:'cpu' => :'Integer',
|
|
149
158
|
:'gpu' => :'Integer',
|
|
150
159
|
:'gpu_type' => :'Array<GpuType>',
|
|
160
|
+
:'spot' => :'Boolean',
|
|
151
161
|
:'memory' => :'Integer',
|
|
152
162
|
:'disk' => :'Integer',
|
|
153
163
|
:'auto_stop_interval' => :'Integer',
|
|
@@ -228,6 +238,10 @@ module DaytonaApiClient
|
|
|
228
238
|
self.outbound_proxy_url = attributes[:'outbound_proxy_url']
|
|
229
239
|
end
|
|
230
240
|
|
|
241
|
+
if attributes.key?(:'otel_endpoint_override')
|
|
242
|
+
self.otel_endpoint_override = attributes[:'otel_endpoint_override']
|
|
243
|
+
end
|
|
244
|
+
|
|
231
245
|
if attributes.key?(:'target')
|
|
232
246
|
self.target = attributes[:'target']
|
|
233
247
|
end
|
|
@@ -246,6 +260,12 @@ module DaytonaApiClient
|
|
|
246
260
|
end
|
|
247
261
|
end
|
|
248
262
|
|
|
263
|
+
if attributes.key?(:'spot')
|
|
264
|
+
self.spot = attributes[:'spot']
|
|
265
|
+
else
|
|
266
|
+
self.spot = false
|
|
267
|
+
end
|
|
268
|
+
|
|
249
269
|
if attributes.key?(:'memory')
|
|
250
270
|
self.memory = attributes[:'memory']
|
|
251
271
|
end
|
|
@@ -325,10 +345,12 @@ module DaytonaApiClient
|
|
|
325
345
|
network_allow_list == o.network_allow_list &&
|
|
326
346
|
domain_allow_list == o.domain_allow_list &&
|
|
327
347
|
outbound_proxy_url == o.outbound_proxy_url &&
|
|
348
|
+
otel_endpoint_override == o.otel_endpoint_override &&
|
|
328
349
|
target == o.target &&
|
|
329
350
|
cpu == o.cpu &&
|
|
330
351
|
gpu == o.gpu &&
|
|
331
352
|
gpu_type == o.gpu_type &&
|
|
353
|
+
spot == o.spot &&
|
|
332
354
|
memory == o.memory &&
|
|
333
355
|
disk == o.disk &&
|
|
334
356
|
auto_stop_interval == o.auto_stop_interval &&
|
|
@@ -351,7 +373,7 @@ module DaytonaApiClient
|
|
|
351
373
|
# Calculates hash code according to all attributes.
|
|
352
374
|
# @return [Integer] Hash code
|
|
353
375
|
def hash
|
|
354
|
-
[name, snapshot, user, env, labels, public, network_block_all, network_allow_list, domain_allow_list, outbound_proxy_url, target, cpu, gpu, gpu_type, memory, disk, auto_stop_interval, auto_pause_interval, auto_archive_interval, auto_delete_interval, ttl_minutes, volumes, build_info, linked_sandbox, secrets].hash
|
|
376
|
+
[name, snapshot, user, env, labels, public, network_block_all, network_allow_list, domain_allow_list, outbound_proxy_url, otel_endpoint_override, target, cpu, gpu, gpu_type, spot, memory, disk, auto_stop_interval, auto_pause_interval, auto_archive_interval, auto_delete_interval, ttl_minutes, volumes, build_info, linked_sandbox, secrets].hash
|
|
355
377
|
end
|
|
356
378
|
|
|
357
379
|
# Builds the object from hash
|
|
@@ -27,7 +27,7 @@ module DaytonaApiClient
|
|
|
27
27
|
# OIDC configuration
|
|
28
28
|
attr_accessor :oidc
|
|
29
29
|
|
|
30
|
-
# OIDC configuration for org-SSO logins (Daytona Auth issuer). Present only when the
|
|
30
|
+
# OIDC configuration for org-SSO logins (Daytona Auth issuer). Present only when the secondary (org-SSO) issuer is configured; the dashboard uses it as its authority when entered via an organization SSO link.
|
|
31
31
|
attr_accessor :sso_oidc
|
|
32
32
|
|
|
33
33
|
# Feature flags forced on for this deployment regardless of PostHog targeting. Lets environments without PostHog (previews, local dev) enable flag-gated dashboard features.
|
|
@@ -42,6 +42,9 @@ module DaytonaApiClient
|
|
|
42
42
|
# Snapshot Manager URL for the region
|
|
43
43
|
attr_accessor :snapshot_manager_url
|
|
44
44
|
|
|
45
|
+
# OTel collector endpoint for sandboxes created in this region. When set, sandbox OTel data is sent to this endpoint instead of the Daytona-hosted collector and will not be available in the Daytona analytics API or dashboard.
|
|
46
|
+
attr_accessor :otel_endpoint
|
|
47
|
+
|
|
45
48
|
class EnumAttributeValidator
|
|
46
49
|
attr_reader :datatype
|
|
47
50
|
attr_reader :allowable_values
|
|
@@ -75,7 +78,8 @@ module DaytonaApiClient
|
|
|
75
78
|
:'updated_at' => :'updatedAt',
|
|
76
79
|
:'proxy_url' => :'proxyUrl',
|
|
77
80
|
:'ssh_gateway_url' => :'sshGatewayUrl',
|
|
78
|
-
:'snapshot_manager_url' => :'snapshotManagerUrl'
|
|
81
|
+
:'snapshot_manager_url' => :'snapshotManagerUrl',
|
|
82
|
+
:'otel_endpoint' => :'otelEndpoint'
|
|
79
83
|
}
|
|
80
84
|
end
|
|
81
85
|
|
|
@@ -100,7 +104,8 @@ module DaytonaApiClient
|
|
|
100
104
|
:'updated_at' => :'String',
|
|
101
105
|
:'proxy_url' => :'String',
|
|
102
106
|
:'ssh_gateway_url' => :'String',
|
|
103
|
-
:'snapshot_manager_url' => :'String'
|
|
107
|
+
:'snapshot_manager_url' => :'String',
|
|
108
|
+
:'otel_endpoint' => :'String'
|
|
104
109
|
}
|
|
105
110
|
end
|
|
106
111
|
|
|
@@ -110,7 +115,8 @@ module DaytonaApiClient
|
|
|
110
115
|
:'organization_id',
|
|
111
116
|
:'proxy_url',
|
|
112
117
|
:'ssh_gateway_url',
|
|
113
|
-
:'snapshot_manager_url'
|
|
118
|
+
:'snapshot_manager_url',
|
|
119
|
+
:'otel_endpoint'
|
|
114
120
|
])
|
|
115
121
|
end
|
|
116
122
|
|
|
@@ -175,6 +181,10 @@ module DaytonaApiClient
|
|
|
175
181
|
if attributes.key?(:'snapshot_manager_url')
|
|
176
182
|
self.snapshot_manager_url = attributes[:'snapshot_manager_url']
|
|
177
183
|
end
|
|
184
|
+
|
|
185
|
+
if attributes.key?(:'otel_endpoint')
|
|
186
|
+
self.otel_endpoint = attributes[:'otel_endpoint']
|
|
187
|
+
end
|
|
178
188
|
end
|
|
179
189
|
|
|
180
190
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -280,7 +290,8 @@ module DaytonaApiClient
|
|
|
280
290
|
updated_at == o.updated_at &&
|
|
281
291
|
proxy_url == o.proxy_url &&
|
|
282
292
|
ssh_gateway_url == o.ssh_gateway_url &&
|
|
283
|
-
snapshot_manager_url == o.snapshot_manager_url
|
|
293
|
+
snapshot_manager_url == o.snapshot_manager_url &&
|
|
294
|
+
otel_endpoint == o.otel_endpoint
|
|
284
295
|
end
|
|
285
296
|
|
|
286
297
|
# @see the `==` method
|
|
@@ -292,7 +303,7 @@ module DaytonaApiClient
|
|
|
292
303
|
# Calculates hash code according to all attributes.
|
|
293
304
|
# @return [Integer] Hash code
|
|
294
305
|
def hash
|
|
295
|
-
[id, name, organization_id, region_type, created_at, updated_at, proxy_url, ssh_gateway_url, snapshot_manager_url].hash
|
|
306
|
+
[id, name, organization_id, region_type, created_at, updated_at, proxy_url, ssh_gateway_url, snapshot_manager_url, otel_endpoint].hash
|
|
296
307
|
end
|
|
297
308
|
|
|
298
309
|
# Builds the object from hash
|
|
@@ -51,6 +51,9 @@ module DaytonaApiClient
|
|
|
51
51
|
# Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses.
|
|
52
52
|
attr_accessor :outbound_proxy_url
|
|
53
53
|
|
|
54
|
+
# OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses.
|
|
55
|
+
attr_accessor :otel_endpoint_override
|
|
56
|
+
|
|
54
57
|
# The target environment for the sandbox
|
|
55
58
|
attr_accessor :target
|
|
56
59
|
|
|
@@ -60,6 +63,12 @@ module DaytonaApiClient
|
|
|
60
63
|
# The GPU quota for the sandbox
|
|
61
64
|
attr_accessor :gpu
|
|
62
65
|
|
|
66
|
+
# Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false.
|
|
67
|
+
attr_accessor :spot
|
|
68
|
+
|
|
69
|
+
# When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction.
|
|
70
|
+
attr_accessor :spot_evicted_at
|
|
71
|
+
|
|
63
72
|
# The GPU type assigned to the sandbox
|
|
64
73
|
attr_accessor :gpu_type
|
|
65
74
|
|
|
@@ -172,9 +181,12 @@ module DaytonaApiClient
|
|
|
172
181
|
:'network_allow_list' => :'networkAllowList',
|
|
173
182
|
:'domain_allow_list' => :'domainAllowList',
|
|
174
183
|
:'outbound_proxy_url' => :'outboundProxyUrl',
|
|
184
|
+
:'otel_endpoint_override' => :'otelEndpointOverride',
|
|
175
185
|
:'target' => :'target',
|
|
176
186
|
:'cpu' => :'cpu',
|
|
177
187
|
:'gpu' => :'gpu',
|
|
188
|
+
:'spot' => :'spot',
|
|
189
|
+
:'spot_evicted_at' => :'spotEvictedAt',
|
|
178
190
|
:'gpu_type' => :'gpuType',
|
|
179
191
|
:'memory' => :'memory',
|
|
180
192
|
:'disk' => :'disk',
|
|
@@ -228,9 +240,12 @@ module DaytonaApiClient
|
|
|
228
240
|
:'network_allow_list' => :'String',
|
|
229
241
|
:'domain_allow_list' => :'String',
|
|
230
242
|
:'outbound_proxy_url' => :'String',
|
|
243
|
+
:'otel_endpoint_override' => :'String',
|
|
231
244
|
:'target' => :'String',
|
|
232
245
|
:'cpu' => :'Float',
|
|
233
246
|
:'gpu' => :'Float',
|
|
247
|
+
:'spot' => :'Boolean',
|
|
248
|
+
:'spot_evicted_at' => :'String',
|
|
234
249
|
:'gpu_type' => :'GpuType',
|
|
235
250
|
:'memory' => :'Float',
|
|
236
251
|
:'disk' => :'Float',
|
|
@@ -349,6 +364,10 @@ module DaytonaApiClient
|
|
|
349
364
|
self.outbound_proxy_url = attributes[:'outbound_proxy_url']
|
|
350
365
|
end
|
|
351
366
|
|
|
367
|
+
if attributes.key?(:'otel_endpoint_override')
|
|
368
|
+
self.otel_endpoint_override = attributes[:'otel_endpoint_override']
|
|
369
|
+
end
|
|
370
|
+
|
|
352
371
|
if attributes.key?(:'target')
|
|
353
372
|
self.target = attributes[:'target']
|
|
354
373
|
else
|
|
@@ -367,6 +386,16 @@ module DaytonaApiClient
|
|
|
367
386
|
self.gpu = nil
|
|
368
387
|
end
|
|
369
388
|
|
|
389
|
+
if attributes.key?(:'spot')
|
|
390
|
+
self.spot = attributes[:'spot']
|
|
391
|
+
else
|
|
392
|
+
self.spot = false
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
if attributes.key?(:'spot_evicted_at')
|
|
396
|
+
self.spot_evicted_at = attributes[:'spot_evicted_at']
|
|
397
|
+
end
|
|
398
|
+
|
|
370
399
|
if attributes.key?(:'gpu_type')
|
|
371
400
|
self.gpu_type = attributes[:'gpu_type']
|
|
372
401
|
end
|
|
@@ -742,9 +771,12 @@ module DaytonaApiClient
|
|
|
742
771
|
network_allow_list == o.network_allow_list &&
|
|
743
772
|
domain_allow_list == o.domain_allow_list &&
|
|
744
773
|
outbound_proxy_url == o.outbound_proxy_url &&
|
|
774
|
+
otel_endpoint_override == o.otel_endpoint_override &&
|
|
745
775
|
target == o.target &&
|
|
746
776
|
cpu == o.cpu &&
|
|
747
777
|
gpu == o.gpu &&
|
|
778
|
+
spot == o.spot &&
|
|
779
|
+
spot_evicted_at == o.spot_evicted_at &&
|
|
748
780
|
gpu_type == o.gpu_type &&
|
|
749
781
|
memory == o.memory &&
|
|
750
782
|
disk == o.disk &&
|
|
@@ -781,7 +813,7 @@ module DaytonaApiClient
|
|
|
781
813
|
# Calculates hash code according to all attributes.
|
|
782
814
|
# @return [Integer] Hash code
|
|
783
815
|
def hash
|
|
784
|
-
[id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, domain_allow_list, outbound_proxy_url, target, cpu, gpu, gpu_type, memory, disk, state, desired_state, error_reason, recoverable, warm_pool_id, backup_state, backup_created_at, auto_stop_interval, auto_pause_interval, auto_archive_interval, auto_delete_interval, auto_destroy_at, volumes, build_info, created_at, updated_at, last_activity_at, sandbox_class, daemon_version, runner_id, linked_sandbox_id, toolbox_proxy_url].hash
|
|
816
|
+
[id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, domain_allow_list, outbound_proxy_url, otel_endpoint_override, target, cpu, gpu, spot, spot_evicted_at, gpu_type, memory, disk, state, desired_state, error_reason, recoverable, warm_pool_id, backup_state, backup_created_at, auto_stop_interval, auto_pause_interval, auto_archive_interval, auto_delete_interval, auto_destroy_at, volumes, build_info, created_at, updated_at, last_activity_at, sandbox_class, daemon_version, runner_id, linked_sandbox_id, toolbox_proxy_url].hash
|
|
785
817
|
end
|
|
786
818
|
|
|
787
819
|
# Builds the object from hash
|
|
@@ -69,6 +69,12 @@ module DaytonaApiClient
|
|
|
69
69
|
# The GPU quota for the sandbox
|
|
70
70
|
attr_accessor :gpu
|
|
71
71
|
|
|
72
|
+
# Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false.
|
|
73
|
+
attr_accessor :spot
|
|
74
|
+
|
|
75
|
+
# When this sandbox was evicted by spot preemption. Set as soon as the sandbox is marked for eviction, so it is already present while the sandbox is still winding down.
|
|
76
|
+
attr_accessor :spot_evicted_at
|
|
77
|
+
|
|
72
78
|
# The GPU type assigned to the sandbox
|
|
73
79
|
attr_accessor :gpu_type
|
|
74
80
|
|
|
@@ -160,6 +166,8 @@ module DaytonaApiClient
|
|
|
160
166
|
:'domain_allow_list' => :'domainAllowList',
|
|
161
167
|
:'cpu' => :'cpu',
|
|
162
168
|
:'gpu' => :'gpu',
|
|
169
|
+
:'spot' => :'spot',
|
|
170
|
+
:'spot_evicted_at' => :'spotEvictedAt',
|
|
163
171
|
:'gpu_type' => :'gpuType',
|
|
164
172
|
:'memory' => :'memory',
|
|
165
173
|
:'disk' => :'disk',
|
|
@@ -210,6 +218,8 @@ module DaytonaApiClient
|
|
|
210
218
|
:'domain_allow_list' => :'String',
|
|
211
219
|
:'cpu' => :'Float',
|
|
212
220
|
:'gpu' => :'Float',
|
|
221
|
+
:'spot' => :'Boolean',
|
|
222
|
+
:'spot_evicted_at' => :'String',
|
|
213
223
|
:'gpu_type' => :'GpuType',
|
|
214
224
|
:'memory' => :'Float',
|
|
215
225
|
:'disk' => :'Float',
|
|
@@ -341,6 +351,16 @@ module DaytonaApiClient
|
|
|
341
351
|
self.gpu = nil
|
|
342
352
|
end
|
|
343
353
|
|
|
354
|
+
if attributes.key?(:'spot')
|
|
355
|
+
self.spot = attributes[:'spot']
|
|
356
|
+
else
|
|
357
|
+
self.spot = false
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
if attributes.key?(:'spot_evicted_at')
|
|
361
|
+
self.spot_evicted_at = attributes[:'spot_evicted_at']
|
|
362
|
+
end
|
|
363
|
+
|
|
344
364
|
if attributes.key?(:'gpu_type')
|
|
345
365
|
self.gpu_type = attributes[:'gpu_type']
|
|
346
366
|
end
|
|
@@ -661,6 +681,8 @@ module DaytonaApiClient
|
|
|
661
681
|
domain_allow_list == o.domain_allow_list &&
|
|
662
682
|
cpu == o.cpu &&
|
|
663
683
|
gpu == o.gpu &&
|
|
684
|
+
spot == o.spot &&
|
|
685
|
+
spot_evicted_at == o.spot_evicted_at &&
|
|
664
686
|
gpu_type == o.gpu_type &&
|
|
665
687
|
memory == o.memory &&
|
|
666
688
|
disk == o.disk &&
|
|
@@ -688,7 +710,7 @@ module DaytonaApiClient
|
|
|
688
710
|
# Calculates hash code according to all attributes.
|
|
689
711
|
# @return [Integer] Hash code
|
|
690
712
|
def hash
|
|
691
|
-
[id, organization_id, name, target, runner_id, sandbox_class, state, desired_state, snapshot, user, error_reason, recoverable, public, network_block_all, network_allow_list, domain_allow_list, cpu, gpu, gpu_type, memory, disk, labels, backup_state, auto_stop_interval, auto_pause_interval, auto_archive_interval, auto_delete_interval, auto_destroy_at, created_at, updated_at, last_activity_at, daemon_version, warm_pool_id, toolbox_proxy_url].hash
|
|
713
|
+
[id, organization_id, name, target, runner_id, sandbox_class, state, desired_state, snapshot, user, error_reason, recoverable, public, network_block_all, network_allow_list, domain_allow_list, cpu, gpu, spot, spot_evicted_at, gpu_type, memory, disk, labels, backup_state, auto_stop_interval, auto_pause_interval, auto_archive_interval, auto_delete_interval, auto_destroy_at, created_at, updated_at, last_activity_at, daemon_version, warm_pool_id, toolbox_proxy_url].hash
|
|
692
714
|
end
|
|
693
715
|
|
|
694
716
|
# Builds the object from hash
|
|
@@ -24,12 +24,16 @@ module DaytonaApiClient
|
|
|
24
24
|
# Snapshot Manager URL for the region
|
|
25
25
|
attr_accessor :snapshot_manager_url
|
|
26
26
|
|
|
27
|
+
# OTel collector endpoint for sandboxes created in this region. When set, sandbox OTel data is sent to this endpoint instead of the Daytona-hosted collector and will not be available in the Daytona analytics API or dashboard.
|
|
28
|
+
attr_accessor :otel_endpoint
|
|
29
|
+
|
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
31
|
def self.attribute_map
|
|
29
32
|
{
|
|
30
33
|
:'proxy_url' => :'proxyUrl',
|
|
31
34
|
:'ssh_gateway_url' => :'sshGatewayUrl',
|
|
32
|
-
:'snapshot_manager_url' => :'snapshotManagerUrl'
|
|
35
|
+
:'snapshot_manager_url' => :'snapshotManagerUrl',
|
|
36
|
+
:'otel_endpoint' => :'otelEndpoint'
|
|
33
37
|
}
|
|
34
38
|
end
|
|
35
39
|
|
|
@@ -48,7 +52,8 @@ module DaytonaApiClient
|
|
|
48
52
|
{
|
|
49
53
|
:'proxy_url' => :'String',
|
|
50
54
|
:'ssh_gateway_url' => :'String',
|
|
51
|
-
:'snapshot_manager_url' => :'String'
|
|
55
|
+
:'snapshot_manager_url' => :'String',
|
|
56
|
+
:'otel_endpoint' => :'String'
|
|
52
57
|
}
|
|
53
58
|
end
|
|
54
59
|
|
|
@@ -57,7 +62,8 @@ module DaytonaApiClient
|
|
|
57
62
|
Set.new([
|
|
58
63
|
:'proxy_url',
|
|
59
64
|
:'ssh_gateway_url',
|
|
60
|
-
:'snapshot_manager_url'
|
|
65
|
+
:'snapshot_manager_url',
|
|
66
|
+
:'otel_endpoint'
|
|
61
67
|
])
|
|
62
68
|
end
|
|
63
69
|
|
|
@@ -88,6 +94,10 @@ module DaytonaApiClient
|
|
|
88
94
|
if attributes.key?(:'snapshot_manager_url')
|
|
89
95
|
self.snapshot_manager_url = attributes[:'snapshot_manager_url']
|
|
90
96
|
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'otel_endpoint')
|
|
99
|
+
self.otel_endpoint = attributes[:'otel_endpoint']
|
|
100
|
+
end
|
|
91
101
|
end
|
|
92
102
|
|
|
93
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -112,7 +122,8 @@ module DaytonaApiClient
|
|
|
112
122
|
self.class == o.class &&
|
|
113
123
|
proxy_url == o.proxy_url &&
|
|
114
124
|
ssh_gateway_url == o.ssh_gateway_url &&
|
|
115
|
-
snapshot_manager_url == o.snapshot_manager_url
|
|
125
|
+
snapshot_manager_url == o.snapshot_manager_url &&
|
|
126
|
+
otel_endpoint == o.otel_endpoint
|
|
116
127
|
end
|
|
117
128
|
|
|
118
129
|
# @see the `==` method
|
|
@@ -124,7 +135,7 @@ module DaytonaApiClient
|
|
|
124
135
|
# Calculates hash code according to all attributes.
|
|
125
136
|
# @return [Integer] Hash code
|
|
126
137
|
def hash
|
|
127
|
-
[proxy_url, ssh_gateway_url, snapshot_manager_url].hash
|
|
138
|
+
[proxy_url, ssh_gateway_url, snapshot_manager_url, otel_endpoint].hash
|
|
128
139
|
end
|
|
129
140
|
|
|
130
141
|
# Builds the object from hash
|
|
@@ -27,6 +27,9 @@ module DaytonaApiClient
|
|
|
27
27
|
# Whether the user email address has been verified
|
|
28
28
|
attr_accessor :email_verified
|
|
29
29
|
|
|
30
|
+
# HMAC of the user email for Pylon support-widget identity verification
|
|
31
|
+
attr_accessor :pylon_email_hash
|
|
32
|
+
|
|
30
33
|
# User public keys
|
|
31
34
|
attr_accessor :public_keys
|
|
32
35
|
|
|
@@ -40,6 +43,7 @@ module DaytonaApiClient
|
|
|
40
43
|
:'name' => :'name',
|
|
41
44
|
:'email' => :'email',
|
|
42
45
|
:'email_verified' => :'emailVerified',
|
|
46
|
+
:'pylon_email_hash' => :'pylonEmailHash',
|
|
43
47
|
:'public_keys' => :'publicKeys',
|
|
44
48
|
:'created_at' => :'createdAt'
|
|
45
49
|
}
|
|
@@ -62,6 +66,7 @@ module DaytonaApiClient
|
|
|
62
66
|
:'name' => :'String',
|
|
63
67
|
:'email' => :'String',
|
|
64
68
|
:'email_verified' => :'Boolean',
|
|
69
|
+
:'pylon_email_hash' => :'String',
|
|
65
70
|
:'public_keys' => :'Array<UserPublicKey>',
|
|
66
71
|
:'created_at' => :'Time'
|
|
67
72
|
}
|
|
@@ -113,6 +118,10 @@ module DaytonaApiClient
|
|
|
113
118
|
self.email_verified = nil
|
|
114
119
|
end
|
|
115
120
|
|
|
121
|
+
if attributes.key?(:'pylon_email_hash')
|
|
122
|
+
self.pylon_email_hash = attributes[:'pylon_email_hash']
|
|
123
|
+
end
|
|
124
|
+
|
|
116
125
|
if attributes.key?(:'public_keys')
|
|
117
126
|
if (value = attributes[:'public_keys']).is_a?(Array)
|
|
118
127
|
self.public_keys = value
|
|
@@ -242,6 +251,7 @@ module DaytonaApiClient
|
|
|
242
251
|
name == o.name &&
|
|
243
252
|
email == o.email &&
|
|
244
253
|
email_verified == o.email_verified &&
|
|
254
|
+
pylon_email_hash == o.pylon_email_hash &&
|
|
245
255
|
public_keys == o.public_keys &&
|
|
246
256
|
created_at == o.created_at
|
|
247
257
|
end
|
|
@@ -255,7 +265,7 @@ module DaytonaApiClient
|
|
|
255
265
|
# Calculates hash code according to all attributes.
|
|
256
266
|
# @return [Integer] Hash code
|
|
257
267
|
def hash
|
|
258
|
-
[id, name, email, email_verified, public_keys, created_at].hash
|
|
268
|
+
[id, name, email, email_verified, pylon_email_hash, public_keys, created_at].hash
|
|
259
269
|
end
|
|
260
270
|
|
|
261
271
|
# Builds the object from hash
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: daytona_api_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.205.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- daytona
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 1980-01-
|
|
10
|
+
date: 1980-01-01 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: typhoeus
|
|
@@ -255,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
255
255
|
- !ruby/object:Gem::Version
|
|
256
256
|
version: '0'
|
|
257
257
|
requirements: []
|
|
258
|
-
rubygems_version: 3.
|
|
258
|
+
rubygems_version: 3.7.2
|
|
259
259
|
specification_version: 4
|
|
260
260
|
summary: Daytona Ruby Gem
|
|
261
261
|
test_files: []
|