daytona_toolbox_api_client 0.200.1 → 0.201.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 +3 -0
- data/lib/daytona_toolbox_api_client/api/file_system_api.rb +23 -17
- data/lib/daytona_toolbox_api_client/api/git_api.rb +14 -0
- data/lib/daytona_toolbox_api_client/api/lsp_api.rb +8 -0
- data/lib/daytona_toolbox_api_client/api/process_api.rb +8 -0
- data/lib/daytona_toolbox_api_client/models/daemon_error_code.rb +66 -0
- data/lib/daytona_toolbox_api_client/models/error_response.rb +292 -0
- data/lib/daytona_toolbox_api_client/models/uploaded_file.rb +216 -0
- data/lib/daytona_toolbox_api_client/version.rb +1 -1
- data/lib/daytona_toolbox_api_client.rb +3 -0
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ba37d6d84983d3188aa3058da5b7656fd0437ef8206447aa32e0dad766bd223
|
|
4
|
+
data.tar.gz: b92290e1aa56142da17ccf30ee7489a614c9fd39dd9ffafa26fa603a300f8145
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7524423a2a017134f88e4a6c9752079b6e23ab7bd2a8d9bda2c992938a88e9274b8813951e8bfd7de0571e8603a69f4eff30392e50d33693bf794983a3068e59
|
|
7
|
+
data.tar.gz: 1a895b737d339915e3f2abcc8e8badfd178f43e731ae52cc8705d2f3c1c2d7575981a68ddab3dc8db4f5e9d8f3a8b0e9b10dd94fef34fd6bafd79a8bb91704cd
|
data/.openapi-generator/FILES
CHANGED
|
@@ -39,8 +39,10 @@ lib/daytona_toolbox_api_client/models/computer_use_status_response.rb
|
|
|
39
39
|
lib/daytona_toolbox_api_client/models/computer_use_stop_response.rb
|
|
40
40
|
lib/daytona_toolbox_api_client/models/create_context_request.rb
|
|
41
41
|
lib/daytona_toolbox_api_client/models/create_session_request.rb
|
|
42
|
+
lib/daytona_toolbox_api_client/models/daemon_error_code.rb
|
|
42
43
|
lib/daytona_toolbox_api_client/models/display_info.rb
|
|
43
44
|
lib/daytona_toolbox_api_client/models/display_info_response.rb
|
|
45
|
+
lib/daytona_toolbox_api_client/models/error_response.rb
|
|
44
46
|
lib/daytona_toolbox_api_client/models/execute_request.rb
|
|
45
47
|
lib/daytona_toolbox_api_client/models/execute_response.rb
|
|
46
48
|
lib/daytona_toolbox_api_client/models/file_info.rb
|
|
@@ -120,6 +122,7 @@ lib/daytona_toolbox_api_client/models/status.rb
|
|
|
120
122
|
lib/daytona_toolbox_api_client/models/stop_recording_request.rb
|
|
121
123
|
lib/daytona_toolbox_api_client/models/system_metrics.rb
|
|
122
124
|
lib/daytona_toolbox_api_client/models/update_env_request.rb
|
|
125
|
+
lib/daytona_toolbox_api_client/models/uploaded_file.rb
|
|
123
126
|
lib/daytona_toolbox_api_client/models/user_home_dir_response.rb
|
|
124
127
|
lib/daytona_toolbox_api_client/models/window_info.rb
|
|
125
128
|
lib/daytona_toolbox_api_client/models/windows_response.rb
|
|
@@ -58,6 +58,8 @@ 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']
|
|
61
63
|
|
|
62
64
|
# form parameters
|
|
63
65
|
form_params = opts[:form_params] || {}
|
|
@@ -123,6 +125,8 @@ module DaytonaToolboxApiClient
|
|
|
123
125
|
|
|
124
126
|
# header parameters
|
|
125
127
|
header_params = opts[:header_params] || {}
|
|
128
|
+
# HTTP header 'Accept' (if needed)
|
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
126
130
|
|
|
127
131
|
# form parameters
|
|
128
132
|
form_params = opts[:form_params] || {}
|
|
@@ -522,6 +526,8 @@ module DaytonaToolboxApiClient
|
|
|
522
526
|
|
|
523
527
|
# header parameters
|
|
524
528
|
header_params = opts[:header_params] || {}
|
|
529
|
+
# HTTP header 'Accept' (if needed)
|
|
530
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
525
531
|
|
|
526
532
|
# form parameters
|
|
527
533
|
form_params = opts[:form_params] || {}
|
|
@@ -732,6 +738,8 @@ module DaytonaToolboxApiClient
|
|
|
732
738
|
|
|
733
739
|
# header parameters
|
|
734
740
|
header_params = opts[:header_params] || {}
|
|
741
|
+
# HTTP header 'Accept' (if needed)
|
|
742
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
735
743
|
|
|
736
744
|
# form parameters
|
|
737
745
|
form_params = opts[:form_params] || {}
|
|
@@ -763,23 +771,23 @@ module DaytonaToolboxApiClient
|
|
|
763
771
|
end
|
|
764
772
|
|
|
765
773
|
# Upload a file
|
|
766
|
-
# Upload a file to the specified path
|
|
774
|
+
# Upload a file to the specified path. Accepts either multipart/form-data (field \"file\") or a raw request body (e.g. application/octet-stream). Parent directories are created if missing; an existing file is overwritten.
|
|
767
775
|
# @param path [String] Destination path for the uploaded file
|
|
768
|
-
# @param file [File] File to upload
|
|
769
776
|
# @param [Hash] opts the optional parameters
|
|
770
|
-
# @
|
|
771
|
-
|
|
772
|
-
|
|
777
|
+
# @option opts [File] :file File to upload (multipart/form-data)
|
|
778
|
+
# @return [UploadedFile]
|
|
779
|
+
def upload_file(path, opts = {})
|
|
780
|
+
data, _status_code, _headers = upload_file_with_http_info(path, opts)
|
|
773
781
|
data
|
|
774
782
|
end
|
|
775
783
|
|
|
776
784
|
# Upload a file
|
|
777
|
-
# Upload a file to the specified path
|
|
785
|
+
# Upload a file to the specified path. Accepts either multipart/form-data (field \"file\") or a raw request body (e.g. application/octet-stream). Parent directories are created if missing; an existing file is overwritten.
|
|
778
786
|
# @param path [String] Destination path for the uploaded file
|
|
779
|
-
# @param file [File] File to upload
|
|
780
787
|
# @param [Hash] opts the optional parameters
|
|
781
|
-
# @
|
|
782
|
-
|
|
788
|
+
# @option opts [File] :file File to upload (multipart/form-data)
|
|
789
|
+
# @return [Array<(UploadedFile, Integer, Hash)>] UploadedFile data, response status code and response headers
|
|
790
|
+
def upload_file_with_http_info(path, opts = {})
|
|
783
791
|
if @api_client.config.debugging
|
|
784
792
|
@api_client.config.logger.debug 'Calling API: FileSystemApi.upload_file ...'
|
|
785
793
|
end
|
|
@@ -787,12 +795,8 @@ module DaytonaToolboxApiClient
|
|
|
787
795
|
if @api_client.config.client_side_validation && path.nil?
|
|
788
796
|
fail ArgumentError, "Missing the required parameter 'path' when calling FileSystemApi.upload_file"
|
|
789
797
|
end
|
|
790
|
-
# verify the required parameter 'file' is set
|
|
791
|
-
if @api_client.config.client_side_validation && file.nil?
|
|
792
|
-
fail ArgumentError, "Missing the required parameter 'file' when calling FileSystemApi.upload_file"
|
|
793
|
-
end
|
|
794
798
|
# resource path
|
|
795
|
-
local_var_path = '/files/upload'
|
|
799
|
+
local_var_path = '/files/upload-v2'
|
|
796
800
|
|
|
797
801
|
# query parameters
|
|
798
802
|
query_params = opts[:query_params] || {}
|
|
@@ -801,7 +805,7 @@ module DaytonaToolboxApiClient
|
|
|
801
805
|
# header parameters
|
|
802
806
|
header_params = opts[:header_params] || {}
|
|
803
807
|
# HTTP header 'Accept' (if needed)
|
|
804
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
808
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
805
809
|
# HTTP header 'Content-Type'
|
|
806
810
|
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
807
811
|
if !content_type.nil?
|
|
@@ -810,13 +814,13 @@ module DaytonaToolboxApiClient
|
|
|
810
814
|
|
|
811
815
|
# form parameters
|
|
812
816
|
form_params = opts[:form_params] || {}
|
|
813
|
-
form_params['file'] = file
|
|
817
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
814
818
|
|
|
815
819
|
# http body (model)
|
|
816
820
|
post_body = opts[:debug_body]
|
|
817
821
|
|
|
818
822
|
# return_type
|
|
819
|
-
return_type = opts[:debug_return_type] || '
|
|
823
|
+
return_type = opts[:debug_return_type] || 'UploadedFile'
|
|
820
824
|
|
|
821
825
|
# auth_names
|
|
822
826
|
auth_names = opts[:debug_auth_names] || []
|
|
@@ -863,6 +867,8 @@ module DaytonaToolboxApiClient
|
|
|
863
867
|
|
|
864
868
|
# header parameters
|
|
865
869
|
header_params = opts[:header_params] || {}
|
|
870
|
+
# HTTP header 'Accept' (if needed)
|
|
871
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
866
872
|
|
|
867
873
|
# form parameters
|
|
868
874
|
form_params = opts[:form_params] || {}
|
|
@@ -50,6 +50,8 @@ 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']
|
|
53
55
|
# HTTP header 'Content-Type'
|
|
54
56
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
55
57
|
if !content_type.nil?
|
|
@@ -248,6 +250,8 @@ module DaytonaToolboxApiClient
|
|
|
248
250
|
|
|
249
251
|
# header parameters
|
|
250
252
|
header_params = opts[:header_params] || {}
|
|
253
|
+
# HTTP header 'Accept' (if needed)
|
|
254
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
251
255
|
# HTTP header 'Content-Type'
|
|
252
256
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
253
257
|
if !content_type.nil?
|
|
@@ -314,6 +318,8 @@ module DaytonaToolboxApiClient
|
|
|
314
318
|
|
|
315
319
|
# header parameters
|
|
316
320
|
header_params = opts[:header_params] || {}
|
|
321
|
+
# HTTP header 'Accept' (if needed)
|
|
322
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
317
323
|
# HTTP header 'Content-Type'
|
|
318
324
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
319
325
|
if !content_type.nil?
|
|
@@ -514,6 +520,8 @@ module DaytonaToolboxApiClient
|
|
|
514
520
|
|
|
515
521
|
# header parameters
|
|
516
522
|
header_params = opts[:header_params] || {}
|
|
523
|
+
# HTTP header 'Accept' (if needed)
|
|
524
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
517
525
|
# HTTP header 'Content-Type'
|
|
518
526
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
519
527
|
if !content_type.nil?
|
|
@@ -580,6 +588,8 @@ module DaytonaToolboxApiClient
|
|
|
580
588
|
|
|
581
589
|
# header parameters
|
|
582
590
|
header_params = opts[:header_params] || {}
|
|
591
|
+
# HTTP header 'Accept' (if needed)
|
|
592
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
583
593
|
# HTTP header 'Content-Type'
|
|
584
594
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
585
595
|
if !content_type.nil?
|
|
@@ -1038,6 +1048,8 @@ module DaytonaToolboxApiClient
|
|
|
1038
1048
|
|
|
1039
1049
|
# header parameters
|
|
1040
1050
|
header_params = opts[:header_params] || {}
|
|
1051
|
+
# HTTP header 'Accept' (if needed)
|
|
1052
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1041
1053
|
# HTTP header 'Content-Type'
|
|
1042
1054
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1043
1055
|
if !content_type.nil?
|
|
@@ -1236,6 +1248,8 @@ module DaytonaToolboxApiClient
|
|
|
1236
1248
|
|
|
1237
1249
|
# header parameters
|
|
1238
1250
|
header_params = opts[:header_params] || {}
|
|
1251
|
+
# HTTP header 'Accept' (if needed)
|
|
1252
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1239
1253
|
# HTTP header 'Content-Type'
|
|
1240
1254
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1241
1255
|
if !content_type.nil?
|
|
@@ -118,6 +118,8 @@ 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']
|
|
121
123
|
# HTTP header 'Content-Type'
|
|
122
124
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
123
125
|
if !content_type.nil?
|
|
@@ -184,6 +186,8 @@ module DaytonaToolboxApiClient
|
|
|
184
186
|
|
|
185
187
|
# header parameters
|
|
186
188
|
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']
|
|
187
191
|
# HTTP header 'Content-Type'
|
|
188
192
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
189
193
|
if !content_type.nil?
|
|
@@ -328,6 +332,8 @@ module DaytonaToolboxApiClient
|
|
|
328
332
|
|
|
329
333
|
# header parameters
|
|
330
334
|
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']
|
|
331
337
|
# HTTP header 'Content-Type'
|
|
332
338
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
333
339
|
if !content_type.nil?
|
|
@@ -394,6 +400,8 @@ module DaytonaToolboxApiClient
|
|
|
394
400
|
|
|
395
401
|
# header parameters
|
|
396
402
|
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']
|
|
397
405
|
# HTTP header 'Content-Type'
|
|
398
406
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
399
407
|
if !content_type.nil?
|
|
@@ -118,6 +118,8 @@ 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']
|
|
121
123
|
|
|
122
124
|
# form parameters
|
|
123
125
|
form_params = opts[:form_params] || {}
|
|
@@ -247,6 +249,8 @@ module DaytonaToolboxApiClient
|
|
|
247
249
|
|
|
248
250
|
# header parameters
|
|
249
251
|
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']
|
|
250
254
|
# HTTP header 'Content-Type'
|
|
251
255
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
252
256
|
if !content_type.nil?
|
|
@@ -376,6 +380,8 @@ module DaytonaToolboxApiClient
|
|
|
376
380
|
|
|
377
381
|
# header parameters
|
|
378
382
|
header_params = opts[:header_params] || {}
|
|
383
|
+
# HTTP header 'Accept' (if needed)
|
|
384
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
379
385
|
|
|
380
386
|
# form parameters
|
|
381
387
|
form_params = opts[:form_params] || {}
|
|
@@ -1089,6 +1095,8 @@ module DaytonaToolboxApiClient
|
|
|
1089
1095
|
|
|
1090
1096
|
# header parameters
|
|
1091
1097
|
header_params = opts[:header_params] || {}
|
|
1098
|
+
# HTTP header 'Accept' (if needed)
|
|
1099
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
1092
1100
|
# HTTP header 'Content-Type'
|
|
1093
1101
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1094
1102
|
if !content_type.nil?
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Daytona Toolbox API
|
|
3
|
+
|
|
4
|
+
#Daytona Toolbox API. The base URL comes from the sandbox's `toolboxProxyUrl` field (returned in sandbox DTO by the main Daytona API) plus the sandbox ID: `{toolboxProxyUrl}/{sandboxId}/{endpoint}`. Default for Daytona Cloud: `https://proxy.app.daytona.io/toolbox/{sandboxId}`.
|
|
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
|
+
CodeBadRequest = "BAD_REQUEST".freeze
|
|
36
|
+
CodeInvalidRequestBody = "INVALID_REQUEST_BODY".freeze
|
|
37
|
+
CodeUnauthorized = "UNAUTHORIZED".freeze
|
|
38
|
+
CodeForbidden = "FORBIDDEN".freeze
|
|
39
|
+
CodeNotFound = "NOT_FOUND".freeze
|
|
40
|
+
CodeConflict = "CONFLICT".freeze
|
|
41
|
+
CodeRequestTimeout = "REQUEST_TIMEOUT".freeze
|
|
42
|
+
CodeGone = "GONE".freeze
|
|
43
|
+
CodeUnprocessableEntity = "UNPROCESSABLE_ENTITY".freeze
|
|
44
|
+
CodeInternalServerError = "INTERNAL_SERVER_ERROR".freeze
|
|
45
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
46
|
+
|
|
47
|
+
def self.all_vars
|
|
48
|
+
@all_vars ||= [CodeGitAuthFailed, CodeGitRepoNotFound, CodeGitBranchNotFound, CodeGitBranchExists, CodeGitPushRejected, CodeGitDirtyWorktree, CodeGitMergeConflict, CodeFileNotFound, CodeFileAccessDenied, CodeLspServerNotInitialized, CodeProcessExecutionTimeout, CodeProcessNotFound, CodeSessionEnded, CodeCommandAlreadyCompleted, CodeA11yUnavailable, CodeRecordingStillActive, CodeRecordingFfmpegNotFound, CodeBadRequest, CodeInvalidRequestBody, CodeUnauthorized, CodeForbidden, CodeNotFound, CodeConflict, CodeRequestTimeout, CodeGone, CodeUnprocessableEntity, CodeInternalServerError, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Builds the enum from string
|
|
52
|
+
# @param [String] The enum value in the form of the string
|
|
53
|
+
# @return [String] The enum value
|
|
54
|
+
def self.build_from_hash(value)
|
|
55
|
+
new.build_from_hash(value)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Builds the enum from string
|
|
59
|
+
# @param [String] The enum value in the form of the string
|
|
60
|
+
# @return [String] The enum value
|
|
61
|
+
def build_from_hash(value)
|
|
62
|
+
return value if DaemonErrorCode.all_vars.include?(value)
|
|
63
|
+
UNKNOWN_DEFAULT_OPEN_API
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Daytona Toolbox API
|
|
3
|
+
|
|
4
|
+
#Daytona Toolbox API. The base URL comes from the sandbox's `toolboxProxyUrl` field (returned in sandbox DTO by the main Daytona API) plus the sandbox ID: `{toolboxProxyUrl}/{sandboxId}/{endpoint}`. Default for Daytona Cloud: `https://proxy.app.daytona.io/toolbox/{sandboxId}`.
|
|
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
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Daytona Toolbox API
|
|
3
|
+
|
|
4
|
+
#Daytona Toolbox API. The base URL comes from the sandbox's `toolboxProxyUrl` field (returned in sandbox DTO by the main Daytona API) plus the sandbox ID: `{toolboxProxyUrl}/{sandboxId}/{endpoint}`. Default for Daytona Cloud: `https://proxy.app.daytona.io/toolbox/{sandboxId}`.
|
|
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 UploadedFile < ApiModelBase
|
|
18
|
+
attr_accessor :name
|
|
19
|
+
|
|
20
|
+
attr_accessor :path
|
|
21
|
+
|
|
22
|
+
attr_accessor :type
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'name' => :'name',
|
|
28
|
+
:'path' => :'path',
|
|
29
|
+
:'type' => :'type'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
acceptable_attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'name' => :'String',
|
|
47
|
+
:'path' => :'String',
|
|
48
|
+
:'type' => :'String'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# List of attributes with nullable: true
|
|
53
|
+
def self.openapi_nullable
|
|
54
|
+
Set.new([
|
|
55
|
+
])
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
if (!attributes.is_a?(Hash))
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaToolboxApiClient::UploadedFile` initialize method"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaToolboxApiClient::UploadedFile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'name')
|
|
75
|
+
self.name = attributes[:'name']
|
|
76
|
+
else
|
|
77
|
+
self.name = nil
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'path')
|
|
81
|
+
self.path = attributes[:'path']
|
|
82
|
+
else
|
|
83
|
+
self.path = nil
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'type')
|
|
87
|
+
self.type = attributes[:'type']
|
|
88
|
+
else
|
|
89
|
+
self.type = nil
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
94
|
+
# @return Array for valid properties with the reasons
|
|
95
|
+
def list_invalid_properties
|
|
96
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
97
|
+
invalid_properties = Array.new
|
|
98
|
+
if @name.nil?
|
|
99
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if @path.nil?
|
|
103
|
+
invalid_properties.push('invalid value for "path", path cannot be nil.')
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if @type.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
invalid_properties
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Check to see if the all the properties in the model are valid
|
|
114
|
+
# @return true if the model is valid
|
|
115
|
+
def valid?
|
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
117
|
+
return false if @name.nil?
|
|
118
|
+
return false if @path.nil?
|
|
119
|
+
return false if @type.nil?
|
|
120
|
+
true
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] name Value to be assigned
|
|
125
|
+
def name=(name)
|
|
126
|
+
if name.nil?
|
|
127
|
+
fail ArgumentError, 'name cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@name = name
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Custom attribute writer method with validation
|
|
134
|
+
# @param [Object] path Value to be assigned
|
|
135
|
+
def path=(path)
|
|
136
|
+
if path.nil?
|
|
137
|
+
fail ArgumentError, 'path cannot be nil'
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
@path = path
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Custom attribute writer method with validation
|
|
144
|
+
# @param [Object] type Value to be assigned
|
|
145
|
+
def type=(type)
|
|
146
|
+
if type.nil?
|
|
147
|
+
fail ArgumentError, 'type cannot be nil'
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
@type = type
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Checks equality by comparing each attribute.
|
|
154
|
+
# @param [Object] Object to be compared
|
|
155
|
+
def ==(o)
|
|
156
|
+
return true if self.equal?(o)
|
|
157
|
+
self.class == o.class &&
|
|
158
|
+
name == o.name &&
|
|
159
|
+
path == o.path &&
|
|
160
|
+
type == o.type
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# @see the `==` method
|
|
164
|
+
# @param [Object] Object to be compared
|
|
165
|
+
def eql?(o)
|
|
166
|
+
self == o
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Calculates hash code according to all attributes.
|
|
170
|
+
# @return [Integer] Hash code
|
|
171
|
+
def hash
|
|
172
|
+
[name, path, type].hash
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Builds the object from hash
|
|
176
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
177
|
+
# @return [Object] Returns the model itself
|
|
178
|
+
def self.build_from_hash(attributes)
|
|
179
|
+
return nil unless attributes.is_a?(Hash)
|
|
180
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
181
|
+
transformed_hash = {}
|
|
182
|
+
openapi_types.each_pair do |key, type|
|
|
183
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
184
|
+
transformed_hash["#{key}"] = nil
|
|
185
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
186
|
+
# check to ensure the input is an array given that the attribute
|
|
187
|
+
# is documented as an array but the input is not
|
|
188
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
189
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
190
|
+
end
|
|
191
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
192
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
new(transformed_hash)
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Returns the object in the form of hash
|
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
|
200
|
+
def to_hash
|
|
201
|
+
hash = {}
|
|
202
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
203
|
+
value = self.send(attr)
|
|
204
|
+
if value.nil?
|
|
205
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
206
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
hash[param] = _to_hash(value)
|
|
210
|
+
end
|
|
211
|
+
hash
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
end
|
|
@@ -39,8 +39,10 @@ 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'
|
|
42
43
|
require 'daytona_toolbox_api_client/models/display_info'
|
|
43
44
|
require 'daytona_toolbox_api_client/models/display_info_response'
|
|
45
|
+
require 'daytona_toolbox_api_client/models/error_response'
|
|
44
46
|
require 'daytona_toolbox_api_client/models/execute_request'
|
|
45
47
|
require 'daytona_toolbox_api_client/models/execute_response'
|
|
46
48
|
require 'daytona_toolbox_api_client/models/file_info'
|
|
@@ -120,6 +122,7 @@ require 'daytona_toolbox_api_client/models/status'
|
|
|
120
122
|
require 'daytona_toolbox_api_client/models/stop_recording_request'
|
|
121
123
|
require 'daytona_toolbox_api_client/models/system_metrics'
|
|
122
124
|
require 'daytona_toolbox_api_client/models/update_env_request'
|
|
125
|
+
require 'daytona_toolbox_api_client/models/uploaded_file'
|
|
123
126
|
require 'daytona_toolbox_api_client/models/user_home_dir_response'
|
|
124
127
|
require 'daytona_toolbox_api_client/models/window_info'
|
|
125
128
|
require 'daytona_toolbox_api_client/models/windows_response'
|
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.
|
|
4
|
+
version: 0.201.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- daytona
|
|
@@ -101,8 +101,10 @@ files:
|
|
|
101
101
|
- lib/daytona_toolbox_api_client/models/computer_use_stop_response.rb
|
|
102
102
|
- lib/daytona_toolbox_api_client/models/create_context_request.rb
|
|
103
103
|
- lib/daytona_toolbox_api_client/models/create_session_request.rb
|
|
104
|
+
- lib/daytona_toolbox_api_client/models/daemon_error_code.rb
|
|
104
105
|
- lib/daytona_toolbox_api_client/models/display_info.rb
|
|
105
106
|
- lib/daytona_toolbox_api_client/models/display_info_response.rb
|
|
107
|
+
- lib/daytona_toolbox_api_client/models/error_response.rb
|
|
106
108
|
- lib/daytona_toolbox_api_client/models/execute_request.rb
|
|
107
109
|
- lib/daytona_toolbox_api_client/models/execute_response.rb
|
|
108
110
|
- lib/daytona_toolbox_api_client/models/file_info.rb
|
|
@@ -182,6 +184,7 @@ files:
|
|
|
182
184
|
- lib/daytona_toolbox_api_client/models/stop_recording_request.rb
|
|
183
185
|
- lib/daytona_toolbox_api_client/models/system_metrics.rb
|
|
184
186
|
- lib/daytona_toolbox_api_client/models/update_env_request.rb
|
|
187
|
+
- lib/daytona_toolbox_api_client/models/uploaded_file.rb
|
|
185
188
|
- lib/daytona_toolbox_api_client/models/user_home_dir_response.rb
|
|
186
189
|
- lib/daytona_toolbox_api_client/models/window_info.rb
|
|
187
190
|
- lib/daytona_toolbox_api_client/models/windows_response.rb
|