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 ExecuteRequest
|
|
17
|
+
class ExecuteRequest < ApiModelBase
|
|
18
18
|
attr_accessor :command
|
|
19
19
|
|
|
20
20
|
# Current working directory
|
|
@@ -175,61 +175,6 @@ module DaytonaToolboxApiClient
|
|
|
175
175
|
new(transformed_hash)
|
|
176
176
|
end
|
|
177
177
|
|
|
178
|
-
# Deserializes the data based on type
|
|
179
|
-
# @param string type Data type
|
|
180
|
-
# @param string value Value to be deserialized
|
|
181
|
-
# @return [Object] Deserialized data
|
|
182
|
-
def self._deserialize(type, value)
|
|
183
|
-
case type.to_sym
|
|
184
|
-
when :Time
|
|
185
|
-
Time.parse(value)
|
|
186
|
-
when :Date
|
|
187
|
-
Date.parse(value)
|
|
188
|
-
when :String
|
|
189
|
-
value.to_s
|
|
190
|
-
when :Integer
|
|
191
|
-
value.to_i
|
|
192
|
-
when :Float
|
|
193
|
-
value.to_f
|
|
194
|
-
when :Boolean
|
|
195
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
196
|
-
true
|
|
197
|
-
else
|
|
198
|
-
false
|
|
199
|
-
end
|
|
200
|
-
when :Object
|
|
201
|
-
# generic object (usually a Hash), return directly
|
|
202
|
-
value
|
|
203
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
204
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
205
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
206
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
207
|
-
k_type = Regexp.last_match[:k_type]
|
|
208
|
-
v_type = Regexp.last_match[:v_type]
|
|
209
|
-
{}.tap do |hash|
|
|
210
|
-
value.each do |k, v|
|
|
211
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
212
|
-
end
|
|
213
|
-
end
|
|
214
|
-
else # model
|
|
215
|
-
# models (e.g. Pet) or oneOf
|
|
216
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
217
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
218
|
-
end
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
# Returns the string representation of the object
|
|
222
|
-
# @return [String] String presentation of the object
|
|
223
|
-
def to_s
|
|
224
|
-
to_hash.to_s
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
228
|
-
# @return [Hash] Returns the object in the form of hash
|
|
229
|
-
def to_body
|
|
230
|
-
to_hash
|
|
231
|
-
end
|
|
232
|
-
|
|
233
178
|
# Returns the object in the form of hash
|
|
234
179
|
# @return [Hash] Returns the object in the form of hash
|
|
235
180
|
def to_hash
|
|
@@ -246,24 +191,6 @@ module DaytonaToolboxApiClient
|
|
|
246
191
|
hash
|
|
247
192
|
end
|
|
248
193
|
|
|
249
|
-
# Outputs non-array value in the form of hash
|
|
250
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
251
|
-
# @param [Object] value Any valid value
|
|
252
|
-
# @return [Hash] Returns the value in the form of hash
|
|
253
|
-
def _to_hash(value)
|
|
254
|
-
if value.is_a?(Array)
|
|
255
|
-
value.compact.map { |v| _to_hash(v) }
|
|
256
|
-
elsif value.is_a?(Hash)
|
|
257
|
-
{}.tap do |hash|
|
|
258
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
259
|
-
end
|
|
260
|
-
elsif value.respond_to? :to_hash
|
|
261
|
-
value.to_hash
|
|
262
|
-
else
|
|
263
|
-
value
|
|
264
|
-
end
|
|
265
|
-
end
|
|
266
|
-
|
|
267
194
|
end
|
|
268
195
|
|
|
269
196
|
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 ExecuteResponse
|
|
17
|
+
class ExecuteResponse < ApiModelBase
|
|
18
18
|
attr_accessor :exit_code
|
|
19
19
|
|
|
20
20
|
attr_accessor :result
|
|
@@ -152,61 +152,6 @@ module DaytonaToolboxApiClient
|
|
|
152
152
|
new(transformed_hash)
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
-
# Deserializes the data based on type
|
|
156
|
-
# @param string type Data type
|
|
157
|
-
# @param string value Value to be deserialized
|
|
158
|
-
# @return [Object] Deserialized data
|
|
159
|
-
def self._deserialize(type, value)
|
|
160
|
-
case type.to_sym
|
|
161
|
-
when :Time
|
|
162
|
-
Time.parse(value)
|
|
163
|
-
when :Date
|
|
164
|
-
Date.parse(value)
|
|
165
|
-
when :String
|
|
166
|
-
value.to_s
|
|
167
|
-
when :Integer
|
|
168
|
-
value.to_i
|
|
169
|
-
when :Float
|
|
170
|
-
value.to_f
|
|
171
|
-
when :Boolean
|
|
172
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
173
|
-
true
|
|
174
|
-
else
|
|
175
|
-
false
|
|
176
|
-
end
|
|
177
|
-
when :Object
|
|
178
|
-
# generic object (usually a Hash), return directly
|
|
179
|
-
value
|
|
180
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
181
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
182
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
183
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
184
|
-
k_type = Regexp.last_match[:k_type]
|
|
185
|
-
v_type = Regexp.last_match[:v_type]
|
|
186
|
-
{}.tap do |hash|
|
|
187
|
-
value.each do |k, v|
|
|
188
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
else # model
|
|
192
|
-
# models (e.g. Pet) or oneOf
|
|
193
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
194
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
195
|
-
end
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
# Returns the string representation of the object
|
|
199
|
-
# @return [String] String presentation of the object
|
|
200
|
-
def to_s
|
|
201
|
-
to_hash.to_s
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
205
|
-
# @return [Hash] Returns the object in the form of hash
|
|
206
|
-
def to_body
|
|
207
|
-
to_hash
|
|
208
|
-
end
|
|
209
|
-
|
|
210
155
|
# Returns the object in the form of hash
|
|
211
156
|
# @return [Hash] Returns the object in the form of hash
|
|
212
157
|
def to_hash
|
|
@@ -223,24 +168,6 @@ module DaytonaToolboxApiClient
|
|
|
223
168
|
hash
|
|
224
169
|
end
|
|
225
170
|
|
|
226
|
-
# Outputs non-array value in the form of hash
|
|
227
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
228
|
-
# @param [Object] value Any valid value
|
|
229
|
-
# @return [Hash] Returns the value in the form of hash
|
|
230
|
-
def _to_hash(value)
|
|
231
|
-
if value.is_a?(Array)
|
|
232
|
-
value.compact.map { |v| _to_hash(v) }
|
|
233
|
-
elsif value.is_a?(Hash)
|
|
234
|
-
{}.tap do |hash|
|
|
235
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
236
|
-
end
|
|
237
|
-
elsif value.respond_to? :to_hash
|
|
238
|
-
value.to_hash
|
|
239
|
-
else
|
|
240
|
-
value
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
|
-
|
|
244
171
|
end
|
|
245
172
|
|
|
246
173
|
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 FileInfo
|
|
17
|
+
class FileInfo < ApiModelBase
|
|
18
18
|
attr_accessor :group
|
|
19
19
|
|
|
20
20
|
attr_accessor :is_dir
|
|
@@ -325,61 +325,6 @@ module DaytonaToolboxApiClient
|
|
|
325
325
|
new(transformed_hash)
|
|
326
326
|
end
|
|
327
327
|
|
|
328
|
-
# Deserializes the data based on type
|
|
329
|
-
# @param string type Data type
|
|
330
|
-
# @param string value Value to be deserialized
|
|
331
|
-
# @return [Object] Deserialized data
|
|
332
|
-
def self._deserialize(type, value)
|
|
333
|
-
case type.to_sym
|
|
334
|
-
when :Time
|
|
335
|
-
Time.parse(value)
|
|
336
|
-
when :Date
|
|
337
|
-
Date.parse(value)
|
|
338
|
-
when :String
|
|
339
|
-
value.to_s
|
|
340
|
-
when :Integer
|
|
341
|
-
value.to_i
|
|
342
|
-
when :Float
|
|
343
|
-
value.to_f
|
|
344
|
-
when :Boolean
|
|
345
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
346
|
-
true
|
|
347
|
-
else
|
|
348
|
-
false
|
|
349
|
-
end
|
|
350
|
-
when :Object
|
|
351
|
-
# generic object (usually a Hash), return directly
|
|
352
|
-
value
|
|
353
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
354
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
355
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
356
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
357
|
-
k_type = Regexp.last_match[:k_type]
|
|
358
|
-
v_type = Regexp.last_match[:v_type]
|
|
359
|
-
{}.tap do |hash|
|
|
360
|
-
value.each do |k, v|
|
|
361
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
362
|
-
end
|
|
363
|
-
end
|
|
364
|
-
else # model
|
|
365
|
-
# models (e.g. Pet) or oneOf
|
|
366
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
367
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
368
|
-
end
|
|
369
|
-
end
|
|
370
|
-
|
|
371
|
-
# Returns the string representation of the object
|
|
372
|
-
# @return [String] String presentation of the object
|
|
373
|
-
def to_s
|
|
374
|
-
to_hash.to_s
|
|
375
|
-
end
|
|
376
|
-
|
|
377
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
378
|
-
# @return [Hash] Returns the object in the form of hash
|
|
379
|
-
def to_body
|
|
380
|
-
to_hash
|
|
381
|
-
end
|
|
382
|
-
|
|
383
328
|
# Returns the object in the form of hash
|
|
384
329
|
# @return [Hash] Returns the object in the form of hash
|
|
385
330
|
def to_hash
|
|
@@ -396,24 +341,6 @@ module DaytonaToolboxApiClient
|
|
|
396
341
|
hash
|
|
397
342
|
end
|
|
398
343
|
|
|
399
|
-
# Outputs non-array value in the form of hash
|
|
400
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
401
|
-
# @param [Object] value Any valid value
|
|
402
|
-
# @return [Hash] Returns the value in the form of hash
|
|
403
|
-
def _to_hash(value)
|
|
404
|
-
if value.is_a?(Array)
|
|
405
|
-
value.compact.map { |v| _to_hash(v) }
|
|
406
|
-
elsif value.is_a?(Hash)
|
|
407
|
-
{}.tap do |hash|
|
|
408
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
409
|
-
end
|
|
410
|
-
elsif value.respond_to? :to_hash
|
|
411
|
-
value.to_hash
|
|
412
|
-
else
|
|
413
|
-
value
|
|
414
|
-
end
|
|
415
|
-
end
|
|
416
|
-
|
|
417
344
|
end
|
|
418
345
|
|
|
419
346
|
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 FileStatus
|
|
17
|
+
class FileStatus < ApiModelBase
|
|
18
18
|
attr_accessor :extra
|
|
19
19
|
|
|
20
20
|
attr_accessor :name
|
|
@@ -243,61 +243,6 @@ module DaytonaToolboxApiClient
|
|
|
243
243
|
new(transformed_hash)
|
|
244
244
|
end
|
|
245
245
|
|
|
246
|
-
# Deserializes the data based on type
|
|
247
|
-
# @param string type Data type
|
|
248
|
-
# @param string value Value to be deserialized
|
|
249
|
-
# @return [Object] Deserialized data
|
|
250
|
-
def self._deserialize(type, value)
|
|
251
|
-
case type.to_sym
|
|
252
|
-
when :Time
|
|
253
|
-
Time.parse(value)
|
|
254
|
-
when :Date
|
|
255
|
-
Date.parse(value)
|
|
256
|
-
when :String
|
|
257
|
-
value.to_s
|
|
258
|
-
when :Integer
|
|
259
|
-
value.to_i
|
|
260
|
-
when :Float
|
|
261
|
-
value.to_f
|
|
262
|
-
when :Boolean
|
|
263
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
264
|
-
true
|
|
265
|
-
else
|
|
266
|
-
false
|
|
267
|
-
end
|
|
268
|
-
when :Object
|
|
269
|
-
# generic object (usually a Hash), return directly
|
|
270
|
-
value
|
|
271
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
272
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
273
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
274
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
275
|
-
k_type = Regexp.last_match[:k_type]
|
|
276
|
-
v_type = Regexp.last_match[:v_type]
|
|
277
|
-
{}.tap do |hash|
|
|
278
|
-
value.each do |k, v|
|
|
279
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
280
|
-
end
|
|
281
|
-
end
|
|
282
|
-
else # model
|
|
283
|
-
# models (e.g. Pet) or oneOf
|
|
284
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
285
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
286
|
-
end
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
# Returns the string representation of the object
|
|
290
|
-
# @return [String] String presentation of the object
|
|
291
|
-
def to_s
|
|
292
|
-
to_hash.to_s
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
296
|
-
# @return [Hash] Returns the object in the form of hash
|
|
297
|
-
def to_body
|
|
298
|
-
to_hash
|
|
299
|
-
end
|
|
300
|
-
|
|
301
246
|
# Returns the object in the form of hash
|
|
302
247
|
# @return [Hash] Returns the object in the form of hash
|
|
303
248
|
def to_hash
|
|
@@ -314,24 +259,6 @@ module DaytonaToolboxApiClient
|
|
|
314
259
|
hash
|
|
315
260
|
end
|
|
316
261
|
|
|
317
|
-
# Outputs non-array value in the form of hash
|
|
318
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
319
|
-
# @param [Object] value Any valid value
|
|
320
|
-
# @return [Hash] Returns the value in the form of hash
|
|
321
|
-
def _to_hash(value)
|
|
322
|
-
if value.is_a?(Array)
|
|
323
|
-
value.compact.map { |v| _to_hash(v) }
|
|
324
|
-
elsif value.is_a?(Hash)
|
|
325
|
-
{}.tap do |hash|
|
|
326
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
327
|
-
end
|
|
328
|
-
elsif value.respond_to? :to_hash
|
|
329
|
-
value.to_hash
|
|
330
|
-
else
|
|
331
|
-
value
|
|
332
|
-
end
|
|
333
|
-
end
|
|
334
|
-
|
|
335
262
|
end
|
|
336
263
|
|
|
337
264
|
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 FilesDownloadRequest
|
|
17
|
+
class FilesDownloadRequest < ApiModelBase
|
|
18
18
|
attr_accessor :paths
|
|
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 GitAddRequest
|
|
17
|
+
class GitAddRequest < ApiModelBase
|
|
18
18
|
# files to add (use . for all files)
|
|
19
19
|
attr_accessor :files
|
|
20
20
|
|
|
@@ -172,61 +172,6 @@ module DaytonaToolboxApiClient
|
|
|
172
172
|
new(transformed_hash)
|
|
173
173
|
end
|
|
174
174
|
|
|
175
|
-
# Deserializes the data based on type
|
|
176
|
-
# @param string type Data type
|
|
177
|
-
# @param string value Value to be deserialized
|
|
178
|
-
# @return [Object] Deserialized data
|
|
179
|
-
def self._deserialize(type, value)
|
|
180
|
-
case type.to_sym
|
|
181
|
-
when :Time
|
|
182
|
-
Time.parse(value)
|
|
183
|
-
when :Date
|
|
184
|
-
Date.parse(value)
|
|
185
|
-
when :String
|
|
186
|
-
value.to_s
|
|
187
|
-
when :Integer
|
|
188
|
-
value.to_i
|
|
189
|
-
when :Float
|
|
190
|
-
value.to_f
|
|
191
|
-
when :Boolean
|
|
192
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
193
|
-
true
|
|
194
|
-
else
|
|
195
|
-
false
|
|
196
|
-
end
|
|
197
|
-
when :Object
|
|
198
|
-
# generic object (usually a Hash), return directly
|
|
199
|
-
value
|
|
200
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
201
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
202
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
203
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
204
|
-
k_type = Regexp.last_match[:k_type]
|
|
205
|
-
v_type = Regexp.last_match[:v_type]
|
|
206
|
-
{}.tap do |hash|
|
|
207
|
-
value.each do |k, v|
|
|
208
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
209
|
-
end
|
|
210
|
-
end
|
|
211
|
-
else # model
|
|
212
|
-
# models (e.g. Pet) or oneOf
|
|
213
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
214
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
215
|
-
end
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
# Returns the string representation of the object
|
|
219
|
-
# @return [String] String presentation of the object
|
|
220
|
-
def to_s
|
|
221
|
-
to_hash.to_s
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
225
|
-
# @return [Hash] Returns the object in the form of hash
|
|
226
|
-
def to_body
|
|
227
|
-
to_hash
|
|
228
|
-
end
|
|
229
|
-
|
|
230
175
|
# Returns the object in the form of hash
|
|
231
176
|
# @return [Hash] Returns the object in the form of hash
|
|
232
177
|
def to_hash
|
|
@@ -243,24 +188,6 @@ module DaytonaToolboxApiClient
|
|
|
243
188
|
hash
|
|
244
189
|
end
|
|
245
190
|
|
|
246
|
-
# Outputs non-array value in the form of hash
|
|
247
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
248
|
-
# @param [Object] value Any valid value
|
|
249
|
-
# @return [Hash] Returns the value in the form of hash
|
|
250
|
-
def _to_hash(value)
|
|
251
|
-
if value.is_a?(Array)
|
|
252
|
-
value.compact.map { |v| _to_hash(v) }
|
|
253
|
-
elsif value.is_a?(Hash)
|
|
254
|
-
{}.tap do |hash|
|
|
255
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
256
|
-
end
|
|
257
|
-
elsif value.respond_to? :to_hash
|
|
258
|
-
value.to_hash
|
|
259
|
-
else
|
|
260
|
-
value
|
|
261
|
-
end
|
|
262
|
-
end
|
|
263
|
-
|
|
264
191
|
end
|
|
265
192
|
|
|
266
193
|
end
|