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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +1 -0
  3. data/.openapi-generator/VERSION +1 -1
  4. data/lib/daytona_toolbox_api_client/api/computer_use_api.rb +1 -1
  5. data/lib/daytona_toolbox_api_client/api/file_system_api.rb +1 -1
  6. data/lib/daytona_toolbox_api_client/api/git_api.rb +1 -1
  7. data/lib/daytona_toolbox_api_client/api/info_api.rb +1 -1
  8. data/lib/daytona_toolbox_api_client/api/interpreter_api.rb +1 -1
  9. data/lib/daytona_toolbox_api_client/api/lsp_api.rb +1 -1
  10. data/lib/daytona_toolbox_api_client/api/port_api.rb +1 -1
  11. data/lib/daytona_toolbox_api_client/api/process_api.rb +1 -1
  12. data/lib/daytona_toolbox_api_client/api/server_api.rb +1 -1
  13. data/lib/daytona_toolbox_api_client/api_client.rb +7 -3
  14. data/lib/daytona_toolbox_api_client/api_error.rb +1 -1
  15. data/lib/daytona_toolbox_api_client/api_model_base.rb +88 -0
  16. data/lib/daytona_toolbox_api_client/configuration.rb +1 -1
  17. data/lib/daytona_toolbox_api_client/models/chart.rb +2 -75
  18. data/lib/daytona_toolbox_api_client/models/chart_element.rb +2 -75
  19. data/lib/daytona_toolbox_api_client/models/code_run_artifacts.rb +2 -75
  20. data/lib/daytona_toolbox_api_client/models/code_run_request.rb +2 -75
  21. data/lib/daytona_toolbox_api_client/models/code_run_response.rb +2 -75
  22. data/lib/daytona_toolbox_api_client/models/command.rb +2 -75
  23. data/lib/daytona_toolbox_api_client/models/completion_context.rb +2 -75
  24. data/lib/daytona_toolbox_api_client/models/completion_item.rb +2 -75
  25. data/lib/daytona_toolbox_api_client/models/completion_list.rb +2 -75
  26. data/lib/daytona_toolbox_api_client/models/computer_use_start_response.rb +2 -75
  27. data/lib/daytona_toolbox_api_client/models/computer_use_status_response.rb +2 -75
  28. data/lib/daytona_toolbox_api_client/models/computer_use_stop_response.rb +2 -75
  29. data/lib/daytona_toolbox_api_client/models/create_context_request.rb +2 -75
  30. data/lib/daytona_toolbox_api_client/models/create_session_request.rb +2 -75
  31. data/lib/daytona_toolbox_api_client/models/display_info.rb +2 -75
  32. data/lib/daytona_toolbox_api_client/models/display_info_response.rb +2 -75
  33. data/lib/daytona_toolbox_api_client/models/execute_request.rb +2 -75
  34. data/lib/daytona_toolbox_api_client/models/execute_response.rb +2 -75
  35. data/lib/daytona_toolbox_api_client/models/file_info.rb +2 -75
  36. data/lib/daytona_toolbox_api_client/models/file_status.rb +2 -75
  37. data/lib/daytona_toolbox_api_client/models/files_download_request.rb +2 -75
  38. data/lib/daytona_toolbox_api_client/models/git_add_request.rb +2 -75
  39. data/lib/daytona_toolbox_api_client/models/git_branch_request.rb +2 -75
  40. data/lib/daytona_toolbox_api_client/models/git_checkout_request.rb +2 -75
  41. data/lib/daytona_toolbox_api_client/models/git_clone_request.rb +2 -75
  42. data/lib/daytona_toolbox_api_client/models/git_commit_info.rb +18 -91
  43. data/lib/daytona_toolbox_api_client/models/git_commit_request.rb +2 -75
  44. data/lib/daytona_toolbox_api_client/models/git_commit_response.rb +18 -91
  45. data/lib/daytona_toolbox_api_client/models/git_delete_branch_request.rb +2 -75
  46. data/lib/daytona_toolbox_api_client/models/git_repo_request.rb +2 -75
  47. data/lib/daytona_toolbox_api_client/models/git_status.rb +2 -75
  48. data/lib/daytona_toolbox_api_client/models/initialize_request.rb +2 -75
  49. data/lib/daytona_toolbox_api_client/models/interpreter_context.rb +2 -75
  50. data/lib/daytona_toolbox_api_client/models/is_port_in_use_response.rb +2 -75
  51. data/lib/daytona_toolbox_api_client/models/keyboard_hotkey_request.rb +2 -75
  52. data/lib/daytona_toolbox_api_client/models/keyboard_press_request.rb +2 -75
  53. data/lib/daytona_toolbox_api_client/models/keyboard_type_request.rb +2 -75
  54. data/lib/daytona_toolbox_api_client/models/list_branch_response.rb +2 -75
  55. data/lib/daytona_toolbox_api_client/models/list_contexts_response.rb +2 -75
  56. data/lib/daytona_toolbox_api_client/models/list_recordings_response.rb +2 -75
  57. data/lib/daytona_toolbox_api_client/models/lsp_completion_params.rb +2 -75
  58. data/lib/daytona_toolbox_api_client/models/lsp_document_request.rb +2 -75
  59. data/lib/daytona_toolbox_api_client/models/lsp_location.rb +2 -75
  60. data/lib/daytona_toolbox_api_client/models/lsp_position.rb +2 -75
  61. data/lib/daytona_toolbox_api_client/models/lsp_range.rb +2 -75
  62. data/lib/daytona_toolbox_api_client/models/lsp_server_request.rb +2 -75
  63. data/lib/daytona_toolbox_api_client/models/lsp_symbol.rb +2 -75
  64. data/lib/daytona_toolbox_api_client/models/match.rb +2 -75
  65. data/lib/daytona_toolbox_api_client/models/mouse_click_request.rb +2 -75
  66. data/lib/daytona_toolbox_api_client/models/mouse_click_response.rb +2 -75
  67. data/lib/daytona_toolbox_api_client/models/mouse_drag_request.rb +2 -75
  68. data/lib/daytona_toolbox_api_client/models/mouse_drag_response.rb +2 -75
  69. data/lib/daytona_toolbox_api_client/models/mouse_move_request.rb +2 -75
  70. data/lib/daytona_toolbox_api_client/models/mouse_position_response.rb +2 -75
  71. data/lib/daytona_toolbox_api_client/models/mouse_scroll_request.rb +2 -75
  72. data/lib/daytona_toolbox_api_client/models/port_list.rb +2 -75
  73. data/lib/daytona_toolbox_api_client/models/position.rb +2 -75
  74. data/lib/daytona_toolbox_api_client/models/process_errors_response.rb +2 -75
  75. data/lib/daytona_toolbox_api_client/models/process_logs_response.rb +2 -75
  76. data/lib/daytona_toolbox_api_client/models/process_restart_response.rb +2 -75
  77. data/lib/daytona_toolbox_api_client/models/process_status.rb +2 -75
  78. data/lib/daytona_toolbox_api_client/models/process_status_response.rb +2 -75
  79. data/lib/daytona_toolbox_api_client/models/pty_create_request.rb +2 -75
  80. data/lib/daytona_toolbox_api_client/models/pty_create_response.rb +2 -75
  81. data/lib/daytona_toolbox_api_client/models/pty_list_response.rb +2 -75
  82. data/lib/daytona_toolbox_api_client/models/pty_resize_request.rb +2 -75
  83. data/lib/daytona_toolbox_api_client/models/pty_session_info.rb +2 -75
  84. data/lib/daytona_toolbox_api_client/models/recording.rb +2 -75
  85. data/lib/daytona_toolbox_api_client/models/replace_request.rb +2 -75
  86. data/lib/daytona_toolbox_api_client/models/replace_result.rb +2 -75
  87. data/lib/daytona_toolbox_api_client/models/screenshot_response.rb +2 -75
  88. data/lib/daytona_toolbox_api_client/models/scroll_response.rb +2 -75
  89. data/lib/daytona_toolbox_api_client/models/search_files_response.rb +2 -75
  90. data/lib/daytona_toolbox_api_client/models/session.rb +2 -75
  91. data/lib/daytona_toolbox_api_client/models/session_command_logs_response.rb +2 -75
  92. data/lib/daytona_toolbox_api_client/models/session_execute_request.rb +2 -75
  93. data/lib/daytona_toolbox_api_client/models/session_execute_response.rb +2 -75
  94. data/lib/daytona_toolbox_api_client/models/session_send_input_request.rb +2 -75
  95. data/lib/daytona_toolbox_api_client/models/start_recording_request.rb +2 -75
  96. data/lib/daytona_toolbox_api_client/models/status.rb +4 -3
  97. data/lib/daytona_toolbox_api_client/models/stop_recording_request.rb +2 -75
  98. data/lib/daytona_toolbox_api_client/models/user_home_dir_response.rb +2 -75
  99. data/lib/daytona_toolbox_api_client/models/window_info.rb +2 -75
  100. data/lib/daytona_toolbox_api_client/models/windows_response.rb +2 -75
  101. data/lib/daytona_toolbox_api_client/models/work_dir_response.rb +2 -75
  102. data/lib/daytona_toolbox_api_client/version.rb +2 -2
  103. data/lib/daytona_toolbox_api_client.rb +2 -1
  104. data/project.json +6 -2
  105. 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.12.0
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 CodeRunResponse
17
+ class CodeRunResponse < ApiModelBase
18
18
  attr_accessor :artifacts
19
19
 
20
20
  attr_accessor :exit_code
@@ -144,61 +144,6 @@ module DaytonaToolboxApiClient
144
144
  new(transformed_hash)
145
145
  end
146
146
 
147
- # Deserializes the data based on type
148
- # @param string type Data type
149
- # @param string value Value to be deserialized
150
- # @return [Object] Deserialized data
151
- def self._deserialize(type, value)
152
- case type.to_sym
153
- when :Time
154
- Time.parse(value)
155
- when :Date
156
- Date.parse(value)
157
- when :String
158
- value.to_s
159
- when :Integer
160
- value.to_i
161
- when :Float
162
- value.to_f
163
- when :Boolean
164
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
- true
166
- else
167
- false
168
- end
169
- when :Object
170
- # generic object (usually a Hash), return directly
171
- value
172
- when /\AArray<(?<inner_type>.+)>\z/
173
- inner_type = Regexp.last_match[:inner_type]
174
- value.map { |v| _deserialize(inner_type, v) }
175
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
- k_type = Regexp.last_match[:k_type]
177
- v_type = Regexp.last_match[:v_type]
178
- {}.tap do |hash|
179
- value.each do |k, v|
180
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
- end
182
- end
183
- else # model
184
- # models (e.g. Pet) or oneOf
185
- klass = DaytonaToolboxApiClient.const_get(type)
186
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
187
- end
188
- end
189
-
190
- # Returns the string representation of the object
191
- # @return [String] String presentation of the object
192
- def to_s
193
- to_hash.to_s
194
- end
195
-
196
- # to_body is an alias to to_hash (backward compatibility)
197
- # @return [Hash] Returns the object in the form of hash
198
- def to_body
199
- to_hash
200
- end
201
-
202
147
  # Returns the object in the form of hash
203
148
  # @return [Hash] Returns the object in the form of hash
204
149
  def to_hash
@@ -215,24 +160,6 @@ module DaytonaToolboxApiClient
215
160
  hash
216
161
  end
217
162
 
218
- # Outputs non-array value in the form of hash
219
- # For object, use to_hash. Otherwise, just return the value
220
- # @param [Object] value Any valid value
221
- # @return [Hash] Returns the value in the form of hash
222
- def _to_hash(value)
223
- if value.is_a?(Array)
224
- value.compact.map { |v| _to_hash(v) }
225
- elsif value.is_a?(Hash)
226
- {}.tap do |hash|
227
- value.each { |k, v| hash[k] = _to_hash(v) }
228
- end
229
- elsif value.respond_to? :to_hash
230
- value.to_hash
231
- else
232
- value
233
- end
234
- end
235
-
236
163
  end
237
164
 
238
165
  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.12.0
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 Command
17
+ class Command < ApiModelBase
18
18
  attr_accessor :command
19
19
 
20
20
  attr_accessor :exit_code
@@ -178,61 +178,6 @@ module DaytonaToolboxApiClient
178
178
  new(transformed_hash)
179
179
  end
180
180
 
181
- # Deserializes the data based on type
182
- # @param string type Data type
183
- # @param string value Value to be deserialized
184
- # @return [Object] Deserialized data
185
- def self._deserialize(type, value)
186
- case type.to_sym
187
- when :Time
188
- Time.parse(value)
189
- when :Date
190
- Date.parse(value)
191
- when :String
192
- value.to_s
193
- when :Integer
194
- value.to_i
195
- when :Float
196
- value.to_f
197
- when :Boolean
198
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
199
- true
200
- else
201
- false
202
- end
203
- when :Object
204
- # generic object (usually a Hash), return directly
205
- value
206
- when /\AArray<(?<inner_type>.+)>\z/
207
- inner_type = Regexp.last_match[:inner_type]
208
- value.map { |v| _deserialize(inner_type, v) }
209
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
210
- k_type = Regexp.last_match[:k_type]
211
- v_type = Regexp.last_match[:v_type]
212
- {}.tap do |hash|
213
- value.each do |k, v|
214
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
215
- end
216
- end
217
- else # model
218
- # models (e.g. Pet) or oneOf
219
- klass = DaytonaToolboxApiClient.const_get(type)
220
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
221
- end
222
- end
223
-
224
- # Returns the string representation of the object
225
- # @return [String] String presentation of the object
226
- def to_s
227
- to_hash.to_s
228
- end
229
-
230
- # to_body is an alias to to_hash (backward compatibility)
231
- # @return [Hash] Returns the object in the form of hash
232
- def to_body
233
- to_hash
234
- end
235
-
236
181
  # Returns the object in the form of hash
237
182
  # @return [Hash] Returns the object in the form of hash
238
183
  def to_hash
@@ -249,24 +194,6 @@ module DaytonaToolboxApiClient
249
194
  hash
250
195
  end
251
196
 
252
- # Outputs non-array value in the form of hash
253
- # For object, use to_hash. Otherwise, just return the value
254
- # @param [Object] value Any valid value
255
- # @return [Hash] Returns the value in the form of hash
256
- def _to_hash(value)
257
- if value.is_a?(Array)
258
- value.compact.map { |v| _to_hash(v) }
259
- elsif value.is_a?(Hash)
260
- {}.tap do |hash|
261
- value.each { |k, v| hash[k] = _to_hash(v) }
262
- end
263
- elsif value.respond_to? :to_hash
264
- value.to_hash
265
- else
266
- value
267
- end
268
- end
269
-
270
197
  end
271
198
 
272
199
  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.12.0
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 CompletionContext
17
+ class CompletionContext < ApiModelBase
18
18
  attr_accessor :trigger_character
19
19
 
20
20
  attr_accessor :trigger_kind
@@ -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.12.0
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 CompletionItem
17
+ class CompletionItem < ApiModelBase
18
18
  attr_accessor :detail
19
19
 
20
20
  attr_accessor :documentation
@@ -197,61 +197,6 @@ module DaytonaToolboxApiClient
197
197
  new(transformed_hash)
198
198
  end
199
199
 
200
- # Deserializes the data based on type
201
- # @param string type Data type
202
- # @param string value Value to be deserialized
203
- # @return [Object] Deserialized data
204
- def self._deserialize(type, value)
205
- case type.to_sym
206
- when :Time
207
- Time.parse(value)
208
- when :Date
209
- Date.parse(value)
210
- when :String
211
- value.to_s
212
- when :Integer
213
- value.to_i
214
- when :Float
215
- value.to_f
216
- when :Boolean
217
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
218
- true
219
- else
220
- false
221
- end
222
- when :Object
223
- # generic object (usually a Hash), return directly
224
- value
225
- when /\AArray<(?<inner_type>.+)>\z/
226
- inner_type = Regexp.last_match[:inner_type]
227
- value.map { |v| _deserialize(inner_type, v) }
228
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
229
- k_type = Regexp.last_match[:k_type]
230
- v_type = Regexp.last_match[:v_type]
231
- {}.tap do |hash|
232
- value.each do |k, v|
233
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
234
- end
235
- end
236
- else # model
237
- # models (e.g. Pet) or oneOf
238
- klass = DaytonaToolboxApiClient.const_get(type)
239
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
240
- end
241
- end
242
-
243
- # Returns the string representation of the object
244
- # @return [String] String presentation of the object
245
- def to_s
246
- to_hash.to_s
247
- end
248
-
249
- # to_body is an alias to to_hash (backward compatibility)
250
- # @return [Hash] Returns the object in the form of hash
251
- def to_body
252
- to_hash
253
- end
254
-
255
200
  # Returns the object in the form of hash
256
201
  # @return [Hash] Returns the object in the form of hash
257
202
  def to_hash
@@ -268,24 +213,6 @@ module DaytonaToolboxApiClient
268
213
  hash
269
214
  end
270
215
 
271
- # Outputs non-array value in the form of hash
272
- # For object, use to_hash. Otherwise, just return the value
273
- # @param [Object] value Any valid value
274
- # @return [Hash] Returns the value in the form of hash
275
- def _to_hash(value)
276
- if value.is_a?(Array)
277
- value.compact.map { |v| _to_hash(v) }
278
- elsif value.is_a?(Hash)
279
- {}.tap do |hash|
280
- value.each { |k, v| hash[k] = _to_hash(v) }
281
- end
282
- elsif value.respond_to? :to_hash
283
- value.to_hash
284
- else
285
- value
286
- end
287
- end
288
-
289
216
  end
290
217
 
291
218
  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.12.0
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 CompletionList
17
+ class CompletionList < ApiModelBase
18
18
  attr_accessor :is_incomplete
19
19
 
20
20
  attr_accessor :items
@@ -171,61 +171,6 @@ module DaytonaToolboxApiClient
171
171
  new(transformed_hash)
172
172
  end
173
173
 
174
- # Deserializes the data based on type
175
- # @param string type Data type
176
- # @param string value Value to be deserialized
177
- # @return [Object] Deserialized data
178
- def self._deserialize(type, value)
179
- case type.to_sym
180
- when :Time
181
- Time.parse(value)
182
- when :Date
183
- Date.parse(value)
184
- when :String
185
- value.to_s
186
- when :Integer
187
- value.to_i
188
- when :Float
189
- value.to_f
190
- when :Boolean
191
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
192
- true
193
- else
194
- false
195
- end
196
- when :Object
197
- # generic object (usually a Hash), return directly
198
- value
199
- when /\AArray<(?<inner_type>.+)>\z/
200
- inner_type = Regexp.last_match[:inner_type]
201
- value.map { |v| _deserialize(inner_type, v) }
202
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
203
- k_type = Regexp.last_match[:k_type]
204
- v_type = Regexp.last_match[:v_type]
205
- {}.tap do |hash|
206
- value.each do |k, v|
207
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
- end
209
- end
210
- else # model
211
- # models (e.g. Pet) or oneOf
212
- klass = DaytonaToolboxApiClient.const_get(type)
213
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
214
- end
215
- end
216
-
217
- # Returns the string representation of the object
218
- # @return [String] String presentation of the object
219
- def to_s
220
- to_hash.to_s
221
- end
222
-
223
- # to_body is an alias to to_hash (backward compatibility)
224
- # @return [Hash] Returns the object in the form of hash
225
- def to_body
226
- to_hash
227
- end
228
-
229
174
  # Returns the object in the form of hash
230
175
  # @return [Hash] Returns the object in the form of hash
231
176
  def to_hash
@@ -242,24 +187,6 @@ module DaytonaToolboxApiClient
242
187
  hash
243
188
  end
244
189
 
245
- # Outputs non-array value in the form of hash
246
- # For object, use to_hash. Otherwise, just return the value
247
- # @param [Object] value Any valid value
248
- # @return [Hash] Returns the value in the form of hash
249
- def _to_hash(value)
250
- if value.is_a?(Array)
251
- value.compact.map { |v| _to_hash(v) }
252
- elsif value.is_a?(Hash)
253
- {}.tap do |hash|
254
- value.each { |k, v| hash[k] = _to_hash(v) }
255
- end
256
- elsif value.respond_to? :to_hash
257
- value.to_hash
258
- else
259
- value
260
- end
261
- end
262
-
263
190
  end
264
191
 
265
192
  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.12.0
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 ComputerUseStartResponse
17
+ class ComputerUseStartResponse < ApiModelBase
18
18
  attr_accessor :message
19
19
 
20
20
  attr_accessor :status
@@ -137,61 +137,6 @@ module DaytonaToolboxApiClient
137
137
  new(transformed_hash)
138
138
  end
139
139
 
140
- # Deserializes the data based on type
141
- # @param string type Data type
142
- # @param string value Value to be deserialized
143
- # @return [Object] Deserialized data
144
- def self._deserialize(type, value)
145
- case type.to_sym
146
- when :Time
147
- Time.parse(value)
148
- when :Date
149
- Date.parse(value)
150
- when :String
151
- value.to_s
152
- when :Integer
153
- value.to_i
154
- when :Float
155
- value.to_f
156
- when :Boolean
157
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
158
- true
159
- else
160
- false
161
- end
162
- when :Object
163
- # generic object (usually a Hash), return directly
164
- value
165
- when /\AArray<(?<inner_type>.+)>\z/
166
- inner_type = Regexp.last_match[:inner_type]
167
- value.map { |v| _deserialize(inner_type, v) }
168
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
169
- k_type = Regexp.last_match[:k_type]
170
- v_type = Regexp.last_match[:v_type]
171
- {}.tap do |hash|
172
- value.each do |k, v|
173
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
174
- end
175
- end
176
- else # model
177
- # models (e.g. Pet) or oneOf
178
- klass = DaytonaToolboxApiClient.const_get(type)
179
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
180
- end
181
- end
182
-
183
- # Returns the string representation of the object
184
- # @return [String] String presentation of the object
185
- def to_s
186
- to_hash.to_s
187
- end
188
-
189
- # to_body is an alias to to_hash (backward compatibility)
190
- # @return [Hash] Returns the object in the form of hash
191
- def to_body
192
- to_hash
193
- end
194
-
195
140
  # Returns the object in the form of hash
196
141
  # @return [Hash] Returns the object in the form of hash
197
142
  def to_hash
@@ -208,24 +153,6 @@ module DaytonaToolboxApiClient
208
153
  hash
209
154
  end
210
155
 
211
- # Outputs non-array value in the form of hash
212
- # For object, use to_hash. Otherwise, just return the value
213
- # @param [Object] value Any valid value
214
- # @return [Hash] Returns the value in the form of hash
215
- def _to_hash(value)
216
- if value.is_a?(Array)
217
- value.compact.map { |v| _to_hash(v) }
218
- elsif value.is_a?(Hash)
219
- {}.tap do |hash|
220
- value.each { |k, v| hash[k] = _to_hash(v) }
221
- end
222
- elsif value.respond_to? :to_hash
223
- value.to_hash
224
- else
225
- value
226
- end
227
- end
228
-
229
156
  end
230
157
 
231
158
  end