daytona_toolbox_api_client 0.184.0.alpha.1 → 0.184.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/.openapi-generator/FILES +0 -2
- data/lib/daytona_toolbox_api_client/api/file_system_api.rb +0 -10
- data/lib/daytona_toolbox_api_client/api/git_api.rb +0 -14
- data/lib/daytona_toolbox_api_client/api/lsp_api.rb +0 -8
- data/lib/daytona_toolbox_api_client/api/process_api.rb +0 -8
- data/lib/daytona_toolbox_api_client/models/file_info.rb +28 -1
- data/lib/daytona_toolbox_api_client/version.rb +1 -1
- data/lib/daytona_toolbox_api_client.rb +0 -2
- metadata +1 -3
- data/lib/daytona_toolbox_api_client/models/daemon_error_code.rb +0 -56
- data/lib/daytona_toolbox_api_client/models/error_response.rb +0 -292
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79beb5c8405f065a446098bcc26ea150fffa25235192e9a7dfadb53a86f27d48
|
|
4
|
+
data.tar.gz: '097dd49e9dc499edda35fa8a373c2c5ed4348600f8a4f750a1b844d236dbce9a'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1539d2290d96b2cc5c0adda70f538e6e22e78a856355ee798931c95f676e98f2175028735975ca9987669d1e116bd2b7438f0b472651e74e61d72eb4a0e1567
|
|
7
|
+
data.tar.gz: bed30bbdae6cc0e3260fde74b94d8e7e74ac04532d4fc7cb4fed7e16e31fee02aeecde1d2bb61699ff40fac75a120b462057055fc91c678fafde75a92d6f5aa4
|
data/.openapi-generator/FILES
CHANGED
|
@@ -38,10 +38,8 @@ lib/daytona_toolbox_api_client/models/computer_use_status_response.rb
|
|
|
38
38
|
lib/daytona_toolbox_api_client/models/computer_use_stop_response.rb
|
|
39
39
|
lib/daytona_toolbox_api_client/models/create_context_request.rb
|
|
40
40
|
lib/daytona_toolbox_api_client/models/create_session_request.rb
|
|
41
|
-
lib/daytona_toolbox_api_client/models/daemon_error_code.rb
|
|
42
41
|
lib/daytona_toolbox_api_client/models/display_info.rb
|
|
43
42
|
lib/daytona_toolbox_api_client/models/display_info_response.rb
|
|
44
|
-
lib/daytona_toolbox_api_client/models/error_response.rb
|
|
45
43
|
lib/daytona_toolbox_api_client/models/execute_request.rb
|
|
46
44
|
lib/daytona_toolbox_api_client/models/execute_response.rb
|
|
47
45
|
lib/daytona_toolbox_api_client/models/file_info.rb
|
|
@@ -58,8 +58,6 @@ module DaytonaToolboxApiClient
|
|
|
58
58
|
|
|
59
59
|
# header parameters
|
|
60
60
|
header_params = opts[:header_params] || {}
|
|
61
|
-
# HTTP header 'Accept' (if needed)
|
|
62
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
63
61
|
|
|
64
62
|
# form parameters
|
|
65
63
|
form_params = opts[:form_params] || {}
|
|
@@ -125,8 +123,6 @@ module DaytonaToolboxApiClient
|
|
|
125
123
|
|
|
126
124
|
# header parameters
|
|
127
125
|
header_params = opts[:header_params] || {}
|
|
128
|
-
# HTTP header 'Accept' (if needed)
|
|
129
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
130
126
|
|
|
131
127
|
# form parameters
|
|
132
128
|
form_params = opts[:form_params] || {}
|
|
@@ -523,8 +519,6 @@ module DaytonaToolboxApiClient
|
|
|
523
519
|
|
|
524
520
|
# header parameters
|
|
525
521
|
header_params = opts[:header_params] || {}
|
|
526
|
-
# HTTP header 'Accept' (if needed)
|
|
527
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
528
522
|
|
|
529
523
|
# form parameters
|
|
530
524
|
form_params = opts[:form_params] || {}
|
|
@@ -735,8 +729,6 @@ module DaytonaToolboxApiClient
|
|
|
735
729
|
|
|
736
730
|
# header parameters
|
|
737
731
|
header_params = opts[:header_params] || {}
|
|
738
|
-
# HTTP header 'Accept' (if needed)
|
|
739
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
740
732
|
|
|
741
733
|
# form parameters
|
|
742
734
|
form_params = opts[:form_params] || {}
|
|
@@ -868,8 +860,6 @@ module DaytonaToolboxApiClient
|
|
|
868
860
|
|
|
869
861
|
# header parameters
|
|
870
862
|
header_params = opts[:header_params] || {}
|
|
871
|
-
# HTTP header 'Accept' (if needed)
|
|
872
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
873
863
|
|
|
874
864
|
# form parameters
|
|
875
865
|
form_params = opts[:form_params] || {}
|
|
@@ -50,8 +50,6 @@ module DaytonaToolboxApiClient
|
|
|
50
50
|
|
|
51
51
|
# header parameters
|
|
52
52
|
header_params = opts[:header_params] || {}
|
|
53
|
-
# HTTP header 'Accept' (if needed)
|
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
53
|
# HTTP header 'Content-Type'
|
|
56
54
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
55
|
if !content_type.nil?
|
|
@@ -118,8 +116,6 @@ module DaytonaToolboxApiClient
|
|
|
118
116
|
|
|
119
117
|
# header parameters
|
|
120
118
|
header_params = opts[:header_params] || {}
|
|
121
|
-
# HTTP header 'Accept' (if needed)
|
|
122
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
123
119
|
# HTTP header 'Content-Type'
|
|
124
120
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
125
121
|
if !content_type.nil?
|
|
@@ -186,8 +182,6 @@ module DaytonaToolboxApiClient
|
|
|
186
182
|
|
|
187
183
|
# header parameters
|
|
188
184
|
header_params = opts[:header_params] || {}
|
|
189
|
-
# HTTP header 'Accept' (if needed)
|
|
190
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
191
185
|
# HTTP header 'Content-Type'
|
|
192
186
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
193
187
|
if !content_type.nil?
|
|
@@ -322,8 +316,6 @@ module DaytonaToolboxApiClient
|
|
|
322
316
|
|
|
323
317
|
# header parameters
|
|
324
318
|
header_params = opts[:header_params] || {}
|
|
325
|
-
# HTTP header 'Accept' (if needed)
|
|
326
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
327
319
|
# HTTP header 'Content-Type'
|
|
328
320
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
329
321
|
if !content_type.nil?
|
|
@@ -390,8 +382,6 @@ module DaytonaToolboxApiClient
|
|
|
390
382
|
|
|
391
383
|
# header parameters
|
|
392
384
|
header_params = opts[:header_params] || {}
|
|
393
|
-
# HTTP header 'Accept' (if needed)
|
|
394
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
395
385
|
# HTTP header 'Content-Type'
|
|
396
386
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
397
387
|
if !content_type.nil?
|
|
@@ -650,8 +640,6 @@ module DaytonaToolboxApiClient
|
|
|
650
640
|
|
|
651
641
|
# header parameters
|
|
652
642
|
header_params = opts[:header_params] || {}
|
|
653
|
-
# HTTP header 'Accept' (if needed)
|
|
654
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
655
643
|
# HTTP header 'Content-Type'
|
|
656
644
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
657
645
|
if !content_type.nil?
|
|
@@ -718,8 +706,6 @@ module DaytonaToolboxApiClient
|
|
|
718
706
|
|
|
719
707
|
# header parameters
|
|
720
708
|
header_params = opts[:header_params] || {}
|
|
721
|
-
# HTTP header 'Accept' (if needed)
|
|
722
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
723
709
|
# HTTP header 'Content-Type'
|
|
724
710
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
725
711
|
if !content_type.nil?
|
|
@@ -118,8 +118,6 @@ module DaytonaToolboxApiClient
|
|
|
118
118
|
|
|
119
119
|
# header parameters
|
|
120
120
|
header_params = opts[:header_params] || {}
|
|
121
|
-
# HTTP header 'Accept' (if needed)
|
|
122
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
123
121
|
# HTTP header 'Content-Type'
|
|
124
122
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
125
123
|
if !content_type.nil?
|
|
@@ -186,8 +184,6 @@ module DaytonaToolboxApiClient
|
|
|
186
184
|
|
|
187
185
|
# header parameters
|
|
188
186
|
header_params = opts[:header_params] || {}
|
|
189
|
-
# HTTP header 'Accept' (if needed)
|
|
190
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
191
187
|
# HTTP header 'Content-Type'
|
|
192
188
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
193
189
|
if !content_type.nil?
|
|
@@ -332,8 +328,6 @@ module DaytonaToolboxApiClient
|
|
|
332
328
|
|
|
333
329
|
# header parameters
|
|
334
330
|
header_params = opts[:header_params] || {}
|
|
335
|
-
# HTTP header 'Accept' (if needed)
|
|
336
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
337
331
|
# HTTP header 'Content-Type'
|
|
338
332
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
339
333
|
if !content_type.nil?
|
|
@@ -400,8 +394,6 @@ module DaytonaToolboxApiClient
|
|
|
400
394
|
|
|
401
395
|
# header parameters
|
|
402
396
|
header_params = opts[:header_params] || {}
|
|
403
|
-
# HTTP header 'Accept' (if needed)
|
|
404
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
405
397
|
# HTTP header 'Content-Type'
|
|
406
398
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
407
399
|
if !content_type.nil?
|
|
@@ -118,8 +118,6 @@ module DaytonaToolboxApiClient
|
|
|
118
118
|
|
|
119
119
|
# header parameters
|
|
120
120
|
header_params = opts[:header_params] || {}
|
|
121
|
-
# HTTP header 'Accept' (if needed)
|
|
122
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
123
121
|
|
|
124
122
|
# form parameters
|
|
125
123
|
form_params = opts[:form_params] || {}
|
|
@@ -249,8 +247,6 @@ module DaytonaToolboxApiClient
|
|
|
249
247
|
|
|
250
248
|
# header parameters
|
|
251
249
|
header_params = opts[:header_params] || {}
|
|
252
|
-
# HTTP header 'Accept' (if needed)
|
|
253
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
254
250
|
# HTTP header 'Content-Type'
|
|
255
251
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
256
252
|
if !content_type.nil?
|
|
@@ -380,8 +376,6 @@ module DaytonaToolboxApiClient
|
|
|
380
376
|
|
|
381
377
|
# header parameters
|
|
382
378
|
header_params = opts[:header_params] || {}
|
|
383
|
-
# HTTP header 'Accept' (if needed)
|
|
384
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
385
379
|
|
|
386
380
|
# form parameters
|
|
387
381
|
form_params = opts[:form_params] || {}
|
|
@@ -1095,8 +1089,6 @@ module DaytonaToolboxApiClient
|
|
|
1095
1089
|
|
|
1096
1090
|
# header parameters
|
|
1097
1091
|
header_params = opts[:header_params] || {}
|
|
1098
|
-
# HTTP header 'Accept' (if needed)
|
|
1099
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
1100
1092
|
# HTTP header 'Content-Type'
|
|
1101
1093
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1102
1094
|
if !content_type.nil?
|
|
@@ -19,10 +19,13 @@ module DaytonaToolboxApiClient
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :is_dir
|
|
21
21
|
|
|
22
|
+
# Deprecated: ModTime uses Go's time.String() layout which is not a standard format. Use ModifiedAt instead, which is serialized as ISO 8601 / RFC 3339.
|
|
22
23
|
attr_accessor :mod_time
|
|
23
24
|
|
|
24
25
|
attr_accessor :mode
|
|
25
26
|
|
|
27
|
+
attr_accessor :modified_at
|
|
28
|
+
|
|
26
29
|
attr_accessor :name
|
|
27
30
|
|
|
28
31
|
attr_accessor :owner
|
|
@@ -38,6 +41,7 @@ module DaytonaToolboxApiClient
|
|
|
38
41
|
:'is_dir' => :'isDir',
|
|
39
42
|
:'mod_time' => :'modTime',
|
|
40
43
|
:'mode' => :'mode',
|
|
44
|
+
:'modified_at' => :'modifiedAt',
|
|
41
45
|
:'name' => :'name',
|
|
42
46
|
:'owner' => :'owner',
|
|
43
47
|
:'permissions' => :'permissions',
|
|
@@ -62,6 +66,7 @@ module DaytonaToolboxApiClient
|
|
|
62
66
|
:'is_dir' => :'Boolean',
|
|
63
67
|
:'mod_time' => :'String',
|
|
64
68
|
:'mode' => :'String',
|
|
69
|
+
:'modified_at' => :'String',
|
|
65
70
|
:'name' => :'String',
|
|
66
71
|
:'owner' => :'String',
|
|
67
72
|
:'permissions' => :'String',
|
|
@@ -115,6 +120,12 @@ module DaytonaToolboxApiClient
|
|
|
115
120
|
self.mode = nil
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'modified_at')
|
|
124
|
+
self.modified_at = attributes[:'modified_at']
|
|
125
|
+
else
|
|
126
|
+
self.modified_at = nil
|
|
127
|
+
end
|
|
128
|
+
|
|
118
129
|
if attributes.key?(:'name')
|
|
119
130
|
self.name = attributes[:'name']
|
|
120
131
|
else
|
|
@@ -161,6 +172,10 @@ module DaytonaToolboxApiClient
|
|
|
161
172
|
invalid_properties.push('invalid value for "mode", mode cannot be nil.')
|
|
162
173
|
end
|
|
163
174
|
|
|
175
|
+
if @modified_at.nil?
|
|
176
|
+
invalid_properties.push('invalid value for "modified_at", modified_at cannot be nil.')
|
|
177
|
+
end
|
|
178
|
+
|
|
164
179
|
if @name.nil?
|
|
165
180
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
166
181
|
end
|
|
@@ -188,6 +203,7 @@ module DaytonaToolboxApiClient
|
|
|
188
203
|
return false if @is_dir.nil?
|
|
189
204
|
return false if @mod_time.nil?
|
|
190
205
|
return false if @mode.nil?
|
|
206
|
+
return false if @modified_at.nil?
|
|
191
207
|
return false if @name.nil?
|
|
192
208
|
return false if @owner.nil?
|
|
193
209
|
return false if @permissions.nil?
|
|
@@ -235,6 +251,16 @@ module DaytonaToolboxApiClient
|
|
|
235
251
|
@mode = mode
|
|
236
252
|
end
|
|
237
253
|
|
|
254
|
+
# Custom attribute writer method with validation
|
|
255
|
+
# @param [Object] modified_at Value to be assigned
|
|
256
|
+
def modified_at=(modified_at)
|
|
257
|
+
if modified_at.nil?
|
|
258
|
+
fail ArgumentError, 'modified_at cannot be nil'
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
@modified_at = modified_at
|
|
262
|
+
end
|
|
263
|
+
|
|
238
264
|
# Custom attribute writer method with validation
|
|
239
265
|
# @param [Object] name Value to be assigned
|
|
240
266
|
def name=(name)
|
|
@@ -284,6 +310,7 @@ module DaytonaToolboxApiClient
|
|
|
284
310
|
is_dir == o.is_dir &&
|
|
285
311
|
mod_time == o.mod_time &&
|
|
286
312
|
mode == o.mode &&
|
|
313
|
+
modified_at == o.modified_at &&
|
|
287
314
|
name == o.name &&
|
|
288
315
|
owner == o.owner &&
|
|
289
316
|
permissions == o.permissions &&
|
|
@@ -299,7 +326,7 @@ module DaytonaToolboxApiClient
|
|
|
299
326
|
# Calculates hash code according to all attributes.
|
|
300
327
|
# @return [Integer] Hash code
|
|
301
328
|
def hash
|
|
302
|
-
[group, is_dir, mod_time, mode, name, owner, permissions, size].hash
|
|
329
|
+
[group, is_dir, mod_time, mode, modified_at, name, owner, permissions, size].hash
|
|
303
330
|
end
|
|
304
331
|
|
|
305
332
|
# Builds the object from hash
|
|
@@ -39,10 +39,8 @@ require 'daytona_toolbox_api_client/models/computer_use_status_response'
|
|
|
39
39
|
require 'daytona_toolbox_api_client/models/computer_use_stop_response'
|
|
40
40
|
require 'daytona_toolbox_api_client/models/create_context_request'
|
|
41
41
|
require 'daytona_toolbox_api_client/models/create_session_request'
|
|
42
|
-
require 'daytona_toolbox_api_client/models/daemon_error_code'
|
|
43
42
|
require 'daytona_toolbox_api_client/models/display_info'
|
|
44
43
|
require 'daytona_toolbox_api_client/models/display_info_response'
|
|
45
|
-
require 'daytona_toolbox_api_client/models/error_response'
|
|
46
44
|
require 'daytona_toolbox_api_client/models/execute_request'
|
|
47
45
|
require 'daytona_toolbox_api_client/models/execute_response'
|
|
48
46
|
require 'daytona_toolbox_api_client/models/file_info'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: daytona_toolbox_api_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.184.0
|
|
4
|
+
version: 0.184.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- daytonaio
|
|
@@ -100,10 +100,8 @@ files:
|
|
|
100
100
|
- lib/daytona_toolbox_api_client/models/computer_use_stop_response.rb
|
|
101
101
|
- lib/daytona_toolbox_api_client/models/create_context_request.rb
|
|
102
102
|
- lib/daytona_toolbox_api_client/models/create_session_request.rb
|
|
103
|
-
- lib/daytona_toolbox_api_client/models/daemon_error_code.rb
|
|
104
103
|
- lib/daytona_toolbox_api_client/models/display_info.rb
|
|
105
104
|
- lib/daytona_toolbox_api_client/models/display_info_response.rb
|
|
106
|
-
- lib/daytona_toolbox_api_client/models/error_response.rb
|
|
107
105
|
- lib/daytona_toolbox_api_client/models/execute_request.rb
|
|
108
106
|
- lib/daytona_toolbox_api_client/models/execute_response.rb
|
|
109
107
|
- lib/daytona_toolbox_api_client/models/file_info.rb
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Daytona Toolbox API
|
|
3
|
-
|
|
4
|
-
#Daytona Toolbox API
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: v0.0.0-dev
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module DaytonaToolboxApiClient
|
|
17
|
-
class DaemonErrorCode
|
|
18
|
-
CodeGitAuthFailed = "GIT_AUTH_FAILED".freeze
|
|
19
|
-
CodeGitRepoNotFound = "GIT_REPO_NOT_FOUND".freeze
|
|
20
|
-
CodeGitBranchNotFound = "GIT_BRANCH_NOT_FOUND".freeze
|
|
21
|
-
CodeGitBranchExists = "GIT_BRANCH_EXISTS".freeze
|
|
22
|
-
CodeGitPushRejected = "GIT_PUSH_REJECTED".freeze
|
|
23
|
-
CodeGitDirtyWorktree = "GIT_DIRTY_WORKTREE".freeze
|
|
24
|
-
CodeGitMergeConflict = "GIT_MERGE_CONFLICT".freeze
|
|
25
|
-
CodeFileNotFound = "FILE_NOT_FOUND".freeze
|
|
26
|
-
CodeFileAccessDenied = "FILE_ACCESS_DENIED".freeze
|
|
27
|
-
CodeLspServerNotInitialized = "LSP_SERVER_NOT_INITIALIZED".freeze
|
|
28
|
-
CodeProcessExecutionTimeout = "PROCESS_EXECUTION_TIMEOUT".freeze
|
|
29
|
-
CodeProcessNotFound = "PROCESS_NOT_FOUND".freeze
|
|
30
|
-
CodeSessionEnded = "SESSION_ENDED".freeze
|
|
31
|
-
CodeCommandAlreadyCompleted = "COMMAND_ALREADY_COMPLETED".freeze
|
|
32
|
-
CodeA11yUnavailable = "A11Y_UNAVAILABLE".freeze
|
|
33
|
-
CodeRecordingStillActive = "RECORDING_STILL_ACTIVE".freeze
|
|
34
|
-
CodeRecordingFfmpegNotFound = "RECORDING_FFMPEG_NOT_FOUND".freeze
|
|
35
|
-
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
36
|
-
|
|
37
|
-
def self.all_vars
|
|
38
|
-
@all_vars ||= [CodeGitAuthFailed, CodeGitRepoNotFound, CodeGitBranchNotFound, CodeGitBranchExists, CodeGitPushRejected, CodeGitDirtyWorktree, CodeGitMergeConflict, CodeFileNotFound, CodeFileAccessDenied, CodeLspServerNotInitialized, CodeProcessExecutionTimeout, CodeProcessNotFound, CodeSessionEnded, CodeCommandAlreadyCompleted, CodeA11yUnavailable, CodeRecordingStillActive, CodeRecordingFfmpegNotFound, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# Builds the enum from string
|
|
42
|
-
# @param [String] The enum value in the form of the string
|
|
43
|
-
# @return [String] The enum value
|
|
44
|
-
def self.build_from_hash(value)
|
|
45
|
-
new.build_from_hash(value)
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
# Builds the enum from string
|
|
49
|
-
# @param [String] The enum value in the form of the string
|
|
50
|
-
# @return [String] The enum value
|
|
51
|
-
def build_from_hash(value)
|
|
52
|
-
return value if DaemonErrorCode.all_vars.include?(value)
|
|
53
|
-
UNKNOWN_DEFAULT_OPEN_API
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Daytona Toolbox API
|
|
3
|
-
|
|
4
|
-
#Daytona Toolbox API
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: v0.0.0-dev
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module DaytonaToolboxApiClient
|
|
17
|
-
# Error response
|
|
18
|
-
class ErrorResponse < ApiModelBase
|
|
19
|
-
attr_accessor :code
|
|
20
|
-
|
|
21
|
-
attr_accessor :message
|
|
22
|
-
|
|
23
|
-
attr_accessor :method
|
|
24
|
-
|
|
25
|
-
attr_accessor :path
|
|
26
|
-
|
|
27
|
-
attr_accessor :source
|
|
28
|
-
|
|
29
|
-
attr_accessor :status_code
|
|
30
|
-
|
|
31
|
-
attr_accessor :timestamp
|
|
32
|
-
|
|
33
|
-
class EnumAttributeValidator
|
|
34
|
-
attr_reader :datatype
|
|
35
|
-
attr_reader :allowable_values
|
|
36
|
-
|
|
37
|
-
def initialize(datatype, allowable_values)
|
|
38
|
-
@allowable_values = allowable_values.map do |value|
|
|
39
|
-
case datatype.to_s
|
|
40
|
-
when /Integer/i
|
|
41
|
-
value.to_i
|
|
42
|
-
when /Float/i
|
|
43
|
-
value.to_f
|
|
44
|
-
else
|
|
45
|
-
value
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
def valid?(value)
|
|
51
|
-
!value || allowable_values.include?(value)
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
|
-
def self.attribute_map
|
|
57
|
-
{
|
|
58
|
-
:'code' => :'code',
|
|
59
|
-
:'message' => :'message',
|
|
60
|
-
:'method' => :'method',
|
|
61
|
-
:'path' => :'path',
|
|
62
|
-
:'source' => :'source',
|
|
63
|
-
:'status_code' => :'statusCode',
|
|
64
|
-
:'timestamp' => :'timestamp'
|
|
65
|
-
}
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
# Returns attribute mapping this model knows about
|
|
69
|
-
def self.acceptable_attribute_map
|
|
70
|
-
attribute_map
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
# Returns all the JSON keys this model knows about
|
|
74
|
-
def self.acceptable_attributes
|
|
75
|
-
acceptable_attribute_map.values
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
# Attribute type mapping.
|
|
79
|
-
def self.openapi_types
|
|
80
|
-
{
|
|
81
|
-
:'code' => :'DaemonErrorCode',
|
|
82
|
-
:'message' => :'String',
|
|
83
|
-
:'method' => :'String',
|
|
84
|
-
:'path' => :'String',
|
|
85
|
-
:'source' => :'String',
|
|
86
|
-
:'status_code' => :'Integer',
|
|
87
|
-
:'timestamp' => :'String'
|
|
88
|
-
}
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
# List of attributes with nullable: true
|
|
92
|
-
def self.openapi_nullable
|
|
93
|
-
Set.new([
|
|
94
|
-
])
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
# Initializes the object
|
|
98
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
99
|
-
def initialize(attributes = {})
|
|
100
|
-
if (!attributes.is_a?(Hash))
|
|
101
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaToolboxApiClient::ErrorResponse` initialize method"
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
105
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
106
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
107
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
108
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaToolboxApiClient::ErrorResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
109
|
-
end
|
|
110
|
-
h[k.to_sym] = v
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
if attributes.key?(:'code')
|
|
114
|
-
self.code = attributes[:'code']
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
if attributes.key?(:'message')
|
|
118
|
-
self.message = attributes[:'message']
|
|
119
|
-
else
|
|
120
|
-
self.message = nil
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
if attributes.key?(:'method')
|
|
124
|
-
self.method = attributes[:'method']
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
if attributes.key?(:'path')
|
|
128
|
-
self.path = attributes[:'path']
|
|
129
|
-
else
|
|
130
|
-
self.path = nil
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
if attributes.key?(:'source')
|
|
134
|
-
self.source = attributes[:'source']
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
if attributes.key?(:'status_code')
|
|
138
|
-
self.status_code = attributes[:'status_code']
|
|
139
|
-
else
|
|
140
|
-
self.status_code = nil
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
if attributes.key?(:'timestamp')
|
|
144
|
-
self.timestamp = attributes[:'timestamp']
|
|
145
|
-
else
|
|
146
|
-
self.timestamp = nil
|
|
147
|
-
end
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
151
|
-
# @return Array for valid properties with the reasons
|
|
152
|
-
def list_invalid_properties
|
|
153
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
154
|
-
invalid_properties = Array.new
|
|
155
|
-
if @message.nil?
|
|
156
|
-
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
if @path.nil?
|
|
160
|
-
invalid_properties.push('invalid value for "path", path cannot be nil.')
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
if @status_code.nil?
|
|
164
|
-
invalid_properties.push('invalid value for "status_code", status_code cannot be nil.')
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
if @timestamp.nil?
|
|
168
|
-
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
invalid_properties
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
# Check to see if the all the properties in the model are valid
|
|
175
|
-
# @return true if the model is valid
|
|
176
|
-
def valid?
|
|
177
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
178
|
-
return false if @message.nil?
|
|
179
|
-
return false if @path.nil?
|
|
180
|
-
return false if @status_code.nil?
|
|
181
|
-
return false if @timestamp.nil?
|
|
182
|
-
true
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
# Custom attribute writer method with validation
|
|
186
|
-
# @param [Object] message Value to be assigned
|
|
187
|
-
def message=(message)
|
|
188
|
-
if message.nil?
|
|
189
|
-
fail ArgumentError, 'message cannot be nil'
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
@message = message
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
# Custom attribute writer method with validation
|
|
196
|
-
# @param [Object] path Value to be assigned
|
|
197
|
-
def path=(path)
|
|
198
|
-
if path.nil?
|
|
199
|
-
fail ArgumentError, 'path cannot be nil'
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
@path = path
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
# Custom attribute writer method with validation
|
|
206
|
-
# @param [Object] status_code Value to be assigned
|
|
207
|
-
def status_code=(status_code)
|
|
208
|
-
if status_code.nil?
|
|
209
|
-
fail ArgumentError, 'status_code cannot be nil'
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
@status_code = status_code
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
# Custom attribute writer method with validation
|
|
216
|
-
# @param [Object] timestamp Value to be assigned
|
|
217
|
-
def timestamp=(timestamp)
|
|
218
|
-
if timestamp.nil?
|
|
219
|
-
fail ArgumentError, 'timestamp cannot be nil'
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
@timestamp = timestamp
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
# Checks equality by comparing each attribute.
|
|
226
|
-
# @param [Object] Object to be compared
|
|
227
|
-
def ==(o)
|
|
228
|
-
return true if self.equal?(o)
|
|
229
|
-
self.class == o.class &&
|
|
230
|
-
code == o.code &&
|
|
231
|
-
message == o.message &&
|
|
232
|
-
method == o.method &&
|
|
233
|
-
path == o.path &&
|
|
234
|
-
source == o.source &&
|
|
235
|
-
status_code == o.status_code &&
|
|
236
|
-
timestamp == o.timestamp
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
# @see the `==` method
|
|
240
|
-
# @param [Object] Object to be compared
|
|
241
|
-
def eql?(o)
|
|
242
|
-
self == o
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
# Calculates hash code according to all attributes.
|
|
246
|
-
# @return [Integer] Hash code
|
|
247
|
-
def hash
|
|
248
|
-
[code, message, method, path, source, status_code, timestamp].hash
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
# Builds the object from hash
|
|
252
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
253
|
-
# @return [Object] Returns the model itself
|
|
254
|
-
def self.build_from_hash(attributes)
|
|
255
|
-
return nil unless attributes.is_a?(Hash)
|
|
256
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
257
|
-
transformed_hash = {}
|
|
258
|
-
openapi_types.each_pair do |key, type|
|
|
259
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
260
|
-
transformed_hash["#{key}"] = nil
|
|
261
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
262
|
-
# check to ensure the input is an array given that the attribute
|
|
263
|
-
# is documented as an array but the input is not
|
|
264
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
265
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
266
|
-
end
|
|
267
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
268
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
new(transformed_hash)
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
# Returns the object in the form of hash
|
|
275
|
-
# @return [Hash] Returns the object in the form of hash
|
|
276
|
-
def to_hash
|
|
277
|
-
hash = {}
|
|
278
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
279
|
-
value = self.send(attr)
|
|
280
|
-
if value.nil?
|
|
281
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
282
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
hash[param] = _to_hash(value)
|
|
286
|
-
end
|
|
287
|
-
hash
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
end
|