daytona_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.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +2 -0
- data/.openapi-generator/VERSION +1 -1
- data/lib/daytona_api_client/api/admin_api.rb +1 -1
- data/lib/daytona_api_client/api/api_keys_api.rb +1 -1
- data/lib/daytona_api_client/api/audit_api.rb +1 -1
- data/lib/daytona_api_client/api/config_api.rb +1 -1
- data/lib/daytona_api_client/api/docker_registry_api.rb +1 -1
- data/lib/daytona_api_client/api/health_api.rb +1 -1
- data/lib/daytona_api_client/api/jobs_api.rb +1 -1
- data/lib/daytona_api_client/api/object_storage_api.rb +1 -1
- data/lib/daytona_api_client/api/organizations_api.rb +1 -1
- data/lib/daytona_api_client/api/preview_api.rb +1 -1
- data/lib/daytona_api_client/api/regions_api.rb +1 -1
- data/lib/daytona_api_client/api/runners_api.rb +1 -1
- data/lib/daytona_api_client/api/sandbox_api.rb +81 -4
- data/lib/daytona_api_client/api/snapshots_api.rb +3 -3
- data/lib/daytona_api_client/api/toolbox_api.rb +1 -1
- data/lib/daytona_api_client/api/users_api.rb +1 -1
- data/lib/daytona_api_client/api/volumes_api.rb +1 -1
- data/lib/daytona_api_client/api/webhooks_api.rb +1 -1
- data/lib/daytona_api_client/api/workspace_api.rb +1 -1
- data/lib/daytona_api_client/api_client.rb +7 -3
- data/lib/daytona_api_client/api_error.rb +1 -1
- data/lib/daytona_api_client/api_model_base.rb +88 -0
- data/lib/daytona_api_client/configuration.rb +1 -1
- data/lib/daytona_api_client/models/account_provider.rb +2 -75
- data/lib/daytona_api_client/models/admin_create_runner.rb +2 -75
- data/lib/daytona_api_client/models/admin_get_webhook_status200_response.rb +2 -75
- data/lib/daytona_api_client/models/announcement.rb +2 -75
- data/lib/daytona_api_client/models/api_key_list.rb +2 -75
- data/lib/daytona_api_client/models/api_key_response.rb +2 -75
- data/lib/daytona_api_client/models/audit_log.rb +2 -75
- data/lib/daytona_api_client/models/build_info.rb +2 -75
- data/lib/daytona_api_client/models/command.rb +2 -75
- data/lib/daytona_api_client/models/completion_context.rb +2 -75
- data/lib/daytona_api_client/models/completion_item.rb +2 -75
- data/lib/daytona_api_client/models/completion_list.rb +2 -75
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +2 -75
- data/lib/daytona_api_client/models/computer_use_start_response.rb +2 -75
- data/lib/daytona_api_client/models/computer_use_status_response.rb +4 -77
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +2 -75
- data/lib/daytona_api_client/models/create_api_key.rb +2 -75
- data/lib/daytona_api_client/models/create_build_info.rb +2 -75
- data/lib/daytona_api_client/models/create_docker_registry.rb +2 -75
- data/lib/daytona_api_client/models/create_linked_account.rb +2 -75
- data/lib/daytona_api_client/models/create_organization.rb +2 -75
- data/lib/daytona_api_client/models/create_organization_invitation.rb +4 -77
- data/lib/daytona_api_client/models/create_organization_quota.rb +2 -75
- data/lib/daytona_api_client/models/create_organization_role.rb +2 -75
- data/lib/daytona_api_client/models/create_region.rb +2 -75
- data/lib/daytona_api_client/models/create_region_response.rb +2 -75
- data/lib/daytona_api_client/models/create_runner.rb +2 -75
- data/lib/daytona_api_client/models/create_runner_response.rb +2 -75
- data/lib/daytona_api_client/models/create_sandbox.rb +4 -77
- data/lib/daytona_api_client/models/create_sandbox_snapshot.rb +2 -75
- data/lib/daytona_api_client/models/create_session_request.rb +2 -75
- data/lib/daytona_api_client/models/create_snapshot.rb +2 -75
- data/lib/daytona_api_client/models/create_user.rb +4 -77
- data/lib/daytona_api_client/models/create_volume.rb +2 -75
- data/lib/daytona_api_client/models/create_workspace.rb +6 -79
- data/lib/daytona_api_client/models/daytona_configuration.rb +2 -75
- data/lib/daytona_api_client/models/display_info_response.rb +2 -75
- data/lib/daytona_api_client/models/docker_registry.rb +4 -77
- data/lib/daytona_api_client/models/download_files.rb +2 -75
- data/lib/daytona_api_client/models/execute_request.rb +2 -75
- data/lib/daytona_api_client/models/execute_response.rb +2 -75
- data/lib/daytona_api_client/models/file_info.rb +2 -75
- data/lib/daytona_api_client/models/file_status.rb +2 -75
- data/lib/daytona_api_client/models/fork_sandbox.rb +2 -75
- data/lib/daytona_api_client/models/git_add_request.rb +2 -75
- data/lib/daytona_api_client/models/git_branch_request.rb +2 -75
- data/lib/daytona_api_client/models/git_checkout_request.rb +2 -75
- data/lib/daytona_api_client/models/git_clone_request.rb +2 -75
- data/lib/daytona_api_client/models/git_commit_info.rb +2 -75
- data/lib/daytona_api_client/models/git_commit_request.rb +2 -75
- data/lib/daytona_api_client/models/git_commit_response.rb +2 -75
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +2 -75
- data/lib/daytona_api_client/models/git_repo_request.rb +2 -75
- data/lib/daytona_api_client/models/git_status.rb +2 -75
- data/lib/daytona_api_client/models/health_controller_check200_response.rb +2 -75
- data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +2 -75
- data/lib/daytona_api_client/models/health_controller_check503_response.rb +2 -75
- data/lib/daytona_api_client/models/job.rb +4 -77
- data/lib/daytona_api_client/models/job_status.rb +4 -3
- data/lib/daytona_api_client/models/job_type.rb +4 -3
- data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +2 -75
- data/lib/daytona_api_client/models/keyboard_press_request.rb +2 -75
- data/lib/daytona_api_client/models/keyboard_type_request.rb +2 -75
- data/lib/daytona_api_client/models/list_branch_response.rb +2 -75
- data/lib/daytona_api_client/models/log_entry.rb +2 -75
- data/lib/daytona_api_client/models/lsp_completion_params.rb +2 -75
- data/lib/daytona_api_client/models/lsp_document_request.rb +2 -75
- data/lib/daytona_api_client/models/lsp_location.rb +2 -75
- data/lib/daytona_api_client/models/lsp_server_request.rb +2 -75
- data/lib/daytona_api_client/models/lsp_symbol.rb +2 -75
- data/lib/daytona_api_client/models/match.rb +2 -75
- data/lib/daytona_api_client/models/metric_data_point.rb +2 -75
- data/lib/daytona_api_client/models/metric_series.rb +2 -75
- data/lib/daytona_api_client/models/metrics_response.rb +2 -75
- data/lib/daytona_api_client/models/mouse_click_request.rb +2 -75
- data/lib/daytona_api_client/models/mouse_click_response.rb +2 -75
- data/lib/daytona_api_client/models/mouse_drag_request.rb +2 -75
- data/lib/daytona_api_client/models/mouse_drag_response.rb +2 -75
- data/lib/daytona_api_client/models/mouse_move_request.rb +2 -75
- data/lib/daytona_api_client/models/mouse_move_response.rb +2 -75
- data/lib/daytona_api_client/models/mouse_position.rb +2 -75
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +2 -75
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +2 -75
- data/lib/daytona_api_client/models/oidc_config.rb +2 -75
- data/lib/daytona_api_client/models/organization.rb +2 -75
- data/lib/daytona_api_client/models/organization_invitation.rb +6 -79
- data/lib/daytona_api_client/models/organization_role.rb +2 -75
- data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +2 -75
- data/lib/daytona_api_client/models/organization_suspension.rb +2 -75
- data/lib/daytona_api_client/models/organization_usage_overview.rb +2 -75
- data/lib/daytona_api_client/models/organization_user.rb +4 -77
- data/lib/daytona_api_client/models/otel_config.rb +2 -75
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +2 -75
- data/lib/daytona_api_client/models/paginated_jobs.rb +2 -75
- data/lib/daytona_api_client/models/paginated_logs.rb +2 -75
- data/lib/daytona_api_client/models/paginated_sandboxes.rb +2 -75
- data/lib/daytona_api_client/models/paginated_snapshots.rb +2 -75
- data/lib/daytona_api_client/models/paginated_traces.rb +2 -75
- data/lib/daytona_api_client/models/poll_jobs_response.rb +2 -75
- data/lib/daytona_api_client/models/port_preview_url.rb +2 -75
- data/lib/daytona_api_client/models/position.rb +2 -75
- data/lib/daytona_api_client/models/posthog_config.rb +2 -75
- data/lib/daytona_api_client/models/process_errors_response.rb +2 -75
- data/lib/daytona_api_client/models/process_logs_response.rb +2 -75
- data/lib/daytona_api_client/models/process_restart_response.rb +2 -75
- data/lib/daytona_api_client/models/process_status_response.rb +2 -75
- data/lib/daytona_api_client/models/project_dir_response.rb +2 -75
- data/lib/daytona_api_client/models/pty_create_request.rb +2 -75
- data/lib/daytona_api_client/models/pty_create_response.rb +2 -75
- data/lib/daytona_api_client/models/pty_list_response.rb +2 -75
- data/lib/daytona_api_client/models/pty_resize_request.rb +2 -75
- data/lib/daytona_api_client/models/pty_session_info.rb +2 -75
- data/lib/daytona_api_client/models/range.rb +2 -75
- data/lib/daytona_api_client/models/rate_limit_config.rb +2 -75
- data/lib/daytona_api_client/models/rate_limit_entry.rb +2 -75
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +2 -75
- data/lib/daytona_api_client/models/region.rb +2 -75
- data/lib/daytona_api_client/models/region_quota.rb +2 -75
- data/lib/daytona_api_client/models/region_screenshot_response.rb +2 -75
- data/lib/daytona_api_client/models/region_type.rb +4 -3
- data/lib/daytona_api_client/models/region_usage_overview.rb +2 -75
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +2 -75
- data/lib/daytona_api_client/models/replace_request.rb +2 -75
- data/lib/daytona_api_client/models/replace_result.rb +2 -75
- data/lib/daytona_api_client/models/resize_sandbox.rb +2 -75
- data/lib/daytona_api_client/models/runner.rb +2 -75
- data/lib/daytona_api_client/models/runner_class.rb +4 -3
- data/lib/daytona_api_client/models/runner_full.rb +2 -75
- data/lib/daytona_api_client/models/runner_health_metrics.rb +2 -75
- data/lib/daytona_api_client/models/runner_healthcheck.rb +2 -75
- data/lib/daytona_api_client/models/runner_service_health.rb +2 -75
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +2 -75
- data/lib/daytona_api_client/models/runner_state.rb +4 -3
- data/lib/daytona_api_client/models/sandbox.rb +6 -79
- data/lib/daytona_api_client/models/sandbox_class.rb +4 -3
- data/lib/daytona_api_client/models/sandbox_desired_state.rb +4 -3
- data/lib/daytona_api_client/models/sandbox_info.rb +2 -75
- data/lib/daytona_api_client/models/sandbox_labels.rb +2 -75
- data/lib/daytona_api_client/models/sandbox_state.rb +4 -3
- data/lib/daytona_api_client/models/sandbox_volume.rb +2 -75
- data/lib/daytona_api_client/models/screenshot_response.rb +2 -75
- data/lib/daytona_api_client/models/search_files_response.rb +2 -75
- data/lib/daytona_api_client/models/send_webhook_dto.rb +2 -75
- data/lib/daytona_api_client/models/session.rb +2 -75
- data/lib/daytona_api_client/models/session_execute_request.rb +2 -75
- data/lib/daytona_api_client/models/session_execute_response.rb +2 -75
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +2 -75
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +2 -75
- data/lib/daytona_api_client/models/snapshot_dto.rb +2 -75
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +2 -75
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -3
- data/lib/daytona_api_client/models/ssh_access_dto.rb +2 -75
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +2 -75
- data/lib/daytona_api_client/models/storage_access_dto.rb +2 -75
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +2 -75
- data/lib/daytona_api_client/models/trace_span.rb +2 -75
- data/lib/daytona_api_client/models/trace_summary.rb +2 -75
- data/lib/daytona_api_client/models/update_docker_registry.rb +2 -75
- data/lib/daytona_api_client/models/update_job_status.rb +2 -75
- data/lib/daytona_api_client/models/update_organization_default_region.rb +2 -75
- data/lib/daytona_api_client/models/update_organization_invitation.rb +4 -77
- data/lib/daytona_api_client/models/update_organization_member_access.rb +4 -77
- data/lib/daytona_api_client/models/update_organization_quota.rb +2 -75
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +2 -75
- data/lib/daytona_api_client/models/update_organization_role.rb +2 -75
- data/lib/daytona_api_client/models/update_region.rb +2 -75
- data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +158 -0
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -77
- data/lib/daytona_api_client/models/url.rb +2 -75
- data/lib/daytona_api_client/models/user.rb +2 -75
- data/lib/daytona_api_client/models/user_home_dir_response.rb +2 -75
- data/lib/daytona_api_client/models/user_public_key.rb +2 -75
- data/lib/daytona_api_client/models/volume_dto.rb +2 -75
- data/lib/daytona_api_client/models/volume_state.rb +4 -3
- data/lib/daytona_api_client/models/webhook_app_portal_access.rb +2 -75
- data/lib/daytona_api_client/models/webhook_event.rb +4 -3
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +2 -75
- data/lib/daytona_api_client/models/windows_response.rb +2 -75
- data/lib/daytona_api_client/models/work_dir_response.rb +2 -75
- data/lib/daytona_api_client/models/workspace.rb +8 -81
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +2 -75
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +3 -1
- data/project.json +6 -2
- metadata +3 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
Contact: support@daytona.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class CreateSnapshot
|
|
17
|
+
class CreateSnapshot < ApiModelBase
|
|
18
18
|
# The name of the snapshot
|
|
19
19
|
attr_accessor :name
|
|
20
20
|
|
|
@@ -226,61 +226,6 @@ module DaytonaApiClient
|
|
|
226
226
|
new(transformed_hash)
|
|
227
227
|
end
|
|
228
228
|
|
|
229
|
-
# Deserializes the data based on type
|
|
230
|
-
# @param string type Data type
|
|
231
|
-
# @param string value Value to be deserialized
|
|
232
|
-
# @return [Object] Deserialized data
|
|
233
|
-
def self._deserialize(type, value)
|
|
234
|
-
case type.to_sym
|
|
235
|
-
when :Time
|
|
236
|
-
Time.parse(value)
|
|
237
|
-
when :Date
|
|
238
|
-
Date.parse(value)
|
|
239
|
-
when :String
|
|
240
|
-
value.to_s
|
|
241
|
-
when :Integer
|
|
242
|
-
value.to_i
|
|
243
|
-
when :Float
|
|
244
|
-
value.to_f
|
|
245
|
-
when :Boolean
|
|
246
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
247
|
-
true
|
|
248
|
-
else
|
|
249
|
-
false
|
|
250
|
-
end
|
|
251
|
-
when :Object
|
|
252
|
-
# generic object (usually a Hash), return directly
|
|
253
|
-
value
|
|
254
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
255
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
256
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
257
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
258
|
-
k_type = Regexp.last_match[:k_type]
|
|
259
|
-
v_type = Regexp.last_match[:v_type]
|
|
260
|
-
{}.tap do |hash|
|
|
261
|
-
value.each do |k, v|
|
|
262
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
else # model
|
|
266
|
-
# models (e.g. Pet) or oneOf
|
|
267
|
-
klass = DaytonaApiClient.const_get(type)
|
|
268
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
# Returns the string representation of the object
|
|
273
|
-
# @return [String] String presentation of the object
|
|
274
|
-
def to_s
|
|
275
|
-
to_hash.to_s
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
279
|
-
# @return [Hash] Returns the object in the form of hash
|
|
280
|
-
def to_body
|
|
281
|
-
to_hash
|
|
282
|
-
end
|
|
283
|
-
|
|
284
229
|
# Returns the object in the form of hash
|
|
285
230
|
# @return [Hash] Returns the object in the form of hash
|
|
286
231
|
def to_hash
|
|
@@ -297,24 +242,6 @@ module DaytonaApiClient
|
|
|
297
242
|
hash
|
|
298
243
|
end
|
|
299
244
|
|
|
300
|
-
# Outputs non-array value in the form of hash
|
|
301
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
302
|
-
# @param [Object] value Any valid value
|
|
303
|
-
# @return [Hash] Returns the value in the form of hash
|
|
304
|
-
def _to_hash(value)
|
|
305
|
-
if value.is_a?(Array)
|
|
306
|
-
value.compact.map { |v| _to_hash(v) }
|
|
307
|
-
elsif value.is_a?(Hash)
|
|
308
|
-
{}.tap do |hash|
|
|
309
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
310
|
-
end
|
|
311
|
-
elsif value.respond_to? :to_hash
|
|
312
|
-
value.to_hash
|
|
313
|
-
else
|
|
314
|
-
value
|
|
315
|
-
end
|
|
316
|
-
end
|
|
317
|
-
|
|
318
245
|
end
|
|
319
246
|
|
|
320
247
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
Contact: support@daytona.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class CreateUser
|
|
17
|
+
class CreateUser < ApiModelBase
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
20
|
attr_accessor :name
|
|
@@ -164,7 +164,7 @@ module DaytonaApiClient
|
|
|
164
164
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
165
165
|
return false if @id.nil?
|
|
166
166
|
return false if @name.nil?
|
|
167
|
-
role_validator = EnumAttributeValidator.new('String', ["admin", "user"])
|
|
167
|
+
role_validator = EnumAttributeValidator.new('String', ["admin", "user", "unknown_default_open_api"])
|
|
168
168
|
return false unless role_validator.valid?(@role)
|
|
169
169
|
true
|
|
170
170
|
end
|
|
@@ -192,7 +192,7 @@ module DaytonaApiClient
|
|
|
192
192
|
# Custom attribute writer method checking allowed values (enum).
|
|
193
193
|
# @param [Object] role Object to be assigned
|
|
194
194
|
def role=(role)
|
|
195
|
-
validator = EnumAttributeValidator.new('String', ["admin", "user"])
|
|
195
|
+
validator = EnumAttributeValidator.new('String', ["admin", "user", "unknown_default_open_api"])
|
|
196
196
|
unless validator.valid?(role)
|
|
197
197
|
fail ArgumentError, "invalid value for \"role\", must be one of #{validator.allowable_values}."
|
|
198
198
|
end
|
|
@@ -248,61 +248,6 @@ module DaytonaApiClient
|
|
|
248
248
|
new(transformed_hash)
|
|
249
249
|
end
|
|
250
250
|
|
|
251
|
-
# Deserializes the data based on type
|
|
252
|
-
# @param string type Data type
|
|
253
|
-
# @param string value Value to be deserialized
|
|
254
|
-
# @return [Object] Deserialized data
|
|
255
|
-
def self._deserialize(type, value)
|
|
256
|
-
case type.to_sym
|
|
257
|
-
when :Time
|
|
258
|
-
Time.parse(value)
|
|
259
|
-
when :Date
|
|
260
|
-
Date.parse(value)
|
|
261
|
-
when :String
|
|
262
|
-
value.to_s
|
|
263
|
-
when :Integer
|
|
264
|
-
value.to_i
|
|
265
|
-
when :Float
|
|
266
|
-
value.to_f
|
|
267
|
-
when :Boolean
|
|
268
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
269
|
-
true
|
|
270
|
-
else
|
|
271
|
-
false
|
|
272
|
-
end
|
|
273
|
-
when :Object
|
|
274
|
-
# generic object (usually a Hash), return directly
|
|
275
|
-
value
|
|
276
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
277
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
278
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
279
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
280
|
-
k_type = Regexp.last_match[:k_type]
|
|
281
|
-
v_type = Regexp.last_match[:v_type]
|
|
282
|
-
{}.tap do |hash|
|
|
283
|
-
value.each do |k, v|
|
|
284
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
285
|
-
end
|
|
286
|
-
end
|
|
287
|
-
else # model
|
|
288
|
-
# models (e.g. Pet) or oneOf
|
|
289
|
-
klass = DaytonaApiClient.const_get(type)
|
|
290
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
291
|
-
end
|
|
292
|
-
end
|
|
293
|
-
|
|
294
|
-
# Returns the string representation of the object
|
|
295
|
-
# @return [String] String presentation of the object
|
|
296
|
-
def to_s
|
|
297
|
-
to_hash.to_s
|
|
298
|
-
end
|
|
299
|
-
|
|
300
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
301
|
-
# @return [Hash] Returns the object in the form of hash
|
|
302
|
-
def to_body
|
|
303
|
-
to_hash
|
|
304
|
-
end
|
|
305
|
-
|
|
306
251
|
# Returns the object in the form of hash
|
|
307
252
|
# @return [Hash] Returns the object in the form of hash
|
|
308
253
|
def to_hash
|
|
@@ -319,24 +264,6 @@ module DaytonaApiClient
|
|
|
319
264
|
hash
|
|
320
265
|
end
|
|
321
266
|
|
|
322
|
-
# Outputs non-array value in the form of hash
|
|
323
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
324
|
-
# @param [Object] value Any valid value
|
|
325
|
-
# @return [Hash] Returns the value in the form of hash
|
|
326
|
-
def _to_hash(value)
|
|
327
|
-
if value.is_a?(Array)
|
|
328
|
-
value.compact.map { |v| _to_hash(v) }
|
|
329
|
-
elsif value.is_a?(Hash)
|
|
330
|
-
{}.tap do |hash|
|
|
331
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
332
|
-
end
|
|
333
|
-
elsif value.respond_to? :to_hash
|
|
334
|
-
value.to_hash
|
|
335
|
-
else
|
|
336
|
-
value
|
|
337
|
-
end
|
|
338
|
-
end
|
|
339
|
-
|
|
340
267
|
end
|
|
341
268
|
|
|
342
269
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
Contact: support@daytona.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class CreateVolume
|
|
17
|
+
class CreateVolume < ApiModelBase
|
|
18
18
|
attr_accessor :name
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -143,61 +143,6 @@ module DaytonaApiClient
|
|
|
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 = DaytonaApiClient.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 DaytonaApiClient
|
|
|
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: 1.0
|
|
7
7
|
Contact: support@daytona.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class CreateWorkspace
|
|
17
|
+
class CreateWorkspace < ApiModelBase
|
|
18
18
|
# The image used for the workspace
|
|
19
19
|
attr_accessor :image
|
|
20
20
|
|
|
@@ -235,9 +235,9 @@ module DaytonaApiClient
|
|
|
235
235
|
# @return true if the model is valid
|
|
236
236
|
def valid?
|
|
237
237
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
238
|
-
_class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large"])
|
|
238
|
+
_class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
|
|
239
239
|
return false unless _class_validator.valid?(@_class)
|
|
240
|
-
target_validator = EnumAttributeValidator.new('String', ["eu", "us", "asia"])
|
|
240
|
+
target_validator = EnumAttributeValidator.new('String', ["eu", "us", "asia", "unknown_default_open_api"])
|
|
241
241
|
return false unless target_validator.valid?(@target)
|
|
242
242
|
true
|
|
243
243
|
end
|
|
@@ -245,7 +245,7 @@ module DaytonaApiClient
|
|
|
245
245
|
# Custom attribute writer method checking allowed values (enum).
|
|
246
246
|
# @param [Object] _class Object to be assigned
|
|
247
247
|
def _class=(_class)
|
|
248
|
-
validator = EnumAttributeValidator.new('String', ["small", "medium", "large"])
|
|
248
|
+
validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
|
|
249
249
|
unless validator.valid?(_class)
|
|
250
250
|
fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
|
|
251
251
|
end
|
|
@@ -255,7 +255,7 @@ module DaytonaApiClient
|
|
|
255
255
|
# Custom attribute writer method checking allowed values (enum).
|
|
256
256
|
# @param [Object] target Object to be assigned
|
|
257
257
|
def target=(target)
|
|
258
|
-
validator = EnumAttributeValidator.new('String', ["eu", "us", "asia"])
|
|
258
|
+
validator = EnumAttributeValidator.new('String', ["eu", "us", "asia", "unknown_default_open_api"])
|
|
259
259
|
unless validator.valid?(target)
|
|
260
260
|
fail ArgumentError, "invalid value for \"target\", must be one of #{validator.allowable_values}."
|
|
261
261
|
end
|
|
@@ -319,61 +319,6 @@ module DaytonaApiClient
|
|
|
319
319
|
new(transformed_hash)
|
|
320
320
|
end
|
|
321
321
|
|
|
322
|
-
# Deserializes the data based on type
|
|
323
|
-
# @param string type Data type
|
|
324
|
-
# @param string value Value to be deserialized
|
|
325
|
-
# @return [Object] Deserialized data
|
|
326
|
-
def self._deserialize(type, value)
|
|
327
|
-
case type.to_sym
|
|
328
|
-
when :Time
|
|
329
|
-
Time.parse(value)
|
|
330
|
-
when :Date
|
|
331
|
-
Date.parse(value)
|
|
332
|
-
when :String
|
|
333
|
-
value.to_s
|
|
334
|
-
when :Integer
|
|
335
|
-
value.to_i
|
|
336
|
-
when :Float
|
|
337
|
-
value.to_f
|
|
338
|
-
when :Boolean
|
|
339
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
340
|
-
true
|
|
341
|
-
else
|
|
342
|
-
false
|
|
343
|
-
end
|
|
344
|
-
when :Object
|
|
345
|
-
# generic object (usually a Hash), return directly
|
|
346
|
-
value
|
|
347
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
348
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
349
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
350
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
351
|
-
k_type = Regexp.last_match[:k_type]
|
|
352
|
-
v_type = Regexp.last_match[:v_type]
|
|
353
|
-
{}.tap do |hash|
|
|
354
|
-
value.each do |k, v|
|
|
355
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
356
|
-
end
|
|
357
|
-
end
|
|
358
|
-
else # model
|
|
359
|
-
# models (e.g. Pet) or oneOf
|
|
360
|
-
klass = DaytonaApiClient.const_get(type)
|
|
361
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
362
|
-
end
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
# Returns the string representation of the object
|
|
366
|
-
# @return [String] String presentation of the object
|
|
367
|
-
def to_s
|
|
368
|
-
to_hash.to_s
|
|
369
|
-
end
|
|
370
|
-
|
|
371
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
372
|
-
# @return [Hash] Returns the object in the form of hash
|
|
373
|
-
def to_body
|
|
374
|
-
to_hash
|
|
375
|
-
end
|
|
376
|
-
|
|
377
322
|
# Returns the object in the form of hash
|
|
378
323
|
# @return [Hash] Returns the object in the form of hash
|
|
379
324
|
def to_hash
|
|
@@ -390,24 +335,6 @@ module DaytonaApiClient
|
|
|
390
335
|
hash
|
|
391
336
|
end
|
|
392
337
|
|
|
393
|
-
# Outputs non-array value in the form of hash
|
|
394
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
395
|
-
# @param [Object] value Any valid value
|
|
396
|
-
# @return [Hash] Returns the value in the form of hash
|
|
397
|
-
def _to_hash(value)
|
|
398
|
-
if value.is_a?(Array)
|
|
399
|
-
value.compact.map { |v| _to_hash(v) }
|
|
400
|
-
elsif value.is_a?(Hash)
|
|
401
|
-
{}.tap do |hash|
|
|
402
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
403
|
-
end
|
|
404
|
-
elsif value.respond_to? :to_hash
|
|
405
|
-
value.to_hash
|
|
406
|
-
else
|
|
407
|
-
value
|
|
408
|
-
end
|
|
409
|
-
end
|
|
410
|
-
|
|
411
338
|
end
|
|
412
339
|
|
|
413
340
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
Contact: support@daytona.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class DaytonaConfiguration
|
|
17
|
+
class DaytonaConfiguration < ApiModelBase
|
|
18
18
|
# Daytona version
|
|
19
19
|
attr_accessor :version
|
|
20
20
|
|
|
@@ -486,61 +486,6 @@ module DaytonaApiClient
|
|
|
486
486
|
new(transformed_hash)
|
|
487
487
|
end
|
|
488
488
|
|
|
489
|
-
# Deserializes the data based on type
|
|
490
|
-
# @param string type Data type
|
|
491
|
-
# @param string value Value to be deserialized
|
|
492
|
-
# @return [Object] Deserialized data
|
|
493
|
-
def self._deserialize(type, value)
|
|
494
|
-
case type.to_sym
|
|
495
|
-
when :Time
|
|
496
|
-
Time.parse(value)
|
|
497
|
-
when :Date
|
|
498
|
-
Date.parse(value)
|
|
499
|
-
when :String
|
|
500
|
-
value.to_s
|
|
501
|
-
when :Integer
|
|
502
|
-
value.to_i
|
|
503
|
-
when :Float
|
|
504
|
-
value.to_f
|
|
505
|
-
when :Boolean
|
|
506
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
507
|
-
true
|
|
508
|
-
else
|
|
509
|
-
false
|
|
510
|
-
end
|
|
511
|
-
when :Object
|
|
512
|
-
# generic object (usually a Hash), return directly
|
|
513
|
-
value
|
|
514
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
515
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
516
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
517
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
518
|
-
k_type = Regexp.last_match[:k_type]
|
|
519
|
-
v_type = Regexp.last_match[:v_type]
|
|
520
|
-
{}.tap do |hash|
|
|
521
|
-
value.each do |k, v|
|
|
522
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
523
|
-
end
|
|
524
|
-
end
|
|
525
|
-
else # model
|
|
526
|
-
# models (e.g. Pet) or oneOf
|
|
527
|
-
klass = DaytonaApiClient.const_get(type)
|
|
528
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
529
|
-
end
|
|
530
|
-
end
|
|
531
|
-
|
|
532
|
-
# Returns the string representation of the object
|
|
533
|
-
# @return [String] String presentation of the object
|
|
534
|
-
def to_s
|
|
535
|
-
to_hash.to_s
|
|
536
|
-
end
|
|
537
|
-
|
|
538
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
539
|
-
# @return [Hash] Returns the object in the form of hash
|
|
540
|
-
def to_body
|
|
541
|
-
to_hash
|
|
542
|
-
end
|
|
543
|
-
|
|
544
489
|
# Returns the object in the form of hash
|
|
545
490
|
# @return [Hash] Returns the object in the form of hash
|
|
546
491
|
def to_hash
|
|
@@ -557,24 +502,6 @@ module DaytonaApiClient
|
|
|
557
502
|
hash
|
|
558
503
|
end
|
|
559
504
|
|
|
560
|
-
# Outputs non-array value in the form of hash
|
|
561
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
562
|
-
# @param [Object] value Any valid value
|
|
563
|
-
# @return [Hash] Returns the value in the form of hash
|
|
564
|
-
def _to_hash(value)
|
|
565
|
-
if value.is_a?(Array)
|
|
566
|
-
value.compact.map { |v| _to_hash(v) }
|
|
567
|
-
elsif value.is_a?(Hash)
|
|
568
|
-
{}.tap do |hash|
|
|
569
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
570
|
-
end
|
|
571
|
-
elsif value.respond_to? :to_hash
|
|
572
|
-
value.to_hash
|
|
573
|
-
else
|
|
574
|
-
value
|
|
575
|
-
end
|
|
576
|
-
end
|
|
577
|
-
|
|
578
505
|
end
|
|
579
506
|
|
|
580
507
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
Contact: support@daytona.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class DisplayInfoResponse
|
|
17
|
+
class DisplayInfoResponse < ApiModelBase
|
|
18
18
|
# Array of display information for all connected displays
|
|
19
19
|
attr_accessor :displays
|
|
20
20
|
|
|
@@ -146,61 +146,6 @@ module DaytonaApiClient
|
|
|
146
146
|
new(transformed_hash)
|
|
147
147
|
end
|
|
148
148
|
|
|
149
|
-
# Deserializes the data based on type
|
|
150
|
-
# @param string type Data type
|
|
151
|
-
# @param string value Value to be deserialized
|
|
152
|
-
# @return [Object] Deserialized data
|
|
153
|
-
def self._deserialize(type, value)
|
|
154
|
-
case type.to_sym
|
|
155
|
-
when :Time
|
|
156
|
-
Time.parse(value)
|
|
157
|
-
when :Date
|
|
158
|
-
Date.parse(value)
|
|
159
|
-
when :String
|
|
160
|
-
value.to_s
|
|
161
|
-
when :Integer
|
|
162
|
-
value.to_i
|
|
163
|
-
when :Float
|
|
164
|
-
value.to_f
|
|
165
|
-
when :Boolean
|
|
166
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
167
|
-
true
|
|
168
|
-
else
|
|
169
|
-
false
|
|
170
|
-
end
|
|
171
|
-
when :Object
|
|
172
|
-
# generic object (usually a Hash), return directly
|
|
173
|
-
value
|
|
174
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
175
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
176
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
177
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
178
|
-
k_type = Regexp.last_match[:k_type]
|
|
179
|
-
v_type = Regexp.last_match[:v_type]
|
|
180
|
-
{}.tap do |hash|
|
|
181
|
-
value.each do |k, v|
|
|
182
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
183
|
-
end
|
|
184
|
-
end
|
|
185
|
-
else # model
|
|
186
|
-
# models (e.g. Pet) or oneOf
|
|
187
|
-
klass = DaytonaApiClient.const_get(type)
|
|
188
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
# Returns the string representation of the object
|
|
193
|
-
# @return [String] String presentation of the object
|
|
194
|
-
def to_s
|
|
195
|
-
to_hash.to_s
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
199
|
-
# @return [Hash] Returns the object in the form of hash
|
|
200
|
-
def to_body
|
|
201
|
-
to_hash
|
|
202
|
-
end
|
|
203
|
-
|
|
204
149
|
# Returns the object in the form of hash
|
|
205
150
|
# @return [Hash] Returns the object in the form of hash
|
|
206
151
|
def to_hash
|
|
@@ -217,24 +162,6 @@ module DaytonaApiClient
|
|
|
217
162
|
hash
|
|
218
163
|
end
|
|
219
164
|
|
|
220
|
-
# Outputs non-array value in the form of hash
|
|
221
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
222
|
-
# @param [Object] value Any valid value
|
|
223
|
-
# @return [Hash] Returns the value in the form of hash
|
|
224
|
-
def _to_hash(value)
|
|
225
|
-
if value.is_a?(Array)
|
|
226
|
-
value.compact.map { |v| _to_hash(v) }
|
|
227
|
-
elsif value.is_a?(Hash)
|
|
228
|
-
{}.tap do |hash|
|
|
229
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
230
|
-
end
|
|
231
|
-
elsif value.respond_to? :to_hash
|
|
232
|
-
value.to_hash
|
|
233
|
-
else
|
|
234
|
-
value
|
|
235
|
-
end
|
|
236
|
-
end
|
|
237
|
-
|
|
238
165
|
end
|
|
239
166
|
|
|
240
167
|
end
|