daytona_toolbox_api_client 0.168.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 ProcessErrorsResponse
17
+ class ProcessErrorsResponse < ApiModelBase
18
18
  attr_accessor :errors
19
19
 
20
20
  attr_accessor :process_name
@@ -135,61 +135,6 @@ module DaytonaToolboxApiClient
135
135
  new(transformed_hash)
136
136
  end
137
137
 
138
- # Deserializes the data based on type
139
- # @param string type Data type
140
- # @param string value Value to be deserialized
141
- # @return [Object] Deserialized data
142
- def self._deserialize(type, value)
143
- case type.to_sym
144
- when :Time
145
- Time.parse(value)
146
- when :Date
147
- Date.parse(value)
148
- when :String
149
- value.to_s
150
- when :Integer
151
- value.to_i
152
- when :Float
153
- value.to_f
154
- when :Boolean
155
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
- true
157
- else
158
- false
159
- end
160
- when :Object
161
- # generic object (usually a Hash), return directly
162
- value
163
- when /\AArray<(?<inner_type>.+)>\z/
164
- inner_type = Regexp.last_match[:inner_type]
165
- value.map { |v| _deserialize(inner_type, v) }
166
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
- k_type = Regexp.last_match[:k_type]
168
- v_type = Regexp.last_match[:v_type]
169
- {}.tap do |hash|
170
- value.each do |k, v|
171
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
- end
173
- end
174
- else # model
175
- # models (e.g. Pet) or oneOf
176
- klass = DaytonaToolboxApiClient.const_get(type)
177
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
- end
179
- end
180
-
181
- # Returns the string representation of the object
182
- # @return [String] String presentation of the object
183
- def to_s
184
- to_hash.to_s
185
- end
186
-
187
- # to_body is an alias to to_hash (backward compatibility)
188
- # @return [Hash] Returns the object in the form of hash
189
- def to_body
190
- to_hash
191
- end
192
-
193
138
  # Returns the object in the form of hash
194
139
  # @return [Hash] Returns the object in the form of hash
195
140
  def to_hash
@@ -206,24 +151,6 @@ module DaytonaToolboxApiClient
206
151
  hash
207
152
  end
208
153
 
209
- # Outputs non-array value in the form of hash
210
- # For object, use to_hash. Otherwise, just return the value
211
- # @param [Object] value Any valid value
212
- # @return [Hash] Returns the value in the form of hash
213
- def _to_hash(value)
214
- if value.is_a?(Array)
215
- value.compact.map { |v| _to_hash(v) }
216
- elsif value.is_a?(Hash)
217
- {}.tap do |hash|
218
- value.each { |k, v| hash[k] = _to_hash(v) }
219
- end
220
- elsif value.respond_to? :to_hash
221
- value.to_hash
222
- else
223
- value
224
- end
225
- end
226
-
227
154
  end
228
155
 
229
156
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v0.0.0-dev
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.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 ProcessLogsResponse
17
+ class ProcessLogsResponse < ApiModelBase
18
18
  attr_accessor :logs
19
19
 
20
20
  attr_accessor :process_name
@@ -135,61 +135,6 @@ module DaytonaToolboxApiClient
135
135
  new(transformed_hash)
136
136
  end
137
137
 
138
- # Deserializes the data based on type
139
- # @param string type Data type
140
- # @param string value Value to be deserialized
141
- # @return [Object] Deserialized data
142
- def self._deserialize(type, value)
143
- case type.to_sym
144
- when :Time
145
- Time.parse(value)
146
- when :Date
147
- Date.parse(value)
148
- when :String
149
- value.to_s
150
- when :Integer
151
- value.to_i
152
- when :Float
153
- value.to_f
154
- when :Boolean
155
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
- true
157
- else
158
- false
159
- end
160
- when :Object
161
- # generic object (usually a Hash), return directly
162
- value
163
- when /\AArray<(?<inner_type>.+)>\z/
164
- inner_type = Regexp.last_match[:inner_type]
165
- value.map { |v| _deserialize(inner_type, v) }
166
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
- k_type = Regexp.last_match[:k_type]
168
- v_type = Regexp.last_match[:v_type]
169
- {}.tap do |hash|
170
- value.each do |k, v|
171
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
- end
173
- end
174
- else # model
175
- # models (e.g. Pet) or oneOf
176
- klass = DaytonaToolboxApiClient.const_get(type)
177
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
- end
179
- end
180
-
181
- # Returns the string representation of the object
182
- # @return [String] String presentation of the object
183
- def to_s
184
- to_hash.to_s
185
- end
186
-
187
- # to_body is an alias to to_hash (backward compatibility)
188
- # @return [Hash] Returns the object in the form of hash
189
- def to_body
190
- to_hash
191
- end
192
-
193
138
  # Returns the object in the form of hash
194
139
  # @return [Hash] Returns the object in the form of hash
195
140
  def to_hash
@@ -206,24 +151,6 @@ module DaytonaToolboxApiClient
206
151
  hash
207
152
  end
208
153
 
209
- # Outputs non-array value in the form of hash
210
- # For object, use to_hash. Otherwise, just return the value
211
- # @param [Object] value Any valid value
212
- # @return [Hash] Returns the value in the form of hash
213
- def _to_hash(value)
214
- if value.is_a?(Array)
215
- value.compact.map { |v| _to_hash(v) }
216
- elsif value.is_a?(Hash)
217
- {}.tap do |hash|
218
- value.each { |k, v| hash[k] = _to_hash(v) }
219
- end
220
- elsif value.respond_to? :to_hash
221
- value.to_hash
222
- else
223
- value
224
- end
225
- end
226
-
227
154
  end
228
155
 
229
156
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v0.0.0-dev
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.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 ProcessRestartResponse
17
+ class ProcessRestartResponse < ApiModelBase
18
18
  attr_accessor :message
19
19
 
20
20
  attr_accessor :process_name
@@ -135,61 +135,6 @@ module DaytonaToolboxApiClient
135
135
  new(transformed_hash)
136
136
  end
137
137
 
138
- # Deserializes the data based on type
139
- # @param string type Data type
140
- # @param string value Value to be deserialized
141
- # @return [Object] Deserialized data
142
- def self._deserialize(type, value)
143
- case type.to_sym
144
- when :Time
145
- Time.parse(value)
146
- when :Date
147
- Date.parse(value)
148
- when :String
149
- value.to_s
150
- when :Integer
151
- value.to_i
152
- when :Float
153
- value.to_f
154
- when :Boolean
155
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
- true
157
- else
158
- false
159
- end
160
- when :Object
161
- # generic object (usually a Hash), return directly
162
- value
163
- when /\AArray<(?<inner_type>.+)>\z/
164
- inner_type = Regexp.last_match[:inner_type]
165
- value.map { |v| _deserialize(inner_type, v) }
166
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
- k_type = Regexp.last_match[:k_type]
168
- v_type = Regexp.last_match[:v_type]
169
- {}.tap do |hash|
170
- value.each do |k, v|
171
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
- end
173
- end
174
- else # model
175
- # models (e.g. Pet) or oneOf
176
- klass = DaytonaToolboxApiClient.const_get(type)
177
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
- end
179
- end
180
-
181
- # Returns the string representation of the object
182
- # @return [String] String presentation of the object
183
- def to_s
184
- to_hash.to_s
185
- end
186
-
187
- # to_body is an alias to to_hash (backward compatibility)
188
- # @return [Hash] Returns the object in the form of hash
189
- def to_body
190
- to_hash
191
- end
192
-
193
138
  # Returns the object in the form of hash
194
139
  # @return [Hash] Returns the object in the form of hash
195
140
  def to_hash
@@ -206,24 +151,6 @@ module DaytonaToolboxApiClient
206
151
  hash
207
152
  end
208
153
 
209
- # Outputs non-array value in the form of hash
210
- # For object, use to_hash. Otherwise, just return the value
211
- # @param [Object] value Any valid value
212
- # @return [Hash] Returns the value in the form of hash
213
- def _to_hash(value)
214
- if value.is_a?(Array)
215
- value.compact.map { |v| _to_hash(v) }
216
- elsif value.is_a?(Hash)
217
- {}.tap do |hash|
218
- value.each { |k, v| hash[k] = _to_hash(v) }
219
- end
220
- elsif value.respond_to? :to_hash
221
- value.to_hash
222
- else
223
- value
224
- end
225
- end
226
-
227
154
  end
228
155
 
229
156
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v0.0.0-dev
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.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 ProcessStatus
17
+ class ProcessStatus < ApiModelBase
18
18
  attr_accessor :auto_restart
19
19
 
20
20
  attr_accessor :pid
@@ -153,61 +153,6 @@ module DaytonaToolboxApiClient
153
153
  new(transformed_hash)
154
154
  end
155
155
 
156
- # Deserializes the data based on type
157
- # @param string type Data type
158
- # @param string value Value to be deserialized
159
- # @return [Object] Deserialized data
160
- def self._deserialize(type, value)
161
- case type.to_sym
162
- when :Time
163
- Time.parse(value)
164
- when :Date
165
- Date.parse(value)
166
- when :String
167
- value.to_s
168
- when :Integer
169
- value.to_i
170
- when :Float
171
- value.to_f
172
- when :Boolean
173
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
174
- true
175
- else
176
- false
177
- end
178
- when :Object
179
- # generic object (usually a Hash), return directly
180
- value
181
- when /\AArray<(?<inner_type>.+)>\z/
182
- inner_type = Regexp.last_match[:inner_type]
183
- value.map { |v| _deserialize(inner_type, v) }
184
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
185
- k_type = Regexp.last_match[:k_type]
186
- v_type = Regexp.last_match[:v_type]
187
- {}.tap do |hash|
188
- value.each do |k, v|
189
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
190
- end
191
- end
192
- else # model
193
- # models (e.g. Pet) or oneOf
194
- klass = DaytonaToolboxApiClient.const_get(type)
195
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
196
- end
197
- end
198
-
199
- # Returns the string representation of the object
200
- # @return [String] String presentation of the object
201
- def to_s
202
- to_hash.to_s
203
- end
204
-
205
- # to_body is an alias to to_hash (backward compatibility)
206
- # @return [Hash] Returns the object in the form of hash
207
- def to_body
208
- to_hash
209
- end
210
-
211
156
  # Returns the object in the form of hash
212
157
  # @return [Hash] Returns the object in the form of hash
213
158
  def to_hash
@@ -224,24 +169,6 @@ module DaytonaToolboxApiClient
224
169
  hash
225
170
  end
226
171
 
227
- # Outputs non-array value in the form of hash
228
- # For object, use to_hash. Otherwise, just return the value
229
- # @param [Object] value Any valid value
230
- # @return [Hash] Returns the value in the form of hash
231
- def _to_hash(value)
232
- if value.is_a?(Array)
233
- value.compact.map { |v| _to_hash(v) }
234
- elsif value.is_a?(Hash)
235
- {}.tap do |hash|
236
- value.each { |k, v| hash[k] = _to_hash(v) }
237
- end
238
- elsif value.respond_to? :to_hash
239
- value.to_hash
240
- else
241
- value
242
- end
243
- end
244
-
245
172
  end
246
173
 
247
174
  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 ProcessStatusResponse
17
+ class ProcessStatusResponse < ApiModelBase
18
18
  attr_accessor :process_name
19
19
 
20
20
  attr_accessor :running
@@ -135,61 +135,6 @@ module DaytonaToolboxApiClient
135
135
  new(transformed_hash)
136
136
  end
137
137
 
138
- # Deserializes the data based on type
139
- # @param string type Data type
140
- # @param string value Value to be deserialized
141
- # @return [Object] Deserialized data
142
- def self._deserialize(type, value)
143
- case type.to_sym
144
- when :Time
145
- Time.parse(value)
146
- when :Date
147
- Date.parse(value)
148
- when :String
149
- value.to_s
150
- when :Integer
151
- value.to_i
152
- when :Float
153
- value.to_f
154
- when :Boolean
155
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
- true
157
- else
158
- false
159
- end
160
- when :Object
161
- # generic object (usually a Hash), return directly
162
- value
163
- when /\AArray<(?<inner_type>.+)>\z/
164
- inner_type = Regexp.last_match[:inner_type]
165
- value.map { |v| _deserialize(inner_type, v) }
166
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
- k_type = Regexp.last_match[:k_type]
168
- v_type = Regexp.last_match[:v_type]
169
- {}.tap do |hash|
170
- value.each do |k, v|
171
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
- end
173
- end
174
- else # model
175
- # models (e.g. Pet) or oneOf
176
- klass = DaytonaToolboxApiClient.const_get(type)
177
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
- end
179
- end
180
-
181
- # Returns the string representation of the object
182
- # @return [String] String presentation of the object
183
- def to_s
184
- to_hash.to_s
185
- end
186
-
187
- # to_body is an alias to to_hash (backward compatibility)
188
- # @return [Hash] Returns the object in the form of hash
189
- def to_body
190
- to_hash
191
- end
192
-
193
138
  # Returns the object in the form of hash
194
139
  # @return [Hash] Returns the object in the form of hash
195
140
  def to_hash
@@ -206,24 +151,6 @@ module DaytonaToolboxApiClient
206
151
  hash
207
152
  end
208
153
 
209
- # Outputs non-array value in the form of hash
210
- # For object, use to_hash. Otherwise, just return the value
211
- # @param [Object] value Any valid value
212
- # @return [Hash] Returns the value in the form of hash
213
- def _to_hash(value)
214
- if value.is_a?(Array)
215
- value.compact.map { |v| _to_hash(v) }
216
- elsif value.is_a?(Hash)
217
- {}.tap do |hash|
218
- value.each { |k, v| hash[k] = _to_hash(v) }
219
- end
220
- elsif value.respond_to? :to_hash
221
- value.to_hash
222
- else
223
- value
224
- end
225
- end
226
-
227
154
  end
228
155
 
229
156
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v0.0.0-dev
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.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 PtyCreateRequest
17
+ class PtyCreateRequest < ApiModelBase
18
18
  attr_accessor :cols
19
19
 
20
20
  attr_accessor :cwd
@@ -174,61 +174,6 @@ module DaytonaToolboxApiClient
174
174
  new(transformed_hash)
175
175
  end
176
176
 
177
- # Deserializes the data based on type
178
- # @param string type Data type
179
- # @param string value Value to be deserialized
180
- # @return [Object] Deserialized data
181
- def self._deserialize(type, value)
182
- case type.to_sym
183
- when :Time
184
- Time.parse(value)
185
- when :Date
186
- Date.parse(value)
187
- when :String
188
- value.to_s
189
- when :Integer
190
- value.to_i
191
- when :Float
192
- value.to_f
193
- when :Boolean
194
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
195
- true
196
- else
197
- false
198
- end
199
- when :Object
200
- # generic object (usually a Hash), return directly
201
- value
202
- when /\AArray<(?<inner_type>.+)>\z/
203
- inner_type = Regexp.last_match[:inner_type]
204
- value.map { |v| _deserialize(inner_type, v) }
205
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
206
- k_type = Regexp.last_match[:k_type]
207
- v_type = Regexp.last_match[:v_type]
208
- {}.tap do |hash|
209
- value.each do |k, v|
210
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
211
- end
212
- end
213
- else # model
214
- # models (e.g. Pet) or oneOf
215
- klass = DaytonaToolboxApiClient.const_get(type)
216
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
217
- end
218
- end
219
-
220
- # Returns the string representation of the object
221
- # @return [String] String presentation of the object
222
- def to_s
223
- to_hash.to_s
224
- end
225
-
226
- # to_body is an alias to to_hash (backward compatibility)
227
- # @return [Hash] Returns the object in the form of hash
228
- def to_body
229
- to_hash
230
- end
231
-
232
177
  # Returns the object in the form of hash
233
178
  # @return [Hash] Returns the object in the form of hash
234
179
  def to_hash
@@ -245,24 +190,6 @@ module DaytonaToolboxApiClient
245
190
  hash
246
191
  end
247
192
 
248
- # Outputs non-array value in the form of hash
249
- # For object, use to_hash. Otherwise, just return the value
250
- # @param [Object] value Any valid value
251
- # @return [Hash] Returns the value in the form of hash
252
- def _to_hash(value)
253
- if value.is_a?(Array)
254
- value.compact.map { |v| _to_hash(v) }
255
- elsif value.is_a?(Hash)
256
- {}.tap do |hash|
257
- value.each { |k, v| hash[k] = _to_hash(v) }
258
- end
259
- elsif value.respond_to? :to_hash
260
- value.to_hash
261
- else
262
- value
263
- end
264
- end
265
-
266
193
  end
267
194
 
268
195
  end