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 SessionExecuteRequest
|
|
17
|
+
class SessionExecuteRequest < ApiModelBase
|
|
18
18
|
attr_accessor :async
|
|
19
19
|
|
|
20
20
|
attr_accessor :command
|
|
@@ -170,61 +170,6 @@ module DaytonaToolboxApiClient
|
|
|
170
170
|
new(transformed_hash)
|
|
171
171
|
end
|
|
172
172
|
|
|
173
|
-
# Deserializes the data based on type
|
|
174
|
-
# @param string type Data type
|
|
175
|
-
# @param string value Value to be deserialized
|
|
176
|
-
# @return [Object] Deserialized data
|
|
177
|
-
def self._deserialize(type, value)
|
|
178
|
-
case type.to_sym
|
|
179
|
-
when :Time
|
|
180
|
-
Time.parse(value)
|
|
181
|
-
when :Date
|
|
182
|
-
Date.parse(value)
|
|
183
|
-
when :String
|
|
184
|
-
value.to_s
|
|
185
|
-
when :Integer
|
|
186
|
-
value.to_i
|
|
187
|
-
when :Float
|
|
188
|
-
value.to_f
|
|
189
|
-
when :Boolean
|
|
190
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
191
|
-
true
|
|
192
|
-
else
|
|
193
|
-
false
|
|
194
|
-
end
|
|
195
|
-
when :Object
|
|
196
|
-
# generic object (usually a Hash), return directly
|
|
197
|
-
value
|
|
198
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
199
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
200
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
201
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
202
|
-
k_type = Regexp.last_match[:k_type]
|
|
203
|
-
v_type = Regexp.last_match[:v_type]
|
|
204
|
-
{}.tap do |hash|
|
|
205
|
-
value.each do |k, v|
|
|
206
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
207
|
-
end
|
|
208
|
-
end
|
|
209
|
-
else # model
|
|
210
|
-
# models (e.g. Pet) or oneOf
|
|
211
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
212
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
213
|
-
end
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
# Returns the string representation of the object
|
|
217
|
-
# @return [String] String presentation of the object
|
|
218
|
-
def to_s
|
|
219
|
-
to_hash.to_s
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
223
|
-
# @return [Hash] Returns the object in the form of hash
|
|
224
|
-
def to_body
|
|
225
|
-
to_hash
|
|
226
|
-
end
|
|
227
|
-
|
|
228
173
|
# Returns the object in the form of hash
|
|
229
174
|
# @return [Hash] Returns the object in the form of hash
|
|
230
175
|
def to_hash
|
|
@@ -241,24 +186,6 @@ module DaytonaToolboxApiClient
|
|
|
241
186
|
hash
|
|
242
187
|
end
|
|
243
188
|
|
|
244
|
-
# Outputs non-array value in the form of hash
|
|
245
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
246
|
-
# @param [Object] value Any valid value
|
|
247
|
-
# @return [Hash] Returns the value in the form of hash
|
|
248
|
-
def _to_hash(value)
|
|
249
|
-
if value.is_a?(Array)
|
|
250
|
-
value.compact.map { |v| _to_hash(v) }
|
|
251
|
-
elsif value.is_a?(Hash)
|
|
252
|
-
{}.tap do |hash|
|
|
253
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
254
|
-
end
|
|
255
|
-
elsif value.respond_to? :to_hash
|
|
256
|
-
value.to_hash
|
|
257
|
-
else
|
|
258
|
-
value
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
|
|
262
189
|
end
|
|
263
190
|
|
|
264
191
|
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 SessionExecuteResponse
|
|
17
|
+
class SessionExecuteResponse < ApiModelBase
|
|
18
18
|
attr_accessor :cmd_id
|
|
19
19
|
|
|
20
20
|
attr_accessor :exit_code
|
|
@@ -179,61 +179,6 @@ module DaytonaToolboxApiClient
|
|
|
179
179
|
new(transformed_hash)
|
|
180
180
|
end
|
|
181
181
|
|
|
182
|
-
# Deserializes the data based on type
|
|
183
|
-
# @param string type Data type
|
|
184
|
-
# @param string value Value to be deserialized
|
|
185
|
-
# @return [Object] Deserialized data
|
|
186
|
-
def self._deserialize(type, value)
|
|
187
|
-
case type.to_sym
|
|
188
|
-
when :Time
|
|
189
|
-
Time.parse(value)
|
|
190
|
-
when :Date
|
|
191
|
-
Date.parse(value)
|
|
192
|
-
when :String
|
|
193
|
-
value.to_s
|
|
194
|
-
when :Integer
|
|
195
|
-
value.to_i
|
|
196
|
-
when :Float
|
|
197
|
-
value.to_f
|
|
198
|
-
when :Boolean
|
|
199
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
200
|
-
true
|
|
201
|
-
else
|
|
202
|
-
false
|
|
203
|
-
end
|
|
204
|
-
when :Object
|
|
205
|
-
# generic object (usually a Hash), return directly
|
|
206
|
-
value
|
|
207
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
208
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
209
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
210
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
211
|
-
k_type = Regexp.last_match[:k_type]
|
|
212
|
-
v_type = Regexp.last_match[:v_type]
|
|
213
|
-
{}.tap do |hash|
|
|
214
|
-
value.each do |k, v|
|
|
215
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
216
|
-
end
|
|
217
|
-
end
|
|
218
|
-
else # model
|
|
219
|
-
# models (e.g. Pet) or oneOf
|
|
220
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
221
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
# Returns the string representation of the object
|
|
226
|
-
# @return [String] String presentation of the object
|
|
227
|
-
def to_s
|
|
228
|
-
to_hash.to_s
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
232
|
-
# @return [Hash] Returns the object in the form of hash
|
|
233
|
-
def to_body
|
|
234
|
-
to_hash
|
|
235
|
-
end
|
|
236
|
-
|
|
237
182
|
# Returns the object in the form of hash
|
|
238
183
|
# @return [Hash] Returns the object in the form of hash
|
|
239
184
|
def to_hash
|
|
@@ -250,24 +195,6 @@ module DaytonaToolboxApiClient
|
|
|
250
195
|
hash
|
|
251
196
|
end
|
|
252
197
|
|
|
253
|
-
# Outputs non-array value in the form of hash
|
|
254
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
255
|
-
# @param [Object] value Any valid value
|
|
256
|
-
# @return [Hash] Returns the value in the form of hash
|
|
257
|
-
def _to_hash(value)
|
|
258
|
-
if value.is_a?(Array)
|
|
259
|
-
value.compact.map { |v| _to_hash(v) }
|
|
260
|
-
elsif value.is_a?(Hash)
|
|
261
|
-
{}.tap do |hash|
|
|
262
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
263
|
-
end
|
|
264
|
-
elsif value.respond_to? :to_hash
|
|
265
|
-
value.to_hash
|
|
266
|
-
else
|
|
267
|
-
value
|
|
268
|
-
end
|
|
269
|
-
end
|
|
270
|
-
|
|
271
198
|
end
|
|
272
199
|
|
|
273
200
|
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 SessionSendInputRequest
|
|
17
|
+
class SessionSendInputRequest < ApiModelBase
|
|
18
18
|
attr_accessor :data
|
|
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 StartRecordingRequest
|
|
17
|
+
class StartRecordingRequest < ApiModelBase
|
|
18
18
|
attr_accessor :label
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -126,61 +126,6 @@ module DaytonaToolboxApiClient
|
|
|
126
126
|
new(transformed_hash)
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
-
# Deserializes the data based on type
|
|
130
|
-
# @param string type Data type
|
|
131
|
-
# @param string value Value to be deserialized
|
|
132
|
-
# @return [Object] Deserialized data
|
|
133
|
-
def self._deserialize(type, value)
|
|
134
|
-
case type.to_sym
|
|
135
|
-
when :Time
|
|
136
|
-
Time.parse(value)
|
|
137
|
-
when :Date
|
|
138
|
-
Date.parse(value)
|
|
139
|
-
when :String
|
|
140
|
-
value.to_s
|
|
141
|
-
when :Integer
|
|
142
|
-
value.to_i
|
|
143
|
-
when :Float
|
|
144
|
-
value.to_f
|
|
145
|
-
when :Boolean
|
|
146
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
147
|
-
true
|
|
148
|
-
else
|
|
149
|
-
false
|
|
150
|
-
end
|
|
151
|
-
when :Object
|
|
152
|
-
# generic object (usually a Hash), return directly
|
|
153
|
-
value
|
|
154
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
155
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
156
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
157
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
158
|
-
k_type = Regexp.last_match[:k_type]
|
|
159
|
-
v_type = Regexp.last_match[:v_type]
|
|
160
|
-
{}.tap do |hash|
|
|
161
|
-
value.each do |k, v|
|
|
162
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
|
-
else # model
|
|
166
|
-
# models (e.g. Pet) or oneOf
|
|
167
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
168
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
# Returns the string representation of the object
|
|
173
|
-
# @return [String] String presentation of the object
|
|
174
|
-
def to_s
|
|
175
|
-
to_hash.to_s
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
179
|
-
# @return [Hash] Returns the object in the form of hash
|
|
180
|
-
def to_body
|
|
181
|
-
to_hash
|
|
182
|
-
end
|
|
183
|
-
|
|
184
129
|
# Returns the object in the form of hash
|
|
185
130
|
# @return [Hash] Returns the object in the form of hash
|
|
186
131
|
def to_hash
|
|
@@ -197,24 +142,6 @@ module DaytonaToolboxApiClient
|
|
|
197
142
|
hash
|
|
198
143
|
end
|
|
199
144
|
|
|
200
|
-
# Outputs non-array value in the form of hash
|
|
201
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
202
|
-
# @param [Object] value Any valid value
|
|
203
|
-
# @return [Hash] Returns the value in the form of hash
|
|
204
|
-
def _to_hash(value)
|
|
205
|
-
if value.is_a?(Array)
|
|
206
|
-
value.compact.map { |v| _to_hash(v) }
|
|
207
|
-
elsif value.is_a?(Hash)
|
|
208
|
-
{}.tap do |hash|
|
|
209
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
210
|
-
end
|
|
211
|
-
elsif value.respond_to? :to_hash
|
|
212
|
-
value.to_hash
|
|
213
|
-
else
|
|
214
|
-
value
|
|
215
|
-
end
|
|
216
|
-
end
|
|
217
|
-
|
|
218
145
|
end
|
|
219
146
|
|
|
220
147
|
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
|
|
|
@@ -23,9 +23,10 @@ module DaytonaToolboxApiClient
|
|
|
23
23
|
Renamed = "Renamed".freeze
|
|
24
24
|
Copied = "Copied".freeze
|
|
25
25
|
UpdatedButUnmerged = "Updated but unmerged".freeze
|
|
26
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
26
27
|
|
|
27
28
|
def self.all_vars
|
|
28
|
-
@all_vars ||= [Unmodified, Untracked, Modified, Added, Deleted, Renamed, Copied, UpdatedButUnmerged].freeze
|
|
29
|
+
@all_vars ||= [Unmodified, Untracked, Modified, Added, Deleted, Renamed, Copied, UpdatedButUnmerged, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
# Builds the enum from string
|
|
@@ -40,7 +41,7 @@ module DaytonaToolboxApiClient
|
|
|
40
41
|
# @return [String] The enum value
|
|
41
42
|
def build_from_hash(value)
|
|
42
43
|
return value if Status.all_vars.include?(value)
|
|
43
|
-
|
|
44
|
+
UNKNOWN_DEFAULT_OPEN_API
|
|
44
45
|
end
|
|
45
46
|
end
|
|
46
47
|
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 StopRecordingRequest
|
|
17
|
+
class StopRecordingRequest < ApiModelBase
|
|
18
18
|
attr_accessor :id
|
|
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 UserHomeDirResponse
|
|
17
|
+
class UserHomeDirResponse < ApiModelBase
|
|
18
18
|
attr_accessor :dir
|
|
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
|