daytona_toolbox_api_client 0.168.0 → 0.170.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 +1 -0
- data/.openapi-generator/VERSION +1 -1
- data/lib/daytona_toolbox_api_client/api/computer_use_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/file_system_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/git_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/info_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/interpreter_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/lsp_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/port_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/process_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/server_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api_client.rb +7 -3
- data/lib/daytona_toolbox_api_client/api_error.rb +1 -1
- data/lib/daytona_toolbox_api_client/api_model_base.rb +88 -0
- data/lib/daytona_toolbox_api_client/configuration.rb +1 -1
- data/lib/daytona_toolbox_api_client/models/chart.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/chart_element.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/code_run_artifacts.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/code_run_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/code_run_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/command.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/completion_context.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/completion_item.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/completion_list.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/computer_use_start_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/computer_use_status_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/computer_use_stop_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/create_context_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/create_session_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/display_info.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/display_info_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/execute_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/execute_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/file_info.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/file_status.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/files_download_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_add_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_branch_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_checkout_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_clone_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_commit_info.rb +18 -91
- data/lib/daytona_toolbox_api_client/models/git_commit_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_commit_response.rb +18 -91
- data/lib/daytona_toolbox_api_client/models/git_delete_branch_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_repo_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_status.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/initialize_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/interpreter_context.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/is_port_in_use_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/keyboard_hotkey_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/keyboard_press_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/keyboard_type_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/list_branch_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/list_contexts_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/list_recordings_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_completion_params.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_document_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_location.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_position.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_range.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_server_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_symbol.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/match.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_click_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_click_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_drag_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_drag_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_move_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_position_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_scroll_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/port_list.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/position.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/process_errors_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/process_logs_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/process_restart_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/process_status.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/process_status_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/pty_create_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/pty_create_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/pty_list_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/pty_resize_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/pty_session_info.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/recording.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/replace_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/replace_result.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/screenshot_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/scroll_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/search_files_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/session.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/session_command_logs_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/session_execute_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/session_execute_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/session_send_input_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/start_recording_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/status.rb +4 -3
- data/lib/daytona_toolbox_api_client/models/stop_recording_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/user_home_dir_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/window_info.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/windows_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/work_dir_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/version.rb +2 -2
- data/lib/daytona_toolbox_api_client.rb +2 -1
- data/project.json +6 -2
- metadata +2 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v0.0.0-dev
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,13 +14,13 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaToolboxApiClient
|
|
17
|
-
class GitCommitResponse
|
|
18
|
-
attr_accessor :
|
|
17
|
+
class GitCommitResponse < ApiModelBase
|
|
18
|
+
attr_accessor :_hash
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
21
|
def self.attribute_map
|
|
22
22
|
{
|
|
23
|
-
:'
|
|
23
|
+
:'_hash' => :'hash'
|
|
24
24
|
}
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -37,7 +37,7 @@ module DaytonaToolboxApiClient
|
|
|
37
37
|
# Attribute type mapping.
|
|
38
38
|
def self.openapi_types
|
|
39
39
|
{
|
|
40
|
-
:'
|
|
40
|
+
:'_hash' => :'String'
|
|
41
41
|
}
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -63,10 +63,10 @@ module DaytonaToolboxApiClient
|
|
|
63
63
|
h[k.to_sym] = v
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
if attributes.key?(:'
|
|
67
|
-
self.
|
|
66
|
+
if attributes.key?(:'_hash')
|
|
67
|
+
self._hash = attributes[:'_hash']
|
|
68
68
|
else
|
|
69
|
-
self.
|
|
69
|
+
self._hash = nil
|
|
70
70
|
end
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -75,8 +75,8 @@ module DaytonaToolboxApiClient
|
|
|
75
75
|
def list_invalid_properties
|
|
76
76
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
77
|
invalid_properties = Array.new
|
|
78
|
-
if @
|
|
79
|
-
invalid_properties.push('invalid value for "
|
|
78
|
+
if @_hash.nil?
|
|
79
|
+
invalid_properties.push('invalid value for "_hash", _hash cannot be nil.')
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
invalid_properties
|
|
@@ -86,18 +86,18 @@ module DaytonaToolboxApiClient
|
|
|
86
86
|
# @return true if the model is valid
|
|
87
87
|
def valid?
|
|
88
88
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
89
|
-
return false if @
|
|
89
|
+
return false if @_hash.nil?
|
|
90
90
|
true
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
# Custom attribute writer method with validation
|
|
94
|
-
# @param [Object]
|
|
95
|
-
def
|
|
96
|
-
if
|
|
97
|
-
fail ArgumentError, '
|
|
94
|
+
# @param [Object] _hash Value to be assigned
|
|
95
|
+
def _hash=(_hash)
|
|
96
|
+
if _hash.nil?
|
|
97
|
+
fail ArgumentError, '_hash cannot be nil'
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
-
@
|
|
100
|
+
@_hash = _hash
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
# Checks equality by comparing each attribute.
|
|
@@ -105,7 +105,7 @@ module DaytonaToolboxApiClient
|
|
|
105
105
|
def ==(o)
|
|
106
106
|
return true if self.equal?(o)
|
|
107
107
|
self.class == o.class &&
|
|
108
|
-
|
|
108
|
+
_hash == o._hash
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
# @see the `==` method
|
|
@@ -117,7 +117,7 @@ module DaytonaToolboxApiClient
|
|
|
117
117
|
# Calculates hash code according to all attributes.
|
|
118
118
|
# @return [Integer] Hash code
|
|
119
119
|
def hash
|
|
120
|
-
[
|
|
120
|
+
[_hash].hash
|
|
121
121
|
end
|
|
122
122
|
|
|
123
123
|
# Builds the object from hash
|
|
@@ -143,61 +143,6 @@ module DaytonaToolboxApiClient
|
|
|
143
143
|
new(transformed_hash)
|
|
144
144
|
end
|
|
145
145
|
|
|
146
|
-
# Deserializes the data based on type
|
|
147
|
-
# @param string type Data type
|
|
148
|
-
# @param string value Value to be deserialized
|
|
149
|
-
# @return [Object] Deserialized data
|
|
150
|
-
def self._deserialize(type, value)
|
|
151
|
-
case type.to_sym
|
|
152
|
-
when :Time
|
|
153
|
-
Time.parse(value)
|
|
154
|
-
when :Date
|
|
155
|
-
Date.parse(value)
|
|
156
|
-
when :String
|
|
157
|
-
value.to_s
|
|
158
|
-
when :Integer
|
|
159
|
-
value.to_i
|
|
160
|
-
when :Float
|
|
161
|
-
value.to_f
|
|
162
|
-
when :Boolean
|
|
163
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
164
|
-
true
|
|
165
|
-
else
|
|
166
|
-
false
|
|
167
|
-
end
|
|
168
|
-
when :Object
|
|
169
|
-
# generic object (usually a Hash), return directly
|
|
170
|
-
value
|
|
171
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
172
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
173
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
174
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
175
|
-
k_type = Regexp.last_match[:k_type]
|
|
176
|
-
v_type = Regexp.last_match[:v_type]
|
|
177
|
-
{}.tap do |hash|
|
|
178
|
-
value.each do |k, v|
|
|
179
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
180
|
-
end
|
|
181
|
-
end
|
|
182
|
-
else # model
|
|
183
|
-
# models (e.g. Pet) or oneOf
|
|
184
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
185
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
186
|
-
end
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
# Returns the string representation of the object
|
|
190
|
-
# @return [String] String presentation of the object
|
|
191
|
-
def to_s
|
|
192
|
-
to_hash.to_s
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
196
|
-
# @return [Hash] Returns the object in the form of hash
|
|
197
|
-
def to_body
|
|
198
|
-
to_hash
|
|
199
|
-
end
|
|
200
|
-
|
|
201
146
|
# Returns the object in the form of hash
|
|
202
147
|
# @return [Hash] Returns the object in the form of hash
|
|
203
148
|
def to_hash
|
|
@@ -214,24 +159,6 @@ module DaytonaToolboxApiClient
|
|
|
214
159
|
hash
|
|
215
160
|
end
|
|
216
161
|
|
|
217
|
-
# Outputs non-array value in the form of hash
|
|
218
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
219
|
-
# @param [Object] value Any valid value
|
|
220
|
-
# @return [Hash] Returns the value in the form of hash
|
|
221
|
-
def _to_hash(value)
|
|
222
|
-
if value.is_a?(Array)
|
|
223
|
-
value.compact.map { |v| _to_hash(v) }
|
|
224
|
-
elsif value.is_a?(Hash)
|
|
225
|
-
{}.tap do |hash|
|
|
226
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
227
|
-
end
|
|
228
|
-
elsif value.respond_to? :to_hash
|
|
229
|
-
value.to_hash
|
|
230
|
-
else
|
|
231
|
-
value
|
|
232
|
-
end
|
|
233
|
-
end
|
|
234
|
-
|
|
235
162
|
end
|
|
236
163
|
|
|
237
164
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v0.0.0-dev
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaToolboxApiClient
|
|
17
|
-
class GitDeleteBranchRequest
|
|
17
|
+
class GitDeleteBranchRequest < ApiModelBase
|
|
18
18
|
attr_accessor :name
|
|
19
19
|
|
|
20
20
|
attr_accessor :path
|
|
@@ -169,61 +169,6 @@ module DaytonaToolboxApiClient
|
|
|
169
169
|
new(transformed_hash)
|
|
170
170
|
end
|
|
171
171
|
|
|
172
|
-
# Deserializes the data based on type
|
|
173
|
-
# @param string type Data type
|
|
174
|
-
# @param string value Value to be deserialized
|
|
175
|
-
# @return [Object] Deserialized data
|
|
176
|
-
def self._deserialize(type, value)
|
|
177
|
-
case type.to_sym
|
|
178
|
-
when :Time
|
|
179
|
-
Time.parse(value)
|
|
180
|
-
when :Date
|
|
181
|
-
Date.parse(value)
|
|
182
|
-
when :String
|
|
183
|
-
value.to_s
|
|
184
|
-
when :Integer
|
|
185
|
-
value.to_i
|
|
186
|
-
when :Float
|
|
187
|
-
value.to_f
|
|
188
|
-
when :Boolean
|
|
189
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
190
|
-
true
|
|
191
|
-
else
|
|
192
|
-
false
|
|
193
|
-
end
|
|
194
|
-
when :Object
|
|
195
|
-
# generic object (usually a Hash), return directly
|
|
196
|
-
value
|
|
197
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
198
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
199
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
200
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
201
|
-
k_type = Regexp.last_match[:k_type]
|
|
202
|
-
v_type = Regexp.last_match[:v_type]
|
|
203
|
-
{}.tap do |hash|
|
|
204
|
-
value.each do |k, v|
|
|
205
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
206
|
-
end
|
|
207
|
-
end
|
|
208
|
-
else # model
|
|
209
|
-
# models (e.g. Pet) or oneOf
|
|
210
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
211
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
212
|
-
end
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
# Returns the string representation of the object
|
|
216
|
-
# @return [String] String presentation of the object
|
|
217
|
-
def to_s
|
|
218
|
-
to_hash.to_s
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
222
|
-
# @return [Hash] Returns the object in the form of hash
|
|
223
|
-
def to_body
|
|
224
|
-
to_hash
|
|
225
|
-
end
|
|
226
|
-
|
|
227
172
|
# Returns the object in the form of hash
|
|
228
173
|
# @return [Hash] Returns the object in the form of hash
|
|
229
174
|
def to_hash
|
|
@@ -240,24 +185,6 @@ module DaytonaToolboxApiClient
|
|
|
240
185
|
hash
|
|
241
186
|
end
|
|
242
187
|
|
|
243
|
-
# Outputs non-array value in the form of hash
|
|
244
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
245
|
-
# @param [Object] value Any valid value
|
|
246
|
-
# @return [Hash] Returns the value in the form of hash
|
|
247
|
-
def _to_hash(value)
|
|
248
|
-
if value.is_a?(Array)
|
|
249
|
-
value.compact.map { |v| _to_hash(v) }
|
|
250
|
-
elsif value.is_a?(Hash)
|
|
251
|
-
{}.tap do |hash|
|
|
252
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
253
|
-
end
|
|
254
|
-
elsif value.respond_to? :to_hash
|
|
255
|
-
value.to_hash
|
|
256
|
-
else
|
|
257
|
-
value
|
|
258
|
-
end
|
|
259
|
-
end
|
|
260
|
-
|
|
261
188
|
end
|
|
262
189
|
|
|
263
190
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v0.0.0-dev
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaToolboxApiClient
|
|
17
|
-
class GitRepoRequest
|
|
17
|
+
class GitRepoRequest < ApiModelBase
|
|
18
18
|
attr_accessor :password
|
|
19
19
|
|
|
20
20
|
attr_accessor :path
|
|
@@ -161,61 +161,6 @@ module DaytonaToolboxApiClient
|
|
|
161
161
|
new(transformed_hash)
|
|
162
162
|
end
|
|
163
163
|
|
|
164
|
-
# Deserializes the data based on type
|
|
165
|
-
# @param string type Data type
|
|
166
|
-
# @param string value Value to be deserialized
|
|
167
|
-
# @return [Object] Deserialized data
|
|
168
|
-
def self._deserialize(type, value)
|
|
169
|
-
case type.to_sym
|
|
170
|
-
when :Time
|
|
171
|
-
Time.parse(value)
|
|
172
|
-
when :Date
|
|
173
|
-
Date.parse(value)
|
|
174
|
-
when :String
|
|
175
|
-
value.to_s
|
|
176
|
-
when :Integer
|
|
177
|
-
value.to_i
|
|
178
|
-
when :Float
|
|
179
|
-
value.to_f
|
|
180
|
-
when :Boolean
|
|
181
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
182
|
-
true
|
|
183
|
-
else
|
|
184
|
-
false
|
|
185
|
-
end
|
|
186
|
-
when :Object
|
|
187
|
-
# generic object (usually a Hash), return directly
|
|
188
|
-
value
|
|
189
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
190
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
191
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
192
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
193
|
-
k_type = Regexp.last_match[:k_type]
|
|
194
|
-
v_type = Regexp.last_match[:v_type]
|
|
195
|
-
{}.tap do |hash|
|
|
196
|
-
value.each do |k, v|
|
|
197
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
198
|
-
end
|
|
199
|
-
end
|
|
200
|
-
else # model
|
|
201
|
-
# models (e.g. Pet) or oneOf
|
|
202
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
203
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
# Returns the string representation of the object
|
|
208
|
-
# @return [String] String presentation of the object
|
|
209
|
-
def to_s
|
|
210
|
-
to_hash.to_s
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
214
|
-
# @return [Hash] Returns the object in the form of hash
|
|
215
|
-
def to_body
|
|
216
|
-
to_hash
|
|
217
|
-
end
|
|
218
|
-
|
|
219
164
|
# Returns the object in the form of hash
|
|
220
165
|
# @return [Hash] Returns the object in the form of hash
|
|
221
166
|
def to_hash
|
|
@@ -232,24 +177,6 @@ module DaytonaToolboxApiClient
|
|
|
232
177
|
hash
|
|
233
178
|
end
|
|
234
179
|
|
|
235
|
-
# Outputs non-array value in the form of hash
|
|
236
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
237
|
-
# @param [Object] value Any valid value
|
|
238
|
-
# @return [Hash] Returns the value in the form of hash
|
|
239
|
-
def _to_hash(value)
|
|
240
|
-
if value.is_a?(Array)
|
|
241
|
-
value.compact.map { |v| _to_hash(v) }
|
|
242
|
-
elsif value.is_a?(Hash)
|
|
243
|
-
{}.tap do |hash|
|
|
244
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
245
|
-
end
|
|
246
|
-
elsif value.respond_to? :to_hash
|
|
247
|
-
value.to_hash
|
|
248
|
-
else
|
|
249
|
-
value
|
|
250
|
-
end
|
|
251
|
-
end
|
|
252
|
-
|
|
253
180
|
end
|
|
254
181
|
|
|
255
182
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v0.0.0-dev
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaToolboxApiClient
|
|
17
|
-
class GitStatus
|
|
17
|
+
class GitStatus < ApiModelBase
|
|
18
18
|
attr_accessor :ahead
|
|
19
19
|
|
|
20
20
|
attr_accessor :behind
|
|
@@ -198,61 +198,6 @@ module DaytonaToolboxApiClient
|
|
|
198
198
|
new(transformed_hash)
|
|
199
199
|
end
|
|
200
200
|
|
|
201
|
-
# Deserializes the data based on type
|
|
202
|
-
# @param string type Data type
|
|
203
|
-
# @param string value Value to be deserialized
|
|
204
|
-
# @return [Object] Deserialized data
|
|
205
|
-
def self._deserialize(type, value)
|
|
206
|
-
case type.to_sym
|
|
207
|
-
when :Time
|
|
208
|
-
Time.parse(value)
|
|
209
|
-
when :Date
|
|
210
|
-
Date.parse(value)
|
|
211
|
-
when :String
|
|
212
|
-
value.to_s
|
|
213
|
-
when :Integer
|
|
214
|
-
value.to_i
|
|
215
|
-
when :Float
|
|
216
|
-
value.to_f
|
|
217
|
-
when :Boolean
|
|
218
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
219
|
-
true
|
|
220
|
-
else
|
|
221
|
-
false
|
|
222
|
-
end
|
|
223
|
-
when :Object
|
|
224
|
-
# generic object (usually a Hash), return directly
|
|
225
|
-
value
|
|
226
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
227
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
228
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
229
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
230
|
-
k_type = Regexp.last_match[:k_type]
|
|
231
|
-
v_type = Regexp.last_match[:v_type]
|
|
232
|
-
{}.tap do |hash|
|
|
233
|
-
value.each do |k, v|
|
|
234
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
235
|
-
end
|
|
236
|
-
end
|
|
237
|
-
else # model
|
|
238
|
-
# models (e.g. Pet) or oneOf
|
|
239
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
240
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
# Returns the string representation of the object
|
|
245
|
-
# @return [String] String presentation of the object
|
|
246
|
-
def to_s
|
|
247
|
-
to_hash.to_s
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
251
|
-
# @return [Hash] Returns the object in the form of hash
|
|
252
|
-
def to_body
|
|
253
|
-
to_hash
|
|
254
|
-
end
|
|
255
|
-
|
|
256
201
|
# Returns the object in the form of hash
|
|
257
202
|
# @return [Hash] Returns the object in the form of hash
|
|
258
203
|
def to_hash
|
|
@@ -269,24 +214,6 @@ module DaytonaToolboxApiClient
|
|
|
269
214
|
hash
|
|
270
215
|
end
|
|
271
216
|
|
|
272
|
-
# Outputs non-array value in the form of hash
|
|
273
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
274
|
-
# @param [Object] value Any valid value
|
|
275
|
-
# @return [Hash] Returns the value in the form of hash
|
|
276
|
-
def _to_hash(value)
|
|
277
|
-
if value.is_a?(Array)
|
|
278
|
-
value.compact.map { |v| _to_hash(v) }
|
|
279
|
-
elsif value.is_a?(Hash)
|
|
280
|
-
{}.tap do |hash|
|
|
281
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
282
|
-
end
|
|
283
|
-
elsif value.respond_to? :to_hash
|
|
284
|
-
value.to_hash
|
|
285
|
-
else
|
|
286
|
-
value
|
|
287
|
-
end
|
|
288
|
-
end
|
|
289
|
-
|
|
290
217
|
end
|
|
291
218
|
|
|
292
219
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v0.0.0-dev
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaToolboxApiClient
|
|
17
|
-
class InitializeRequest
|
|
17
|
+
class InitializeRequest < ApiModelBase
|
|
18
18
|
attr_accessor :token
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -143,61 +143,6 @@ module DaytonaToolboxApiClient
|
|
|
143
143
|
new(transformed_hash)
|
|
144
144
|
end
|
|
145
145
|
|
|
146
|
-
# Deserializes the data based on type
|
|
147
|
-
# @param string type Data type
|
|
148
|
-
# @param string value Value to be deserialized
|
|
149
|
-
# @return [Object] Deserialized data
|
|
150
|
-
def self._deserialize(type, value)
|
|
151
|
-
case type.to_sym
|
|
152
|
-
when :Time
|
|
153
|
-
Time.parse(value)
|
|
154
|
-
when :Date
|
|
155
|
-
Date.parse(value)
|
|
156
|
-
when :String
|
|
157
|
-
value.to_s
|
|
158
|
-
when :Integer
|
|
159
|
-
value.to_i
|
|
160
|
-
when :Float
|
|
161
|
-
value.to_f
|
|
162
|
-
when :Boolean
|
|
163
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
164
|
-
true
|
|
165
|
-
else
|
|
166
|
-
false
|
|
167
|
-
end
|
|
168
|
-
when :Object
|
|
169
|
-
# generic object (usually a Hash), return directly
|
|
170
|
-
value
|
|
171
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
172
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
173
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
174
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
175
|
-
k_type = Regexp.last_match[:k_type]
|
|
176
|
-
v_type = Regexp.last_match[:v_type]
|
|
177
|
-
{}.tap do |hash|
|
|
178
|
-
value.each do |k, v|
|
|
179
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
180
|
-
end
|
|
181
|
-
end
|
|
182
|
-
else # model
|
|
183
|
-
# models (e.g. Pet) or oneOf
|
|
184
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
185
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
186
|
-
end
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
# Returns the string representation of the object
|
|
190
|
-
# @return [String] String presentation of the object
|
|
191
|
-
def to_s
|
|
192
|
-
to_hash.to_s
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
196
|
-
# @return [Hash] Returns the object in the form of hash
|
|
197
|
-
def to_body
|
|
198
|
-
to_hash
|
|
199
|
-
end
|
|
200
|
-
|
|
201
146
|
# Returns the object in the form of hash
|
|
202
147
|
# @return [Hash] Returns the object in the form of hash
|
|
203
148
|
def to_hash
|
|
@@ -214,24 +159,6 @@ module DaytonaToolboxApiClient
|
|
|
214
159
|
hash
|
|
215
160
|
end
|
|
216
161
|
|
|
217
|
-
# Outputs non-array value in the form of hash
|
|
218
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
219
|
-
# @param [Object] value Any valid value
|
|
220
|
-
# @return [Hash] Returns the value in the form of hash
|
|
221
|
-
def _to_hash(value)
|
|
222
|
-
if value.is_a?(Array)
|
|
223
|
-
value.compact.map { |v| _to_hash(v) }
|
|
224
|
-
elsif value.is_a?(Hash)
|
|
225
|
-
{}.tap do |hash|
|
|
226
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
227
|
-
end
|
|
228
|
-
elsif value.respond_to? :to_hash
|
|
229
|
-
value.to_hash
|
|
230
|
-
else
|
|
231
|
-
value
|
|
232
|
-
end
|
|
233
|
-
end
|
|
234
|
-
|
|
235
162
|
end
|
|
236
163
|
|
|
237
164
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v0.0.0-dev
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaToolboxApiClient
|
|
17
|
-
class InterpreterContext
|
|
17
|
+
class InterpreterContext < ApiModelBase
|
|
18
18
|
attr_accessor :active
|
|
19
19
|
|
|
20
20
|
attr_accessor :created_at
|
|
@@ -247,61 +247,6 @@ module DaytonaToolboxApiClient
|
|
|
247
247
|
new(transformed_hash)
|
|
248
248
|
end
|
|
249
249
|
|
|
250
|
-
# Deserializes the data based on type
|
|
251
|
-
# @param string type Data type
|
|
252
|
-
# @param string value Value to be deserialized
|
|
253
|
-
# @return [Object] Deserialized data
|
|
254
|
-
def self._deserialize(type, value)
|
|
255
|
-
case type.to_sym
|
|
256
|
-
when :Time
|
|
257
|
-
Time.parse(value)
|
|
258
|
-
when :Date
|
|
259
|
-
Date.parse(value)
|
|
260
|
-
when :String
|
|
261
|
-
value.to_s
|
|
262
|
-
when :Integer
|
|
263
|
-
value.to_i
|
|
264
|
-
when :Float
|
|
265
|
-
value.to_f
|
|
266
|
-
when :Boolean
|
|
267
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
268
|
-
true
|
|
269
|
-
else
|
|
270
|
-
false
|
|
271
|
-
end
|
|
272
|
-
when :Object
|
|
273
|
-
# generic object (usually a Hash), return directly
|
|
274
|
-
value
|
|
275
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
276
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
277
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
278
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
279
|
-
k_type = Regexp.last_match[:k_type]
|
|
280
|
-
v_type = Regexp.last_match[:v_type]
|
|
281
|
-
{}.tap do |hash|
|
|
282
|
-
value.each do |k, v|
|
|
283
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
284
|
-
end
|
|
285
|
-
end
|
|
286
|
-
else # model
|
|
287
|
-
# models (e.g. Pet) or oneOf
|
|
288
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
289
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
290
|
-
end
|
|
291
|
-
end
|
|
292
|
-
|
|
293
|
-
# Returns the string representation of the object
|
|
294
|
-
# @return [String] String presentation of the object
|
|
295
|
-
def to_s
|
|
296
|
-
to_hash.to_s
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
300
|
-
# @return [Hash] Returns the object in the form of hash
|
|
301
|
-
def to_body
|
|
302
|
-
to_hash
|
|
303
|
-
end
|
|
304
|
-
|
|
305
250
|
# Returns the object in the form of hash
|
|
306
251
|
# @return [Hash] Returns the object in the form of hash
|
|
307
252
|
def to_hash
|
|
@@ -318,24 +263,6 @@ module DaytonaToolboxApiClient
|
|
|
318
263
|
hash
|
|
319
264
|
end
|
|
320
265
|
|
|
321
|
-
# Outputs non-array value in the form of hash
|
|
322
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
323
|
-
# @param [Object] value Any valid value
|
|
324
|
-
# @return [Hash] Returns the value in the form of hash
|
|
325
|
-
def _to_hash(value)
|
|
326
|
-
if value.is_a?(Array)
|
|
327
|
-
value.compact.map { |v| _to_hash(v) }
|
|
328
|
-
elsif value.is_a?(Hash)
|
|
329
|
-
{}.tap do |hash|
|
|
330
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
331
|
-
end
|
|
332
|
-
elsif value.respond_to? :to_hash
|
|
333
|
-
value.to_hash
|
|
334
|
-
else
|
|
335
|
-
value
|
|
336
|
-
end
|
|
337
|
-
end
|
|
338
|
-
|
|
339
266
|
end
|
|
340
267
|
|
|
341
268
|
end
|