daytona_api_client 0.218.0 → 1.0.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/Gemfile +9 -0
- data/Gemfile.lock +101 -0
- data/daytona_api_client.gemspec +4 -4
- data/lib/daytona_api_client/api/api_keys_api.rb +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +102 -59
- data/lib/daytona_api_client/api/config_api.rb +1 -1
- data/lib/daytona_api_client/api/docker_registry_api.rb +67 -6
- data/lib/daytona_api_client/api/health_api.rb +3 -54
- data/lib/daytona_api_client/api/object_storage_api.rb +1 -1
- data/lib/daytona_api_client/api/organizations_api.rb +279 -1591
- data/lib/daytona_api_client/api/preview_api.rb +8 -202
- data/lib/daytona_api_client/api/runners_api.rb +22 -470
- data/lib/daytona_api_client/api/sandbox_api.rb +429 -2200
- data/lib/daytona_api_client/api/snapshots_api.rb +117 -46
- data/lib/daytona_api_client/api/toolbox_api.rb +5108 -0
- data/lib/daytona_api_client/api/users_api.rb +172 -100
- data/lib/daytona_api_client/api/volumes_api.rb +2 -2
- data/lib/daytona_api_client/api/webhooks_api.rb +164 -27
- data/lib/daytona_api_client/api/workspace_api.rb +955 -0
- data/lib/daytona_api_client/api_client.rb +4 -8
- data/lib/daytona_api_client/api_error.rb +1 -1
- data/lib/daytona_api_client/configuration.rb +2 -5
- data/lib/daytona_api_client/models/account_provider.rb +93 -51
- data/lib/daytona_api_client/models/announcement.rb +74 -3
- data/lib/daytona_api_client/models/api_key_list.rb +78 -17
- data/lib/daytona_api_client/models/api_key_response.rb +74 -3
- data/lib/daytona_api_client/models/audit_log.rb +75 -22
- data/lib/daytona_api_client/models/build_info.rb +78 -34
- data/lib/daytona_api_client/models/{create_runner_response.rb → command.rb} +104 -23
- data/lib/daytona_api_client/models/completion_context.rb +244 -0
- data/lib/daytona_api_client/models/completion_item.rb +289 -0
- data/lib/daytona_api_client/models/{paginated_traces.rb → completion_list.rb} +106 -91
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +256 -0
- data/lib/daytona_api_client/models/computer_use_start_response.rb +263 -0
- data/lib/daytona_api_client/models/{audit_target_scenario.rb → computer_use_status_response.rb} +96 -44
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +263 -0
- data/lib/daytona_api_client/models/create_api_key.rb +75 -4
- data/lib/daytona_api_client/models/create_audit_log.rb +350 -0
- data/lib/daytona_api_client/models/create_build_info.rb +74 -3
- data/lib/daytona_api_client/models/create_docker_registry.rb +139 -7
- data/lib/daytona_api_client/models/create_linked_account.rb +74 -3
- data/lib/daytona_api_client/models/create_organization.rb +78 -34
- data/lib/daytona_api_client/models/create_organization_invitation.rb +76 -5
- data/lib/daytona_api_client/models/create_organization_quota.rb +290 -0
- data/lib/daytona_api_client/models/create_organization_role.rb +74 -3
- data/lib/daytona_api_client/models/create_runner.rb +361 -51
- data/lib/daytona_api_client/models/create_sandbox.rb +117 -120
- data/lib/daytona_api_client/models/{signed_port_preview_url.rb → create_session_request.rb} +93 -103
- data/lib/daytona_api_client/models/create_snapshot.rb +88 -61
- data/lib/daytona_api_client/models/{volume_created_webhook.rb → create_user.rb} +113 -131
- data/lib/daytona_api_client/models/create_volume.rb +74 -3
- data/lib/daytona_api_client/models/create_workspace.rb +411 -0
- data/lib/daytona_api_client/models/daytona_configuration.rb +78 -140
- data/lib/daytona_api_client/models/{runner_service_health.rb → display_info_response.rb} +95 -59
- data/lib/daytona_api_client/models/docker_registry.rb +76 -5
- data/lib/daytona_api_client/models/{oidc_id_p_config.rb → download_files.rb} +95 -86
- data/lib/daytona_api_client/models/{create_warm_pool.rb → execute_request.rb} +106 -62
- data/lib/daytona_api_client/models/{metric_data_point.rb → execute_response.rb} +109 -38
- data/lib/daytona_api_client/models/file_info.rb +417 -0
- data/lib/daytona_api_client/models/{snapshot_removed_webhook.rb → file_status.rb} +133 -142
- data/lib/daytona_api_client/models/git_add_request.rb +264 -0
- data/lib/daytona_api_client/models/{create_secret.rb → git_branch_request.rb} +106 -59
- data/lib/daytona_api_client/models/git_checkout_request.rb +261 -0
- data/lib/daytona_api_client/models/{toolbox_proxy_url.rb → git_clone_request.rb} +142 -10
- data/lib/daytona_api_client/models/{snapshot_created_webhook.rb → git_commit_info.rb} +151 -161
- data/lib/daytona_api_client/models/git_commit_request.rb +325 -0
- data/lib/daytona_api_client/models/{runner_healthcheck.rb → git_commit_response.rb} +92 -74
- data/lib/daytona_api_client/models/{create_region.rb → git_delete_branch_request.rb} +106 -54
- data/lib/daytona_api_client/models/{snapshot_manager_credentials.rb → git_repo_request.rb} +96 -35
- data/lib/daytona_api_client/models/git_status.rb +290 -0
- data/lib/daytona_api_client/models/health_controller_check200_response.rb +74 -3
- data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +74 -3
- data/lib/daytona_api_client/models/health_controller_check503_response.rb +74 -3
- data/lib/daytona_api_client/models/{oidc_id_p_config_response.rb → keyboard_hotkey_request.rb} +93 -59
- data/lib/daytona_api_client/models/{create_region_response.rb → keyboard_press_request.rb} +102 -63
- data/lib/daytona_api_client/models/keyboard_type_request.rb +246 -0
- data/lib/daytona_api_client/models/list_branch_response.rb +237 -0
- data/lib/daytona_api_client/models/lsp_completion_params.rb +325 -0
- data/lib/daytona_api_client/models/lsp_document_request.rb +290 -0
- data/lib/daytona_api_client/models/lsp_location.rb +261 -0
- data/lib/daytona_api_client/models/{gpu_capacity.rb → lsp_server_request.rb} +109 -104
- data/lib/daytona_api_client/models/{secret.rb → lsp_symbol.rb} +121 -146
- data/lib/daytona_api_client/models/match.rb +287 -0
- data/lib/daytona_api_client/models/mouse_click_request.rb +283 -0
- data/lib/daytona_api_client/models/mouse_click_response.rb +263 -0
- data/lib/daytona_api_client/models/mouse_drag_request.rb +327 -0
- data/lib/daytona_api_client/models/mouse_drag_response.rb +263 -0
- data/lib/daytona_api_client/models/mouse_move_request.rb +263 -0
- data/lib/daytona_api_client/models/mouse_move_response.rb +263 -0
- data/lib/daytona_api_client/models/{available_sandbox_class.rb → mouse_position.rb} +109 -95
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +300 -0
- data/lib/daytona_api_client/models/{test_identity_provider_connection_response.rb → mouse_scroll_response.rb} +81 -30
- data/lib/daytona_api_client/models/oidc_config.rb +78 -68
- data/lib/daytona_api_client/models/organization.rb +159 -307
- data/lib/daytona_api_client/models/organization_invitation.rb +78 -7
- data/lib/daytona_api_client/models/organization_role.rb +74 -3
- data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +236 -0
- data/lib/daytona_api_client/models/organization_suspension.rb +290 -0
- data/lib/daytona_api_client/models/organization_usage_overview.rb +220 -21
- data/lib/daytona_api_client/models/organization_user.rb +76 -5
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +80 -19
- data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_sandboxes.rb} +80 -9
- data/lib/daytona_api_client/models/paginated_snapshots.rb +77 -6
- data/lib/daytona_api_client/models/{paginated_logs.rb → paginated_snapshots_dto.rb} +80 -13
- data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
- data/lib/daytona_api_client/models/position.rb +261 -0
- data/lib/daytona_api_client/models/posthog_config.rb +74 -3
- data/lib/daytona_api_client/models/process_errors_response.rb +263 -0
- data/lib/daytona_api_client/models/process_logs_response.rb +263 -0
- data/lib/daytona_api_client/models/process_restart_response.rb +263 -0
- data/lib/daytona_api_client/models/process_status_response.rb +263 -0
- data/lib/daytona_api_client/models/{update_last_activity.rb → project_dir_response.rb} +83 -13
- data/lib/daytona_api_client/models/{pending_sso_link.rb → pty_create_request.rb} +114 -109
- data/lib/daytona_api_client/models/pty_create_response.rb +236 -0
- data/lib/daytona_api_client/models/{sandbox_identity.rb → pty_list_response.rb} +95 -49
- data/lib/daytona_api_client/models/pty_resize_request.rb +263 -0
- data/lib/daytona_api_client/models/pty_session_info.rb +425 -0
- data/lib/daytona_api_client/models/range.rb +261 -0
- data/lib/daytona_api_client/models/region.rb +78 -192
- data/lib/daytona_api_client/models/{regenerate_api_key_response.rb → region_screenshot_response.rb} +113 -22
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +74 -3
- data/lib/daytona_api_client/models/replace_request.rb +289 -0
- data/lib/daytona_api_client/models/replace_result.rb +236 -0
- data/lib/daytona_api_client/models/runner.rb +215 -155
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +91 -3
- data/lib/daytona_api_client/models/runner_state.rb +3 -4
- data/lib/daytona_api_client/models/sandbox.rb +105 -220
- data/lib/daytona_api_client/models/sandbox_class.rb +6 -8
- data/lib/daytona_api_client/models/sandbox_desired_state.rb +3 -5
- data/lib/daytona_api_client/models/{create_sandbox_snapshot.rb → sandbox_info.rb} +113 -17
- data/lib/daytona_api_client/models/sandbox_labels.rb +74 -3
- data/lib/daytona_api_client/models/sandbox_state.rb +3 -10
- data/lib/daytona_api_client/models/sandbox_volume.rb +79 -18
- data/lib/daytona_api_client/models/screenshot_response.rb +256 -0
- data/lib/daytona_api_client/models/{gpu_capacity_response.rb → search_files_response.rb} +93 -49
- data/lib/daytona_api_client/models/send_webhook_dto.rb +273 -0
- data/lib/daytona_api_client/models/session.rb +251 -0
- data/lib/daytona_api_client/models/{list_sandboxes_response.rb → session_execute_request.rb} +110 -34
- data/lib/daytona_api_client/models/session_execute_response.rb +239 -0
- data/lib/daytona_api_client/models/{generate_workos_admin_portal_link.rb → set_snapshot_general_status_dto.rb} +93 -44
- data/lib/daytona_api_client/models/snapshot_dto.rb +78 -84
- data/lib/daytona_api_client/models/snapshot_state.rb +6 -5
- data/lib/daytona_api_client/models/ssh_access_dto.rb +78 -34
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +98 -7
- data/lib/daytona_api_client/models/storage_access_dto.rb +78 -34
- data/lib/daytona_api_client/models/update_docker_registry.rb +74 -3
- data/lib/daytona_api_client/models/update_organization_invitation.rb +76 -5
- data/lib/daytona_api_client/models/update_organization_member_access.rb +76 -5
- data/lib/daytona_api_client/models/update_organization_quota.rb +317 -0
- data/lib/daytona_api_client/models/update_organization_role.rb +74 -3
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +80 -29
- data/lib/daytona_api_client/models/user.rb +75 -51
- data/lib/daytona_api_client/models/{list_secrets_response.rb → user_home_dir_response.rb} +83 -72
- data/lib/daytona_api_client/models/user_public_key.rb +74 -3
- data/lib/daytona_api_client/models/volume_dto.rb +74 -3
- data/lib/daytona_api_client/models/volume_state.rb +3 -4
- data/lib/daytona_api_client/models/webhook_app_portal_access.rb +75 -31
- data/lib/daytona_api_client/models/{preview_warning.rb → webhook_controller_get_status200_response.rb} +76 -23
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +74 -3
- data/lib/daytona_api_client/models/windows_response.rb +265 -0
- data/lib/daytona_api_client/models/{update_job_status.rb → work_dir_response.rb} +83 -72
- data/lib/daytona_api_client/models/{sandbox_list_item.rb → workspace.rb} +303 -226
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +83 -93
- data/project.json +13 -38
- metadata +88 -102
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -175
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -31
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/jobs_api.rb +0 -299
- data/lib/daytona_api_client/api/regions_api.rb +0 -77
- data/lib/daytona_api_client/api/secret_api.rb +0 -441
- data/lib/daytona_api_client/api/warm_pools_api.rb +0 -286
- data/lib/daytona_api_client/api_model_base.rb +0 -88
- data/lib/daytona_api_client/models/audit_scenarios.rb +0 -167
- data/lib/daytona_api_client/models/create_identity_provider.rb +0 -269
- data/lib/daytona_api_client/models/create_runner_sandbox_class.rb +0 -42
- data/lib/daytona_api_client/models/date_filter.rb +0 -178
- data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
- data/lib/daytona_api_client/models/gpu_type.rb +0 -46
- data/lib/daytona_api_client/models/identity_provider.rb +0 -439
- data/lib/daytona_api_client/models/int_filter.rb +0 -222
- data/lib/daytona_api_client/models/job.rb +0 -366
- data/lib/daytona_api_client/models/job_status.rb +0 -43
- data/lib/daytona_api_client/models/job_type.rb +0 -55
- data/lib/daytona_api_client/models/log_entry.rb +0 -334
- data/lib/daytona_api_client/models/metric_series.rb +0 -194
- data/lib/daytona_api_client/models/metrics_response.rb +0 -167
- data/lib/daytona_api_client/models/otel_config.rb +0 -188
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -188
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
- data/lib/daytona_api_client/models/region_quota.rb +0 -453
- data/lib/daytona_api_client/models/region_type.rb +0 -42
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -518
- data/lib/daytona_api_client/models/resize_sandbox.rb +0 -225
- data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +0 -176
- data/lib/daytona_api_client/models/runner_class.rb +0 -40
- data/lib/daytona_api_client/models/runner_full.rb +0 -757
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
- data/lib/daytona_api_client/models/sandbox_created_webhook.rb +0 -349
- data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +0 -41
- data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +0 -45
- data/lib/daytona_api_client/models/sandbox_state_updated_webhook.rb +0 -349
- data/lib/daytona_api_client/models/snapshot_state_updated_webhook.rb +0 -376
- data/lib/daytona_api_client/models/sso_oidc_config.rb +0 -192
- data/lib/daytona_api_client/models/string_filter.rb +0 -182
- data/lib/daytona_api_client/models/test_identity_provider_connection.rb +0 -165
- data/lib/daytona_api_client/models/trace_span.rb +0 -332
- data/lib/daytona_api_client/models/trace_summary.rb +0 -310
- data/lib/daytona_api_client/models/update_identity_provider.rb +0 -212
- data/lib/daytona_api_client/models/update_oidc_id_p_config.rb +0 -178
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
- data/lib/daytona_api_client/models/update_region.rb +0 -182
- data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
- data/lib/daytona_api_client/models/update_sandbox_secrets.rb +0 -167
- data/lib/daytona_api_client/models/update_secret.rb +0 -170
- data/lib/daytona_api_client/models/update_warm_pool.rb +0 -174
- data/lib/daytona_api_client/models/url.rb +0 -165
- data/lib/daytona_api_client/models/volume_state_updated_webhook.rb +0 -376
- data/lib/daytona_api_client/models/warm_pool.rb +0 -490
- data/lib/daytona_api_client/models/webhook_event.rb +0 -46
- data/lib/daytona_api_client/models/workos_admin_portal_intent.rb +0 -41
- data/lib/daytona_api_client/models/workos_admin_portal_link.rb +0 -165
- data/lib/daytona_api_client/models/workos_sso_connection.rb +0 -329
|
@@ -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.12.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,38 +14,19 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
18
|
-
|
|
19
|
-
attr_accessor :id
|
|
17
|
+
class LspSymbol
|
|
18
|
+
attr_accessor :kind
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
attr_accessor :name
|
|
23
|
-
|
|
24
|
-
# Optional description of the secret
|
|
25
|
-
attr_accessor :description
|
|
26
|
-
|
|
27
|
-
# Creation timestamp
|
|
28
|
-
attr_accessor :created_at
|
|
29
|
-
|
|
30
|
-
# Opaque placeholder token injected as env var value in sandboxes
|
|
31
|
-
attr_accessor :placeholder
|
|
32
|
-
|
|
33
|
-
# Allowed hosts this secret may be sent to
|
|
34
|
-
attr_accessor :hosts
|
|
20
|
+
attr_accessor :location
|
|
35
21
|
|
|
36
|
-
|
|
37
|
-
attr_accessor :updated_at
|
|
22
|
+
attr_accessor :name
|
|
38
23
|
|
|
39
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
25
|
def self.attribute_map
|
|
41
26
|
{
|
|
42
|
-
:'
|
|
43
|
-
:'
|
|
44
|
-
:'
|
|
45
|
-
:'created_at' => :'createdAt',
|
|
46
|
-
:'placeholder' => :'placeholder',
|
|
47
|
-
:'hosts' => :'hosts',
|
|
48
|
-
:'updated_at' => :'updatedAt'
|
|
27
|
+
:'kind' => :'kind',
|
|
28
|
+
:'location' => :'location',
|
|
29
|
+
:'name' => :'name'
|
|
49
30
|
}
|
|
50
31
|
end
|
|
51
32
|
|
|
@@ -62,13 +43,9 @@ module DaytonaApiClient
|
|
|
62
43
|
# Attribute type mapping.
|
|
63
44
|
def self.openapi_types
|
|
64
45
|
{
|
|
65
|
-
:'
|
|
66
|
-
:'
|
|
67
|
-
:'
|
|
68
|
-
:'created_at' => :'Time',
|
|
69
|
-
:'placeholder' => :'String',
|
|
70
|
-
:'hosts' => :'Array<String>',
|
|
71
|
-
:'updated_at' => :'Time'
|
|
46
|
+
:'kind' => :'Float',
|
|
47
|
+
:'location' => :'LspLocation',
|
|
48
|
+
:'name' => :'String'
|
|
72
49
|
}
|
|
73
50
|
end
|
|
74
51
|
|
|
@@ -82,58 +59,34 @@ module DaytonaApiClient
|
|
|
82
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
60
|
def initialize(attributes = {})
|
|
84
61
|
if (!attributes.is_a?(Hash))
|
|
85
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::LspSymbol` initialize method"
|
|
86
63
|
end
|
|
87
64
|
|
|
88
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
89
66
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
90
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
91
68
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
92
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::LspSymbol`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
93
70
|
end
|
|
94
71
|
h[k.to_sym] = v
|
|
95
72
|
}
|
|
96
73
|
|
|
97
|
-
if attributes.key?(:'
|
|
98
|
-
self.
|
|
99
|
-
else
|
|
100
|
-
self.id = nil
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
if attributes.key?(:'name')
|
|
104
|
-
self.name = attributes[:'name']
|
|
105
|
-
else
|
|
106
|
-
self.name = nil
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if attributes.key?(:'description')
|
|
110
|
-
self.description = attributes[:'description']
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
if attributes.key?(:'created_at')
|
|
114
|
-
self.created_at = attributes[:'created_at']
|
|
115
|
-
else
|
|
116
|
-
self.created_at = nil
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
if attributes.key?(:'placeholder')
|
|
120
|
-
self.placeholder = attributes[:'placeholder']
|
|
74
|
+
if attributes.key?(:'kind')
|
|
75
|
+
self.kind = attributes[:'kind']
|
|
121
76
|
else
|
|
122
|
-
self.
|
|
77
|
+
self.kind = nil
|
|
123
78
|
end
|
|
124
79
|
|
|
125
|
-
if attributes.key?(:'
|
|
126
|
-
|
|
127
|
-
self.hosts = value
|
|
128
|
-
end
|
|
80
|
+
if attributes.key?(:'location')
|
|
81
|
+
self.location = attributes[:'location']
|
|
129
82
|
else
|
|
130
|
-
self.
|
|
83
|
+
self.location = nil
|
|
131
84
|
end
|
|
132
85
|
|
|
133
|
-
if attributes.key?(:'
|
|
134
|
-
self.
|
|
86
|
+
if attributes.key?(:'name')
|
|
87
|
+
self.name = attributes[:'name']
|
|
135
88
|
else
|
|
136
|
-
self.
|
|
89
|
+
self.name = nil
|
|
137
90
|
end
|
|
138
91
|
end
|
|
139
92
|
|
|
@@ -142,28 +95,16 @@ module DaytonaApiClient
|
|
|
142
95
|
def list_invalid_properties
|
|
143
96
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
144
97
|
invalid_properties = Array.new
|
|
145
|
-
if @
|
|
146
|
-
invalid_properties.push('invalid value for "
|
|
98
|
+
if @kind.nil?
|
|
99
|
+
invalid_properties.push('invalid value for "kind", kind cannot be nil.')
|
|
147
100
|
end
|
|
148
101
|
|
|
149
|
-
if @
|
|
150
|
-
invalid_properties.push('invalid value for "
|
|
102
|
+
if @location.nil?
|
|
103
|
+
invalid_properties.push('invalid value for "location", location cannot be nil.')
|
|
151
104
|
end
|
|
152
105
|
|
|
153
|
-
if @
|
|
154
|
-
invalid_properties.push('invalid value for "
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
if @placeholder.nil?
|
|
158
|
-
invalid_properties.push('invalid value for "placeholder", placeholder cannot be nil.')
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
if @hosts.nil?
|
|
162
|
-
invalid_properties.push('invalid value for "hosts", hosts cannot be nil.')
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
if @updated_at.nil?
|
|
166
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
106
|
+
if @name.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
167
108
|
end
|
|
168
109
|
|
|
169
110
|
invalid_properties
|
|
@@ -173,73 +114,40 @@ module DaytonaApiClient
|
|
|
173
114
|
# @return true if the model is valid
|
|
174
115
|
def valid?
|
|
175
116
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
176
|
-
return false if @
|
|
117
|
+
return false if @kind.nil?
|
|
118
|
+
return false if @location.nil?
|
|
177
119
|
return false if @name.nil?
|
|
178
|
-
return false if @created_at.nil?
|
|
179
|
-
return false if @placeholder.nil?
|
|
180
|
-
return false if @hosts.nil?
|
|
181
|
-
return false if @updated_at.nil?
|
|
182
120
|
true
|
|
183
121
|
end
|
|
184
122
|
|
|
185
123
|
# Custom attribute writer method with validation
|
|
186
|
-
# @param [Object]
|
|
187
|
-
def
|
|
188
|
-
if
|
|
189
|
-
fail ArgumentError, '
|
|
124
|
+
# @param [Object] kind Value to be assigned
|
|
125
|
+
def kind=(kind)
|
|
126
|
+
if kind.nil?
|
|
127
|
+
fail ArgumentError, 'kind cannot be nil'
|
|
190
128
|
end
|
|
191
129
|
|
|
192
|
-
@
|
|
130
|
+
@kind = kind
|
|
193
131
|
end
|
|
194
132
|
|
|
195
133
|
# Custom attribute writer method with validation
|
|
196
|
-
# @param [Object]
|
|
197
|
-
def
|
|
198
|
-
if
|
|
199
|
-
fail ArgumentError, '
|
|
134
|
+
# @param [Object] location Value to be assigned
|
|
135
|
+
def location=(location)
|
|
136
|
+
if location.nil?
|
|
137
|
+
fail ArgumentError, 'location cannot be nil'
|
|
200
138
|
end
|
|
201
139
|
|
|
202
|
-
@
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
# Custom attribute writer method with validation
|
|
206
|
-
# @param [Object] created_at Value to be assigned
|
|
207
|
-
def created_at=(created_at)
|
|
208
|
-
if created_at.nil?
|
|
209
|
-
fail ArgumentError, 'created_at cannot be nil'
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
@created_at = created_at
|
|
140
|
+
@location = location
|
|
213
141
|
end
|
|
214
142
|
|
|
215
143
|
# Custom attribute writer method with validation
|
|
216
|
-
# @param [Object]
|
|
217
|
-
def
|
|
218
|
-
if
|
|
219
|
-
fail ArgumentError, '
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
@placeholder = placeholder
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
# Custom attribute writer method with validation
|
|
226
|
-
# @param [Object] hosts Value to be assigned
|
|
227
|
-
def hosts=(hosts)
|
|
228
|
-
if hosts.nil?
|
|
229
|
-
fail ArgumentError, 'hosts cannot be nil'
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
@hosts = hosts
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
# Custom attribute writer method with validation
|
|
236
|
-
# @param [Object] updated_at Value to be assigned
|
|
237
|
-
def updated_at=(updated_at)
|
|
238
|
-
if updated_at.nil?
|
|
239
|
-
fail ArgumentError, 'updated_at cannot be nil'
|
|
144
|
+
# @param [Object] name Value to be assigned
|
|
145
|
+
def name=(name)
|
|
146
|
+
if name.nil?
|
|
147
|
+
fail ArgumentError, 'name cannot be nil'
|
|
240
148
|
end
|
|
241
149
|
|
|
242
|
-
@
|
|
150
|
+
@name = name
|
|
243
151
|
end
|
|
244
152
|
|
|
245
153
|
# Checks equality by comparing each attribute.
|
|
@@ -247,13 +155,9 @@ module DaytonaApiClient
|
|
|
247
155
|
def ==(o)
|
|
248
156
|
return true if self.equal?(o)
|
|
249
157
|
self.class == o.class &&
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
created_at == o.created_at &&
|
|
254
|
-
placeholder == o.placeholder &&
|
|
255
|
-
hosts == o.hosts &&
|
|
256
|
-
updated_at == o.updated_at
|
|
158
|
+
kind == o.kind &&
|
|
159
|
+
location == o.location &&
|
|
160
|
+
name == o.name
|
|
257
161
|
end
|
|
258
162
|
|
|
259
163
|
# @see the `==` method
|
|
@@ -265,7 +169,7 @@ module DaytonaApiClient
|
|
|
265
169
|
# Calculates hash code according to all attributes.
|
|
266
170
|
# @return [Integer] Hash code
|
|
267
171
|
def hash
|
|
268
|
-
[
|
|
172
|
+
[kind, location, name].hash
|
|
269
173
|
end
|
|
270
174
|
|
|
271
175
|
# Builds the object from hash
|
|
@@ -291,6 +195,61 @@ module DaytonaApiClient
|
|
|
291
195
|
new(transformed_hash)
|
|
292
196
|
end
|
|
293
197
|
|
|
198
|
+
# Deserializes the data based on type
|
|
199
|
+
# @param string type Data type
|
|
200
|
+
# @param string value Value to be deserialized
|
|
201
|
+
# @return [Object] Deserialized data
|
|
202
|
+
def self._deserialize(type, value)
|
|
203
|
+
case type.to_sym
|
|
204
|
+
when :Time
|
|
205
|
+
Time.parse(value)
|
|
206
|
+
when :Date
|
|
207
|
+
Date.parse(value)
|
|
208
|
+
when :String
|
|
209
|
+
value.to_s
|
|
210
|
+
when :Integer
|
|
211
|
+
value.to_i
|
|
212
|
+
when :Float
|
|
213
|
+
value.to_f
|
|
214
|
+
when :Boolean
|
|
215
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
216
|
+
true
|
|
217
|
+
else
|
|
218
|
+
false
|
|
219
|
+
end
|
|
220
|
+
when :Object
|
|
221
|
+
# generic object (usually a Hash), return directly
|
|
222
|
+
value
|
|
223
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
224
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
225
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
226
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
227
|
+
k_type = Regexp.last_match[:k_type]
|
|
228
|
+
v_type = Regexp.last_match[:v_type]
|
|
229
|
+
{}.tap do |hash|
|
|
230
|
+
value.each do |k, v|
|
|
231
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
else # model
|
|
235
|
+
# models (e.g. Pet) or oneOf
|
|
236
|
+
klass = DaytonaApiClient.const_get(type)
|
|
237
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Returns the string representation of the object
|
|
242
|
+
# @return [String] String presentation of the object
|
|
243
|
+
def to_s
|
|
244
|
+
to_hash.to_s
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
248
|
+
# @return [Hash] Returns the object in the form of hash
|
|
249
|
+
def to_body
|
|
250
|
+
to_hash
|
|
251
|
+
end
|
|
252
|
+
|
|
294
253
|
# Returns the object in the form of hash
|
|
295
254
|
# @return [Hash] Returns the object in the form of hash
|
|
296
255
|
def to_hash
|
|
@@ -307,6 +266,22 @@ module DaytonaApiClient
|
|
|
307
266
|
hash
|
|
308
267
|
end
|
|
309
268
|
|
|
269
|
+
# Outputs non-array value in the form of hash
|
|
270
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
271
|
+
# @param [Object] value Any valid value
|
|
272
|
+
# @return [Hash] Returns the value in the form of hash
|
|
273
|
+
def _to_hash(value)
|
|
274
|
+
if value.is_a?(Array)
|
|
275
|
+
value.compact.map { |v| _to_hash(v) }
|
|
276
|
+
elsif value.is_a?(Hash)
|
|
277
|
+
{}.tap do |hash|
|
|
278
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
279
|
+
end
|
|
280
|
+
elsif value.respond_to? :to_hash
|
|
281
|
+
value.to_hash
|
|
282
|
+
else
|
|
283
|
+
value
|
|
284
|
+
end
|
|
285
|
+
end
|
|
310
286
|
end
|
|
311
|
-
|
|
312
287
|
end
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Daytona
|
|
3
|
+
|
|
4
|
+
#Daytona AI platform API Docs
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@daytona.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.12.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module DaytonaApiClient
|
|
17
|
+
class Match
|
|
18
|
+
attr_accessor :file
|
|
19
|
+
|
|
20
|
+
attr_accessor :line
|
|
21
|
+
|
|
22
|
+
attr_accessor :content
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'file' => :'file',
|
|
28
|
+
:'line' => :'line',
|
|
29
|
+
:'content' => :'content'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
acceptable_attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'file' => :'String',
|
|
47
|
+
:'line' => :'Float',
|
|
48
|
+
:'content' => :'String'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# List of attributes with nullable: true
|
|
53
|
+
def self.openapi_nullable
|
|
54
|
+
Set.new([
|
|
55
|
+
])
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
if (!attributes.is_a?(Hash))
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::Match` initialize method"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::Match`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'file')
|
|
75
|
+
self.file = attributes[:'file']
|
|
76
|
+
else
|
|
77
|
+
self.file = nil
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'line')
|
|
81
|
+
self.line = attributes[:'line']
|
|
82
|
+
else
|
|
83
|
+
self.line = nil
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'content')
|
|
87
|
+
self.content = attributes[:'content']
|
|
88
|
+
else
|
|
89
|
+
self.content = nil
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
94
|
+
# @return Array for valid properties with the reasons
|
|
95
|
+
def list_invalid_properties
|
|
96
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
97
|
+
invalid_properties = Array.new
|
|
98
|
+
if @file.nil?
|
|
99
|
+
invalid_properties.push('invalid value for "file", file cannot be nil.')
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if @line.nil?
|
|
103
|
+
invalid_properties.push('invalid value for "line", line cannot be nil.')
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if @content.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "content", content cannot be nil.')
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
invalid_properties
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Check to see if the all the properties in the model are valid
|
|
114
|
+
# @return true if the model is valid
|
|
115
|
+
def valid?
|
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
117
|
+
return false if @file.nil?
|
|
118
|
+
return false if @line.nil?
|
|
119
|
+
return false if @content.nil?
|
|
120
|
+
true
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] file Value to be assigned
|
|
125
|
+
def file=(file)
|
|
126
|
+
if file.nil?
|
|
127
|
+
fail ArgumentError, 'file cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@file = file
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Custom attribute writer method with validation
|
|
134
|
+
# @param [Object] line Value to be assigned
|
|
135
|
+
def line=(line)
|
|
136
|
+
if line.nil?
|
|
137
|
+
fail ArgumentError, 'line cannot be nil'
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
@line = line
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Custom attribute writer method with validation
|
|
144
|
+
# @param [Object] content Value to be assigned
|
|
145
|
+
def content=(content)
|
|
146
|
+
if content.nil?
|
|
147
|
+
fail ArgumentError, 'content cannot be nil'
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
@content = content
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Checks equality by comparing each attribute.
|
|
154
|
+
# @param [Object] Object to be compared
|
|
155
|
+
def ==(o)
|
|
156
|
+
return true if self.equal?(o)
|
|
157
|
+
self.class == o.class &&
|
|
158
|
+
file == o.file &&
|
|
159
|
+
line == o.line &&
|
|
160
|
+
content == o.content
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# @see the `==` method
|
|
164
|
+
# @param [Object] Object to be compared
|
|
165
|
+
def eql?(o)
|
|
166
|
+
self == o
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Calculates hash code according to all attributes.
|
|
170
|
+
# @return [Integer] Hash code
|
|
171
|
+
def hash
|
|
172
|
+
[file, line, content].hash
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Builds the object from hash
|
|
176
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
177
|
+
# @return [Object] Returns the model itself
|
|
178
|
+
def self.build_from_hash(attributes)
|
|
179
|
+
return nil unless attributes.is_a?(Hash)
|
|
180
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
181
|
+
transformed_hash = {}
|
|
182
|
+
openapi_types.each_pair do |key, type|
|
|
183
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
184
|
+
transformed_hash["#{key}"] = nil
|
|
185
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
186
|
+
# check to ensure the input is an array given that the attribute
|
|
187
|
+
# is documented as an array but the input is not
|
|
188
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
189
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
190
|
+
end
|
|
191
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
192
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
new(transformed_hash)
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Deserializes the data based on type
|
|
199
|
+
# @param string type Data type
|
|
200
|
+
# @param string value Value to be deserialized
|
|
201
|
+
# @return [Object] Deserialized data
|
|
202
|
+
def self._deserialize(type, value)
|
|
203
|
+
case type.to_sym
|
|
204
|
+
when :Time
|
|
205
|
+
Time.parse(value)
|
|
206
|
+
when :Date
|
|
207
|
+
Date.parse(value)
|
|
208
|
+
when :String
|
|
209
|
+
value.to_s
|
|
210
|
+
when :Integer
|
|
211
|
+
value.to_i
|
|
212
|
+
when :Float
|
|
213
|
+
value.to_f
|
|
214
|
+
when :Boolean
|
|
215
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
216
|
+
true
|
|
217
|
+
else
|
|
218
|
+
false
|
|
219
|
+
end
|
|
220
|
+
when :Object
|
|
221
|
+
# generic object (usually a Hash), return directly
|
|
222
|
+
value
|
|
223
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
224
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
225
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
226
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
227
|
+
k_type = Regexp.last_match[:k_type]
|
|
228
|
+
v_type = Regexp.last_match[:v_type]
|
|
229
|
+
{}.tap do |hash|
|
|
230
|
+
value.each do |k, v|
|
|
231
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
else # model
|
|
235
|
+
# models (e.g. Pet) or oneOf
|
|
236
|
+
klass = DaytonaApiClient.const_get(type)
|
|
237
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Returns the string representation of the object
|
|
242
|
+
# @return [String] String presentation of the object
|
|
243
|
+
def to_s
|
|
244
|
+
to_hash.to_s
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
248
|
+
# @return [Hash] Returns the object in the form of hash
|
|
249
|
+
def to_body
|
|
250
|
+
to_hash
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Returns the object in the form of hash
|
|
254
|
+
# @return [Hash] Returns the object in the form of hash
|
|
255
|
+
def to_hash
|
|
256
|
+
hash = {}
|
|
257
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
258
|
+
value = self.send(attr)
|
|
259
|
+
if value.nil?
|
|
260
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
261
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
hash[param] = _to_hash(value)
|
|
265
|
+
end
|
|
266
|
+
hash
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Outputs non-array value in the form of hash
|
|
270
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
271
|
+
# @param [Object] value Any valid value
|
|
272
|
+
# @return [Hash] Returns the value in the form of hash
|
|
273
|
+
def _to_hash(value)
|
|
274
|
+
if value.is_a?(Array)
|
|
275
|
+
value.compact.map { |v| _to_hash(v) }
|
|
276
|
+
elsif value.is_a?(Hash)
|
|
277
|
+
{}.tap do |hash|
|
|
278
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
279
|
+
end
|
|
280
|
+
elsif value.respond_to? :to_hash
|
|
281
|
+
value.to_hash
|
|
282
|
+
else
|
|
283
|
+
value
|
|
284
|
+
end
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
end
|