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 IsPortInUseResponse
17
+ class IsPortInUseResponse < ApiModelBase
18
18
  attr_accessor :is_in_use
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 KeyboardHotkeyRequest
17
+ class KeyboardHotkeyRequest < ApiModelBase
18
18
  # e.g., \"ctrl+c\", \"cmd+v\"
19
19
  attr_accessor :keys
20
20
 
@@ -127,61 +127,6 @@ module DaytonaToolboxApiClient
127
127
  new(transformed_hash)
128
128
  end
129
129
 
130
- # Deserializes the data based on type
131
- # @param string type Data type
132
- # @param string value Value to be deserialized
133
- # @return [Object] Deserialized data
134
- def self._deserialize(type, value)
135
- case type.to_sym
136
- when :Time
137
- Time.parse(value)
138
- when :Date
139
- Date.parse(value)
140
- when :String
141
- value.to_s
142
- when :Integer
143
- value.to_i
144
- when :Float
145
- value.to_f
146
- when :Boolean
147
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
- true
149
- else
150
- false
151
- end
152
- when :Object
153
- # generic object (usually a Hash), return directly
154
- value
155
- when /\AArray<(?<inner_type>.+)>\z/
156
- inner_type = Regexp.last_match[:inner_type]
157
- value.map { |v| _deserialize(inner_type, v) }
158
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
- k_type = Regexp.last_match[:k_type]
160
- v_type = Regexp.last_match[:v_type]
161
- {}.tap do |hash|
162
- value.each do |k, v|
163
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
- end
165
- end
166
- else # model
167
- # models (e.g. Pet) or oneOf
168
- klass = DaytonaToolboxApiClient.const_get(type)
169
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
- end
171
- end
172
-
173
- # Returns the string representation of the object
174
- # @return [String] String presentation of the object
175
- def to_s
176
- to_hash.to_s
177
- end
178
-
179
- # to_body is an alias to to_hash (backward compatibility)
180
- # @return [Hash] Returns the object in the form of hash
181
- def to_body
182
- to_hash
183
- end
184
-
185
130
  # Returns the object in the form of hash
186
131
  # @return [Hash] Returns the object in the form of hash
187
132
  def to_hash
@@ -198,24 +143,6 @@ module DaytonaToolboxApiClient
198
143
  hash
199
144
  end
200
145
 
201
- # Outputs non-array value in the form of hash
202
- # For object, use to_hash. Otherwise, just return the value
203
- # @param [Object] value Any valid value
204
- # @return [Hash] Returns the value in the form of hash
205
- def _to_hash(value)
206
- if value.is_a?(Array)
207
- value.compact.map { |v| _to_hash(v) }
208
- elsif value.is_a?(Hash)
209
- {}.tap do |hash|
210
- value.each { |k, v| hash[k] = _to_hash(v) }
211
- end
212
- elsif value.respond_to? :to_hash
213
- value.to_hash
214
- else
215
- value
216
- end
217
- end
218
-
219
146
  end
220
147
 
221
148
  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 KeyboardPressRequest
17
+ class KeyboardPressRequest < ApiModelBase
18
18
  attr_accessor :key
19
19
 
20
20
  # ctrl, alt, shift, cmd
@@ -138,61 +138,6 @@ module DaytonaToolboxApiClient
138
138
  new(transformed_hash)
139
139
  end
140
140
 
141
- # Deserializes the data based on type
142
- # @param string type Data type
143
- # @param string value Value to be deserialized
144
- # @return [Object] Deserialized data
145
- def self._deserialize(type, value)
146
- case type.to_sym
147
- when :Time
148
- Time.parse(value)
149
- when :Date
150
- Date.parse(value)
151
- when :String
152
- value.to_s
153
- when :Integer
154
- value.to_i
155
- when :Float
156
- value.to_f
157
- when :Boolean
158
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
159
- true
160
- else
161
- false
162
- end
163
- when :Object
164
- # generic object (usually a Hash), return directly
165
- value
166
- when /\AArray<(?<inner_type>.+)>\z/
167
- inner_type = Regexp.last_match[:inner_type]
168
- value.map { |v| _deserialize(inner_type, v) }
169
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
170
- k_type = Regexp.last_match[:k_type]
171
- v_type = Regexp.last_match[:v_type]
172
- {}.tap do |hash|
173
- value.each do |k, v|
174
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
175
- end
176
- end
177
- else # model
178
- # models (e.g. Pet) or oneOf
179
- klass = DaytonaToolboxApiClient.const_get(type)
180
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
181
- end
182
- end
183
-
184
- # Returns the string representation of the object
185
- # @return [String] String presentation of the object
186
- def to_s
187
- to_hash.to_s
188
- end
189
-
190
- # to_body is an alias to to_hash (backward compatibility)
191
- # @return [Hash] Returns the object in the form of hash
192
- def to_body
193
- to_hash
194
- end
195
-
196
141
  # Returns the object in the form of hash
197
142
  # @return [Hash] Returns the object in the form of hash
198
143
  def to_hash
@@ -209,24 +154,6 @@ module DaytonaToolboxApiClient
209
154
  hash
210
155
  end
211
156
 
212
- # Outputs non-array value in the form of hash
213
- # For object, use to_hash. Otherwise, just return the value
214
- # @param [Object] value Any valid value
215
- # @return [Hash] Returns the value in the form of hash
216
- def _to_hash(value)
217
- if value.is_a?(Array)
218
- value.compact.map { |v| _to_hash(v) }
219
- elsif value.is_a?(Hash)
220
- {}.tap do |hash|
221
- value.each { |k, v| hash[k] = _to_hash(v) }
222
- end
223
- elsif value.respond_to? :to_hash
224
- value.to_hash
225
- else
226
- value
227
- end
228
- end
229
-
230
157
  end
231
158
 
232
159
  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 KeyboardTypeRequest
17
+ class KeyboardTypeRequest < ApiModelBase
18
18
  # milliseconds between keystrokes
19
19
  attr_accessor :delay
20
20
 
@@ -136,61 +136,6 @@ module DaytonaToolboxApiClient
136
136
  new(transformed_hash)
137
137
  end
138
138
 
139
- # Deserializes the data based on type
140
- # @param string type Data type
141
- # @param string value Value to be deserialized
142
- # @return [Object] Deserialized data
143
- def self._deserialize(type, value)
144
- case type.to_sym
145
- when :Time
146
- Time.parse(value)
147
- when :Date
148
- Date.parse(value)
149
- when :String
150
- value.to_s
151
- when :Integer
152
- value.to_i
153
- when :Float
154
- value.to_f
155
- when :Boolean
156
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
- true
158
- else
159
- false
160
- end
161
- when :Object
162
- # generic object (usually a Hash), return directly
163
- value
164
- when /\AArray<(?<inner_type>.+)>\z/
165
- inner_type = Regexp.last_match[:inner_type]
166
- value.map { |v| _deserialize(inner_type, v) }
167
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
- k_type = Regexp.last_match[:k_type]
169
- v_type = Regexp.last_match[:v_type]
170
- {}.tap do |hash|
171
- value.each do |k, v|
172
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
- end
174
- end
175
- else # model
176
- # models (e.g. Pet) or oneOf
177
- klass = DaytonaToolboxApiClient.const_get(type)
178
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
179
- end
180
- end
181
-
182
- # Returns the string representation of the object
183
- # @return [String] String presentation of the object
184
- def to_s
185
- to_hash.to_s
186
- end
187
-
188
- # to_body is an alias to to_hash (backward compatibility)
189
- # @return [Hash] Returns the object in the form of hash
190
- def to_body
191
- to_hash
192
- end
193
-
194
139
  # Returns the object in the form of hash
195
140
  # @return [Hash] Returns the object in the form of hash
196
141
  def to_hash
@@ -207,24 +152,6 @@ module DaytonaToolboxApiClient
207
152
  hash
208
153
  end
209
154
 
210
- # Outputs non-array value in the form of hash
211
- # For object, use to_hash. Otherwise, just return the value
212
- # @param [Object] value Any valid value
213
- # @return [Hash] Returns the value in the form of hash
214
- def _to_hash(value)
215
- if value.is_a?(Array)
216
- value.compact.map { |v| _to_hash(v) }
217
- elsif value.is_a?(Hash)
218
- {}.tap do |hash|
219
- value.each { |k, v| hash[k] = _to_hash(v) }
220
- end
221
- elsif value.respond_to? :to_hash
222
- value.to_hash
223
- else
224
- value
225
- end
226
- end
227
-
228
155
  end
229
156
 
230
157
  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 ListBranchResponse
17
+ class ListBranchResponse < ApiModelBase
18
18
  attr_accessor :branches
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -145,61 +145,6 @@ module DaytonaToolboxApiClient
145
145
  new(transformed_hash)
146
146
  end
147
147
 
148
- # Deserializes the data based on type
149
- # @param string type Data type
150
- # @param string value Value to be deserialized
151
- # @return [Object] Deserialized data
152
- def self._deserialize(type, value)
153
- case type.to_sym
154
- when :Time
155
- Time.parse(value)
156
- when :Date
157
- Date.parse(value)
158
- when :String
159
- value.to_s
160
- when :Integer
161
- value.to_i
162
- when :Float
163
- value.to_f
164
- when :Boolean
165
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
- true
167
- else
168
- false
169
- end
170
- when :Object
171
- # generic object (usually a Hash), return directly
172
- value
173
- when /\AArray<(?<inner_type>.+)>\z/
174
- inner_type = Regexp.last_match[:inner_type]
175
- value.map { |v| _deserialize(inner_type, v) }
176
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
- k_type = Regexp.last_match[:k_type]
178
- v_type = Regexp.last_match[:v_type]
179
- {}.tap do |hash|
180
- value.each do |k, v|
181
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
- end
183
- end
184
- else # model
185
- # models (e.g. Pet) or oneOf
186
- klass = DaytonaToolboxApiClient.const_get(type)
187
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
188
- end
189
- end
190
-
191
- # Returns the string representation of the object
192
- # @return [String] String presentation of the object
193
- def to_s
194
- to_hash.to_s
195
- end
196
-
197
- # to_body is an alias to to_hash (backward compatibility)
198
- # @return [Hash] Returns the object in the form of hash
199
- def to_body
200
- to_hash
201
- end
202
-
203
148
  # Returns the object in the form of hash
204
149
  # @return [Hash] Returns the object in the form of hash
205
150
  def to_hash
@@ -216,24 +161,6 @@ module DaytonaToolboxApiClient
216
161
  hash
217
162
  end
218
163
 
219
- # Outputs non-array value in the form of hash
220
- # For object, use to_hash. Otherwise, just return the value
221
- # @param [Object] value Any valid value
222
- # @return [Hash] Returns the value in the form of hash
223
- def _to_hash(value)
224
- if value.is_a?(Array)
225
- value.compact.map { |v| _to_hash(v) }
226
- elsif value.is_a?(Hash)
227
- {}.tap do |hash|
228
- value.each { |k, v| hash[k] = _to_hash(v) }
229
- end
230
- elsif value.respond_to? :to_hash
231
- value.to_hash
232
- else
233
- value
234
- end
235
- end
236
-
237
164
  end
238
165
 
239
166
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v0.0.0-dev
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.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 ListContextsResponse
17
+ class ListContextsResponse < ApiModelBase
18
18
  attr_accessor :contexts
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -145,61 +145,6 @@ module DaytonaToolboxApiClient
145
145
  new(transformed_hash)
146
146
  end
147
147
 
148
- # Deserializes the data based on type
149
- # @param string type Data type
150
- # @param string value Value to be deserialized
151
- # @return [Object] Deserialized data
152
- def self._deserialize(type, value)
153
- case type.to_sym
154
- when :Time
155
- Time.parse(value)
156
- when :Date
157
- Date.parse(value)
158
- when :String
159
- value.to_s
160
- when :Integer
161
- value.to_i
162
- when :Float
163
- value.to_f
164
- when :Boolean
165
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
- true
167
- else
168
- false
169
- end
170
- when :Object
171
- # generic object (usually a Hash), return directly
172
- value
173
- when /\AArray<(?<inner_type>.+)>\z/
174
- inner_type = Regexp.last_match[:inner_type]
175
- value.map { |v| _deserialize(inner_type, v) }
176
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
- k_type = Regexp.last_match[:k_type]
178
- v_type = Regexp.last_match[:v_type]
179
- {}.tap do |hash|
180
- value.each do |k, v|
181
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
- end
183
- end
184
- else # model
185
- # models (e.g. Pet) or oneOf
186
- klass = DaytonaToolboxApiClient.const_get(type)
187
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
188
- end
189
- end
190
-
191
- # Returns the string representation of the object
192
- # @return [String] String presentation of the object
193
- def to_s
194
- to_hash.to_s
195
- end
196
-
197
- # to_body is an alias to to_hash (backward compatibility)
198
- # @return [Hash] Returns the object in the form of hash
199
- def to_body
200
- to_hash
201
- end
202
-
203
148
  # Returns the object in the form of hash
204
149
  # @return [Hash] Returns the object in the form of hash
205
150
  def to_hash
@@ -216,24 +161,6 @@ module DaytonaToolboxApiClient
216
161
  hash
217
162
  end
218
163
 
219
- # Outputs non-array value in the form of hash
220
- # For object, use to_hash. Otherwise, just return the value
221
- # @param [Object] value Any valid value
222
- # @return [Hash] Returns the value in the form of hash
223
- def _to_hash(value)
224
- if value.is_a?(Array)
225
- value.compact.map { |v| _to_hash(v) }
226
- elsif value.is_a?(Hash)
227
- {}.tap do |hash|
228
- value.each { |k, v| hash[k] = _to_hash(v) }
229
- end
230
- elsif value.respond_to? :to_hash
231
- value.to_hash
232
- else
233
- value
234
- end
235
- end
236
-
237
164
  end
238
165
 
239
166
  end