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 ComputerUseStatusResponse
17
+ class ComputerUseStatusResponse < ApiModelBase
18
18
  attr_accessor :status
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.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 ComputerUseStopResponse
17
+ class ComputerUseStopResponse < 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
@@ -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 CreateContextRequest
17
+ class CreateContextRequest < ApiModelBase
18
18
  attr_accessor :cwd
19
19
 
20
20
  attr_accessor :language
@@ -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 CreateSessionRequest
17
+ class CreateSessionRequest < ApiModelBase
18
18
  attr_accessor :session_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.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 DisplayInfo
17
+ class DisplayInfo < ApiModelBase
18
18
  attr_accessor :height
19
19
 
20
20
  attr_accessor :id
@@ -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 DisplayInfoResponse
17
+ class DisplayInfoResponse < ApiModelBase
18
18
  attr_accessor :displays
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -128,61 +128,6 @@ module DaytonaToolboxApiClient
128
128
  new(transformed_hash)
129
129
  end
130
130
 
131
- # Deserializes the data based on type
132
- # @param string type Data type
133
- # @param string value Value to be deserialized
134
- # @return [Object] Deserialized data
135
- def self._deserialize(type, value)
136
- case type.to_sym
137
- when :Time
138
- Time.parse(value)
139
- when :Date
140
- Date.parse(value)
141
- when :String
142
- value.to_s
143
- when :Integer
144
- value.to_i
145
- when :Float
146
- value.to_f
147
- when :Boolean
148
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
149
- true
150
- else
151
- false
152
- end
153
- when :Object
154
- # generic object (usually a Hash), return directly
155
- value
156
- when /\AArray<(?<inner_type>.+)>\z/
157
- inner_type = Regexp.last_match[:inner_type]
158
- value.map { |v| _deserialize(inner_type, v) }
159
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
160
- k_type = Regexp.last_match[:k_type]
161
- v_type = Regexp.last_match[:v_type]
162
- {}.tap do |hash|
163
- value.each do |k, v|
164
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
165
- end
166
- end
167
- else # model
168
- # models (e.g. Pet) or oneOf
169
- klass = DaytonaToolboxApiClient.const_get(type)
170
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
171
- end
172
- end
173
-
174
- # Returns the string representation of the object
175
- # @return [String] String presentation of the object
176
- def to_s
177
- to_hash.to_s
178
- end
179
-
180
- # to_body is an alias to to_hash (backward compatibility)
181
- # @return [Hash] Returns the object in the form of hash
182
- def to_body
183
- to_hash
184
- end
185
-
186
131
  # Returns the object in the form of hash
187
132
  # @return [Hash] Returns the object in the form of hash
188
133
  def to_hash
@@ -199,24 +144,6 @@ module DaytonaToolboxApiClient
199
144
  hash
200
145
  end
201
146
 
202
- # Outputs non-array value in the form of hash
203
- # For object, use to_hash. Otherwise, just return the value
204
- # @param [Object] value Any valid value
205
- # @return [Hash] Returns the value in the form of hash
206
- def _to_hash(value)
207
- if value.is_a?(Array)
208
- value.compact.map { |v| _to_hash(v) }
209
- elsif value.is_a?(Hash)
210
- {}.tap do |hash|
211
- value.each { |k, v| hash[k] = _to_hash(v) }
212
- end
213
- elsif value.respond_to? :to_hash
214
- value.to_hash
215
- else
216
- value
217
- end
218
- end
219
-
220
147
  end
221
148
 
222
149
  end