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 ListRecordingsResponse
|
|
17
|
+
class ListRecordingsResponse < ApiModelBase
|
|
18
18
|
attr_accessor :recordings
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -145,61 +145,6 @@ module DaytonaToolboxApiClient
|
|
|
145
145
|
new(transformed_hash)
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
-
# Deserializes the data based on type
|
|
149
|
-
# @param string type Data type
|
|
150
|
-
# @param string value Value to be deserialized
|
|
151
|
-
# @return [Object] Deserialized data
|
|
152
|
-
def self._deserialize(type, value)
|
|
153
|
-
case type.to_sym
|
|
154
|
-
when :Time
|
|
155
|
-
Time.parse(value)
|
|
156
|
-
when :Date
|
|
157
|
-
Date.parse(value)
|
|
158
|
-
when :String
|
|
159
|
-
value.to_s
|
|
160
|
-
when :Integer
|
|
161
|
-
value.to_i
|
|
162
|
-
when :Float
|
|
163
|
-
value.to_f
|
|
164
|
-
when :Boolean
|
|
165
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
166
|
-
true
|
|
167
|
-
else
|
|
168
|
-
false
|
|
169
|
-
end
|
|
170
|
-
when :Object
|
|
171
|
-
# generic object (usually a Hash), return directly
|
|
172
|
-
value
|
|
173
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
174
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
175
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
176
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
177
|
-
k_type = Regexp.last_match[:k_type]
|
|
178
|
-
v_type = Regexp.last_match[:v_type]
|
|
179
|
-
{}.tap do |hash|
|
|
180
|
-
value.each do |k, v|
|
|
181
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
182
|
-
end
|
|
183
|
-
end
|
|
184
|
-
else # model
|
|
185
|
-
# models (e.g. Pet) or oneOf
|
|
186
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
187
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
188
|
-
end
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
# Returns the string representation of the object
|
|
192
|
-
# @return [String] String presentation of the object
|
|
193
|
-
def to_s
|
|
194
|
-
to_hash.to_s
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
198
|
-
# @return [Hash] Returns the object in the form of hash
|
|
199
|
-
def to_body
|
|
200
|
-
to_hash
|
|
201
|
-
end
|
|
202
|
-
|
|
203
148
|
# Returns the object in the form of hash
|
|
204
149
|
# @return [Hash] Returns the object in the form of hash
|
|
205
150
|
def to_hash
|
|
@@ -216,24 +161,6 @@ module DaytonaToolboxApiClient
|
|
|
216
161
|
hash
|
|
217
162
|
end
|
|
218
163
|
|
|
219
|
-
# Outputs non-array value in the form of hash
|
|
220
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
221
|
-
# @param [Object] value Any valid value
|
|
222
|
-
# @return [Hash] Returns the value in the form of hash
|
|
223
|
-
def _to_hash(value)
|
|
224
|
-
if value.is_a?(Array)
|
|
225
|
-
value.compact.map { |v| _to_hash(v) }
|
|
226
|
-
elsif value.is_a?(Hash)
|
|
227
|
-
{}.tap do |hash|
|
|
228
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
229
|
-
end
|
|
230
|
-
elsif value.respond_to? :to_hash
|
|
231
|
-
value.to_hash
|
|
232
|
-
else
|
|
233
|
-
value
|
|
234
|
-
end
|
|
235
|
-
end
|
|
236
|
-
|
|
237
164
|
end
|
|
238
165
|
|
|
239
166
|
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 LspCompletionParams
|
|
17
|
+
class LspCompletionParams < ApiModelBase
|
|
18
18
|
attr_accessor :context
|
|
19
19
|
|
|
20
20
|
attr_accessor :language_id
|
|
@@ -230,61 +230,6 @@ module DaytonaToolboxApiClient
|
|
|
230
230
|
new(transformed_hash)
|
|
231
231
|
end
|
|
232
232
|
|
|
233
|
-
# Deserializes the data based on type
|
|
234
|
-
# @param string type Data type
|
|
235
|
-
# @param string value Value to be deserialized
|
|
236
|
-
# @return [Object] Deserialized data
|
|
237
|
-
def self._deserialize(type, value)
|
|
238
|
-
case type.to_sym
|
|
239
|
-
when :Time
|
|
240
|
-
Time.parse(value)
|
|
241
|
-
when :Date
|
|
242
|
-
Date.parse(value)
|
|
243
|
-
when :String
|
|
244
|
-
value.to_s
|
|
245
|
-
when :Integer
|
|
246
|
-
value.to_i
|
|
247
|
-
when :Float
|
|
248
|
-
value.to_f
|
|
249
|
-
when :Boolean
|
|
250
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
251
|
-
true
|
|
252
|
-
else
|
|
253
|
-
false
|
|
254
|
-
end
|
|
255
|
-
when :Object
|
|
256
|
-
# generic object (usually a Hash), return directly
|
|
257
|
-
value
|
|
258
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
259
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
260
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
261
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
262
|
-
k_type = Regexp.last_match[:k_type]
|
|
263
|
-
v_type = Regexp.last_match[:v_type]
|
|
264
|
-
{}.tap do |hash|
|
|
265
|
-
value.each do |k, v|
|
|
266
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
267
|
-
end
|
|
268
|
-
end
|
|
269
|
-
else # model
|
|
270
|
-
# models (e.g. Pet) or oneOf
|
|
271
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
272
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
273
|
-
end
|
|
274
|
-
end
|
|
275
|
-
|
|
276
|
-
# Returns the string representation of the object
|
|
277
|
-
# @return [String] String presentation of the object
|
|
278
|
-
def to_s
|
|
279
|
-
to_hash.to_s
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
283
|
-
# @return [Hash] Returns the object in the form of hash
|
|
284
|
-
def to_body
|
|
285
|
-
to_hash
|
|
286
|
-
end
|
|
287
|
-
|
|
288
233
|
# Returns the object in the form of hash
|
|
289
234
|
# @return [Hash] Returns the object in the form of hash
|
|
290
235
|
def to_hash
|
|
@@ -301,24 +246,6 @@ module DaytonaToolboxApiClient
|
|
|
301
246
|
hash
|
|
302
247
|
end
|
|
303
248
|
|
|
304
|
-
# Outputs non-array value in the form of hash
|
|
305
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
306
|
-
# @param [Object] value Any valid value
|
|
307
|
-
# @return [Hash] Returns the value in the form of hash
|
|
308
|
-
def _to_hash(value)
|
|
309
|
-
if value.is_a?(Array)
|
|
310
|
-
value.compact.map { |v| _to_hash(v) }
|
|
311
|
-
elsif value.is_a?(Hash)
|
|
312
|
-
{}.tap do |hash|
|
|
313
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
314
|
-
end
|
|
315
|
-
elsif value.respond_to? :to_hash
|
|
316
|
-
value.to_hash
|
|
317
|
-
else
|
|
318
|
-
value
|
|
319
|
-
end
|
|
320
|
-
end
|
|
321
|
-
|
|
322
249
|
end
|
|
323
250
|
|
|
324
251
|
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 LspDocumentRequest
|
|
17
|
+
class LspDocumentRequest < ApiModelBase
|
|
18
18
|
attr_accessor :language_id
|
|
19
19
|
|
|
20
20
|
attr_accessor :path_to_project
|
|
@@ -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 LspLocation
|
|
17
|
+
class LspLocation < ApiModelBase
|
|
18
18
|
attr_accessor :range
|
|
19
19
|
|
|
20
20
|
attr_accessor :uri
|
|
@@ -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 LspPosition
|
|
17
|
+
class LspPosition < ApiModelBase
|
|
18
18
|
attr_accessor :character
|
|
19
19
|
|
|
20
20
|
attr_accessor :line
|
|
@@ -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 LspRange
|
|
17
|
+
class LspRange < ApiModelBase
|
|
18
18
|
attr_accessor :_end
|
|
19
19
|
|
|
20
20
|
attr_accessor :start
|
|
@@ -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
|