daytona_toolbox_api_client 0.169.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,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaToolboxApiClient
|
|
17
|
-
class LspServerRequest
|
|
17
|
+
class LspServerRequest < ApiModelBase
|
|
18
18
|
attr_accessor :language_id
|
|
19
19
|
|
|
20
20
|
attr_accessor :path_to_project
|
|
@@ -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 LspSymbol
|
|
17
|
+
class LspSymbol < ApiModelBase
|
|
18
18
|
attr_accessor :kind
|
|
19
19
|
|
|
20
20
|
attr_accessor :location
|
|
@@ -195,61 +195,6 @@ module DaytonaToolboxApiClient
|
|
|
195
195
|
new(transformed_hash)
|
|
196
196
|
end
|
|
197
197
|
|
|
198
|
-
# Deserializes the data based on type
|
|
199
|
-
# @param string type Data type
|
|
200
|
-
# @param string value Value to be deserialized
|
|
201
|
-
# @return [Object] Deserialized data
|
|
202
|
-
def self._deserialize(type, value)
|
|
203
|
-
case type.to_sym
|
|
204
|
-
when :Time
|
|
205
|
-
Time.parse(value)
|
|
206
|
-
when :Date
|
|
207
|
-
Date.parse(value)
|
|
208
|
-
when :String
|
|
209
|
-
value.to_s
|
|
210
|
-
when :Integer
|
|
211
|
-
value.to_i
|
|
212
|
-
when :Float
|
|
213
|
-
value.to_f
|
|
214
|
-
when :Boolean
|
|
215
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
216
|
-
true
|
|
217
|
-
else
|
|
218
|
-
false
|
|
219
|
-
end
|
|
220
|
-
when :Object
|
|
221
|
-
# generic object (usually a Hash), return directly
|
|
222
|
-
value
|
|
223
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
224
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
225
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
226
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
227
|
-
k_type = Regexp.last_match[:k_type]
|
|
228
|
-
v_type = Regexp.last_match[:v_type]
|
|
229
|
-
{}.tap do |hash|
|
|
230
|
-
value.each do |k, v|
|
|
231
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
232
|
-
end
|
|
233
|
-
end
|
|
234
|
-
else # model
|
|
235
|
-
# models (e.g. Pet) or oneOf
|
|
236
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
237
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
|
|
241
|
-
# Returns the string representation of the object
|
|
242
|
-
# @return [String] String presentation of the object
|
|
243
|
-
def to_s
|
|
244
|
-
to_hash.to_s
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
248
|
-
# @return [Hash] Returns the object in the form of hash
|
|
249
|
-
def to_body
|
|
250
|
-
to_hash
|
|
251
|
-
end
|
|
252
|
-
|
|
253
198
|
# Returns the object in the form of hash
|
|
254
199
|
# @return [Hash] Returns the object in the form of hash
|
|
255
200
|
def to_hash
|
|
@@ -266,24 +211,6 @@ module DaytonaToolboxApiClient
|
|
|
266
211
|
hash
|
|
267
212
|
end
|
|
268
213
|
|
|
269
|
-
# Outputs non-array value in the form of hash
|
|
270
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
271
|
-
# @param [Object] value Any valid value
|
|
272
|
-
# @return [Hash] Returns the value in the form of hash
|
|
273
|
-
def _to_hash(value)
|
|
274
|
-
if value.is_a?(Array)
|
|
275
|
-
value.compact.map { |v| _to_hash(v) }
|
|
276
|
-
elsif value.is_a?(Hash)
|
|
277
|
-
{}.tap do |hash|
|
|
278
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
279
|
-
end
|
|
280
|
-
elsif value.respond_to? :to_hash
|
|
281
|
-
value.to_hash
|
|
282
|
-
else
|
|
283
|
-
value
|
|
284
|
-
end
|
|
285
|
-
end
|
|
286
|
-
|
|
287
214
|
end
|
|
288
215
|
|
|
289
216
|
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 Match
|
|
17
|
+
class Match < ApiModelBase
|
|
18
18
|
attr_accessor :content
|
|
19
19
|
|
|
20
20
|
attr_accessor :file
|
|
@@ -195,61 +195,6 @@ module DaytonaToolboxApiClient
|
|
|
195
195
|
new(transformed_hash)
|
|
196
196
|
end
|
|
197
197
|
|
|
198
|
-
# Deserializes the data based on type
|
|
199
|
-
# @param string type Data type
|
|
200
|
-
# @param string value Value to be deserialized
|
|
201
|
-
# @return [Object] Deserialized data
|
|
202
|
-
def self._deserialize(type, value)
|
|
203
|
-
case type.to_sym
|
|
204
|
-
when :Time
|
|
205
|
-
Time.parse(value)
|
|
206
|
-
when :Date
|
|
207
|
-
Date.parse(value)
|
|
208
|
-
when :String
|
|
209
|
-
value.to_s
|
|
210
|
-
when :Integer
|
|
211
|
-
value.to_i
|
|
212
|
-
when :Float
|
|
213
|
-
value.to_f
|
|
214
|
-
when :Boolean
|
|
215
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
216
|
-
true
|
|
217
|
-
else
|
|
218
|
-
false
|
|
219
|
-
end
|
|
220
|
-
when :Object
|
|
221
|
-
# generic object (usually a Hash), return directly
|
|
222
|
-
value
|
|
223
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
224
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
225
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
226
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
227
|
-
k_type = Regexp.last_match[:k_type]
|
|
228
|
-
v_type = Regexp.last_match[:v_type]
|
|
229
|
-
{}.tap do |hash|
|
|
230
|
-
value.each do |k, v|
|
|
231
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
232
|
-
end
|
|
233
|
-
end
|
|
234
|
-
else # model
|
|
235
|
-
# models (e.g. Pet) or oneOf
|
|
236
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
237
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
|
|
241
|
-
# Returns the string representation of the object
|
|
242
|
-
# @return [String] String presentation of the object
|
|
243
|
-
def to_s
|
|
244
|
-
to_hash.to_s
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
248
|
-
# @return [Hash] Returns the object in the form of hash
|
|
249
|
-
def to_body
|
|
250
|
-
to_hash
|
|
251
|
-
end
|
|
252
|
-
|
|
253
198
|
# Returns the object in the form of hash
|
|
254
199
|
# @return [Hash] Returns the object in the form of hash
|
|
255
200
|
def to_hash
|
|
@@ -266,24 +211,6 @@ module DaytonaToolboxApiClient
|
|
|
266
211
|
hash
|
|
267
212
|
end
|
|
268
213
|
|
|
269
|
-
# Outputs non-array value in the form of hash
|
|
270
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
271
|
-
# @param [Object] value Any valid value
|
|
272
|
-
# @return [Hash] Returns the value in the form of hash
|
|
273
|
-
def _to_hash(value)
|
|
274
|
-
if value.is_a?(Array)
|
|
275
|
-
value.compact.map { |v| _to_hash(v) }
|
|
276
|
-
elsif value.is_a?(Hash)
|
|
277
|
-
{}.tap do |hash|
|
|
278
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
279
|
-
end
|
|
280
|
-
elsif value.respond_to? :to_hash
|
|
281
|
-
value.to_hash
|
|
282
|
-
else
|
|
283
|
-
value
|
|
284
|
-
end
|
|
285
|
-
end
|
|
286
|
-
|
|
287
214
|
end
|
|
288
215
|
|
|
289
216
|
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 MouseClickRequest
|
|
17
|
+
class MouseClickRequest < ApiModelBase
|
|
18
18
|
# left, right, middle
|
|
19
19
|
attr_accessor :button
|
|
20
20
|
|
|
@@ -154,61 +154,6 @@ module DaytonaToolboxApiClient
|
|
|
154
154
|
new(transformed_hash)
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
# Deserializes the data based on type
|
|
158
|
-
# @param string type Data type
|
|
159
|
-
# @param string value Value to be deserialized
|
|
160
|
-
# @return [Object] Deserialized data
|
|
161
|
-
def self._deserialize(type, value)
|
|
162
|
-
case type.to_sym
|
|
163
|
-
when :Time
|
|
164
|
-
Time.parse(value)
|
|
165
|
-
when :Date
|
|
166
|
-
Date.parse(value)
|
|
167
|
-
when :String
|
|
168
|
-
value.to_s
|
|
169
|
-
when :Integer
|
|
170
|
-
value.to_i
|
|
171
|
-
when :Float
|
|
172
|
-
value.to_f
|
|
173
|
-
when :Boolean
|
|
174
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
175
|
-
true
|
|
176
|
-
else
|
|
177
|
-
false
|
|
178
|
-
end
|
|
179
|
-
when :Object
|
|
180
|
-
# generic object (usually a Hash), return directly
|
|
181
|
-
value
|
|
182
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
183
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
184
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
185
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
186
|
-
k_type = Regexp.last_match[:k_type]
|
|
187
|
-
v_type = Regexp.last_match[:v_type]
|
|
188
|
-
{}.tap do |hash|
|
|
189
|
-
value.each do |k, v|
|
|
190
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
191
|
-
end
|
|
192
|
-
end
|
|
193
|
-
else # model
|
|
194
|
-
# models (e.g. Pet) or oneOf
|
|
195
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
196
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
197
|
-
end
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
# Returns the string representation of the object
|
|
201
|
-
# @return [String] String presentation of the object
|
|
202
|
-
def to_s
|
|
203
|
-
to_hash.to_s
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
207
|
-
# @return [Hash] Returns the object in the form of hash
|
|
208
|
-
def to_body
|
|
209
|
-
to_hash
|
|
210
|
-
end
|
|
211
|
-
|
|
212
157
|
# Returns the object in the form of hash
|
|
213
158
|
# @return [Hash] Returns the object in the form of hash
|
|
214
159
|
def to_hash
|
|
@@ -225,24 +170,6 @@ module DaytonaToolboxApiClient
|
|
|
225
170
|
hash
|
|
226
171
|
end
|
|
227
172
|
|
|
228
|
-
# Outputs non-array value in the form of hash
|
|
229
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
230
|
-
# @param [Object] value Any valid value
|
|
231
|
-
# @return [Hash] Returns the value in the form of hash
|
|
232
|
-
def _to_hash(value)
|
|
233
|
-
if value.is_a?(Array)
|
|
234
|
-
value.compact.map { |v| _to_hash(v) }
|
|
235
|
-
elsif value.is_a?(Hash)
|
|
236
|
-
{}.tap do |hash|
|
|
237
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
238
|
-
end
|
|
239
|
-
elsif value.respond_to? :to_hash
|
|
240
|
-
value.to_hash
|
|
241
|
-
else
|
|
242
|
-
value
|
|
243
|
-
end
|
|
244
|
-
end
|
|
245
|
-
|
|
246
173
|
end
|
|
247
174
|
|
|
248
175
|
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 MouseClickResponse
|
|
17
|
+
class MouseClickResponse < ApiModelBase
|
|
18
18
|
attr_accessor :x
|
|
19
19
|
|
|
20
20
|
attr_accessor :y
|
|
@@ -135,61 +135,6 @@ module DaytonaToolboxApiClient
|
|
|
135
135
|
new(transformed_hash)
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
# Deserializes the data based on type
|
|
139
|
-
# @param string type Data type
|
|
140
|
-
# @param string value Value to be deserialized
|
|
141
|
-
# @return [Object] Deserialized data
|
|
142
|
-
def self._deserialize(type, value)
|
|
143
|
-
case type.to_sym
|
|
144
|
-
when :Time
|
|
145
|
-
Time.parse(value)
|
|
146
|
-
when :Date
|
|
147
|
-
Date.parse(value)
|
|
148
|
-
when :String
|
|
149
|
-
value.to_s
|
|
150
|
-
when :Integer
|
|
151
|
-
value.to_i
|
|
152
|
-
when :Float
|
|
153
|
-
value.to_f
|
|
154
|
-
when :Boolean
|
|
155
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
156
|
-
true
|
|
157
|
-
else
|
|
158
|
-
false
|
|
159
|
-
end
|
|
160
|
-
when :Object
|
|
161
|
-
# generic object (usually a Hash), return directly
|
|
162
|
-
value
|
|
163
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
164
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
165
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
166
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
167
|
-
k_type = Regexp.last_match[:k_type]
|
|
168
|
-
v_type = Regexp.last_match[:v_type]
|
|
169
|
-
{}.tap do |hash|
|
|
170
|
-
value.each do |k, v|
|
|
171
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
else # model
|
|
175
|
-
# models (e.g. Pet) or oneOf
|
|
176
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
177
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
178
|
-
end
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
# Returns the string representation of the object
|
|
182
|
-
# @return [String] String presentation of the object
|
|
183
|
-
def to_s
|
|
184
|
-
to_hash.to_s
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
188
|
-
# @return [Hash] Returns the object in the form of hash
|
|
189
|
-
def to_body
|
|
190
|
-
to_hash
|
|
191
|
-
end
|
|
192
|
-
|
|
193
138
|
# Returns the object in the form of hash
|
|
194
139
|
# @return [Hash] Returns the object in the form of hash
|
|
195
140
|
def to_hash
|
|
@@ -206,24 +151,6 @@ module DaytonaToolboxApiClient
|
|
|
206
151
|
hash
|
|
207
152
|
end
|
|
208
153
|
|
|
209
|
-
# Outputs non-array value in the form of hash
|
|
210
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
211
|
-
# @param [Object] value Any valid value
|
|
212
|
-
# @return [Hash] Returns the value in the form of hash
|
|
213
|
-
def _to_hash(value)
|
|
214
|
-
if value.is_a?(Array)
|
|
215
|
-
value.compact.map { |v| _to_hash(v) }
|
|
216
|
-
elsif value.is_a?(Hash)
|
|
217
|
-
{}.tap do |hash|
|
|
218
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
219
|
-
end
|
|
220
|
-
elsif value.respond_to? :to_hash
|
|
221
|
-
value.to_hash
|
|
222
|
-
else
|
|
223
|
-
value
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
|
|
227
154
|
end
|
|
228
155
|
|
|
229
156
|
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 MouseDragRequest
|
|
17
|
+
class MouseDragRequest < ApiModelBase
|
|
18
18
|
attr_accessor :button
|
|
19
19
|
|
|
20
20
|
attr_accessor :end_x
|
|
@@ -162,61 +162,6 @@ module DaytonaToolboxApiClient
|
|
|
162
162
|
new(transformed_hash)
|
|
163
163
|
end
|
|
164
164
|
|
|
165
|
-
# Deserializes the data based on type
|
|
166
|
-
# @param string type Data type
|
|
167
|
-
# @param string value Value to be deserialized
|
|
168
|
-
# @return [Object] Deserialized data
|
|
169
|
-
def self._deserialize(type, value)
|
|
170
|
-
case type.to_sym
|
|
171
|
-
when :Time
|
|
172
|
-
Time.parse(value)
|
|
173
|
-
when :Date
|
|
174
|
-
Date.parse(value)
|
|
175
|
-
when :String
|
|
176
|
-
value.to_s
|
|
177
|
-
when :Integer
|
|
178
|
-
value.to_i
|
|
179
|
-
when :Float
|
|
180
|
-
value.to_f
|
|
181
|
-
when :Boolean
|
|
182
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
183
|
-
true
|
|
184
|
-
else
|
|
185
|
-
false
|
|
186
|
-
end
|
|
187
|
-
when :Object
|
|
188
|
-
# generic object (usually a Hash), return directly
|
|
189
|
-
value
|
|
190
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
191
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
192
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
193
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
194
|
-
k_type = Regexp.last_match[:k_type]
|
|
195
|
-
v_type = Regexp.last_match[:v_type]
|
|
196
|
-
{}.tap do |hash|
|
|
197
|
-
value.each do |k, v|
|
|
198
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
else # model
|
|
202
|
-
# models (e.g. Pet) or oneOf
|
|
203
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
204
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
205
|
-
end
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
# Returns the string representation of the object
|
|
209
|
-
# @return [String] String presentation of the object
|
|
210
|
-
def to_s
|
|
211
|
-
to_hash.to_s
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
215
|
-
# @return [Hash] Returns the object in the form of hash
|
|
216
|
-
def to_body
|
|
217
|
-
to_hash
|
|
218
|
-
end
|
|
219
|
-
|
|
220
165
|
# Returns the object in the form of hash
|
|
221
166
|
# @return [Hash] Returns the object in the form of hash
|
|
222
167
|
def to_hash
|
|
@@ -233,24 +178,6 @@ module DaytonaToolboxApiClient
|
|
|
233
178
|
hash
|
|
234
179
|
end
|
|
235
180
|
|
|
236
|
-
# Outputs non-array value in the form of hash
|
|
237
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
238
|
-
# @param [Object] value Any valid value
|
|
239
|
-
# @return [Hash] Returns the value in the form of hash
|
|
240
|
-
def _to_hash(value)
|
|
241
|
-
if value.is_a?(Array)
|
|
242
|
-
value.compact.map { |v| _to_hash(v) }
|
|
243
|
-
elsif value.is_a?(Hash)
|
|
244
|
-
{}.tap do |hash|
|
|
245
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
246
|
-
end
|
|
247
|
-
elsif value.respond_to? :to_hash
|
|
248
|
-
value.to_hash
|
|
249
|
-
else
|
|
250
|
-
value
|
|
251
|
-
end
|
|
252
|
-
end
|
|
253
|
-
|
|
254
181
|
end
|
|
255
182
|
|
|
256
183
|
end
|