daytona_toolbox_api_client 0.182.0 → 0.184.0.alpha.1
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 +2 -0
- data/lib/daytona_toolbox_api_client/api/file_system_api.rb +10 -0
- 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 +56 -0
- data/lib/daytona_toolbox_api_client/models/error_response.rb +292 -0
- data/lib/daytona_toolbox_api_client/version.rb +1 -1
- data/lib/daytona_toolbox_api_client.rb +2 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e28e23e1775108c58651d81cb5cb34b149047c9d901ed8f7f79a557a0c0bb160
|
|
4
|
+
data.tar.gz: ea52c9f15acd60a45f8daf8d28b0cbe97068f42a247c8382464b8e57ae0b71d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61e730af451e9178eae91c79f5e9cde7b4352b91eb5a070c0e78a0feecf9955d43a194ff3a025da5904cc4ca480dd620a6917b2e884e26664dd7b70c1d47d97f
|
|
7
|
+
data.tar.gz: 2e523244c9eb763209f725350bc3e6a95ecbe37c25710bb88fe82052f2f55e8db276a3170d51686a7a24993b0f7223992d396b82f640aa96507cb4094fb8633f
|
data/.openapi-generator/FILES
CHANGED
|
@@ -38,8 +38,10 @@ 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
|
|
41
42
|
lib/daytona_toolbox_api_client/models/display_info.rb
|
|
42
43
|
lib/daytona_toolbox_api_client/models/display_info_response.rb
|
|
44
|
+
lib/daytona_toolbox_api_client/models/error_response.rb
|
|
43
45
|
lib/daytona_toolbox_api_client/models/execute_request.rb
|
|
44
46
|
lib/daytona_toolbox_api_client/models/execute_response.rb
|
|
45
47
|
lib/daytona_toolbox_api_client/models/file_info.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] || {}
|
|
@@ -519,6 +523,8 @@ module DaytonaToolboxApiClient
|
|
|
519
523
|
|
|
520
524
|
# header parameters
|
|
521
525
|
header_params = opts[:header_params] || {}
|
|
526
|
+
# HTTP header 'Accept' (if needed)
|
|
527
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
522
528
|
|
|
523
529
|
# form parameters
|
|
524
530
|
form_params = opts[:form_params] || {}
|
|
@@ -729,6 +735,8 @@ module DaytonaToolboxApiClient
|
|
|
729
735
|
|
|
730
736
|
# header parameters
|
|
731
737
|
header_params = opts[:header_params] || {}
|
|
738
|
+
# HTTP header 'Accept' (if needed)
|
|
739
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
732
740
|
|
|
733
741
|
# form parameters
|
|
734
742
|
form_params = opts[:form_params] || {}
|
|
@@ -860,6 +868,8 @@ module DaytonaToolboxApiClient
|
|
|
860
868
|
|
|
861
869
|
# header parameters
|
|
862
870
|
header_params = opts[:header_params] || {}
|
|
871
|
+
# HTTP header 'Accept' (if needed)
|
|
872
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
|
863
873
|
|
|
864
874
|
# form parameters
|
|
865
875
|
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?
|
|
@@ -116,6 +118,8 @@ module DaytonaToolboxApiClient
|
|
|
116
118
|
|
|
117
119
|
# header parameters
|
|
118
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']
|
|
119
123
|
# HTTP header 'Content-Type'
|
|
120
124
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
121
125
|
if !content_type.nil?
|
|
@@ -182,6 +186,8 @@ module DaytonaToolboxApiClient
|
|
|
182
186
|
|
|
183
187
|
# header parameters
|
|
184
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']
|
|
185
191
|
# HTTP header 'Content-Type'
|
|
186
192
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
187
193
|
if !content_type.nil?
|
|
@@ -316,6 +322,8 @@ module DaytonaToolboxApiClient
|
|
|
316
322
|
|
|
317
323
|
# header parameters
|
|
318
324
|
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']
|
|
319
327
|
# HTTP header 'Content-Type'
|
|
320
328
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
321
329
|
if !content_type.nil?
|
|
@@ -382,6 +390,8 @@ module DaytonaToolboxApiClient
|
|
|
382
390
|
|
|
383
391
|
# header parameters
|
|
384
392
|
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']
|
|
385
395
|
# HTTP header 'Content-Type'
|
|
386
396
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
387
397
|
if !content_type.nil?
|
|
@@ -640,6 +650,8 @@ module DaytonaToolboxApiClient
|
|
|
640
650
|
|
|
641
651
|
# header parameters
|
|
642
652
|
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']
|
|
643
655
|
# HTTP header 'Content-Type'
|
|
644
656
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
645
657
|
if !content_type.nil?
|
|
@@ -706,6 +718,8 @@ module DaytonaToolboxApiClient
|
|
|
706
718
|
|
|
707
719
|
# header parameters
|
|
708
720
|
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']
|
|
709
723
|
# HTTP header 'Content-Type'
|
|
710
724
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
711
725
|
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,56 @@
|
|
|
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
|
|
@@ -0,0 +1,292 @@
|
|
|
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
|
|
@@ -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'
|
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.184.0.alpha.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- daytonaio
|
|
@@ -100,8 +100,10 @@ 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
|
|
103
104
|
- lib/daytona_toolbox_api_client/models/display_info.rb
|
|
104
105
|
- lib/daytona_toolbox_api_client/models/display_info_response.rb
|
|
106
|
+
- lib/daytona_toolbox_api_client/models/error_response.rb
|
|
105
107
|
- lib/daytona_toolbox_api_client/models/execute_request.rb
|
|
106
108
|
- lib/daytona_toolbox_api_client/models/execute_response.rb
|
|
107
109
|
- lib/daytona_toolbox_api_client/models/file_info.rb
|